|
|
@@ -1400,7 +1400,7 @@ class WorkOrder extends Api
|
|
|
$productSql = \db('产品_基本资料')->fetchSql(true)->insert($product);
|
|
|
\db()->query($productSql);
|
|
|
}
|
|
|
- //插入工单资料
|
|
|
+ //添加工单
|
|
|
$productDetail = \db('产品_基本资料')->where('产品编号',$param['cpdh'])->find();
|
|
|
if (empty($productDetail)){
|
|
|
$productDetail['客户料号'] = '';
|
|
|
@@ -2150,7 +2150,7 @@ class WorkOrder extends Api
|
|
|
//计算工序计划生产数量
|
|
|
if ($number !== 0){
|
|
|
foreach ($PrintList as $value){
|
|
|
- $this->PlannedProcessYield($param['workorder'],$value['yj_yjno'],0,$number);
|
|
|
+ $this->PlannedProcessYield($param['workorder'],$value['yj_Yjno'],0,$number);
|
|
|
}
|
|
|
}
|
|
|
$this->success('成功');
|