Commit a6254688 authored by hezhen's avatar hezhen

Merge branch 'base-modify' of http://113.105.137.151:22280/youjj/cloud-platform-ui into base-modify

parents 5e5382e9 5acb75d8
......@@ -55,15 +55,9 @@
</template>
</el-table-column>
<!-- <el-table-column align="center" label="停靠公司" width="120">
<template scope="scope">
<span>{{scope.row.liftCompanyName}}</span>
</template>
</el-table-column> -->
<el-table-column align="center" label="申请状态">
<template scope="scope">
<span>{{getBookRecordStatus(scope.row.status)}}</span>
<span>{{getBookRecordStatus(scope.row)}}</span>
</template>
</el-table-column>
......@@ -231,11 +225,11 @@
<el-form-item label="申请状态">
<span v-if="detailItem.status==1">申请中</span>
<span v-if="detailItem.status==2">已通过</span>
<span v-if="detailItem.status==3">已归还</span>
<span v-if="detailItem.status==4">拒绝</span>
<span v-if="detailItem.status==5">逾期归还</span>
<span v-if="detailItem.status==3">待出行</span>
<span v-if="detailItem.status==4">驳回</span>
<span v-if="detailItem.status==5">出行中</span>
<span v-if="detailItem.status==6">取消预订</span>
<span v-if="detailItem.status==7">提车</span>
<span v-if="detailItem.status==7">完成</span>
</el-form-item>
</el-col>
</el-row>
......@@ -718,7 +712,6 @@
trigger: 'blur'
}
},
departurePicList:[],
statusList:[
{
code:'1',
......@@ -730,15 +723,15 @@
},
{
code:'3',
val:'已归还'
val:'待出行'
},
{
code:'4',
val:'拒绝'
val:'驳回'
},
{
code:'5',
val:'逾期归还'
val:'出行中'
},
{
code:'6',
......@@ -746,7 +739,7 @@
},
{
code:'7',
val:'已提车'
val:'已完成'
},
],
bookTypeList:[
......@@ -1260,13 +1253,31 @@
this.listLoading = false;
})
},
getBookRecordStatus: function (code) {
if (!this.$utils.isInteger(code)) {
return '未知';
}
return this.bookRecordStatus[code + ''].val;
getBookRecordStatus: function (data) {
this.bookRecordStatus['3'].val = '待出行'
this.bookRecordStatus['4'].val = '驳回'
this.bookRecordStatus['5'].val = '出行中'
this.bookRecordStatus['7'].val = '已完成'
if(data) {
if (!this.$utils.isInteger(data.status)) {
return '未知';
}
if(data.status == 2 && (data.vehicleDepartureLogVo == undefined || data.vehicleDepartureLogVo == null)) {
return this.bookRecordStatus['3'].val;
}
if(data.status == 2 && data.vehicleDepartureLogVo != undefined && data.vehicleDepartureLogVo != null && data.vehicleDepartureLogVo.state == 0) {
return this.bookRecordStatus['5'].val;
}
if(data.status == 2 && data.vehicleDepartureLogVo != undefined && data.vehicleDepartureLogVo != null && data.vehicleDepartureLogVo.state == 1) {
return this.bookRecordStatus['7'].val;
}
return this.bookRecordStatus[data.status + ''].val;
}
return '';
},
getAllBookRecordStatus: function () {
console.log(this.bookRecordStatus)
return this.bookRecordStatus;
},
getDatePeriodStr([startDate, endDate]) {
......
......@@ -15,7 +15,7 @@
</el-table-column>
<el-table-column align="center" label="标题">
<template scope="scope">
<span>{{scope.row.title}}</span>
<span>{{scope.row.header}}</span>
</template>
</el-table-column>
<el-table-column align="center" width="100" label="操作" fixed="right">
......
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