cqpCow 1 年之前
父节点
当前提交
e4fc81aff4
共有 1 个文件被更改,包括 1 次插入0 次删除
  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,'编辑失败,请确认盘点单状态!'];