cqpCow il y a 1 an
Parent
commit
e4fc81aff4
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      app/Service/InventoryService.php

+ 1 - 0
app/Service/InventoryService.php

@@ -214,6 +214,7 @@ class InventoryService extends Service
         }else{
             if($this->isEmpty($data,'order_no')) return [false,'盘点单号不能为空!'];
             $bool = InventoryOrder::where('del_time',0)
+                ->where('order_no',$data['order_no'])
                 ->where('state','>',InventoryOrder::STATE_ZERO)
                 ->exists();
             if($bool) return [false,'编辑失败,请确认盘点单状态!'];