Commit 1ff8db13 authored by hanfeng's avatar hanfeng

Merge remote-tracking branch 'origin/base-modify' into base-modify

# Conflicts:
#	src/views/vehicleType/modal/oneType.vue
parents 3be1bf08 cd4bf5cf
...@@ -337,12 +337,12 @@ export const asyncRouterMap = [{ ...@@ -337,12 +337,12 @@ export const asyncRouterMap = [{
name: '车辆排班管理', name: '车辆排班管理',
authority: 'bookRecord' authority: 'bookRecord'
}, },
{ // {
path: 'bookingManagement', // path: 'bookingManagement',
component: _import('vehicle/smallProgram/bookingManagement'), // component: _import('vehicle/smallProgram/bookingManagement'),
name: '小程序车辆申请管理', // name: '小程序车辆申请管理',
authority: 'bookingManagement' // authority: 'bookingManagement'
}, // },
{ {
path: 'vehicleWarningMsg', path: 'vehicleWarningMsg',
component: _import('vehicle/vehicleWarningMsg/index'), component: _import('vehicle/vehicleWarningMsg/index'),
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
} else { } else {
allPage(this.listQuery) allPage(this.listQuery)
.then(response => { .then(response => {
let listTemp = response.data.data; let listTemp = response.data;
let arr = []; let arr = [];
listTemp.map(function(item){ listTemp.map(function(item){
arr.push(item); arr.push(item);
......
...@@ -490,7 +490,7 @@ ...@@ -490,7 +490,7 @@
.then(res => { .then(res => {
this.loading = false; this.loading = false;
let allList = []; let allList = [];
let listTemp = res.data.data; let listTemp = res.data;
//一次读入所有涉及地区,防止多次读取 //一次读入所有涉及地区,防止多次读取
// if (!this.$utils.isEmpty(listTemp)) { // if (!this.$utils.isEmpty(listTemp)) {
// let allRegions = new Set(); // let allRegions = new Set();
...@@ -503,11 +503,11 @@ ...@@ -503,11 +503,11 @@
// } // }
// getRegionByCodes([...allRegions]); // getRegionByCodes([...allRegions]);
// } // }
if(res.data.data){ if(res.data){
res.data.data.forEach(function (item) { res.data.forEach(function (item) {
allList.push(item); allList.push(item);
}); });
if(res.data.data.length< this.listQuery.limit && this.list.length>0){ if(res.data.length< this.listQuery.limit && this.list.length>0){
//已加载全部 //已加载全部
this.nomore = true; this.nomore = true;
} }
......
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item label="状态" prop="type"> <el-form-item label="状态" prop="type">
<el-select class="filter-item" v-model="listQuery.state" placeholder="请输入状态"> <el-select class="filter-item" v-model="listQuery.state" placeholder="请输入状态">
<el-option v-for="(item,index) in typeOptions" :key="index" :label="item.name" :value="item.val"> </el-option> <el-option v-for="(item,index) in typeOptions" :key="index" :label="item.name"
:value="item.val"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -49,7 +50,7 @@ ...@@ -49,7 +50,7 @@
<template scope="scope"> <template scope="scope">
<span v-if="scope.row.stauts==0">未到帐</span> <span v-if="scope.row.stauts==0">未到帐</span>
<span v-if="scope.row.stauts==1">已到账</span> <span v-if="scope.row.stauts==1">已到账</span>
<span v-if="scope.row.stauts==2">审核失败</span> <span v-if="scope.row.stauts==2">驳回</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="申请时间"> <el-table-column align="center" label="申请时间">
...@@ -64,7 +65,9 @@ ...@@ -64,7 +65,9 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作" width="65" fixed="right"> <el-table-column align="center" label="操作" width="65" fixed="right">
<template scope="scope"> <template scope="scope">
<el-button size="small" class="el-button el-button--text el-button--small" v-if="scope.row.stauts==0" @click="handleUpdate(scope.row)">审核</el-button> <el-button size="small" class="el-button el-button--text el-button--small" v-if="scope.row.stauts==0"
@click="handleUpdate(scope.row)">审核
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -133,19 +136,19 @@ ...@@ -133,19 +136,19 @@
return { return {
typeOptions: [ typeOptions: [
{ {
"name":'全部', "name": '全部',
"val":'' "val": ''
}, },
{ {
"name":'未到账', "name": '未到账',
"val":'0' "val": '0'
}, },
{ {
"name":'已到账', "name": '已到账',
"val":'1' "val": '1'
}, },
], ],
dialogVisible:false, dialogVisible: false,
BASE_API: process.env.BASE_API, BASE_API: process.env.BASE_API,
showLoadingBody: false, showLoadingBody: false,
list: null, list: null,
...@@ -156,14 +159,14 @@ ...@@ -156,14 +159,14 @@
limit: 20, limit: 20,
phone: '',//手机号 phone: '',//手机号
username: '',//姓名 username: '',//姓名
state:'',//状态 state: '',//状态
}, },
inline: true, inline: true,
tableKey: 0, tableKey: 0,
dialogFrom:{ dialogFrom: {
status:'1', status: '1',
cono:'', cono: '',
reason:'' reason: ''
}, },
} }
}, },
...@@ -187,9 +190,11 @@ ...@@ -187,9 +190,11 @@
if (!this.$utils.isEmpty(response.data.data) && this.$utils.isInteger(response.data.totalCount)) { if (!this.$utils.isEmpty(response.data.data) && this.$utils.isInteger(response.data.totalCount)) {
listRs = response.data.data; listRs = response.data.data;
totalCountRs = response.data.totalCount; totalCountRs = response.data.totalCount;
listRs.map(function(item){ listRs.map(function (item) {
item.crtTimeStr = timestamp2Date(item.crtTime); item.crtTimeStr = timestamp2Date(item.crtTime);
if (item.finishTime != 0 && item.finishTime != null) {
item.finishTimeStr = timestamp2Date(item.finishTime); item.finishTimeStr = timestamp2Date(item.finishTime);
}
}); });
} }
this.listLoading = false; this.listLoading = false;
...@@ -216,10 +221,10 @@ ...@@ -216,10 +221,10 @@
this.listQuery.page = val; this.listQuery.page = val;
this.getList(); this.getList();
}, },
cancelHandel(){ cancelHandel() {
this.dialogVisible = false; this.dialogVisible = false;
}, },
handleUpdate(row){ handleUpdate(row) {
this.dialogFrom.cathId = row.id; this.dialogFrom.cathId = row.id;
this.dialogVisible = true; this.dialogVisible = true;
}, },
...@@ -227,8 +232,8 @@ ...@@ -227,8 +232,8 @@
var that = this; var that = this;
const set = this.$refs; const set = this.$refs;
set[formName].validate(valid => { set[formName].validate(valid => {
if(this.dialogFrom.status==1){ if (this.dialogFrom.status == 1) {
if(this.dialogFrom.cono==''){ if (this.dialogFrom.cono == '') {
this.$notify({ this.$notify({
title: '警告', title: '警告',
message: '请输入订单号', message: '请输入订单号',
...@@ -238,8 +243,8 @@ ...@@ -238,8 +243,8 @@
return false; return false;
} }
} }
if(this.dialogFrom.status==2){ if (this.dialogFrom.status == 2) {
if(this.dialogFrom.reason==''){ if (this.dialogFrom.reason == '') {
this.$notify({ this.$notify({
title: '警告', title: '警告',
message: '请输入拒绝原因', message: '请输入拒绝原因',
......
...@@ -802,6 +802,7 @@ ...@@ -802,6 +802,7 @@
listQuery: { listQuery: {
page: 1, page: 1,
limit: 20, limit: 20,
flag: false,
zoneId:undefined, zoneId:undefined,
liftCompany: undefined, liftCompany: undefined,
numberPlate: undefined, numberPlate: undefined,
...@@ -1239,7 +1240,7 @@ ...@@ -1239,7 +1240,7 @@
getList() { getList() {
this.listLoading = true; this.listLoading = true;
for(var key in this.listQuery){ for(var key in this.listQuery){
if(this.listQuery[key]==''){ if(this.listQuery[key]===''){
this.listQuery[key]=undefined this.listQuery[key]=undefined
} }
} }
......
...@@ -535,6 +535,9 @@ ...@@ -535,6 +535,9 @@
* */ * */
toShowDialog(item, iitem, ii){ toShowDialog(item, iitem, ii){
// <!--bookType 1-租车、2-分公司使用、3-维修、4、展览、5、旅游、6、保养、7、预约中、8、禁用、9、客户用车、10、其他--> // <!--bookType 1-租车、2-分公司使用、3-维修、4、展览、5、旅游、6、保养、7、预约中、8、禁用、9、客户用车、10、其他-->
if (!item.mileageLastUpdate) {
item.mileageLastUpdate = 0
}
if(!ii.bg){ if(!ii.bg){
//空白-可安排用车 //空白-可安排用车
if(item.vehicleModel==undefined){ if(item.vehicleModel==undefined){
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="公里数"> <el-form-item label="公里数">
<span>{{currentItem.item.maintenanceMileage}}km</span> <span>{{currentItem.item.mileageLastUpdate}}km</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment