|
|
@ -67,7 +67,17 @@ public class CheckDisposalActivity extends BaseActivity implements DisposalFileA
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void initRequest() {
|
|
|
|
private void initRequest() {
|
|
|
|
OkGo.<MyResult>get(url + "/qms/mobile/getCheckResult4Handle").tag(this).headers("Authorization", SharedPreferencesUtils.getstring("access_token", "")).params("checkResultId", 2).params("materialBatch", "123").params("checkMode", 1).params("checkSample", "10").params("materialCode", "111").params("materialName", "物料测试").execute(new MyRecultCall(dialog, this) {
|
|
|
|
var intent = getIntent();
|
|
|
|
|
|
|
|
OkGo.<MyResult>get(url + "/qms/mobile/getCheckResult4Handle").tag(this)
|
|
|
|
|
|
|
|
.headers("Authorization", SharedPreferencesUtils.getstring("access_token", ""))
|
|
|
|
|
|
|
|
.params("checkResultId", intent.getIntExtra("checkResultId",0))
|
|
|
|
|
|
|
|
.params("materialBatch", intent.getStringExtra("materialBatch"))
|
|
|
|
|
|
|
|
.params("checkMode", intent.getStringExtra("checkMode"))
|
|
|
|
|
|
|
|
.params("checkSample", intent.getStringExtra("checkSample"))
|
|
|
|
|
|
|
|
.params("materialCode", intent.getStringExtra("materialCode"))
|
|
|
|
|
|
|
|
.params("materialName", intent.getStringExtra("materialName"))
|
|
|
|
|
|
|
|
.params("checkRuleType", intent.getStringExtra("checkRuleType"))
|
|
|
|
|
|
|
|
.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);
|
|
|
@ -87,7 +97,6 @@ public class CheckDisposalActivity extends BaseActivity implements DisposalFileA
|
|
|
|
fileAdapter.setList(filesList);
|
|
|
|
fileAdapter.setList(filesList);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
binding.disposalFileAdd.setVisibility(View.GONE);
|
|
|
|
binding.disposalFileAdd.setVisibility(View.GONE);
|
|
|
|
// files = new ArrayList<>();
|
|
|
|
|
|
|
|
fileAdapter.setList(filesList);
|
|
|
|
fileAdapter.setList(filesList);
|
|
|
|
fileAdapter.notifyDataSetChanged();
|
|
|
|
fileAdapter.notifyDataSetChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -189,7 +198,7 @@ public class CheckDisposalActivity extends BaseActivity implements DisposalFileA
|
|
|
|
super.onSuccess(response);
|
|
|
|
super.onSuccess(response);
|
|
|
|
var body = response.body();
|
|
|
|
var body = response.body();
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
if (body.getCode() == 200) {
|
|
|
|
// finish();
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Toast.makeText(context, body.getMsg(), Toast.LENGTH_SHORT).show();
|
|
|
|
Toast.makeText(context, body.getMsg(), Toast.LENGTH_SHORT).show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|