diff --git a/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java b/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java index 2f5efe7..d1795da 100644 --- a/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java +++ b/app/src/main/java/com/example/jingyuan_mes/device/DeviceRepairInfoActivity.java @@ -112,6 +112,11 @@ public class DeviceRepairInfoActivity extends BaseActivity implements DisposalFi // 开始维修 public void startRepair(View view) { + if (submitBeen.getDeviceCode()==null){ + Toast.makeText(context, "数据异常", Toast.LENGTH_LONG).show(); + return; + } + if (!submitBeen.getDeviceCode().equals(deviceCode)) { Toast.makeText(context, "设备扫描错误", Toast.LENGTH_LONG).show(); return; diff --git a/app/src/main/res/layout/activity_device_check.xml b/app/src/main/res/layout/activity_device_check.xml index 3d4766f..3454f80 100644 --- a/app/src/main/res/layout/activity_device_check.xml +++ b/app/src/main/res/layout/activity_device_check.xml @@ -31,6 +31,7 @@ android:layout_height="44dp" android:layout_marginTop="8dp" android:layout_marginEnd="4dp" + android:visibility="gone" android:background="@drawable/text_bg">