|
|
@@ -283,14 +283,12 @@ class Facility extends Api
|
|
|
->find();
|
|
|
$list['工单编号'] = $data['工单编号'];
|
|
|
if (!empty($endTime)){
|
|
|
- if ($endTime['PD_WG'] === '1900-01-01 00:00:00'){
|
|
|
$list['印件号'] = $data['印件号'];
|
|
|
$name = \db('工单_基本资料')->where('Gd_Gdbh',$data['工单编号'])->value('成品名称');
|
|
|
$code = \db('工单_基本资料')->where('Gd_Gdbh',$data['工单编号'])->value('成品代号');
|
|
|
$list['产品名称'] = rtrim($name);
|
|
|
$list['产品代号'] = rtrim($code);
|
|
|
$list['工序名称'] = $data['工序名称'];
|
|
|
- }
|
|
|
}
|
|
|
}else{
|
|
|
$list['工单编号'] = '';
|
|
|
@@ -1623,6 +1621,9 @@ class Facility extends Api
|
|
|
if (!isset($params['machine']) || empty($params['machine'] )) {
|
|
|
$this->error('参数不能为空');
|
|
|
}
|
|
|
+ if (!isset($params['order']) || empty($params['order'])){
|
|
|
+ $this->error('工单编号不能为空');
|
|
|
+ }
|
|
|
if (empty($params['team_id']) || empty($params['sczl_bzdh'])){
|
|
|
$this->error('请先选择班组成员');
|
|
|
}
|