Browse Source

引用产品资料优化

qiuenguang 1 year ago
parent
commit
9048bde81b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/WorkOrder.php

+ 1 - 1
application/api/controller/WorkOrder.php

@@ -2269,7 +2269,7 @@ class WorkOrder extends Api
             }else{
                 $number = $production[$key];
             }
-            if ((int)$value[$key-1]['Gy0_ls'] === 1 && $key>=1 && (int)$value['Gy0_ls'] > 1){
+            if ((int)$processList[$key-1]['Gy0_ls'] === 1 && $key>=1 && (int)$value['Gy0_ls'] > 1){
                 $number = $number/(int)$value['Gy0_ls'];
             }
             array_push($production,ceil($number-$wastage));