Commit 283cf27f authored by liudong1993's avatar liudong1993

1

parent fb7574bb
...@@ -88,6 +88,14 @@ ...@@ -88,6 +88,14 @@
</ul> </ul>
</div> </div>
<el-tag effect="dark" color="#29b6f6">已制单</el-tag> <el-tag effect="dark" color="#29b6f6">已制单</el-tag>
<div style="float: right;">
<el-select v-model="CarId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in carList" :label="item.CarName+`(`+item.CarNo+`)`" :value="item.Id"
:key="item.Id">
</el-option>
</el-select>
<el-button type="success" size="mini" round @click="SureCar()">确认派车</el-button>
</div>
<div style="width: 98%; overflow-x: hidden;padding-bottom: 50px; " :style="{height: boxHeight + 'px'}" <div style="width: 98%; overflow-x: hidden;padding-bottom: 50px; " :style="{height: boxHeight + 'px'}"
class="ownScrollbarStyle" v-loading="loading"> class="ownScrollbarStyle" v-loading="loading">
<table class="tripPlanTab" v-if="dataList&&dataList.length>0"> <table class="tripPlanTab" v-if="dataList&&dataList.length>0">
...@@ -154,6 +162,7 @@ ...@@ -154,6 +162,7 @@
<template v-if="childItem.OrderId>0"> <template v-if="childItem.OrderId>0">
<td v-if="childItem.DayNum==1" :colspan="childItem.ColumnNum>1? childItem.ColumnNum:0" <td v-if="childItem.DayNum==1" :colspan="childItem.ColumnNum>1? childItem.ColumnNum:0"
:key="`d2_`+index+`s2_`+subIndex+`d2`+childIndex" class="tdBottomBorder"> :key="`d2_`+index+`s2_`+subIndex+`d2`+childIndex" class="tdBottomBorder">
<el-checkbox v-model="childItem.checked" v-if="item.CarId==0"></el-checkbox>
{{childItem.CustomerName}} {{childItem.CustomerName}}
<el-tooltip <el-tooltip
:content="(childItem.OrderType==1?`常规订单:`:`包车订单:`)+childItem.OrderId+`,用车时间:`+childItem.StartDateStr+`至`+childItem.EndDateStr"> :content="(childItem.OrderType==1?`常规订单:`:`包车订单:`)+childItem.OrderId+`,用车时间:`+childItem.StartDateStr+`至`+childItem.EndDateStr">
...@@ -221,6 +230,8 @@ ...@@ -221,6 +230,8 @@
carList: [], carList: [],
isHaveAuth: false, isHaveAuth: false,
boxHeight: 0, boxHeight: 0,
CarOrderIds:"",
CarId:""
} }
}, },
components: { components: {
...@@ -333,6 +344,27 @@ ...@@ -333,6 +344,27 @@
} }
}) })
}, },
SureCar(){
let OrderIds =[];
let NoCar = this.dataList.find(x => x.CarId === 0);
NoCar.DayList.forEach(x => {
x.forEach(y=>{
if(y.checked){
OrderIds.push(y.OrderId);
}
})
});
if(OrderIds.length==0){this.Error('请勾选订单'); return;}
if(this.CarId<=0){this.Error('请选择车辆');return;}
this.apipost('travel_post_SetTripUseCar', {OrderIds:OrderIds.join(','),CarId:this.CarId}, res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.getList();
} else {
this.Error(res.data.message);
}
})
}
}, },
mounted() { mounted() {
var userInfo = this.getLocalStorage(); var userInfo = this.getLocalStorage();
......
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