Commit ed623665 authored by 黄奎's avatar 黄奎

11

parent 5ffac9d1
......@@ -2090,21 +2090,21 @@
:disabled="addMsg.TCIDList&&addMsg.TCIDList.length>0">
<template v-if="addMsg.TCIDList&&addMsg.TCIDList.length>0">
<el-button slot="append">
<el-popover width="450">
<el-popover width="460">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<template v-for="(rootItem,rootIndex) in addMsg.ChangeList">
<tr :key="rootIndex">
<tr :key="rootIndex" style="padding-top:5px;">
<td>
团号:
<el-select v-model="rootItem.RelationTCID" filterable class="w180" :suffix-icon="''">
<el-option v-for="(subItem,subIndex) in addMsg.PriceList"
<el-option v-for="(subItem,subIndex) in choosePriceList"
:key="subItem.TCID+`_`+subIndex" :value="subItem.TCID"
:label="subItem.TCNUM+`(`+subItem.TCID+`)`"></el-option>
</el-select>
</td>
<td>
人数:
变更人数:
<el-input v-model="rootItem.ChangeValue" class="w80"
@keyup.native="checkInteger(rootItem,'ChangeValue',true)">
</el-input>
......@@ -2121,12 +2121,18 @@
</tbody>
<tfoot>
<tr>
<td colspan="3" style="text-align:center;margin-top:10px;">
<td colspan="3" style="text-align:center;padding-top:10px;">
<el-tooltip class="item" effect="dark" content="点击添加" placement="top-start">
<i class="el-icon-plus" style="cursor:pointer;" @click="addChangeTicketNum()"></i>
<i class="el-icon-plus" style="cursor:pointer;font-size:18px;"
@click="addChangeTicketNum()"></i>
</el-tooltip>
</td>
</tr>
<tr>
<td colspan="3" style="text-align:left;color:red;">
请填写团队变更人数,不是本团机位数,比如:新增机位填2,减少机位填-2.
</td>
</tr>
</tfoot>
</table>
<p slot="reference" class="_wz _yiyong">机位变更</p>
......@@ -3175,6 +3181,7 @@
},
userInfo: {}, //当前登录用户
BranchList: [], //出团公司
choosePriceList: [],
};
},
methods: {
......@@ -3193,24 +3200,28 @@
},
//删除绑定数据
deleteChangeTicketNum(rootItem, index) {
if (rootItem.ChangeId > 0) {
var dMsg = {
AirticketId: rootItem.AirticketId,
ChangeId: rootItem.ChangeId,
};
this.apipost(
"AirTicket_post_DeleteAirticketChange", dMsg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
} else {
this.Error(res.data.message);
}
},
err => {}
);
}
this.addMsg.ChangeList.splice(index, 1);
var that = this;
that.Confirm("是要要删除?", function () {
if (rootItem.ChangeId > 0) {
var dMsg = {
AirticketId: rootItem.AirticketId,
ChangeId: rootItem.ChangeId,
};
that.apipost(
"AirTicket_post_DeleteAirticketChange", dMsg,
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
}
that.addMsg.ChangeList.splice(index, 1);
});
},
//生成虚拟团
createTravel(item) {
......@@ -4074,6 +4085,7 @@
res => {
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
this.getPriceList(this.addMsg)
if (this.addMsg.OpenPlatform != null) {
if (this.addMsg.OpenPlatform != "") {
this.OpenPlatformStrings = this.addMsg.OpenPlatform.split(
......@@ -4546,6 +4558,44 @@
}
);
},
//获取团期列表
getPriceList(item) {
this.choosePriceList = [];
var qMsg = {
pageIndex: 1,
pageSize: 1000,
LineId: 0,
StartGroupDate: "",
EndGroupDate: "",
TeamType: 0,
QTeamType: "0,1,4,5"
}
if (item) {
if (item.LineId) {
qMsg.LineId = item.LineId;
}
if (item.PriceList && item.PriceList.length > 0) {
qMsg.StartGroupDate = item.PriceList[0].QStartDate;
qMsg.EndGroupDate = item.PriceList[0].QStartDate;
}
}
if (qMsg.StartGroupDate != '' && qMsg.EndGroupDate != '') {
this.apipost("travel_get_GetTravelPrciePageList_V2", qMsg, (res) => {
if (res.data.resultCode == 1) {
var tempArray = res.data.data.pageData;
if (tempArray && tempArray.length > 0) {
tempArray.forEach(tItem => {
var pObj = {
TCID: tItem.TCID,
TCNUM: tItem.TCNUM,
}
this.choosePriceList.push(pObj);
})
}
}
});
}
}
},
mounted() {
this.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