Commit 450a1b57 authored by 黄奎's avatar 黄奎

报价单调整

parent dda24ee4
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
@keyup.native="checkInteger(postData,'DayNum');createDayTripPrice()" maxlength="2"> @keyup.native="checkInteger(postData,'DayNum');createDayTripPrice()" maxlength="2">
<template slot="append">{{$t('hotel.hotel_day')}}</template> <template slot="append">{{$t('hotel.hotel_day')}}</template>
</el-input> </el-input>
<el-input class="w120 LowNum" v-model="postData.NightNum" style="display:none;" <el-input class="w120 LowNum" v-model="postData.NightNum"
@keyup.native="checkInteger(postData,'NightNum')" maxlength="2"> @keyup.native="checkInteger(postData,'NightNum')" maxlength="2">
<template slot="append">{{$t('Operation.Op_night')}}</template> <template slot="append">{{$t('Operation.Op_night')}}</template>
</el-input> </el-input>
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<td colspan="5"> <td colspan="5">
<template v-if="postData.OutDateTimeList&&postData.OutDateTimeList.length>0"> <template v-if="postData.OutDateTimeList&&postData.OutDateTimeList.length>0">
<el-tag v-for="(item,oIndex) in postData.OutDateTimeList" :key="item" closable <el-tag v-for="(item,oIndex) in postData.OutDateTimeList" :key="item" closable
style="margin-right:5px;" @close="handleClose(oIndex)"> style="margin-right:5px;" @close="handleClose(item,oIndex)">
{{item}} {{item}}
</el-tag> </el-tag>
</template> </template>
...@@ -243,6 +243,7 @@ ...@@ -243,6 +243,7 @@
haveData: false, haveData: false,
//基本配置 //基本配置
postData: { postData: {
BatchNum: "",
ID: 0, ID: 0,
TCID: 0, TCID: 0,
OfferId: 0, OfferId: 0,
...@@ -369,13 +370,32 @@ ...@@ -369,13 +370,32 @@
TeamListArr: [], //团队子类型 TeamListArr: [], //团队子类型
companyList: [], //出团公司列表 companyList: [], //出团公司列表
AllCurrencyList: [], //币种列表 AllCurrencyList: [], //币种列表
loading: false loading: false,
rParams: {
OfferId: 0,
TCID: 0,
BatchNum: ""
},
}; };
}, },
methods: { methods: {
//删除日期 //删除日期
handleClose(index) { handleClose(item, index) {
this.postData.OutDateTimeList.splice(index, 1); if (this.postData.BatchNum && this.postData.BatchNum != '') {
var postMsg = {
BatchNum: this.postData.BatchNum,
Date: item
}
this.apipost(
"travel_post_RemoveTravelOffer", postMsg,
res => {
if (res.data.resultCode == 1) {
this.postData.OutDateTimeList.splice(index, 1);
}
});
} else {
this.postData.OutDateTimeList.splice(index, 1);
}
}, },
changeTeamType() { changeTeamType() {
this.postData.LineId = 0; this.postData.LineId = 0;
...@@ -536,7 +556,7 @@ ...@@ -536,7 +556,7 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success(res.data.message);
this.goUrl('newQuotation'); this.goUrl('quoTation');
} else { } else {
this.ErrorHtml(res.data.message); this.ErrorHtml(res.data.message);
} }
...@@ -559,17 +579,23 @@ ...@@ -559,17 +579,23 @@
if (this.$route.query.offerid) { if (this.$route.query.offerid) {
offerId = this.$route.query.offerid; offerId = this.$route.query.offerid;
} }
let BatchNum = "";
if (this.$route.query.BatchNum) {
BatchNum = this.$route.query.BatchNum;
}
let msg = { let msg = {
offerId: offerId, offerId: offerId,
TCID: 0, TCID: 0,
BatchNum: BatchNum
}; };
if (this.$route.query.TCID && this.$route.query.TCID > 0) { if (this.$route.query.TCID && this.$route.query.TCID > 0) {
msg.TCID = this.$route.query.TCID msg.TCID = this.$route.query.TCID
} }
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"travel_get_GetMyTravelInfo_V4", msg, "travel_get_GetMyTravelInfo_V5", msg,
res => { res => {
console.log("travel_get_GetMyTravelInfo_V5", res);
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
...@@ -609,6 +635,9 @@ ...@@ -609,6 +635,9 @@
if (tempData.OutDateTime) { if (tempData.OutDateTime) {
this.postData.OutDateTime = tempData.OutDateTime; this.postData.OutDateTime = tempData.OutDateTime;
} }
if (tempData.OutDateTimeList) {
this.postData.OutDateTimeList = tempData.OutDateTimeList;
}
if (tempData.OutBranchName && tempData.OutBranchName != '') { if (tempData.OutBranchName && tempData.OutBranchName != '') {
this.postData.OutBranchId = Number(tempData.OutBranchId); this.postData.OutBranchId = Number(tempData.OutBranchId);
} }
...@@ -654,10 +683,16 @@ ...@@ -654,10 +683,16 @@
created() { created() {
if (this.$route.query.offerid && this.$route.query.offerid > 0) { if (this.$route.query.offerid && this.$route.query.offerid > 0) {
this.postData.OfferId = this.$route.query.offerid; this.postData.OfferId = this.$route.query.offerid;
this.rParams.OfferId = this.$route.query.offerid
}
if (this.$route.query.BatchNum) {
this.postData.BatchNum = this.$route.query.BatchNum;
this.rParams.BatchNum = this.$route.query.BatchNum;
} }
//从团控列表跳转信息 //从团控列表跳转信息
if (this.$route.query.TCID && this.$route.query.TCID > 0) { if (this.$route.query.TCID && this.$route.query.TCID > 0) {
this.postData.TCID = this.$route.query.TCID this.postData.TCID = this.$route.query.TCID;
this.rParams.TCID = this.$route.query.TCID;
} }
//团控列表跳转参数结束 //团控列表跳转参数结束
this.getCompanyList(); this.getCompanyList();
......
...@@ -3836,7 +3836,14 @@ export default { ...@@ -3836,7 +3836,14 @@ export default {
title: '报价单审核' title: '报价单审核'
}, },
}, },
{ //新版报价单审核
path: '/NewQuotationAduit',
name: 'NewQuotationAduit',
component: resolve => require(['@/components/TravelManager/TravelNewQuotation/NewQuotationAduit'], resolve),
meta: {
title: '报价单审核'
},
},
{ //团控-我的机票 { //团控-我的机票
path: '/TravelMyTicket', path: '/TravelMyTicket',
name: 'TravelMyTicket', name: 'TravelMyTicket',
......
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