Просмотр исходного кода

入库管理-盘收一体 页面元素焦点问题

Zhouzhendong 5 лет назад
Родитель
Сommit
27c54f3b0d

+ 2 - 1
app/Services/CommodityService.php

@@ -145,6 +145,7 @@ Class CommodityService
         return $query->get();
     }
 
+    /* 批量更新 */
     public function batchUpdate(array $params){
         return app(BatchUpdateService::class)->batchUpdate('commodities', $params);
     }
@@ -174,7 +175,7 @@ Class CommodityService
         return $commodities->get();
     }
 
-    /* 通过货主代码与条形码寻找FLUX商品补充至WMS */
+    /* 通过货主代码与条形码寻找FLUX商品补充至WMS 单条*/
     public function ownerAndBarcodeFirstOrCreate(Owner $owner,$barcode){
         $wmsCommodity = app('oracleBasSkuService')->first(['customerid'=>$owner->code, 'barcode'=>$barcode]);
         if (!$wmsCommodity) return null;

+ 5 - 1
resources/views/store/checkingReceive/show.blade.php

@@ -334,6 +334,7 @@
                 this.inputting.batch_number='';
                 this.status.commitButtonVisible=false;
                 this.status.binDisable=false;
+                this.status.barcodeDisable = true;
             },
             autoFillBin: function () {
                 let isNotRepeatingBarcode=this.storeCheckingReceiveItems.every(item=>{
@@ -414,7 +415,10 @@
                     }, () => {
                         this.focusDocument();
                     });
-                }else this.commitGoods();
+                }else{
+                    this.commitGoods();
+                    this.focusDocument();
+                }
             },
             getItem: function () {
                 let repeatedGoods=null;