|
@@ -7,7 +7,7 @@
|
|
|
<div>机票费用录入</div>
|
|
|
</div>
|
|
|
<div style="display: flex;">
|
|
|
- <div style="width: 80%;">
|
|
|
+ <div style="width: 60%;">
|
|
|
<el-select v-model="DiId" placeholder="团组选择" @change="AirTicketResSelectChange">
|
|
|
<el-option v-for="item in AirTicketResSelectData" :key="item.id" :label="item.groupName"
|
|
|
:value="item.id">
|
|
@@ -16,6 +16,8 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button type="primary" @click="download" style="margin-left: 10px;">导出报表</el-button>
|
|
|
+ <el-button type="primary" @click="downloadCN" style="margin-left: 10px;">中文行程单</el-button>
|
|
|
+ <el-button type="primary" @click="downloadEN" style="margin-left: 10px;">英文行程单</el-button>
|
|
|
<router-link :to="{ path: '/home/OpAirTicketRes', query: { DiId } }">
|
|
|
<el-button type="primary" style="margin-left: 10px;">新增</el-button>
|
|
|
</router-link>
|
|
@@ -246,6 +248,50 @@ export default {
|
|
|
that.$message.error("网络错误,请稍后重试");
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ downloadCN() {
|
|
|
+ var url = "/api/Groups/ItineraryAirTicketRes"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ DiId: that.DiId,
|
|
|
+ UserId: that.userId,
|
|
|
+ Language: "CN"
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ window.location.href = res.data.data
|
|
|
+ } else {
|
|
|
+ that.$message.error("网络错误,请稍后重试");
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ downloadEN() {
|
|
|
+ var url = "/api/Groups/ItineraryAirTicketRes"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer ' + this.token
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ DiId: that.DiId,
|
|
|
+ UserId: that.userId,
|
|
|
+ Language: "EN"
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ window.location.href = res.data.data
|
|
|
+ } else {
|
|
|
+ that.$message.error("网络错误,请稍后重试");
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|