去除维修调度后续流程,直接完成提单

dev
zhaocheng 5 years ago
parent 099be1c84f
commit 417679cf37
  1. 5
      common/models/FixCarT.php
  2. 14
      frontend/controllers/FixCarController.php

@ -179,7 +179,8 @@ class FixCarT extends \common\models\Base
$result = '维修调度'; $result = '维修调度';
break; break;
case 2: case 2:
$result = '司机接车'; // $result = '司机接车';
$result = '提单完成';
break; break;
case 3: case 3:
$result = '前台派工'; $result = '前台派工';
@ -197,7 +198,7 @@ class FixCarT extends \common\models\Base
$result = '财务结算'; $result = '财务结算';
break; break;
default: default:
$result = ''; $result = '待处理';
} }
return $result; return $result;
} }

@ -427,7 +427,8 @@ class FixCarController extends BaseController
$log_info->remark = '提交到维修调度'; $log_info->remark = '提交到维修调度';
} }
if($status == 2) { if($status == 2) {
$log_info->remark = '提交到司机接车'; // $log_info->remark = '提交到司机接车';
$log_info->remark = '提单完成';
} }
if($status == 3) { if($status == 3) {
$log_info->remark = '提交到前台派工'; $log_info->remark = '提交到前台派工';
@ -443,11 +444,11 @@ class FixCarController extends BaseController
var_dump($log_info->errors); var_dump($log_info->errors);
} }
//如果是客户自上门,则直接到前台派工 //如果是客户自上门,则直接到前台派工
if($status == 2) { // if($status == 2) {
if($receive_type == '客户自送') { // if($receive_type == '客户自送') {
$status = 3; // $status = 3;
} // }
} // }
} }
$row->status = $status; $row->status = $status;
@ -473,7 +474,6 @@ class FixCarController extends BaseController
exit; exit;
} }
$result['success'] = true; $result['success'] = true;
$result['msg'] = '保存成功'; $result['msg'] = '保存成功';
$result['fix_id'] = $row->id; $result['fix_id'] = $row->id;

Loading…
Cancel
Save