|
|
@@ -2269,6 +2269,9 @@ class WorkOrder extends Api
|
|
|
}else{
|
|
|
$number = $production[$key];
|
|
|
}
|
|
|
+ if ((int)$value[$key-1]['Gy0_ls'] === 1 && $key>=1 && (int)$value['Gy0_ls'] > 1){
|
|
|
+ $number = $number/(int)$value['Gy0_ls'];
|
|
|
+ }
|
|
|
array_push($production,ceil($number-$wastage));
|
|
|
$processSql = \db('工单_工艺资料')
|
|
|
->where('UniqId',$value['UniqId'])
|