|
@@ -2266,6 +2266,14 @@ class Facility extends Api
|
|
|
$this->error('参数错误');
|
|
$this->error('参数错误');
|
|
|
}
|
|
}
|
|
|
$lastId = \db('设备_产量计酬')->order('UniqId desc')->value('rtrim(UniqId)');
|
|
$lastId = \db('设备_产量计酬')->order('UniqId desc')->value('rtrim(UniqId)');
|
|
|
|
|
+ $massage = \db('工单_工艺资料')
|
|
|
|
|
+ ->where('Gy0_gdbh',$params['sczl_gdbh'])
|
|
|
|
|
+ ->where('Gy0_yjno',$params['sczl_yjno'])
|
|
|
|
|
+ ->where('Gy0_gxh',$params['sczl_gxh'])
|
|
|
|
|
+ ->count();
|
|
|
|
|
+ if ($massage === 0){
|
|
|
|
|
+ $this->error('请选择正确的工序');
|
|
|
|
|
+ }
|
|
|
$params['sczl_type'] = $params['sczl_gxmc'];
|
|
$params['sczl_type'] = $params['sczl_gxmc'];
|
|
|
$params['sczl_wgsj'] = '1900-01-01 00:00:00';
|
|
$params['sczl_wgsj'] = '1900-01-01 00:00:00';
|
|
|
$params['sczl_废品率系数'] = 0;
|
|
$params['sczl_废品率系数'] = 0;
|