Commit d4513086 authored by 黄奎's avatar 黄奎

11

parent cd6f6a66
......@@ -71,6 +71,7 @@
.comSearchDiv .el-checkbox {
margin-right: 0;
}
</style>
<template>
<div>
......@@ -785,6 +786,48 @@
{{item.TicketNum}}</span>
</el-popover>
</div>
<div class="TC_SeatList" v-if="CurrentUserInfo.RB_Group_id == 2">
<template v-if="item.CanSellTicketNum > 0">
<span style="color: rgb(71, 191, 140)">{{ $t("objFill.kesouskjp") }}&nbsp;
<span style="color: red; font-size: 14px; font-weight: 700">{{
item.CanSellTicketNum
}}</span>&nbsp;{{ $t("objFill.zhang") }} </span>&nbsp;&nbsp;
<a @click="closeAirticket(item.TCID)" :title="$t('objFill.dianjigbksjp')"
style="cursor: pointer; color: red; text-decoration: underline">{{ $t("pub.closeSel") }}</a>
</template>
<template v-if="item.CanSellTicketNum == 0">
<span style="color: red">{{ $t("objFill.yiguanbskjp") }}</span>&nbsp;&nbsp;
<el-popover width="300" trigger="click" popper-class="TC_customerInfo">
<table>
<tr>
<td style="width: 100px;text-align: right;height: 30px;line-height: 30px;">
{{ $t("objFill.kesoujpsl") }}:
</td>
<td style="text-align: left; height: 30px; line-height: 30px">
<el-input type="text" style="width: 100px; padding-left: 5px"
v-model="updateAirticketObj.CanSellTicketNum" maxlength="1" @keyup.native="
checkInteger(updateAirticketObj, 'CanSellTicketNum')
"></el-input>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center; height: 10px; line-height: 10px"></td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<input type="button" class="normalBtn" :value="$t('pub.saveBtn')"
@click="openAirticket()" />
</td>
</tr>
</table>
<a slot="reference" :title="$t('objFill.dianjikqksjp')" @click="clickAirticket(item)" style="
cursor: pointer;
color: rgb(71, 191, 140);
text-decoration: underline;
">{{ $t("pub.openSel") }}</a>
</el-popover>
</template>
</div>
<template v-if="item.AuditStatus==1">
<span class="AuditRedType">{{$t('fnc.a_shezhong')}}</span>
</template>
......@@ -1403,6 +1446,11 @@
copyType: "",
CurrentTCNUM: "",
},
//更新可售机票数量
updateAirticketObj: {
TCID: 0,
CanSellTicketNum: 2,
},
saveLoading: false, //保存loading防止重复提交
pickerBeginDateBefore: {
disabledDate: time => {
......@@ -1419,6 +1467,52 @@
};
},
methods: {
//获取TCID
clickAirticket(item) {
this.updateAirticketObj.TCID = item.TCID;
console.log(" this.updateAirticketObj", item.TCID, this.updateAirticketObj)
},
//开启散客机票
openAirticket() {
this.apipost(
"travel_post_SetCanSellTicketNumService",
this.updateAirticketObj,
(res) => {
if (res.data.resultCode == 1) {
this.Success(this.$t("objFill.kaiqichenggong"));
this.updateAirticketObj.TCID = 0;
this.updateAirticketObj.CanSellTicketNum = 2;
this.getControlList();
} else {
this.Error(res.data.data);
}
},
null
);
},
//关闭散客机票
closeAirticket(TCID) {
var that = this;
this.Confirm(that.$t("objFill.shifouygbksjp"), function () {
var tempMsg = {
TCID: TCID,
CanSellTicketNum: 0,
};
that.apipost(
"travel_post_SetCanSellTicketNumService",
tempMsg,
(res) => {
if (res.data.resultCode == 1) {
that.Success(that.$t("objFill.kaiqichenggong"));
that.getControlList();
} else {
that.Error(res.data.data);
}
},
null
);
});
},
CancelGroupType() {
this.GroupTypeVisible = false
this.GroupTypeObj = {}
......@@ -2502,4 +2596,5 @@
this.getControlList();
}
};
</script>
\ No newline at end of file
</script>
......@@ -680,11 +680,11 @@
</td>
<td>
{{$t('objFill.tongyexsjg')}}
<br />({{$t('fnc.a_rminbi')}})
<!-- <br />({{$t('fnc.a_rminbi')}}) -->
</td>
<td>
{{$t('objFill.zhikexsjg')}}
<br />({{$t('fnc.a_rminbi')}})
<!-- <br />({{$t('fnc.a_rminbi')}}) -->
</td>
<td>
<template v-if="postConfig.LineId==14||postConfig.LineId==118">
......
......@@ -577,11 +577,11 @@
</td>
<td>
{{$t('objFill.tongyexsjg')}}
<br />({{$t('fnc.a_rminbi')}})
<!-- <br />({{$t('fnc.a_rminbi')}}) -->
</td>
<td>
{{$t('objFill.zhikexsjg')}}
<br />({{$t('fnc.a_rminbi')}})
<!-- <br />({{$t('fnc.a_rminbi')}}) -->
</td>
<td>
<template v-if="postConfig.LineId==14||postConfig.LineId==118">
......
......@@ -90,21 +90,31 @@
<tr>
<td width="80" class="txtRightCost">{{$t('objFill.v101.chutuanleix')}}</td>
<td>
<el-select class="multiple_input" v-model="postData.TeamType"
@change="postData.LineId=0,postData.LineteamId=0">
<el-select class="multiple_input" v-model="postData.TeamType" @change="changeTeamType()">
<el-option v-for='item in teamList' :key="item.ID" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
</td>
<td width="80" class="txtRightCost">{{$t('objFill.tuanduilx')}}</td>
<td width="80" class="txtRightCost">
<template v-if="postData.TeamType==0||postData.TeamType==1">{{$t('objFill.tuanduilx')}}
</template>
</td>
<td>
<el-select class="multiple_input" v-model="postData.PriceTeamType">
<template v-for="item in TeamListArr">
<el-option v-if="item.Id==1||item.Id==2||item.Id==3||item.Id==4||item.Id==9" :key="item.Id"
:label="item.Name" :value="item.Id">
</el-option>
</template>
</el-select>
<template v-if="postData.TeamType==0||postData.TeamType==1">
<el-select class="multiple_input" v-model="postData.PriceTeamType">
<template v-for="item in TeamListArr">
<template v-if="postData.TeamType==0">
<el-option v-if="item.Id==1||item.Id==2||item.Id==3||item.Id==9" :key="item.Id"
:label="item.Name" :value="item.Id">
</el-option>
</template>
<template v-if="postData.TeamType==1">
<el-option v-if="item.Id==3" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</template>
</template>
</el-select>
</template>
</td>
<td width="80" class="txtRightCost">{{$t('advmanager.v_line')}}</td>
<td>
......@@ -351,6 +361,16 @@
};
},
methods: {
changeTeamType() {
this.postData.LineId = 0;
this.postData.LineteamId = 0;
this.postData.PriceTeamType = '';
if (this.postData.TeamType == 0) {
this.postData.PriceTeamType = 1;
} else if (this.postData.TeamType == 1) {
this.postData.PriceTeamType = 3;
}
},
//获取所有币种
getAllCurrency() {
this.apipost(
......
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