Commit 3c7708d5 authored by 罗超's avatar 罗超

修改启用条件

parent f7d697f8
...@@ -4630,7 +4630,8 @@ ...@@ -4630,7 +4630,8 @@
LessRule: [], LessRule: [],
LessNPrice: 0, LessNPrice: 0,
LessNAvgPrice: 0, LessNAvgPrice: 0,
DealDiscountMoney: 0 DealDiscountMoney: 0,
IsNewNotice:false
}; };
}, },
components: { components: {
...@@ -4659,6 +4660,18 @@ ...@@ -4659,6 +4660,18 @@
}, },
}, },
methods: { methods: {
loadLineNoticeInfo() {
//if(this.ConfigData.Config.OutNotice == 1) return
this.apipost("travel_post_GetNoticeConfigList", {
LineId: this.ConfigData.Config.LineID
}, res => {
if(res.data.resultCode == 1 && res.data.data.length > 0) {
this.IsNewNotice = true
}else{
this.IsNewNotice = false
}
});
},
//显示订单联运信息 //显示订单联运信息
ShowOrderUnion(item) { ShowOrderUnion(item) {
this.orderTicketInfo.TCID = item.TCID; this.orderTicketInfo.TCID = item.TCID;
...@@ -5448,16 +5461,18 @@ ...@@ -5448,16 +5461,18 @@
}); });
}, },
toTrip: function (obj, TicketUnionId, GuestIds) { toTrip: function (obj, TicketUnionId, GuestIds) {
this.$router.push({ if(this.IsNewNotice) {
name: 'TravelNoticeDownLoad', this.$router.push({
params: { name: 'TravelNoticeDownLoad',
id: obj.TCID, params: {
orderId: obj.OrderId, id: obj.TCID,
guestIds: GuestIds?GuestIds:'0', orderId: obj.OrderId,
unionfid: TicketUnionId?TicketUnionId:0 guestIds: GuestIds?GuestIds:'0',
} unionfid: TicketUnionId?TicketUnionId:0
}) }
return })
return
}
this.tripObj.tcid = obj.TCID; this.tripObj.tcid = obj.TCID;
this.tripObj.configId = obj.ConfigId; this.tripObj.configId = obj.ConfigId;
this.tripObj.orderId = obj.OrderId; this.tripObj.orderId = obj.OrderId;
...@@ -6615,6 +6630,7 @@ ...@@ -6615,6 +6630,7 @@
this.ConfigData.Config = res.data.data.config; this.ConfigData.Config = res.data.data.config;
this.SetNoticeMsg.OutNotice = res.data.data.config.OutNotice; this.SetNoticeMsg.OutNotice = res.data.data.config.OutNotice;
this.ConfigData.Leader = res.data.data.leader; this.ConfigData.Leader = res.data.data.leader;
this.loadLineNoticeInfo()
} }
} }
); );
...@@ -6940,22 +6956,25 @@ ...@@ -6940,22 +6956,25 @@
}, },
//出团通知书 //出团通知书
getOrderInfo() { getOrderInfo() {
if(this.ConfigData.Config.OutNotice == 1) this.SetOutNotice() console.log(this.ConfigData.Config.OutNotice,this.IsNewNotice)
if(this.ConfigData.Config.OutNotice && this.IsNewNotice) this.SetOutNotice()
else{ else{
this.getFlightInfo(); this.getFlightInfo();
this.getCombinTeam(); this.getCombinTeam();
} }
}, },
SetOutNotice() { SetOutNotice() {
this.$router.push({ if(this.IsNewNotice) {
name: 'TravelNoticePreview', this.$router.push({
params: { name: 'TravelNoticePreview',
id:this.ConfigData.Config.TCID, params: {
tab: '出团通知书预览', id:this.ConfigData.Config.TCID,
target:'y' tab: '出团通知书预览',
} target:'y'
}) }
return })
return
}
var that = this; var that = this;
this.Confirm( this.Confirm(
this.$t('objFill.shifou') + "【" + this.$t('objFill.shifou') + "【" +
......
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