修改 故障报修url

master
wangh 7 months ago
parent 6e0f0edcb7
commit 8a9763ddb3

@ -46,8 +46,9 @@ public class CheckActivity extends BaseActivity {
searchRequest(null, id, visble);
}
}
// 提交
public void checkSubmit(View view) {
checkResult.setMaterialBarcode(binding.checkSearchText.getText().toString());
OkGo.<MyResult>post(url + "/qms/mobile/saveCheckResultDetail")
.headers("Authorization", SharedPreferencesUtils.getstring("access_token", ""))
.upRequestBody(RequestBody.create(JSON, gson.toJson(checkResult)))
@ -91,11 +92,10 @@ public class CheckActivity extends BaseActivity {
qmsCheckResultDetailProjectList = new ArrayList<>();
var qmsCheckRuleProjectList = checkResult.getQmsCheckRuleProjectList();
qmsCheckResultDetailProjectList.addAll(qmsCheckRuleProjectList);
checkResult.setQmsCheckResultDetailProjectList(qmsCheckResultDetailProjectList);
}
adapter.setList(qmsCheckResultDetailProjectList);
adapter.notifyDataSetChanged();
} else {
binding.setVm(null);
adapter.setList(null);

@ -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);

@ -178,7 +178,8 @@ public class BxActivity extends BaseActivity implements DisposalFileAdapter.Item
}
public void bxSubmit(View view) {
OkGo.<MyResult>post(url + "/dms/mobile/insertFaultinstsanceActivity")
OkGo.<MyResult>post(url + "/dms/mobile/insertFaultInstsanceActivity")
.headers("Authorization", SharedPreferencesUtils.getstring("access_token", ""))
.params("checkResultId", been.getDeviceld())
.params("faultType", been.getFaultType())

Loading…
Cancel
Save