Commit cb8dbb36 authored by 黄奎's avatar 黄奎

销售开团修改

parent 6e9e0381
......@@ -169,12 +169,15 @@
.TPSetInfo .multiple_input .el-input__inner {
margin-top: 3px;
}
.TPSetInfo .multiple_input.multiple_input2{
.TPSetInfo .multiple_input.multiple_input2 {
height: 34px !important;
}
.TPSetInfo .multiple_input.multiple_input2 .el-input__inner {
height: 34px !important;
}
.SimulateDrop-box {
width: 190px;
min-height: 34px;
......@@ -253,23 +256,28 @@
.TCswitch {
width: 280px;
}
.dijiebaojia{
.dijiebaojia {
margin-bottom: 15px;
padding-top: 15px;
}
.dijiebaojia table{
.dijiebaojia table {
border-collapse: collapse;
width: 390px;
border-color: #dcdfe6;
}
.dijiebaojia table tr td{
.dijiebaojia table tr td {
padding: 8px 15px;
color: #000;
}
.dijiebaojia table tr td._price{
.dijiebaojia table tr td._price {
/*color: red;*/
}
.dijiebaojia_table_btn{
.dijiebaojia_table_btn {
background-color: #e95252;
font-size: 12px;
color: white;
......@@ -277,13 +285,16 @@
border-radius: 4px;
cursor: pointer;
}
.dijiebaojia_table_btn_hide{
.dijiebaojia_table_btn_hide {
margin-left: 10px;
}
._yes_click{
._yes_click {
background-color: #e95252 !important;
color: white;
}
</style>
<template>
......@@ -300,7 +311,7 @@
<span class="Travel_Line"></span>
</div>
<div class="clearfix">
<div class="TPDateContent" id="DayAll" >
<div class="TPDateContent" id="DayAll">
<div class="month">
<ul>
<li>
......@@ -330,20 +341,16 @@
<!-- 日期 -->
<ul class="days">
<li class="liList" v-for="(dayobject,index) in days" :key="dayobject.subCode">
<span v-if="dayobject.checkState==$calendarUtils.checkState.noChecked" class="other-month">{{dayobject.day.getDate()}}</span>
<template v-if="dayobject.click">
<span v-if="dayobject.checkState==$calendarUtils.checkState.checked" class="checked1"
@click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
<span v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue"
@click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
</template>
<template v-else>
<span class="other-month">{{dayobject.day.getDate()}}</span>
</template>
</li>
<!-- <li class="liList" v-for="(dayobject,index) in days" :key="dayobject.subCode">
<span v-if="dayobject.checkState==$calendarUtils.checkState.noChecked"
class="other-month">{{dayobject.day.getDate()}}</span>
<span v-if="dayobject.checkState==$calendarUtils.checkState.checked" class="checked1"
@click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
<span v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue"
@click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
</li> -->
</ul>
</div>
</div>
......@@ -362,8 +369,7 @@
</span>
<div class="TP_childContent">
<span class="TP_tips" :class="{'ckedSpan':item.Checked}" @click="getDateInfo(item)"
v-for="(item,index) in showPriceList"
:key="index">
v-for="(item,index) in showPriceList" :key="index">
{{item.StartDate}}
<span class="TP_cancel" @click.stop="delDateList(item)">
<i class="iconfont icon-quxiao"></i>
......@@ -381,9 +387,10 @@
<el-form label-width="10px" style="border-collapse:collapse;">
<div class="dijiebaojia clearfix">
<p class="TPbaseSet" style="width: 140px">地接报价</p>
<table border="1" bordercolor="#dcdfe6" class="fl" v-if="dijiebaojiaShow&&queryPriceList.length>0" v-loading="queryPriceListLoading">
<table border="1" bordercolor="#dcdfe6" class="fl" v-if="dijiebaojiaShow&&queryPriceList.length>0"
v-loading="queryPriceListLoading">
<template v-for="item in queryPriceList">
<template v-for="son in item.PricesList" >
<template v-for="son in item.PricesList">
<tr v-if="son.OfferType===1">
<td rowspan="4">{{item.DayNum}}</td>
<td>酒店</td>
......@@ -406,8 +413,10 @@
<td colspan="2" align="center">{{OfferTotalMoney}}</td>
</tr>
</table>
<p class="fl dijiebaojia_table_btn" v-if="!dijiebaojiaShow&&queryPriceList.length>0" @click="dijiebaojiaShow=true">显示地接报价</p>
<p class="fl dijiebaojia_table_btn dijiebaojia_table_btn_hide" v-if="dijiebaojiaShow&&queryPriceList.length>0" @click="dijiebaojiaShow=false">隐藏地接报价</p>
<p class="fl dijiebaojia_table_btn" v-if="!dijiebaojiaShow&&queryPriceList.length>0"
@click="dijiebaojiaShow=true">显示地接报价</p>
<p class="fl dijiebaojia_table_btn dijiebaojia_table_btn_hide"
v-if="dijiebaojiaShow&&queryPriceList.length>0" @click="dijiebaojiaShow=false">隐藏地接报价</p>
</div>
<div class="clearfix">
<div class="leftSetInfo">
......@@ -540,9 +549,9 @@
<div class="leftSetInfo">
<span class="TPbaseSet">设置</span>
<span class="TPsecondTitle" style="margin-right: 10px">机票绑定</span>
<el-select class="w180" v-model="priceData.AirTicketId" >
<el-option v-for="(item,index) in queryFlightAirListData" :key="index" :label="item.AlCode+'-'+item.FlightDate+'-'+item.PNR"
:value="item.AirLineTicketId"></el-option>
<el-select class="w180" v-model="priceData.AirTicketId">
<el-option v-for="(item,index) in queryFlightAirListData" :key="index"
:label="item.AlCode+'-'+item.FlightDate+'-'+item.PNR" :value="item.AirLineTicketId"></el-option>
</el-select>
</div>
<div class="TPright clearfix">
......@@ -556,15 +565,14 @@
<span class="TP_Sendprepend" v-if="TeamType==1">送签时间</span>
<el-form-item prop="SendVisaTime" style="margin-top:1px;" v-if="TeamType==1">
<el-date-picker clearable class="w150" v-model="priceData.SendVisaTime" type="date"
value-format="yyyy-MM-dd"
:placeholder="$t('admin.admin_choDate')"></el-date-picker>
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</el-form-item>
<el-form-item prop="OutBranchId" style="margin-top:1px;">
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">出团公司</span>
<el-select class="w180" v-model="priceData.OutBranchId" :disabled="TeamType==1">
<el-option :label="$t('pub.unlimitedSel')" :value="SelectOtherDefault"></el-option>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName"
:value="item.id"></el-option>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName" :value="item.id">
</el-option>
</el-select>
</el-form-item>
......@@ -572,17 +580,17 @@
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">销售公司</span>
<el-select class="w180 multiple_input" :class="{'SaleBranchList':priceData.SaleBranchIdArray==''}"
v-model="priceData.SaleBranchIdArray" multiple>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName"
:value="item.id"></el-option>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName" :value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item style="margin-top:1px;" v-else>
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">销售公司</span>
<el-select class="w180 multiple_input multiple_input2" :class="{'SaleBranchList':priceData.SaleBranchIdArray==''}"
:disabled="TeamType==1"
<el-select class="w180 multiple_input multiple_input2"
:class="{'SaleBranchList':priceData.SaleBranchIdArray==''}" :disabled="TeamType==1"
v-model="priceData.SaleBranchIdArray" multiple>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName"
:value="item.id"></el-option>
<el-option v-for="item in companyList" :key="item.id" :label="item.bName" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</div>
......@@ -613,8 +621,8 @@
<el-form-item style="margin-top:1px;">
<span class="TP_Sendprepend" style="margin:3px -1px 0 0">销售状态</span>
<el-select class="w180" v-model="priceData.TCSaleState">
<el-option v-for="item in TeamList" :key="item.Id" :label="item.name"
:value="item.Id"></el-option>
<el-option v-for="item in TeamList" :key="item.Id" :label="item.name" :value="item.Id">
</el-option>
</el-select>
</el-form-item>
<el-form-item v-if="TeamType==1">
......@@ -651,8 +659,8 @@
<div>
<span class="TCSwitchtitle">订单操作</span>
<span class="TCswitch">
<el-switch v-model="priceData.IsOrder" :active-value="inActive"
:inactive-value="notInActive"></el-switch>
<el-switch v-model="priceData.IsOrder" :active-value="inActive" :inactive-value="notInActive">
</el-switch>
<div class="TC-config">关闭后,业务人员将不能操作订单</div>
</span>
</div>
......@@ -661,8 +669,8 @@
<div>
<span class="TCSwitchtitle">同行在线预订</span>
<span class="TCswitch">
<el-switch v-model="priceData.IsB2B" :active-value="inActive"
:inactive-value="notInActive"></el-switch>
<el-switch v-model="priceData.IsB2B" :active-value="inActive" :inactive-value="notInActive">
</el-switch>
<div class="TC-config">产品将会直接推送到B2B站点</div>
</span>
</div>
......@@ -683,8 +691,8 @@
<div>
<span class="TCSwitchtitle">直客在线预订</span>
<span class="TCswitch">
<el-switch v-model="priceData.IsB2C" :active-value="inActive"
:inactive-value="notInActive"></el-switch>
<el-switch v-model="priceData.IsB2C" :active-value="inActive" :inactive-value="notInActive">
</el-switch>
<div class="TC-config">产品将会直接推送到B2C站点</div>
</span>
</div>
......@@ -695,8 +703,8 @@
<span>团期标签</span>
<span>
<el-checkbox-group v-model="priceData.PriceTagIds">
<el-checkbox v-for="team in teamTips" :label="team.ID"
:key="team.Content">{{team.Content}}</el-checkbox>
<el-checkbox v-for="team in teamTips" :label="team.ID" :key="team.Content">{{team.Content}}
</el-checkbox>
</el-checkbox-group>
</span>
</div>
......@@ -707,8 +715,7 @@
</div>
</div>
<TravelPriceFlightList @headCallBack="setDisDirectFlight" ref="TravelFlightList" :priceData="priceData"
:AirTicketId="priceData.AirTicketId"
:selectFilghtList="selectFilghtList"></TravelPriceFlightList>
:AirTicketId="priceData.AirTicketId" :selectFilghtList="selectFilghtList"></TravelPriceFlightList>
</div>
</div>
</template>
......@@ -716,7 +723,7 @@
import TravelPriceFlightList from "../TravelGroupControl/TravelPriceFlightList.vue";
export default {
props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid","PostDaysTrip","TeamType"],
props: ["priceList", "priceIsDirect", "OfferList", "PostConfig", "modifyTcid", "PostDaysTrip", "TeamType"],
data() {
return {
currentDay: 1,
......@@ -779,17 +786,17 @@
],
currentPriceIndex: 0, //当前团期索引位置
showPriceList: [],
priceShowCount: 6,//团期展示条数
userID:null,
dijiebaojiaShow:false,
queryPriceListLoading:true,
queryPriceList:[],
OfferTotalMoney:0,
queryFlightAirListData:[],
queryFlightAirDateList:[],
getSelectdata:'',
priceShowCount: 6, //团期展示条数
userID: null,
dijiebaojiaShow: false,
queryPriceListLoading: true,
queryPriceList: [],
OfferTotalMoney: 0,
queryFlightAirListData: [],
queryFlightAirDateList: [],
getSelectdata: '',
//团期标签
teamTips:[],
teamTips: [],
};
},
methods: {
......@@ -881,9 +888,9 @@
IsSubstitution: 1,
AirticketBindList: [],
LowNum: 2,
TeamType:1,
TeamType: 1,
//选中团期标签
PriceTagIds:[],
PriceTagIds: [],
PriceFlight: JSON.parse(
JSON.stringify(this.PostConfig.FlightList)
)
......@@ -901,7 +908,7 @@
},
// 获取地接报价
queryPriceOffer(time) {
if(this.PostDaysTrip === "") return;
if (this.PostDaysTrip === "") return;
this.queryPriceListLoading = true;
let queryPriceList = {
LowNum: 2,
......@@ -914,7 +921,7 @@
};
queryPriceList.DayNum = this.PostDaysTrip.DayNum;
// 酒店
this.PostDaysTrip.HotelList.forEach(x=> {
this.PostDaysTrip.HotelList.forEach(x => {
let msg = {
HotelId: x.HotelId,
DayNum: x.DayNum
......@@ -922,14 +929,14 @@
queryPriceList.HotelList.push(msg);
});
// 交通
this.PostDaysTrip.TrafficList.forEach(x=> {
this.PostDaysTrip.TrafficList.forEach(x => {
let msg = {
DayNum: x.DayNum,
};
queryPriceList.TrafficList.push(msg);
});
// 景点
this.PostDaysTrip.ScenicList.forEach(x=> {
this.PostDaysTrip.ScenicList.forEach(x => {
let msg = {
CouponsId: x.CouponsId,
DayNum: x.DayNum
......@@ -937,7 +944,7 @@
queryPriceList.ScenicList.push(msg);
});
// 餐厅
this.PostDaysTrip.DinnerList.forEach(x=> {
this.PostDaysTrip.DinnerList.forEach(x => {
let msg = {
DinnerId: x.DinnerId,
DayNum: x.DayNum
......@@ -946,85 +953,71 @@
});
// 时间
queryPriceList.PriceList.push({
StartDate:time?time:this.chooseDay
StartDate: time ? time : this.chooseDay
});
this.apipost('travel_get_GetTeamGroupLocalOfferList',queryPriceList,res=> {
if(res.data.resultCode===1){
this.apipost('travel_get_GetTeamGroupLocalOfferList', queryPriceList, res => {
if (res.data.resultCode === 1) {
let data = res.data.data;
this.queryPriceList = data.objList;
this.OfferTotalMoney = data.TotalMoney;
}
this.queryPriceListLoading = false;
},null)
}, null)
},
// 获取飞机票1
queryFlightAir() {
let TrafficList = this.PostDaysTrip;
let msg = {
FstartcityId:0,
FstartcityId: 0,
FendcityId: 0,
EstartcityId: 0,
EendcityId: 0,
};
if(TrafficList.TrafficList.length>=2) {
if(TrafficList.TrafficList[0].SubTraffic[0].ArrivalType!==1) return;
if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalType!==1) return;
if(TrafficList.TrafficList[0].SubTraffic[0].ArrivalCityId===0) return;
if(TrafficList.TrafficList[0].SubTraffic[0].StartCityId===0) return;
if (TrafficList.TrafficList!=null&&TrafficList.TrafficList.length >= 2) {
if (TrafficList.TrafficList[0].SubTraffic[0].ArrivalCityId === 0) return;
if (TrafficList.TrafficList[0].SubTraffic[0].StartCityId === 0) return;
msg.FstartcityId = TrafficList.TrafficList[0].SubTraffic[0].StartCityId;
msg.FendcityId = TrafficList.TrafficList[0].SubTraffic[0].ArrivalCityId;
if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic.length>=2){
let list = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic.length-1];
if(list.ArrivalCityId===0) return;
if(list.StartCityId===0) return;
if (TrafficList.TrafficList[TrafficList.TrafficList.length - 1].SubTraffic.length >= 2) {
let list = TrafficList.TrafficList[TrafficList.TrafficList.length - 1].SubTraffic[TrafficList.TrafficList[
TrafficList.TrafficList.length - 1].SubTraffic.length - 1];
if (list.ArrivalCityId === 0) return;
if (list.StartCityId === 0) return;
msg.EstartcityId = list.StartCityId;
msg.EendcityId = list.ArrivalCityId;
}else {
if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalCityId===0) return;
if(TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].StartCityId===0) return;
msg.EstartcityId = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].StartCityId;
msg.EendcityId = TrafficList.TrafficList[TrafficList.TrafficList.length-1].SubTraffic[0].ArrivalCityId;
} else {
if (TrafficList.TrafficList[TrafficList.TrafficList.length - 1].SubTraffic[0].ArrivalCityId === 0) return;
if (TrafficList.TrafficList[TrafficList.TrafficList.length - 1].SubTraffic[0].StartCityId === 0) return;
msg.EstartcityId = TrafficList.TrafficList[TrafficList.TrafficList.length - 1].SubTraffic[0].StartCityId;
msg.EendcityId = TrafficList.TrafficList[TrafficList.TrafficList.length - 1].SubTraffic[0].ArrivalCityId;
}
let storageMsg = localStorage.queryFlightAirMsg?JSON.parse(localStorage.queryFlightAirMsg):null;
if(storageMsg){
if(storageMsg.FstartcityId!==msg.FstartcityId
||storageMsg.FendcityId!==msg.FendcityId
||storageMsg.EstartcityId!==msg.EstartcityId
||storageMsg.EendcityId!==msg.EendcityId){
this.queryFlightAirList(msg);
}else {
return;
}
}else {
localStorage.queryFlightAirMsg = JSON.stringify(msg);
this.queryFlightAirList(msg)
}
}else {}
},
// 获取飞机票2
queryFlightAirList(msg) {
this.apipost("AirTicket_get_GetTicketList",msg,res=>{
if(res.data.resultCode===1){
this.apipost("AirTicket_get_GetTicketList", msg, res => {
if (res.data.resultCode === 1) {
this.queryFlightAirListData = res.data.data;
this.queryFlightAirListData.forEach(x=>{
this.queryFlightAirDateList.push({day:x.FlightDate})
this.queryFlightAirListData.forEach(x => {
this.queryFlightAirDateList.push({
day: x.FlightDate
})
});
this.initCalendarEdit();
}
},null)
}, null)
},
// 拿到航班信息初始化日历
initCalendarEdit() {
for(let i in this.queryFlightAirDateList){
for(let k in this.days){
if(this.queryFlightAirDateList[i].day == new Date(this.days[k].day).Format("yyyy-MM-dd")){
for (let i in this.queryFlightAirDateList) {
for (let k in this.days) {
if (this.queryFlightAirDateList[i].day == new Date(this.days[k].day).Format("yyyy-MM-dd")) {
this.days[k].click = true;
}
}
}
//this.$forceUpdate();
},
//单团期修改重置日历选中
initDatePickerCheched() {
......@@ -1098,65 +1091,7 @@
this.$calendarUtils.formatDate(d.getFullYear(), d.getMonth() + 1, 1)
);
},
getSelectFilght() {
let item = {};
this.queryFlightAirListData.forEach(x=>{
if(x.purchaseID==this.getSelectdata){
item = x;
}
});
this.priceData.AirticketBindList.push({
AirTicketId: item.AirLineTicketId,
BindNum: 0,
ID: 0,
PurchaseId: item.purchaseID
});
return;
let msg = {
QFlightDateStart: date,
CreateBy: this.PostConfig.CreateBy?this.PostConfig.CreateBy:this.userID,
AirTicketId:this.priceData.AirTicketId
};
let that = this;
this.apipost(
"TravelAirTicket_Get_GetSelfPurchaseList",
msg,
res => {
if (res.data.resultCode == 1) {
let resultFilghtList = res.data.data;
that.selectFilghtList = [];
resultFilghtList.forEach(x => {
that.selectFilghtList.push(x);
});
//通过返回数据初始化下拉选中
that.FinfoList = [];
if (that.priceData.AirticketBindList != null) {
that.priceData.AirticketBindList.forEach(x => {
that.selectFilghtList.forEach(y => {
if (x.PurchaseId == y.Id && x.BindNum > 0) {
y.IsSelected = true;
y.BindNum = x.BindNum;
that.FinfoList.push({
name: y.AlName,
date: y.FlightDate
});
}
});
});
}
that.$forceUpdate();
} else {
this.$message({
type: "error",
message: res.data.message
});
}
},
err => {
}
);
},
compareDay(day) {
var _string = this.getDayStr(day);
if (_string == this.chooseDay) {
......@@ -1228,7 +1163,7 @@
},
setDisDirectFlight(obj) {
this.priceData.PriceFlight = JSON.parse(JSON.stringify(obj.priceFlight));
this.priceData.DeleteAirticketIds=obj.DeleteAirticketIdArray.join(',');
this.priceData.DeleteAirticketIds = obj.DeleteAirticketIdArray.join(',');
},
//删除标签
delDateList(item) {
......@@ -1286,7 +1221,6 @@
item.Checked = true;
this.priceData = item;
this.queryPriceOffer(item.StartDate);
// this.getSelectFilght(this.priceData.StartDate);
},
//左移动获取展示的团期
priceLeftMove() {
......@@ -1333,8 +1267,8 @@
});
return isExit;
},
getCompanyList() {
//出团公司
getCompanyList() {
this.apipost(
"sellorder_post_GetBranchList", {},
res => {
......@@ -1343,83 +1277,26 @@
this.$forceUpdate()
}
},
err => {
}
err => {}
);
},
//选中航班选择框
getSelect(item) {
item.IsSelected = !item.IsSelected;
this.FinfoList = [];
this.selectFilghtList.forEach(x => {
if (x.IsSelected) {
this.FinfoList.push({
name: x.AlName,
date: x.FlightDate
});
var isExsit = false;
this.priceData.AirticketBindList.forEach(y => {
if (x.Id == y.PurchaseId) {
isExsit = true;
y.BindNum = x.BindNum;
}
});
if (!isExsit) {
this.priceData.AirticketBindList.push({
AirTicketId: x.AirticketId,
BindNum: x.BindNum,
ID: 0,
PurchaseId: x.Id
});
}
} else {
var flag = true;
for (var i = 0; i < this.priceData.AirticketBindList.length; i++) {
if (
this.priceData.AirticketBindList[i].PurchaseId === x.Id &&
flag
) {
flag = false;
this.priceData.AirticketBindList.splice(i, 1);
}
}
}
});
},
//改变输入框的值
getFlightBindNum() {
var TotalSeat =
parseInt(this.priceData.YSeat) +
parseInt(this.priceData.CSeat) +
parseInt(this.priceData.FSeat);
this.selectFilghtList.forEach((x, index) => {
if (x.IsSelected) {
this.priceData.AirticketBindList.forEach(y => {
if (x.Id == y.PurchaseId) {
y.BindNum = x.BindNum;
}
});
}
});
},
//获取所有小包团
getAllTeamTips(){
getAllTeamTips() {
let msg = {
name:'theme',
code:'1'
name: 'theme',
code: '1'
}
this.apipost("travel_get_GetTravelPriceTag", msg, res => {
if (res.data.resultCode == 1) {
this.teamTips = res.data.data;
}else{
} else {
this.Error(res.data.message);
}
},err => {}
);
}, err => {});
},
},created(){
localStorage.removeItem('queryFlightAirMsg');
if(this.TeamType==1){
},
created() {
if (this.TeamType == 1) {
let userInfo = this.getLocalStorage();
this.priceData.OutBranchId = userInfo.RB_Branch_id;
this.userID = userInfo.EmployeeId;
......@@ -1430,6 +1307,7 @@
var dateObj = this.$calendarUtils.getCurrentDate();
this.currentYear = dateObj.CurrentYear;
this.currentMonth = dateObj.CurrentMonth;
this.queryFlightAir();
this.initCalendar();
this.getCompanyList();
this.getAllTeamTips();
......@@ -1458,10 +1336,9 @@
this.returnPriceList.forEach((x, index) => {
if (index == 0) {
this.priceData = this.returnPriceList[index];
console.log(this.priceData,'刚进来。。。');
x["Checked"] = true;
this.chooseDay = this.priceData.StartDate;
//this.getSelectFilght(this.priceData.StartDate);
} else {
x["Checked"] = false;
}
......@@ -1471,13 +1348,10 @@
},
deep: true
},
priceData: {
handler:function(val,oldVal){
},
deep:true
handler: function (val, oldVal) {},
deep: true
},
returnPriceList: {
//深度监听,可监听到对象、数组的变化
handler: function (val, oldVal) {
......@@ -1498,19 +1372,10 @@
PostDaysTrip: {
handler: function (val, oldVal) {
// 行程天数
if(oldVal==="")
if (oldVal === "")
return;
this.queryPriceOffer();
this.queryFlightAir();
// 监听天数 酒店 餐饮 景点 交通 变化
// if(val.DayNum!==oldVal.DayNum
// || val.DinnerList.equals(oldVal.DinnerList) === false
// || val.HotelList.equals(oldVal.HotelList) === false
// || val.ScenicList.equals(oldVal.ScenicList) === false
// || val.TrafficList.equals(oldVal.TrafficList) === false){
// this.queryPriceOffer();
// }
},
deep: true
}
......@@ -1519,5 +1384,4 @@
TravelPriceFlightList: TravelPriceFlightList
}
};
</script>
\ No newline at end of file
......@@ -195,7 +195,7 @@
PostFeature: '', //行程特色信息
PostNotice: '', //行程特色其他内容
//配置信息
PostDaysTrip: '', //每天的行程
PostDaysTrip: {}, //每天的行程
PriceList: [],
//所有的城市数据
AllCityList: [],
......@@ -698,7 +698,13 @@
this.journeyList.NightNum = tempData.NightNum
this.journeyList.ReturnArriveCityId = tempData.ReturnArriveCityId
this.journeyList.StartCityId = tempData.StartCityId
this.journeyList.DayList = tempData.DayList
this.journeyList.DayList = tempData.DayList;
this.PostDaysTrip.TrafficList=[];
tempData.DayList2.forEach(item=>{
this.PostDaysTrip.TrafficList.push(item.TrafficObj);
})
this.journeyList.DayList.forEach(x => {
x['HotelChooseArray'] = []
x['ChooseScenicArray'] = []
......
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