|
@@ -886,11 +886,12 @@ class MachineProductionReport extends Api
|
|
|
'Gy0_yjno' => $req['sczl_yjno'],
|
|
'Gy0_yjno' => $req['sczl_yjno'],
|
|
|
'Gy0_gxh' => $req['sczl_gxh'],
|
|
'Gy0_gxh' => $req['sczl_gxh'],
|
|
|
])
|
|
])
|
|
|
- ->value('Gy0_gxmc');
|
|
|
|
|
|
|
+ ->value('Gy0_gxmc');
|
|
|
|
|
+
|
|
|
if(empty($process)){
|
|
if(empty($process)){
|
|
|
$this->error('工单没有该工序,请调整之后再提交');
|
|
$this->error('工单没有该工序,请调整之后再提交');
|
|
|
}
|
|
}
|
|
|
- if($process !== $data['sczl_type']){
|
|
|
|
|
|
|
+ if(rtrim($process) !== rtrim($data['sczl_type'])){
|
|
|
$this->error('工序名称和工单工艺不匹配,请调整之后再提交');
|
|
$this->error('工序名称和工单工艺不匹配,请调整之后再提交');
|
|
|
}
|
|
}
|
|
|
$data['sys_rq'] = date('Y-m-d H:i:s');
|
|
$data['sys_rq'] = date('Y-m-d H:i:s');
|
|
@@ -955,11 +956,12 @@ class MachineProductionReport extends Api
|
|
|
'Gy0_yjno' => $req['sczl_yjno'],
|
|
'Gy0_yjno' => $req['sczl_yjno'],
|
|
|
'Gy0_gxh' => $req['sczl_gxh'],
|
|
'Gy0_gxh' => $req['sczl_gxh'],
|
|
|
])
|
|
])
|
|
|
- ->value('Gy0_gxmc');
|
|
|
|
|
|
|
+ ->value('Gy0_gxmc');
|
|
|
|
|
+
|
|
|
if(empty($process)){
|
|
if(empty($process)){
|
|
|
$this->error('工单没有该工序,请调整之后再提交');
|
|
$this->error('工单没有该工序,请调整之后再提交');
|
|
|
}
|
|
}
|
|
|
- if($process !== $data['sczl_type']){
|
|
|
|
|
|
|
+ if(rtrim($process) !== rtrim($data['sczl_type'])){
|
|
|
$this->error('工序名称和工单工艺不匹配,请调整之后再提交');
|
|
$this->error('工序名称和工单工艺不匹配,请调整之后再提交');
|
|
|
}
|
|
}
|
|
|
$data['mod_rq'] = date('Y-m-d H:i:s');
|
|
$data['mod_rq'] = date('Y-m-d H:i:s');
|