Commit 769a2e11 authored by 黄奎's avatar 黄奎

新增可售机票展示

parent 9cb320c2
......@@ -106,7 +106,7 @@
<span :class="{'TC_checked':queryCommonData.checkCompanyAll}"
@click="getCompanyCheckAll()">{{$t('advmanager.v_all')}}</span>
<span v-for="(item,bindex) in queryCommonData.BranchList" :class="{'TC_checked':item.isShow}"
@click="getCompanyCheck(item)">{{item.BName}}</span>
@click="getCompanyCheck(item)" :key="bindex">{{item.BName}}</span>
</div>
<ul>
<li>
......@@ -670,7 +670,7 @@
<th width="130" style="text-align:center;">{{$t('op.CenterPNR')}}</th>
<th width="100" style="text-align:center;">{{$t('op.Tickets')}}</th>
</tr>
<tr v-for="subItem in item.TicketList">
<tr v-for="(subItem,subIndex) in item.TicketList" :key="subIndex">
<td style="text-align:center;">{{subItem.BindNum}}</td>
<td style="text-align:center;">{{subItem.TicketNum}}</td>
<td style="text-align:center;">{{subItem.TicketPrice}}</td>
......@@ -683,6 +683,14 @@
style="cursor:pointer;color:red;text-decoration: underline;">{{$t('op.FlightToNum')}}: {{item.TicketNum}}</span>
</el-popover>
</div>
<div class="TC_SeatList">
<template v-if="item.CanSellTicketNum>0">
<span style="color:rgb(71, 191, 140)">可售散客机票&nbsp;<span style="color:red;font-size:12px;font-weight:700;">{{item.CanSellTicketNum}}</span>&nbsp;
</span>&nbsp;&nbsp;
<a @click="closeAirticket(item.TCID)" style="cursor:pointer;color:red;text-decoration: underline;">关闭</a></template>
<template v-if="item.CanSellTicketNum==0"><span style="color:red;">已关闭散客机票</span>&nbsp;&nbsp;
<a @click="openAirticket(item.TCID)" style="cursor:pointer;color:rgb(71, 191, 140);text-decoration: underline;">开启</a></template>
</div>
</div>
</div>
<div class="el-col" style="width:200px;">
......@@ -845,7 +853,6 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
</div>
......@@ -1149,6 +1156,43 @@
commonHotelInfo
},
methods: {
//开启散客机票
openAirticket(TCID)
{
var tempMsg = {
TCID: TCID,
CanSellTicketNum:2
};
this.apipost("travel_post_SetCanSellTicketNumService",tempMsg,
res => {
if (res.data.resultCode == 1) {
this.Success('开启成功!');
this.getControlList();
}else{
this.Error(res.data.data);
}
},null);
},
//关闭散客机票
closeAirticket(TCID)
{
var that=this;
this.Confirm("是否要关闭可售机票?", function() {
var tempMsg = {
TCID: TCID,
CanSellTicketNum:0
};
that.apipost("travel_post_SetCanSellTicketNumService",tempMsg,
res => {
if (res.data.resultCode == 1) {
that.Success('关闭成功!');
that.getControlList();
}else{
that.Error(res.data.data);
}
},null);
});
},
// 跳转调查列表
goInvetig: function (path, tcid, orderId) {
this.$router.push({
......
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