浏览代码

bug优化

dengrui 4 月之前
父节点
当前提交
fe11e42112
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 3
      entry/src/main/ets/pages/WarehouseMap.ets
  2. 2 0
      entry/src/main/ets/view/ManualOutbound.ets

+ 1 - 3
entry/src/main/ets/pages/WarehouseMap.ets

@@ -152,9 +152,7 @@ export struct WarehouseMap {
   }
   //获取当前选择料格详情
   getBoxInfos = async(y:string,x:string)=>{
-    console.log('dyy',y,x)
     let res: boxItem[] = await StorageRequest.get("/api/v1/wms/position/lineStockDetails/"+ x +'-'+y)
-    console.log('dyy',res)
     this.boxInfo=res;
   }
   // 获取仓库坐标信息,x和y轴的信息
@@ -360,7 +358,7 @@ export struct WarehouseMap {
                             }
                           }
                           else if (this.SelectEnter == ChooseStatus.isChoosing) {
-                            if (Number(x) < 6 && index1 != this.YCoordinate && index2 != this.XCoordinate) {
+                            if (Number(x) < 6 && x && (index1 != this.YCoordinate?true :index2 != this.XCoordinate? true:false)) {
                               Text(x.toString())
                                 .commonSquare().backgroundColor($r('app.color.green_100'))
                                 .onClick(() => {

+ 2 - 0
entry/src/main/ets/view/ManualOutbound.ets

@@ -169,6 +169,8 @@ export struct ManualOutbound {
         m.useNum = m.num
       })
 
+    }else{
+      this.boxMaterials=[];
     }
   }
   //查询取出的料箱里面的物料信息