Explorar o código

空箱状态修改

cjb hai 2 semanas
pai
achega
a87d1a335a
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      entry/src/main/ets/pages/EmptyBoxStorage.ets

+ 3 - 3
entry/src/main/ets/pages/EmptyBoxStorage.ets

@@ -102,11 +102,11 @@ struct emptyBoxStorage {
     } as RequestParamModel);
     this.isManualGenerating=false;
     //添加后加载新列表
-    this.loadMaterialBoxes().then(() => {
+    await this.loadMaterialBoxes().then(() => {
       this.filterMaterialBoxes();
     });
     //添加后更新料箱rfid显示
-    this.checkRfidStatus(this.materialBoxRfid ?? '');
+    await this.checkRfidStatus(this.materialBoxRfid ?? '');
   }
 
   onMaterialBoxRfidChange() {
@@ -202,7 +202,7 @@ struct emptyBoxStorage {
                 .margin({top:'3%'})
               Row(){
                 Stack() {
-                  Image(this.currentStatus === 'new_rfid_box'? $r('app.media.identified_material_box'):$r('app.media.not_identified_material_box'))
+                  Image(this.materialBoxRfid != ''? $r('app.media.identified_material_box'):$r('app.media.not_identified_material_box'))
                     .width('100%')
                     .height('100%')
                     .borderRadius($r('app.float.virtualSize_16'))