|
|
@@ -453,16 +453,28 @@ class WorkOrderProcess extends Api
|
|
|
$this->error('大工艺不能为空');
|
|
|
}
|
|
|
if (empty($params['standard_hour'])) {
|
|
|
- $this->error('标准工时不能为空');
|
|
|
+ $this->error('秒不能为空');
|
|
|
+ }
|
|
|
+ if (empty($params['standard_minutes'])) {
|
|
|
+ $this->error('分钟不能为空');
|
|
|
}
|
|
|
if (empty($params['standard_score'])) {
|
|
|
- $this->error('标准公分不能为空');
|
|
|
+ $this->error('定额分不能为空');
|
|
|
+ }
|
|
|
+ if (empty($params['money'])) {
|
|
|
+ $this->error('金额不能为空');
|
|
|
}
|
|
|
if (!isset($params['coefficient']) || $params['coefficient'] === '') {
|
|
|
- $params['coefficient'] = 1;
|
|
|
+ $params['coefficient'] = 'C';
|
|
|
}
|
|
|
|
|
|
$data = [
|
|
|
+ 'part_code' => $params['part_code'],
|
|
|
+ 'part_name' => $params['part_name'],
|
|
|
+ 'process_code' => $params['process_code'],
|
|
|
+ 'standard_minutes' => $params['standard_minutes'],
|
|
|
+ 'money' => $params['money'],
|
|
|
+ 'remark' => $params['remark'],
|
|
|
'process_name' => $params['process_name'],
|
|
|
'big_process' => $params['big_process'],
|
|
|
'standard_hour' => $params['standard_hour'],
|
|
|
@@ -996,7 +1008,7 @@ class WorkOrderProcess extends Api
|
|
|
->sum('standard_score');
|
|
|
$totalStandardScore = $totalStandardScore ? floatval($totalStandardScore) : 0;
|
|
|
if ($totalStandardScore > floatval($newValue)) {
|
|
|
- $this->error('工序定额分和大于制造工分,请修改确认之后再修改');
|
|
|
+ $this->error('工序定额分和大于制造工分,请确认之后再修改');
|
|
|
}
|
|
|
|
|
|
$operTime = date('Y-m-d H:i:s');
|