Commit d51d0e6c authored by 华国豪's avatar 华国豪 🙄
parents 9a82a1fc cd59b441
...@@ -346,6 +346,9 @@ ...@@ -346,6 +346,9 @@
} else if (TeamType == 2) { } else if (TeamType == 2) {
path = "TravelManager4"; path = "TravelManager4";
} }
if(postData.isfromManager){
path = "TravelManager5";
}
this.Success("保存成功"); this.Success("保存成功");
if (this.isNewConfig) { if (this.isNewConfig) {
this.$router.push({ this.$router.push({
......
...@@ -331,21 +331,21 @@ ...@@ -331,21 +331,21 @@
<ul class="days"> <ul class="days">
<li class="liList" v-for="(dayobject,index) in days" :key="dayobject.subCode"> <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.noChecked" class="other-month">{{dayobject.day.getDate()}}</span>
<span v-if="dayobject.checkState==$calendarUtils.checkState.checked" class="checked1" :class="dayobject.click?'_yes_click':''" <span v-if="dayobject.checkState==$calendarUtils.checkState.checked" class="checked1"
@click="dayobject.click?clickedDay(dayobject):''">{{dayobject.day.getDate()}}</span> @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
<span v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue" :class="dayobject.click?'_yes_click':''" <span v-else-if="dayobject.checkState==$calendarUtils.checkState.hasValue"
@click="dayobject.click?clickedDay(dayobject):''">{{dayobject.day.getDate()}}</span> @click="clickedDay(dayobject)">{{dayobject.day.getDate()}}</span>
</li> </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> </ul>
</div> </div>
<!--<div>-->
<!--<el-date-picker-->
<!--v-model="chooseDay"-->
<!--@change="clickedDay()"-->
<!--type="date"-->
<!--placeholder="选择日期">-->
<!--</el-date-picker>-->
<!--</div>-->
</div> </div>
</div> </div>
<div class="TPright"></div> <div class="TPright"></div>
...@@ -637,7 +637,7 @@ ...@@ -637,7 +637,7 @@
</div> </div>
<div class="clearfix"> <div class="clearfix">
<div class="leftSetInfo"> <div class="leftSetInfo">
<span class="TPbaseSet" style="width:62px;"></span> <span class="TPbaseSet" style="width:62px;"></span>
<span class="TPsecondTitle" style="width:66px;">op对外备注</span> <span class="TPsecondTitle" style="width:66px;">op对外备注</span>
...@@ -691,6 +691,15 @@ ...@@ -691,6 +691,15 @@
</el-form-item> </el-form-item>
</div> </div>
</div> </div>
<div class="TPright" style="float:left;">
<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-group>
</span>
</div>
</div> </div>
</el-form> </el-form>
</div> </div>
...@@ -727,7 +736,7 @@ ...@@ -727,7 +736,7 @@
Url: "", Url: "",
Name: "" Name: ""
}, },
SaleBranchIdArray: [] SaleBranchIdArray: [],
}, },
returnPriceList: this.priceList, returnPriceList: this.priceList,
companyList: [], companyList: [],
...@@ -779,6 +788,8 @@ ...@@ -779,6 +788,8 @@
queryFlightAirListData:[], queryFlightAirListData:[],
queryFlightAirDateList:[], queryFlightAirDateList:[],
getSelectdata:'', getSelectdata:'',
//团期标签
teamTips:[],
}; };
}, },
methods: { methods: {
...@@ -871,6 +882,8 @@ ...@@ -871,6 +882,8 @@
AirticketBindList: [], AirticketBindList: [],
LowNum: 2, LowNum: 2,
TeamType:1, TeamType:1,
//选中团期标签
PriceTagIds:[],
PriceFlight: JSON.parse( PriceFlight: JSON.parse(
JSON.stringify(this.PostConfig.FlightList) JSON.stringify(this.PostConfig.FlightList)
) )
...@@ -1388,7 +1401,22 @@ ...@@ -1388,7 +1401,22 @@
}); });
} }
}); });
} },
//获取所有小包团
getAllTeamTips(){
let msg = {
name:'theme',
code:'1'
}
this.apipost("travel_get_GetTravelPriceTag", msg, res => {
if (res.data.resultCode == 1) {
this.teamTips = res.data.data;
}else{
this.Error(res.data.message);
}
},err => {}
);
},
},created(){ },created(){
localStorage.removeItem('queryFlightAirMsg'); localStorage.removeItem('queryFlightAirMsg');
if(this.TeamType==1){ if(this.TeamType==1){
...@@ -1404,6 +1432,7 @@ ...@@ -1404,6 +1432,7 @@
this.currentMonth = dateObj.CurrentMonth; this.currentMonth = dateObj.CurrentMonth;
this.initCalendar(); this.initCalendar();
this.getCompanyList(); this.getCompanyList();
this.getAllTeamTips();
}, },
watch: { watch: {
priceList: { priceList: {
...@@ -1429,7 +1458,7 @@ ...@@ -1429,7 +1458,7 @@
this.returnPriceList.forEach((x, index) => { this.returnPriceList.forEach((x, index) => {
if (index == 0) { if (index == 0) {
this.priceData = this.returnPriceList[index]; this.priceData = this.returnPriceList[index];
console.log(this.priceData,'刚进来。。。');
x["Checked"] = true; x["Checked"] = true;
this.chooseDay = this.priceData.StartDate; this.chooseDay = this.priceData.StartDate;
//this.getSelectFilght(this.priceData.StartDate); //this.getSelectFilght(this.priceData.StartDate);
...@@ -1442,6 +1471,13 @@ ...@@ -1442,6 +1471,13 @@
}, },
deep: true deep: true
}, },
priceData: {
handler:function(val,oldVal){
},
deep:true
},
returnPriceList: { returnPriceList: {
//深度监听,可监听到对象、数组的变化 //深度监听,可监听到对象、数组的变化
handler: function (val, oldVal) { handler: function (val, oldVal) {
......
...@@ -189,6 +189,7 @@ ...@@ -189,6 +189,7 @@
TeamType:'', TeamType:'',
loading: false, loading: false,
isNewConfig: true, isNewConfig: true,
isfromManager:true,
}; };
}, },
components: { components: {
...@@ -339,7 +340,7 @@ ...@@ -339,7 +340,7 @@
TripFeature.B2BRemark = this.PostNotice.B2BRemark; TripFeature.B2BRemark = this.PostNotice.B2BRemark;
TripFeature.ShopRemark = this.PostNotice.ShopRemark; TripFeature.ShopRemark = this.PostNotice.ShopRemark;
TripFeature.VisaRemark = this.PostNotice.VisaRemark; TripFeature.VisaRemark = this.PostNotice.VisaRemark;
if ( if (
basicData.TrafficList != null && basicData.TrafficList != null &&
basicData.TrafficList.length > 0 && basicData.TrafficList.length > 0 &&
...@@ -365,9 +366,10 @@ ...@@ -365,9 +366,10 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
//配置编号 //配置编号
TripFeature.ConfigId = res.data.data; TripFeature.ConfigId = res.data.data;
TripFeature.isfromManager = true;
this.$refs.TravelFeature.getHtml(TripFeature, SaveType,this.TeamType); this.$refs.TravelFeature.getHtml(TripFeature, SaveType,this.TeamType);
this.$refs.TravelPrice.closeHotelDialog(); // this.$refs.TravelPrice.closeHotelDialog();
this.$refs.TravelPrice.initStatus(); // this.$refs.TravelPrice.initStatus();
} else if (res.data.resultCode == 10009) { } else if (res.data.resultCode == 10009) {
this.FeatureData.IsSave = false; this.FeatureData.IsSave = false;
//表单重复提交 //表单重复提交
......
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