增加 - 返修查询提交工位

master
wangh 8 months ago
parent 9518165a04
commit d98500ae69

@ -86,7 +86,8 @@ public class CheckActivity extends BaseActivity implements CheckAdapter.CheckIte
private void initStationSum() { private void initStationSum() {
OkGo.<Result>post(url + "/api/pdaQueryQuantityNumber").tag(this) OkGo.<Result>post(url + "/api/pdaQueryQuantityNumber").tag(this)
.headers("Authorization", SharedPreferencesUtils.getstring("token", "")) .headers("Authorization", SharedPreferencesUtils.getstring("token", ""))
.params("stationCode", stationCode).execute(new MyRecultCall(dialog, this) { .params("stationCode", stationCode)
.execute(new MyRecultCall(dialog, this) {
@Override @Override
public void onSuccess(Response<Result> response) { public void onSuccess(Response<Result> response) {
super.onSuccess(response); super.onSuccess(response);
@ -107,9 +108,11 @@ public class CheckActivity extends BaseActivity implements CheckAdapter.CheckIte
@Override @Override
protected void sanInfo(String code) { protected void sanInfo(String code) {
checkViewModel.setCode(code); checkViewModel.setCode(code);
OkGo.<Result>post(url + "/api/check/select").tag(this) OkGo.<Result>post(url + "/api/check/query").tag(this)
.headers("Authorization", SharedPreferencesUtils.getstring("token", "")) .headers("Authorization", SharedPreferencesUtils.getstring("token", ""))
.params("code", code).execute(new MyRecultCall(dialog, this) { .params("code", code)
.params("station", stationCode)
.execute(new MyRecultCall(dialog, this) {
@Override @Override
public void onSuccess(Response<Result> response) { public void onSuccess(Response<Result> response) {
super.onSuccess(response); super.onSuccess(response);

@ -133,7 +133,7 @@ public class MainActivity extends BaseActivity {
public void login(View view) { public void login(View view) {
if (!loginState) { if (!loginState) {
Toast.makeText(this, "设备未注册,不允许登录", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "设备未注册,不允许登录", Toast.LENGTH_SHORT).show();
// return; return;
} }
String teamCode = user.getTeamCode(); String teamCode = user.getTeamCode();
if (teamCode==null||teamCode.isEmpty()) return; if (teamCode==null||teamCode.isEmpty()) return;

@ -26,8 +26,8 @@ import okhttp3.MediaType;
public abstract class BaseActivity extends AppCompatActivity { public abstract class BaseActivity extends AppCompatActivity {
private MyBroad receiver; private MyBroad receiver;
public static String url="http://192.168.137.1:8080"; // public static String url="http://192.168.137.1:8080";
// public static String url="http://10.100.72.10:8080"; public static String url="http://10.100.72.10:8080";
public ProgressDialog dialog; public ProgressDialog dialog;
public Gson gson; public Gson gson;
public MediaType JSON = MediaType.parse("application/json; charset=utf-8"); public MediaType JSON = MediaType.parse("application/json; charset=utf-8");

Loading…
Cancel
Save