Commit b20ddc42 authored by 黄奎's avatar 黄奎

11

parent 4741727d
...@@ -207,6 +207,9 @@ ...@@ -207,6 +207,9 @@
<el-input v-model="PostData.BackFee" @keyup.native="checkPrice(PostData,'BackFee')" <el-input v-model="PostData.BackFee" @keyup.native="checkPrice(PostData,'BackFee')"
:placeholder="$t('ground.shuruhsf')" maxlength="10" class='w135'></el-input> :placeholder="$t('ground.shuruhsf')" maxlength="10" class='w135'></el-input>
</td> </td>
<td>
{{$t('ground.dingtuanhao')}}:{{NewCombinationNum}}
</td>
</tr> </tr>
</tfoot> </tfoot>
</table> </table>
...@@ -214,7 +217,19 @@ ...@@ -214,7 +217,19 @@
<el-form> <el-form>
<el-table :data="PlanTableData" style="width:100%" border v-loading='loading'> <el-table :data="PlanTableData" style="width:100%" border v-loading='loading'>
<el-table-column fixed :label="$t('pub.date')" prop="UseTimeStr" min-width="100"></el-table-column> <el-table-column fixed :label="$t('pub.date')" prop="UseTimeStr" min-width="100"></el-table-column>
<el-table-column fixed :label="$t('hotel.hotel_name')" prop="HotelName" min-width="200"></el-table-column> <el-table-column fixed :label="$t('hotel.hotel_name')" min-width="200">
<template slot-scope="scope">
{{scope.row.HotelName}}
<template v-if="scope.row.IsHavearking==0">
<br />
<font style="color:red;">{{$t('fnc.no')}}{{$t('ground.park')}}</font>
</template>
<template v-else>
<br />
<font style="color:green;">{{$t('objFill.you')}}{{$t('ground.park')}}</font>
</template>
</template>
</el-table-column>
<el-table-column fixed :label="$t('sm.yongchejihua')" min-width="180"> <el-table-column fixed :label="$t('sm.yongchejihua')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_ap_`+subIndex"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_ap_`+subIndex">
...@@ -240,6 +255,7 @@ ...@@ -240,6 +255,7 @@
{{$t('objFill.v101.busManagement.chezhibj')}}:<font style="color:red">{{scope.row.BusOfferPrice}}</font> {{$t('objFill.v101.busManagement.chezhibj')}}:<font style="color:red">{{scope.row.BusOfferPrice}}</font>
</template> </template>
</el-table-column> </el-table-column>
<!--
<el-table-column :label="$t('objFill.v101.busManagement.taotuanth')" min-width="230"> <el-table-column :label="$t('objFill.v101.busManagement.taotuanth')" min-width="230">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_tt_`+subIndex"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpo_tt_`+subIndex">
...@@ -267,10 +283,12 @@ ...@@ -267,10 +283,12 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
-->
<el-table-column :label="$t('hotel.hotel_Supplier')" min-width="150"> <el-table-column :label="$t('hotel.hotel_Supplier')" min-width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bps_`+subIndex"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bps_`+subIndex">
<el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="subItem.BusCompany"> <el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="subItem.BusCompany"
@change="getDirverList(subItem)">
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option> <el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
<el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID"> <el-option v-for="item in SupplierList" :key="item.ID" :label="item.Name" :value="item.ID">
</el-option> </el-option>
...@@ -281,7 +299,10 @@ ...@@ -281,7 +299,10 @@
<el-table-column :label="$t('ground.sijiName')" min-width="120"> <el-table-column :label="$t('ground.sijiName')" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpd_`+subIndex"> <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="comBTM" :key="`bpd_`+subIndex">
<el-input v-model="subItem.DriverName"></el-input> <el-autocomplete class="inline-input" v-model="subItem.DriverName" value-key="Name"
:fetch-suggestions="(queryString, cb) => { getSearchList(queryString, cb, subItem);}"
:placeholder="$t('pub.pleaseSel')" @select="(dItem)=>{handleSelect(dItem,subItem)}"></el-autocomplete>
<!-- <el-input v-model="subItem.DriverName"></el-input> -->
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -329,7 +350,7 @@ ...@@ -329,7 +350,7 @@
</template> </template>
</el-table-column> </el-table-column>
<!--订团号--> <!--订团号-->
<el-table-column :label="$t('ground.dingtuanhao')" min-width="180"> <!-- <el-table-column :label="$t('ground.dingtuanhao')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="comBTM" v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" :key="`bpo_bo_`+subIndex"> <div class="comBTM" v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" :key="`bpo_bo_`+subIndex">
<template v-if="scope.$index==0&&subIndex==0"> <template v-if="scope.$index==0&&subIndex==0">
...@@ -345,7 +366,7 @@ ...@@ -345,7 +366,7 @@
</template> </template>
</div> </div>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column :label="$t('ground.sjzhusu')" min-width="180"> <el-table-column :label="$t('ground.sjzhusu')" min-width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<!--司机住宿类型--> <!--司机住宿类型-->
...@@ -421,14 +442,6 @@ ...@@ -421,14 +442,6 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('ground.park')" min-width="70">
<template slot-scope="scope">
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="park_List comBTM"
:key="`bpo_ihk_`+subIndex">
{{subItem.IsHavearking=='0'?$t('fnc.no'):$t('objFill.you')}}
</div>
</template>
</el-table-column>
<el-table-column :label="$t('ground.xiaoji')" min-width="80"> <el-table-column :label="$t('ground.xiaoji')" min-width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="park_List comBTM" <div v-for="(subItem,subIndex) in scope.row.BusPlanOrderList" class="park_List comBTM"
...@@ -488,9 +501,29 @@ ...@@ -488,9 +501,29 @@
isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框 isShowBtn: 1, //1禁用高速费,成本费,高速付款方式文本框
IsEditBus: 0, //车辆修改权限 IsEditBus: 0, //车辆修改权限
currentUserInfo: {}, currentUserInfo: {},
NewCombinationNum: "", //订团号
}; };
}, },
methods: { methods: {
getSearchList(queryString, cb, subItem) {
var tempArray = subItem.DriverList;
var results = [];
if (queryString && queryString != "") {
results = tempArray.filter(temp => temp.Name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
} else {
results = tempArray;
}
// 调用 callback 返回建议列表的数据
cb(results);
},
handleSelect(dItem, subItem) {
subItem.DriverTel = ""
if (subItem && dItem) {
if (dItem.Mobile && dItem.Mobile != '') {
subItem.DriverTel = dItem.Mobile;
}
}
},
//获取团期列表 //获取团期列表
GetPriceList(obj) { GetPriceList(obj) {
this.apipost( this.apipost(
...@@ -629,7 +662,7 @@ ...@@ -629,7 +662,7 @@
null null
); );
}, },
/*获取供应商列表*/ //获取供应商列表
getSupplierList() { getSupplierList() {
this.apipost( this.apipost(
"supplier_post_GetAllList", { "supplier_post_GetAllList", {
...@@ -643,6 +676,25 @@ ...@@ -643,6 +676,25 @@
null null
); );
}, },
//获取供应商下司机列表
getDirverList(item) {
var dMsg = {
SupplierId: item.BusCompany
}
this.apipost(
"supplier_post_GetBusSupplierManList", dMsg,
response => {
if (response.data.resultCode == 1) {
item.DriverList = response.data.data;
}
},
null
);
},
//选择司机
changeDirver(subItem) {
subIte
},
/*生成表格数据*/ /*生成表格数据*/
createTableData() { createTableData() {
this.loading = true; this.loading = true;
...@@ -653,14 +705,18 @@ ...@@ -653,14 +705,18 @@
response => { response => {
this.loading = false; this.loading = false;
if (response.data.resultCode == 1) { if (response.data.resultCode == 1) {
this.PlanTableData = response.data.data.busExtend.BusPlanReportList; var tempArray = response.data.data.busExtend.BusPlanReportList;
this.PlanTableData.forEach(x => { if (tempArray && tempArray.length > 0) {
x.BusPlanOrderList.forEach(subItem => { tempArray.forEach(x => {
if (subItem.BookGroup == '' || subItem.BookGroup == null) { x.BusPlanOrderList.forEach(subItem => {
subItem.BookGroup = this.$route.query.NewCombinationNum; if (subItem.BookGroup == '' || subItem.BookGroup == null) {
} subItem.BookGroup = this.NewCombinationNum;
}) }
}); subItem.DriverList = [];
})
});
}
this.PlanTableData = tempArray;
this.PostData = response.data.data.busExtend; this.PostData = response.data.data.busExtend;
this.CommonList = response.data.data.commonList; this.CommonList = response.data.data.commonList;
this.isShowBtn = response.data.data.busExtend.IsOperation; this.isShowBtn = response.data.data.busExtend.IsOperation;
...@@ -724,11 +780,6 @@ ...@@ -724,11 +780,6 @@
null null
); );
}, },
goUrl(path) {
this.$router.push({
path: path
});
},
goUrlT(path, TCNUMS, title) { goUrlT(path, TCNUMS, title) {
this.$router.push({ this.$router.push({
name: path, name: path,
...@@ -792,7 +843,9 @@ ...@@ -792,7 +843,9 @@
this.GeAccommodationTypeList(); this.GeAccommodationTypeList();
this.BusId = this.$route.query.id; this.BusId = this.$route.query.id;
this.title = this.$route.query.title; this.title = this.$route.query.title;
if (this.$route.query.NewCombinationNum) {
this.NewCombinationNum = this.$route.query.NewCombinationNum;
}
this.parametersData.TCID = this.$route.query.TCID; this.parametersData.TCID = this.$route.query.TCID;
this.parametersData.StartDate = this.$route.query.StartDate; this.parametersData.StartDate = this.$route.query.StartDate;
this.parametersData.DayNum = this.$route.query.DayNum; this.parametersData.DayNum = this.$route.query.DayNum;
......
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