Commit 8827950c authored by 吴春's avatar 吴春

11

parent b118b9da
...@@ -119,13 +119,24 @@ ...@@ -119,13 +119,24 @@
</li> </li>
</ul> </ul>
</div> </div>
<el-tag effect="dark" color="#29b6f6">已制单</el-tag>
<div style="float: right;"> <div style="float: right;">
<el-select v-model="CarId" filterable :placeholder="$t('pub.pleaseSel')"> <el-form :inline="true">
<el-option v-for="item in carList" :label="item.CarName+`(`+item.CarNo+`)`" :value="item.Id" :key="item.Id"> <el-form-item label="车">
</el-option> <el-select v-model="CarId" filterable :placeholder="$t('pub.pleaseSel')">
</el-select> <el-option v-for="item in carList" :label="item.CarName+`(`+item.CarNo+`)`" :value="item.Id" :key="item.Id">
<el-button type="success" size="mini" @click="SureCar()" :loading="saveLoading">确认派车</el-button> </el-option>
</el-select>
</el-form-item>
<el-form-item label="司机">
<el-select v-model="DriverId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in driverList" :label="item.DriverName" :value="item.Id" :key="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="success" size="mini" @click="SureCar()" :loading="saveLoading">确认派车</el-button>
</el-form-item>
</el-form>
</div> </div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 50px;margin-top:5px;" <div style="width: 100%; overflow-x: auto;padding-bottom: 50px;margin-top:5px;"
:style="{height: boxHeight + 'px'}" class="ownScrollbarStyle" v-loading="loading"> :style="{height: boxHeight + 'px'}" class="ownScrollbarStyle" v-loading="loading">
...@@ -259,10 +270,12 @@ ...@@ -259,10 +270,12 @@
isShowEditPlanDialog: false, //是否显示新增修改 isShowEditPlanDialog: false, //是否显示新增修改
dialogTitle: "", dialogTitle: "",
carList: [], carList: [],
driverList:[],
isHaveAuth: false, isHaveAuth: false,
boxHeight: 0, boxHeight: 0,
CarOrderIds: "", CarOrderIds: "",
CarId: "", CarId: "",//车Id
DriverId:"",//司机Id
saveLoading: false, saveLoading: false,
} }
}, },
...@@ -293,6 +306,16 @@ ...@@ -293,6 +306,16 @@
} }
}); });
}, },
//获取司机列表
getDriverList()
{
this.apipost("JapanCar_get_GetCarDriverList", {}, res => {
if (res.data.resultCode == 1) {
this.driverList = res.data.data;
}
});
},
//机票导出 //机票导出
downLoadPlan() { downLoadPlan() {
this.loading = true; this.loading = true;
...@@ -397,7 +420,8 @@ ...@@ -397,7 +420,8 @@
this.saveLoading = true; this.saveLoading = true;
this.apipost('travel_post_SetTripUseCar', { this.apipost('travel_post_SetTripUseCar', {
OrderIds: OrderIds.join(','), OrderIds: OrderIds.join(','),
CarId: this.CarId CarId: this.CarId,
DriverId:this.DriverId,
}, res => { }, res => {
this.saveLoading = false; this.saveLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -424,6 +448,7 @@ ...@@ -424,6 +448,7 @@
let height = window.innerHeight - 200; let height = window.innerHeight - 200;
this.boxHeight = height; this.boxHeight = height;
this.getCarList(); this.getCarList();
this.getDriverList();
this.getList(); this.getList();
}, },
} }
......
...@@ -2242,19 +2242,19 @@ export default { ...@@ -2242,19 +2242,19 @@ export default {
}, },
}, },
{ {
path: '/HPTripPlan', //和平用车 path: '/HPTripPlan', //派车管理
name: 'HPTripPlan', name: 'HPTripPlan',
component: resolve => require(['@/components/busManagement/HPTripPlan'], resolve), component: resolve => require(['@/components/busManagement/HPTripPlan'], resolve),
meta: { meta: {
title: '日本车行预订统计表' title: '派车管理'
}, },
}, },
{ {
path: '/JourneyTripPlan', //行程用车计划表 path: '/JourneyTripPlan', //车辆预订情况
name: 'JourneyTripPlan', name: 'JourneyTripPlan',
component: resolve => require(['@/components/busManagement/JourneyTripPlan'], resolve), component: resolve => require(['@/components/busManagement/JourneyTripPlan'], resolve),
meta: { meta: {
title: '行程用车计划表' title: '车辆预订情况'
}, },
}, },
{ {
......
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