浏览代码

新增工艺数据验证

unknown 1 周之前
父节点
当前提交
0a2040e160
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      application/api/controller/WorkOrderProcess.php

+ 9 - 9
application/api/controller/WorkOrderProcess.php

@@ -361,15 +361,15 @@ class WorkOrderProcess extends Api
         if (empty($params['big_process'])) {
             $this->error('大工艺不能为空');
         }
-        if (empty($params['standard_hour'])) {
-            $this->error('标准工时不能为空');
-        }
-        if (empty($params['standard_score'])) {
-            $this->error('标准公分不能为空');
-        }
-        if (empty($params['coefficient'])) {
-            $params['coefficient'] = 1;
-        }
+        // if (empty($params['standard_hour'])) {
+        //     $this->error('标准工时不能为空');
+        // }
+        // if (empty($params['standard_score'])) {
+        //     $this->error('标准公分不能为空');
+        // // }
+        // if (empty($params['coefficient'])) {
+        //     $params['coefficient'] = 'C';
+        // }
         if (empty($params['sys_id'])) {
             $this->error('系统人不能为空');
         }