Browse Source

报工优化

unknown 1 ngày trước cách đây
mục cha
commit
bfdfe9106f
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      application/api/controller/ReportingWork.php

+ 4 - 4
application/api/controller/ReportingWork.php

@@ -223,9 +223,9 @@ class ReportingWork extends Api
             if (empty($item['process_name'])) {
                 $this->error('第' . $rowNo . '条工艺名称不能为空');
             }
-            if (!isset($item['standard_hour']) || $item['standard_hour'] === '') {
-                $this->error('第' . $rowNo . '条标准工时不能为空');
-            }
+            // if (!isset($item['standard_hour']) || $item['standard_hour'] === '') {
+            //     $this->error('第' . $rowNo . '条标准工时不能为空');
+            // }
             if (!isset($item['standard_score']) || $item['standard_score'] === '') {
                 $this->error('第' . $rowNo . '条标准工分不能为空');
             }
@@ -255,7 +255,7 @@ class ReportingWork extends Api
                 'part_code' => $partCode,
                 'process_code' => $item['process_code'],
                 'process_name' => $item['process_name'],
-                // 'standard_hour' => $standardHour,
+                'standard_hour' => $standardHour,
                 'standard_score' => $standardScore,
                 'coefficient' => $coefficient,
                 'number' => $number,