|
|
@ -113,7 +113,18 @@ public class CheckActivity extends BaseActivity implements AdapterClickCall {
|
|
|
|
list.forEach(t->{
|
|
|
|
list.forEach(t->{
|
|
|
|
if (t.getState().equals("未检")) return;
|
|
|
|
if (t.getState().equals("未检")) return;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// OkGo.<MyResult>pos
|
|
|
|
OkGo.<MyResult>post(url+"/xj/submit")
|
|
|
|
|
|
|
|
.tag(this)
|
|
|
|
|
|
|
|
.params("json",gson.toJson(list))
|
|
|
|
|
|
|
|
.params("user", SharedPreferencesUtils.getstring("user","test-user"))
|
|
|
|
|
|
|
|
.execute(new MyRecultCall(dialog,this){
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onSuccess(Response<MyResult> response) {
|
|
|
|
|
|
|
|
super.onSuccess(response);
|
|
|
|
|
|
|
|
Toast.makeText(CheckActivity.this, "提交成功", Toast.LENGTH_SHORT).show();
|
|
|
|
|
|
|
|
// finish();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public void check_stock(View view) {
|
|
|
|
public void check_stock(View view) {
|
|
|
|
if (subIndex==-1) return;
|
|
|
|
if (subIndex==-1) return;
|
|
|
|