|
|
@ -90,7 +90,6 @@ public class CheckDisposalActivity extends BaseActivity implements DisposalFileA
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
CheckDisposalBeen been = gson.fromJson(body.getData().toString(), CheckDisposalBeen.class);
|
|
|
|
CheckDisposalBeen been = gson.fromJson(body.getData().toString(), CheckDisposalBeen.class);
|
|
|
|
binding.setVm(been);
|
|
|
|
binding.setVm(been);
|
|
|
|
|
|
|
|
|
|
|
|
infoList = been.getQmsQualityInstanceActivities();
|
|
|
|
infoList = been.getQmsQualityInstanceActivities();
|
|
|
|
infoAdapter.setList(infoList);
|
|
|
|
infoAdapter.setList(infoList);
|
|
|
|
infoAdapter.notifyDataSetChanged();
|
|
|
|
infoAdapter.notifyDataSetChanged();
|
|
|
@ -149,8 +148,14 @@ public class CheckDisposalActivity extends BaseActivity implements DisposalFileA
|
|
|
|
public void checkDisposalSubmit(View view) {
|
|
|
|
public void checkDisposalSubmit(View view) {
|
|
|
|
var been = infoList.get(infoList.size() - 1);
|
|
|
|
var been = infoList.get(infoList.size() - 1);
|
|
|
|
|
|
|
|
|
|
|
|
OkGo.<MyResult>post(url + "/qms/mobile/handleQualityInstance").headers("Authorization", SharedPreferencesUtils.getstring("access_token", ""))
|
|
|
|
OkGo.<MyResult>post(url + "/qms/mobile/handleQualityInstance")
|
|
|
|
.params("checkResultId", checkResultId).params("processActivityId", been.getProcessActivityId()).params("processHandleResolution", been.getProcessHandleResolution()).params("processStepOrder", been.getProcessStepOrder()).addFileParams("files", files).execute(new MyRecultCall(dialog, this) {
|
|
|
|
.headers("Authorization", SharedPreferencesUtils.getstring("access_token", ""))
|
|
|
|
|
|
|
|
.params("checkResultId", checkResultId)
|
|
|
|
|
|
|
|
.params("processActivityId", been.getProcessActivityId())
|
|
|
|
|
|
|
|
.params("processHandleResolution", been.getProcessHandleResolution())
|
|
|
|
|
|
|
|
.params("processStepOrder", been.getProcessStepOrder())
|
|
|
|
|
|
|
|
.addFileParams("files", files)
|
|
|
|
|
|
|
|
.execute(new MyRecultCall(dialog, this) {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
super.onSuccess(response);
|
|
|
|
super.onSuccess(response);
|
|
|
|