|
@@ -679,10 +679,13 @@ class ReportingWork extends Api
|
|
|
if (!isset($param['order']) || !isset($param['yjno']) || !isset($param['gxh']) || !isset($param['type'])){
|
|
if (!isset($param['order']) || !isset($param['yjno']) || !isset($param['gxh']) || !isset($param['type'])){
|
|
|
$this->error('参数错误');
|
|
$this->error('参数错误');
|
|
|
}
|
|
}
|
|
|
|
|
+ if (strpos($param['type'],'正品')){
|
|
|
|
|
+ $param['type'] = '正品板';
|
|
|
|
|
+ }
|
|
|
if ($param['type'] === ''){
|
|
if ($param['type'] === ''){
|
|
|
$param['type'] = '次品板';
|
|
$param['type'] = '次品板';
|
|
|
}
|
|
}
|
|
|
- if ($param['type'] === '废品板'){
|
|
|
|
|
|
|
+ if (strpos($param['type'],'废品')){
|
|
|
$param['type'] = '废检';
|
|
$param['type'] = '废检';
|
|
|
}
|
|
}
|
|
|
$res = \db('工单_工艺资料')
|
|
$res = \db('工单_工艺资料')
|