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

报价单调整

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