|
@@ -108,6 +108,7 @@ class ReportingWork extends Api
|
|
|
->where('work_order', $params['workorder'])
|
|
->where('work_order', $params['workorder'])
|
|
|
->where('big_process', $params['majorprocess'])
|
|
->where('big_process', $params['majorprocess'])
|
|
|
->where('del_rq', null)
|
|
->where('del_rq', null)
|
|
|
|
|
+ ->where('status', 0)
|
|
|
->field('process_code as 工艺编号,process_name as 工艺名称,standard_hour as 标准工时,
|
|
->field('process_code as 工艺编号,process_name as 工艺名称,standard_hour as 标准工时,
|
|
|
standard_score as 标准工分,coefficient as 系数,remark as 备注')
|
|
standard_score as 标准工分,coefficient as 系数,remark as 备注')
|
|
|
->order('process_code')
|
|
->order('process_code')
|
|
@@ -147,6 +148,7 @@ class ReportingWork extends Api
|
|
|
->where('part_code', $params['part_code'])
|
|
->where('part_code', $params['part_code'])
|
|
|
->where('big_process', '车缝')
|
|
->where('big_process', '车缝')
|
|
|
->where('del_rq', null)
|
|
->where('del_rq', null)
|
|
|
|
|
+ ->where('status', 0)
|
|
|
->field('process_code as 工艺编号,process_name as 工艺名称,standard_hour as 标准工时,
|
|
->field('process_code as 工艺编号,process_name as 工艺名称,standard_hour as 标准工时,
|
|
|
standard_score as 标准工分,coefficient as 系数,remark as 备注')
|
|
standard_score as 标准工分,coefficient as 系数,remark as 备注')
|
|
|
->order('process_code')
|
|
->order('process_code')
|
|
@@ -221,9 +223,9 @@ class ReportingWork extends Api
|
|
|
if (empty($item['process_name'])) {
|
|
if (empty($item['process_name'])) {
|
|
|
$this->error('第' . $rowNo . '条工艺名称不能为空');
|
|
$this->error('第' . $rowNo . '条工艺名称不能为空');
|
|
|
}
|
|
}
|
|
|
- if (!isset($item['standard_hour']) || $item['standard_hour'] === '') {
|
|
|
|
|
- $this->error('第' . $rowNo . '条标准工时不能为空');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (!isset($item['standard_hour']) || $item['standard_hour'] === '') {
|
|
|
|
|
+ // $this->error('第' . $rowNo . '条标准工时不能为空');
|
|
|
|
|
+ // }
|
|
|
if (!isset($item['standard_score']) || $item['standard_score'] === '') {
|
|
if (!isset($item['standard_score']) || $item['standard_score'] === '') {
|
|
|
$this->error('第' . $rowNo . '条标准工分不能为空');
|
|
$this->error('第' . $rowNo . '条标准工分不能为空');
|
|
|
}
|
|
}
|