|
|
@@ -4098,11 +4098,11 @@ class Index extends Frontend
|
|
|
$sid = (int)$this->request->post('scydgy_id', 0);
|
|
|
$result = trim((string)$this->request->post('result', ''));
|
|
|
if ($result !== '合格' && $result !== '不合格') {
|
|
|
- $this->error('请选择是否合格');
|
|
|
+ $this->error('请选择生产是否合格');
|
|
|
}
|
|
|
$orderInterrupt = (int)$this->request->post('order_interrupt', -1);
|
|
|
if ($orderInterrupt !== 0 && $orderInterrupt !== 1) {
|
|
|
- $this->error('请选择订单是否中断');
|
|
|
+ $this->error('请选择生产是否中断');
|
|
|
}
|
|
|
$remark = trim((string)$this->request->post('remark', ''));
|
|
|
if ($result === '不合格' && $remark === '') {
|
|
|
@@ -4190,8 +4190,8 @@ class Index extends Frontend
|
|
|
Log::record('inboundscoresave fail: ' . $e->getMessage(), 'error');
|
|
|
$this->error('保存失败,请稍后重试');
|
|
|
}
|
|
|
- $logDetail = '质量评分:是否合格=' . $result
|
|
|
- . ';订单中断:' . ($orderInterrupt === 1 ? '是' : '否');
|
|
|
+ $logDetail = '质量评分:生产是否合格=' . $result
|
|
|
+ . ';生产是否中断:' . ($orderInterrupt === 1 ? '是' : '否');
|
|
|
if ($remark !== '') {
|
|
|
$logDetail .= ';备注:' . $remark;
|
|
|
}
|
|
|
@@ -4214,7 +4214,7 @@ class Index extends Frontend
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 事后登记客诉(质检中心,仅已质量评分订单)
|
|
|
+ * 事后投诉反馈(质检中心,仅已质量评分订单)
|
|
|
* POST:ccydh、customer_complaint=0|1、complaint_remark(投诉为是时必填)
|
|
|
*/
|
|
|
public function inboundscorecomplaint()
|
|
|
@@ -4260,7 +4260,7 @@ class Index extends Frontend
|
|
|
$scoreRows = [];
|
|
|
}
|
|
|
if (!is_array($scoreRows) || $scoreRows === []) {
|
|
|
- $this->error('请先完成质量评分后再登记客诉');
|
|
|
+ $this->error('请先完成质量评分后再投诉反馈');
|
|
|
}
|
|
|
$hasQuality = false;
|
|
|
foreach ($scoreRows as $sc) {
|
|
|
@@ -4274,7 +4274,7 @@ class Index extends Frontend
|
|
|
}
|
|
|
}
|
|
|
if (!$hasQuality) {
|
|
|
- $this->error('请先完成质量评分后再登记客诉');
|
|
|
+ $this->error('请先完成质量评分后再投诉反馈');
|
|
|
}
|
|
|
$now = date('Y-m-d H:i:s');
|
|
|
$adminId = (int)($user['admin_id'] ?? 0);
|
|
|
@@ -4321,7 +4321,7 @@ class Index extends Frontend
|
|
|
$this->error('保存失败,请稍后重试');
|
|
|
}
|
|
|
if ($firstSid > 0) {
|
|
|
- $logDetail = '登记客诉:客户投诉=' . ($customerComplaint === 1 ? '是' : '否');
|
|
|
+ $logDetail = '投诉反馈:客户投诉=' . ($customerComplaint === 1 ? '是' : '否');
|
|
|
if ($complaintRemark !== '') {
|
|
|
$logDetail .= ';投诉说明:' . $complaintRemark;
|
|
|
}
|