|
|
|
@ -90,7 +90,6 @@ public class CheckDisposalActivity extends BaseActivity implements DisposalFileA
|
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
|
CheckDisposalBeen been = gson.fromJson(body.getData().toString(), CheckDisposalBeen.class);
|
|
|
|
|
binding.setVm(been);
|
|
|
|
|
|
|
|
|
|
infoList = been.getQmsQualityInstanceActivities();
|
|
|
|
|
infoAdapter.setList(infoList);
|
|
|
|
|
infoAdapter.notifyDataSetChanged();
|
|
|
|
@ -149,8 +148,14 @@ public class CheckDisposalActivity extends BaseActivity implements DisposalFileA
|
|
|
|
|
public void checkDisposalSubmit(View view) {
|
|
|
|
|
var been = infoList.get(infoList.size() - 1);
|
|
|
|
|
|
|
|
|
|
OkGo.<MyResult>post(url + "/qms/mobile/handleQualityInstance").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) {
|
|
|
|
|
OkGo.<MyResult>post(url + "/qms/mobile/handleQualityInstance")
|
|
|
|
|
.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
|
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
|
super.onSuccess(response);
|
|
|
|
|