cqp 2 недель назад
Родитель
Сommit
9f80ed8167
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      app/Service/ItemService.php

+ 7 - 7
app/Service/ItemService.php

@@ -507,8 +507,8 @@ class ItemService extends Service
         $oldData = $model->toArray();
         if($oldData['state'] == Item::TYPE_THREE) return [false, '项目已完成,请勿重复操作'];
 
-        list($bool, $msg) = $this->checkIsDelivery($oldData, $tableName);
-        if(! $bool) return [false , $msg];
+//        list($bool, $msg) = $this->checkIsDelivery($oldData, $tableName);
+//        if(! $bool) return [false , $msg];
 
         $bool = ItemNode::where('del_time',0)
             ->where('item_id', $data['id'])
@@ -1335,11 +1335,11 @@ class ItemService extends Service
             if (empty($item)) return [false, '项目不存在或已被删除'];
 
             //交付物
-            if($data['state'] == Item::TYPE_THREE){
-                $tableName = $item->getTable();
-                list($bool, $msg) = $this->checkIsDelivery($item->toArray(), $tableName);
-                if(! $bool) return [false , $msg];
-            }
+//            if($data['state'] == Item::TYPE_THREE){
+//                $tableName = $item->getTable();
+//                list($bool, $msg) = $this->checkIsDelivery($item->toArray(), $tableName);
+//                if(! $bool) return [false , $msg];
+//            }
 
             // 状态拦截
             if ($item->state == Item::TYPE_THREE) return [false, '项目已完结,操作失败'];