From dbfb9a369dd9718806dddf454f36e13a0d8bc48f Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Fri, 11 Oct 2019 18:07:44 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E4=BF=9D=E5=85=BB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/FixCarController.php | 99 ++++-- frontend/views/fix-car/add-item.php | 180 +++++----- frontend/views/fix-car/ajax-item-list.php | 358 ++++++++++---------- frontend/views/fix-car/my-list-edit.php | 144 ++++++-- frontend/views/fix-car/my-list-finish.php | 4 +- frontend/views/fix-car/my-list.php | 40 ++- frontend/views/fix-car/my-search-result.php | 132 ++++---- frontend/views/fix-car/my-search.php | 49 +-- frontend/views/fix-car/step1-list.php | 38 ++- frontend/views/fix-car/step2-list.php | 175 ++++++---- frontend/views/fix-car/step3-list.php | 145 ++++---- frontend/views/fix-car/step4-list.php | 145 ++++---- 12 files changed, 917 insertions(+), 592 deletions(-) diff --git a/frontend/controllers/FixCarController.php b/frontend/controllers/FixCarController.php index c85330f..076a074 100644 --- a/frontend/controllers/FixCarController.php +++ b/frontend/controllers/FixCarController.php @@ -70,7 +70,7 @@ class FixCarController extends BaseController if($car_phone != '') { $query = $query->andWhere('phone like "'.$car_phone.'"'); } - $items = $query->all(); + $items = $query->asArray()->all(); return $this->render('my-search-result',[ 'items' => $items @@ -105,6 +105,7 @@ class FixCarController extends BaseController $data['rows'] = []; foreach($items as $item) { $row = $item->toArray(); + $row['user'] = $item->getUser()->asArray()->one(); $data['rows'][] = $row; } return $data; @@ -114,7 +115,6 @@ class FixCarController extends BaseController return $this->render('my-list-finish'); } - public function actionMyListFinishJson() { Yii::$app->response->format = Response::FORMAT_JSON; @@ -140,6 +140,8 @@ class FixCarController extends BaseController $data['rows'] = []; foreach($items as $item) { $row = $item->toArray(); + $row['show_name'] = $item->user->getShowName(); + $row['status_txt'] = $item->getStatus(); $data['rows'][] = $row; } return $data; @@ -211,8 +213,11 @@ class FixCarController extends BaseController //礼品 $gift_items = CarGiftT::find() + ->with('user') + ->with('gift') ->where('car_id='.$car_info->id) ->orderBy('strategy_id DESC') + ->asArray() ->all(); $direction_items = DirectionT::find()->all(); @@ -237,6 +242,7 @@ class FixCarController extends BaseController $log_items = CarLogT::find() ->where('car_id='.$info->car_id.' and type=2') ->orderBy('id DESC') + ->asArray() ->all(); return $this->render('my-list-edit',[ @@ -537,7 +543,7 @@ class FixCarController extends BaseController } $fix_id = $request->get('fix_id'); $fix_info = FixCarT::findOne(['id'=>$fix_id]); - return $this->renderPartial('add-item',[ + return $this->render('add-item',[ 'fix_info' => $fix_info ]); } @@ -553,30 +559,32 @@ class FixCarController extends BaseController $big_type_id = $request->get('big_type_id'); $type1_items = FixItemT::find() ->where('fix_id='.$fix_id.' and big_type_id='.$big_type_id.' and small_type_id=1') + ->asArray() ->all(); $type2_items = FixItemT::find() ->where('fix_id='.$fix_id.' and big_type_id='.$big_type_id.' and small_type_id=2') + ->asArray() ->all(); $type3_items = FixItemT::find() ->where('fix_id='.$fix_id.' and big_type_id='.$big_type_id.' and small_type_id=3') + ->asArray() ->all(); $type4_items = FixItemT::find() ->where('fix_id='.$fix_id.' and big_type_id='.$big_type_id.' and small_type_id=4') + ->asArray() ->all(); $type5_items = FixItemT::find() ->where('fix_id='.$fix_id.' and big_type_id='.$big_type_id.' and small_type_id=5') + ->asArray() ->all(); - $html = $this->renderPartial('ajax-item-list',[ + + return [ 'type1_items' => $type1_items, 'type2_items' => $type2_items, 'type3_items' => $type3_items, 'type4_items' => $type4_items, 'type5_items' => $type5_items - ]); - $result['success'] = true; - $result['msg'] = '读取成功'; - $result['html'] = $html; - return $result; + ]; } public function actionStep1List() @@ -604,15 +612,15 @@ class FixCarController extends BaseController $data['rows'] = []; foreach($items as $item) { $row = $item->toArray(); + $row['user'] = $item->getUser()->asArray()->one(); $data['rows'][] = $row; } return $data; } - public function actionStep1ListFinish() { - return $this->render('step1-list'); + return $this->render('step1-list-finish'); } public function actionStep1ListFinishJson() @@ -635,6 +643,7 @@ class FixCarController extends BaseController $data['rows'] = []; foreach($items as $item) { $row = $item->toArray(); + $row['user'] = $item->getUser()->asArray()->one(); $data['rows'][] = $row; } return $data; @@ -665,6 +674,12 @@ class FixCarController extends BaseController public function actionStep2List() { + return $this->render('step2-list'); + } + + public function actionStep2ListJson() + { + Yii::$app->response->format = Response::FORMAT_JSON; $request = Yii::$app->request; $car_no = $request->get('car_no'); @@ -673,13 +688,20 @@ class FixCarController extends BaseController if($car_no != '') { $query = $query->andWhere(['like','car_no',$car_no]); } + + $total = $query->count(); $query = $query->orderBy('status ASC'); $items = $query->all(); - return $this->render('step2-list',[ - 'items' => $items, - 'car_no' => $car_no - ]); + $data = []; + $data['total'] = $total; + $data['rows'] = []; + foreach($items as $item) { + $row = $item->toArray(); + $row['user'] = $item->getUser()->asArray()->one(); + $data['rows'][] = $row; + } + return $data; } public function actionStep2ListFinish() @@ -703,6 +725,12 @@ class FixCarController extends BaseController public function actionStep3List() { + return $this->render('step3-list'); + } + + public function actionStep3ListJson() + { + Yii::$app->response->format = Response::FORMAT_JSON; $request = Yii::$app->request; $car_no = $request->get('car_no'); @@ -711,17 +739,33 @@ class FixCarController extends BaseController if($car_no != '') { $query = $query->andWhere(['like','car_no',$car_no]); } + + $total = $query->count(); $query = $query->orderBy('status ASC,updated_at DESC'); $items = $query->all(); - return $this->render('step3-list',[ - 'items' => $items, - 'car_no' => $car_no - ]); + $data = []; + $data['total'] = $total; + $data['rows'] = []; + foreach($items as $item) { + $row = $item->toArray(); + $row['brand'] = $item->brand?$item->brand->name:''; + $row['series'] = $item->series?$item->series->name:''; + $row['show_name'] = $item->user->getShowName(); + $row['status_txt'] = $item->getStatus(); + $data['rows'][] = $row; + } + return $data; } public function actionStep4List() { + return $this->render('step4-list'); + } + + public function actionStep4ListJson() + { + Yii::$app->response->format = Response::FORMAT_JSON; $request = Yii::$app->request; $car_no = $request->get('car_no'); @@ -730,6 +774,7 @@ class FixCarController extends BaseController if($car_no != '') { $query = $query->andWhere(['like','car_no',$car_no]); } + $total = $query->count(); $query = $query->orderBy('status ASC'); $items = $query->all(); @@ -741,10 +786,18 @@ class FixCarController extends BaseController } } - return $this->render('step4-list',[ - 'items' => $lists, - 'car_no' => $car_no - ]); + $data = []; + $data['total'] = $total; + $data['rows'] = []; + foreach($lists as $item) { + $row = $item->toArray(); + $row['brand'] = $item->brand->name; + $row['series'] = $item->series->name; + $row['show_name'] = $item->user->getShowName(); + $row['status_txt'] = $item->getStatus(); + $data['rows'][] = $row; + } + return $data; } public function actionStep5List() diff --git a/frontend/views/fix-car/add-item.php b/frontend/views/fix-car/add-item.php index 305360b..f4f617b 100644 --- a/frontend/views/fix-car/add-item.php +++ b/frontend/views/fix-car/add-item.php @@ -1,94 +1,98 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
名称: -
- + +beginBlock('header_css'); ?> +endBlock(); ?> + +
+
+
+
维修明细 - 新增
+
+
+
+
+ + + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+ +
+
+
-
价格: -
- -
-
数量: -
- -
-
分类: -
- -
-
大类: -
- -
-
小类: -
- -
-
备注: -
- -
-
- -
- - - \ No newline at end of file + } + +endBlock('footer_js'); ?> \ No newline at end of file diff --git a/frontend/views/fix-car/ajax-item-list.php b/frontend/views/fix-car/ajax-item-list.php index ab853b4..ecad3ee 100644 --- a/frontend/views/fix-car/ajax-item-list.php +++ b/frontend/views/fix-car/ajax-item-list.php @@ -1,187 +1,177 @@ - - 0) { - ?> - - - - - - - - - - - - - - - - $item) { - ?> - - - - - - - - - - - - - +beginBlock('header_css'); ?> +endBlock(); ?> + +
+
+
+
更换清单
+
+
+
+
+
更换清单
序号名称价格数量合计结算方式实收分类维修人备注
name?>price?>元count?>total?>元type?>fix_remark?>
+ + + + + + + + + + + + + + +
ID名称价格数量合计结算方式实收分类维修人备注
+ + + + +
+
+
维修清单
+
+
+
+
+ + + + + + + + + + + + + + + +
ID名称价格数量合计结算方式实收分类维修人备注
+
+
+
+
+
+
+
待定清单
+
+
+
+
+ + + + + + + + + + + + + + + +
ID名称价格数量合计结算方式实收分类维修人备注
+
+
+
+
+
+
+
配件清单
+
+
+
+
+ + + + + + + + + + + + + + + +
ID名称价格数量合计结算方式实收分类维修人备注
+
+
+
+
+
+
+
工时清单
+
+
+
+
+ + + + + + + + + + + + + + + +
ID名称价格数量合计结算方式实收分类维修人备注
+
+
+
+
+ + +beginBlock('footer_js'); ?> + +endBlock('footer_js'); ?> \ No newline at end of file diff --git a/frontend/views/fix-car/my-list-edit.php b/frontend/views/fix-car/my-list-edit.php index f5d183a..6f79f32 100644 --- a/frontend/views/fix-car/my-list-edit.php +++ b/frontend/views/fix-car/my-list-edit.php @@ -2,8 +2,16 @@ use \common\libs\MyLib; ?> beginBlock('header_css'); ?> - + endBlock(); ?>
@@ -23,7 +31,7 @@ use \common\libs\MyLib;
- +
@@ -38,7 +46,7 @@ use \common\libs\MyLib;
- + - - - - - - - - - - - - - - - $item) { - ?> - - - - - - - - - - -
排序车牌号车主电话发动机号车架号操作
car_no?>car_man?>phone?>engine_no?>car_frame_no?> - [添加修车记录] -
+endBlock(); ?> \ No newline at end of file diff --git a/frontend/views/fix-car/my-search.php b/frontend/views/fix-car/my-search.php index 141b845..76821b7 100644 --- a/frontend/views/fix-car/my-search.php +++ b/frontend/views/fix-car/my-search.php @@ -7,46 +7,47 @@ use \common\libs\MyLib;
-
销售提单 - 新增
+
维修提单 - 新增
-
-
-
- + +
+ +
-
- +
+
+ +
-
- +
+
+ +
-
-
- +
+ +
-
- +
+
+ +
-
-
- -
-
- +
+
+
+ +
diff --git a/frontend/views/fix-car/step1-list.php b/frontend/views/fix-car/step1-list.php index 66eb465..f56c1fb 100644 --- a/frontend/views/fix-car/step1-list.php +++ b/frontend/views/fix-car/step1-list.php @@ -38,8 +38,8 @@ use \common\libs\MyLib; 接车日期 事故类型 责任 - 提单者 - 状态 + 提单者 + 状态 操作 @@ -85,6 +85,40 @@ use \common\libs\MyLib; return false; } + function showNameFormatter(value){ + return value.username + '(' + value.name + ')'; + } + + function statusFormatter(value){ + var result = ''; + switch(+value) { + case 1: + result = '维修调度'; + break; + case 2: + result = '司机接车'; + break; + case 3: + result = '前台派工'; + break; + case 4: + result = '查勘定损'; + break; + case 5: + result = '技工维修'; + break; + case 6: + result = '总检'; + break; + case 7: + result = '财务结算'; + break; + default: + result = ''; + } + return result; + } + $(function() { search(); }); diff --git a/frontend/views/fix-car/step2-list.php b/frontend/views/fix-car/step2-list.php index cddadd1..d602b73 100644 --- a/frontend/views/fix-car/step2-list.php +++ b/frontend/views/fix-car/step2-list.php @@ -1,69 +1,122 @@ - - - +beginBlock('header_css'); ?> + +endBlock(); ?> + +
+
+
+
司机接车
+ +
+
+
+
+ + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + +
ID联系人车牌号品牌车型地址代步车接车日期事故类型责任提单者状态操作
+
+
+
+
+
+ +beginBlock('footer_js'); ?> + + + - - - - - - -
- 车牌号: - -
- - - - - - - - - - - - - - - - $item) { - ?> - - - - - - - - - - - - - - - -
排序联系人车牌号品牌车型地址代步车事故类型责任提单者状态操作
link_man?>car_no?>brand?$item->brand->name:''?>series?$item->series->name:''?>address?>accident_type?>responsibility?>user->getShowName()?>getStatus()?> - [详情] -
+endBlock(); ?> \ No newline at end of file diff --git a/frontend/views/fix-car/step3-list.php b/frontend/views/fix-car/step3-list.php index 0595f35..c6ab3ba 100644 --- a/frontend/views/fix-car/step3-list.php +++ b/frontend/views/fix-car/step3-list.php @@ -1,69 +1,92 @@ - - - +beginBlock('header_css'); ?> + +endBlock(); ?> + +
+
+
+
前台派工
+ +
+
+
+
+ + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + +
ID联系人车牌号品牌车型地址代步车接车日期事故类型责任提单者状态操作
+
+
+
+
+
+ +beginBlock('footer_js'); ?> + + + - - - - - - -
- 车牌号: - -
- - - - - - - - - - - - - - - - $item) { - ?> - - - - - - - - - - - - - - - -
排序联系人车牌号品牌车型地址代步车事故类型责任提单者状态操作
link_man?>car_no?>brand?$item->brand->name:''?>series?$item->series->name:''?>address?>accident_type?>responsibility?>user->getShowName()?>getStatus()?> - [详情] -
+endBlock(); ?> \ No newline at end of file diff --git a/frontend/views/fix-car/step4-list.php b/frontend/views/fix-car/step4-list.php index 6dc0fa3..59dfd13 100644 --- a/frontend/views/fix-car/step4-list.php +++ b/frontend/views/fix-car/step4-list.php @@ -1,69 +1,92 @@ - - - +beginBlock('header_css'); ?> + +endBlock(); ?> + +
+
+
+
查勘定损
+ +
+
+
+
+ + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + +
ID联系人车牌号品牌车型地址代步车接车日期事故类型责任提单者状态操作
+
+
+
+
+
+ +beginBlock('footer_js'); ?> + + + - - - - - - -
- 车牌号: - -
- - - - - - - - - - - - - - - - $item) { - ?> - - - - - - - - - - - - - - - -
排序联系人车牌号品牌车型地址代步车事故类型责任提单者状态操作
link_man?>car_no?>brand?$item->brand->name:''?>series?$item->series->name:''?>address?>accident_type?>responsibility?>user->getShowName()?>getStatus()?> - [详情] -
+endBlock(); ?> \ No newline at end of file From f38f5e51bee02087bd11de42de902d2e7ab16c93 Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Sat, 12 Oct 2019 10:31:19 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=B4=E4=BF=AE?= =?UTF-8?q?=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/FixCarController.php | 14 ++--- frontend/views/fix-car/my-list-edit.php | 67 ++++++++++++++++++++--- 2 files changed, 67 insertions(+), 14 deletions(-) diff --git a/frontend/controllers/FixCarController.php b/frontend/controllers/FixCarController.php index 076a074..c34e720 100644 --- a/frontend/controllers/FixCarController.php +++ b/frontend/controllers/FixCarController.php @@ -578,13 +578,13 @@ class FixCarController extends BaseController ->asArray() ->all(); - return [ - 'type1_items' => $type1_items, - 'type2_items' => $type2_items, - 'type3_items' => $type3_items, - 'type4_items' => $type4_items, - 'type5_items' => $type5_items - ]; + return MyLib::ok3([ + 'type1' => ['更换清单', $type1_items], + 'type2' => ['维修清单', $type2_items], + 'type3' => ['待定清单', $type3_items], + 'type4' => ['配件清单', $type4_items], + 'type5' => ['工时清单', $type5_items] + ], '操作成功'); } public function actionStep1List() diff --git a/frontend/views/fix-car/my-list-edit.php b/frontend/views/fix-car/my-list-edit.php index 6f79f32..525b16a 100644 --- a/frontend/views/fix-car/my-list-edit.php +++ b/frontend/views/fix-car/my-list-edit.php @@ -498,18 +498,71 @@ use \common\libs\MyLib; // 动态加载html function reloadItems() { var id = $('#id').val(); + var lists = { + 'list3': '/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=1', + 'list4': '/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=2', + 'list5': '/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=3', + 'list6': '/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=4', + }; if(id > 0) { - getPage('/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=1','list3'); - getPage('/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=2','list4'); - getPage('/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=3','list5'); - getPage('/fix-car/ajax-item-list?fix_id=' + id + '&big_type_id=4','list6'); + $.each(lists,function(i,d){ + $.get(d,{},function(res){ + console.log(res); + if(res.code == 200){ + renderData(res.data, i); + }else { + alert(res.msg) + } + },'json'); + }) } } - function getPage(url,idname) { - $.get(url,{},function(html){ - html&&$('#' + idname).html(html); + function renderData(data, id) { + var html = ''; + var table_data = []; + $.each(data,function(name,item){ + if (item[1].length) { + table_data.push(item[1]); + html += '
' + + '
' + + '
'+ item[0] +'
' + + '
' + + '
' + + '
' + + '
' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + ' ' + + '
ID名称价格数量合计结算方式实收分类维修人备注
' + + '
' + + '
' + + '
' + + '
'; + } }); + $('#'+ id).html(html).find('table').each(function(i,target){ + $(target).bootstrapTable("destroy"); + $(target).bootstrapTable({ + data: table_data[i], + pagination: false, + queryParams: function (params) { + return params; + } + }); + }).show(); } // 保存维修信息 From 099be1c84f0b01a6b97e094b88e62b8070f49ec4 Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Sat, 12 Oct 2019 11:18:42 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=B4=E4=BF=AE?= =?UTF-8?q?=E4=BF=9D=E5=85=BB=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/FixCarController.php | 13 ++++++-- frontend/views/fix-car/my-list-edit.php | 6 ++-- frontend/views/fix-car/my-list.php | 38 ++--------------------- frontend/views/fix-car/step1-list.php | 38 ++--------------------- frontend/views/fix-car/step2-list.php | 32 +------------------ 5 files changed, 18 insertions(+), 109 deletions(-) diff --git a/frontend/controllers/FixCarController.php b/frontend/controllers/FixCarController.php index c34e720..6630309 100644 --- a/frontend/controllers/FixCarController.php +++ b/frontend/controllers/FixCarController.php @@ -105,7 +105,8 @@ class FixCarController extends BaseController $data['rows'] = []; foreach($items as $item) { $row = $item->toArray(); - $row['user'] = $item->getUser()->asArray()->one(); + $row['show_name'] = $item->user->getShowName(); + $row['status_txt'] = $item->getStatus(); $data['rows'][] = $row; } return $data; @@ -612,7 +613,10 @@ class FixCarController extends BaseController $data['rows'] = []; foreach($items as $item) { $row = $item->toArray(); - $row['user'] = $item->getUser()->asArray()->one(); + $row['brand'] = $item->brand?$item->brand->name:''; + $row['series'] = $item->series?$item->series->name:''; + $row['show_name'] = $item->user->getShowName(); + $row['status_txt'] = $item->getStatus(); $data['rows'][] = $row; } return $data; @@ -698,7 +702,10 @@ class FixCarController extends BaseController $data['rows'] = []; foreach($items as $item) { $row = $item->toArray(); - $row['user'] = $item->getUser()->asArray()->one(); + $row['brand'] = $item->brand?$item->brand->name:''; + $row['series'] = $item->series?$item->series->name:''; + $row['show_name'] = $item->user->getShowName(); + $row['status_txt'] = $item->getStatus(); $data['rows'][] = $row; } return $data; diff --git a/frontend/views/fix-car/my-list-edit.php b/frontend/views/fix-car/my-list-edit.php index 525b16a..ead2187 100644 --- a/frontend/views/fix-car/my-list-edit.php +++ b/frontend/views/fix-car/my-list-edit.php @@ -523,7 +523,7 @@ use \common\libs\MyLib; var table_data = []; $.each(data,function(name,item){ if (item[1].length) { - table_data.push(item[1]); + table_data[name] = item[1]; html += '
' + '
' + '
'+ item[0] +'
' + @@ -531,7 +531,7 @@ use \common\libs\MyLib; '
' + '
' + '
' + - ' ' + + '
' + ' ' + ' ' + ' ' + @@ -556,7 +556,7 @@ use \common\libs\MyLib; $('#'+ id).html(html).find('table').each(function(i,target){ $(target).bootstrapTable("destroy"); $(target).bootstrapTable({ - data: table_data[i], + data: table_data[$(target).data('name')], pagination: false, queryParams: function (params) { return params; diff --git a/frontend/views/fix-car/my-list.php b/frontend/views/fix-car/my-list.php index ec9f0d2..1e418b3 100644 --- a/frontend/views/fix-car/my-list.php +++ b/frontend/views/fix-car/my-list.php @@ -37,8 +37,8 @@ use \common\libs\MyLib; - - + + @@ -103,40 +103,6 @@ use \common\libs\MyLib; return false; } - function showNameFormatter(value){ - return value.username + '(' + value.name + ')'; - } - - function statusFormatter(value){ - var result = ''; - switch(+value) { - case 1: - result = '维修调度'; - break; - case 2: - result = '司机接车'; - break; - case 3: - result = '前台派工'; - break; - case 4: - result = '查勘定损'; - break; - case 5: - result = '技工维修'; - break; - case 6: - result = '总检'; - break; - case 7: - result = '财务结算'; - break; - default: - result = ''; - } - return result; - } - $(function() { search(); }); diff --git a/frontend/views/fix-car/step1-list.php b/frontend/views/fix-car/step1-list.php index f56c1fb..b2a0f0e 100644 --- a/frontend/views/fix-car/step1-list.php +++ b/frontend/views/fix-car/step1-list.php @@ -38,8 +38,8 @@ use \common\libs\MyLib; - - + + @@ -85,40 +85,6 @@ use \common\libs\MyLib; return false; } - function showNameFormatter(value){ - return value.username + '(' + value.name + ')'; - } - - function statusFormatter(value){ - var result = ''; - switch(+value) { - case 1: - result = '维修调度'; - break; - case 2: - result = '司机接车'; - break; - case 3: - result = '前台派工'; - break; - case 4: - result = '查勘定损'; - break; - case 5: - result = '技工维修'; - break; - case 6: - result = '总检'; - break; - case 7: - result = '财务结算'; - break; - default: - result = ''; - } - return result; - } - $(function() { search(); }); diff --git a/frontend/views/fix-car/step2-list.php b/frontend/views/fix-car/step2-list.php index d602b73..0f83018 100644 --- a/frontend/views/fix-car/step2-list.php +++ b/frontend/views/fix-car/step2-list.php @@ -39,7 +39,7 @@ use \common\libs\MyLib; - + @@ -85,36 +85,6 @@ use \common\libs\MyLib; return false; } - function statusFormatter(value){ - var result = ''; - switch(+value) { - case 1: - result = '维修调度'; - break; - case 2: - result = '司机接车'; - break; - case 3: - result = '前台派工'; - break; - case 4: - result = '查勘定损'; - break; - case 5: - result = '技工维修'; - break; - case 6: - result = '总检'; - break; - case 7: - result = '财务结算'; - break; - default: - result = ''; - } - return result; - } - $(function() { search(); });
ID联系人 电话 提单日期提单者状态提单者状态 操作
接车日期 事故类型 责任提单者状态提单者状态 操作
事故类型 责任 提单者状态状态 操作