Commit 9491f6a5 authored by liudong1993's avatar liudong1993

1

parent 49689c91
...@@ -1763,7 +1763,8 @@ ...@@ -1763,7 +1763,8 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if(res.data.data.State==1){ if(res.data.data.State==1){
this.$confirm(res.data.data.Msg, this.$t('tips.tips'), { if(res.data.data.roomZeroNum>0){
this.$confirm('存在用款计划酒店数据未维护价格,请维护单价后再试', this.$t('tips.tips'), {
confirmButtonText: this.$t('objFill.ckbjd'), confirmButtonText: this.$t('objFill.ckbjd'),
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
...@@ -1779,6 +1780,24 @@ ...@@ -1779,6 +1780,24 @@
}).catch(() => { }).catch(() => {
}); });
}else{
this.$confirm(res.data.data.Msg, this.$t('tips.tips'), {
confirmButtonText: this.$t('objFill.ckbjd'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.$router.push({
name: 'OfferChange',
query: {
'offerid':res.data.data.OfferId,
'Qtype':3,
'blank': 'y',
}
});
}).catch(() => {
});
}
}else { }else {
let TCIDARR = [item.TCIDS]; // [this.$route.query.id] let TCIDARR = [item.TCIDS]; // [this.$route.query.id]
let orderObj = { let orderObj = {
...@@ -1887,7 +1906,8 @@ ...@@ -1887,7 +1906,8 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if(res.data.data.State==1){ if(res.data.data.State==1){
this.$confirm(res.data.data.Msg, this.$t('tips.tips'), { if(res.data.data.roomZeroNum>0){
this.$confirm('存在用款计划酒店数据未维护价格,请维护单价后再试', this.$t('tips.tips'), {
confirmButtonText: this.$t('objFill.ckbjd'), confirmButtonText: this.$t('objFill.ckbjd'),
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
...@@ -1903,6 +1923,24 @@ ...@@ -1903,6 +1923,24 @@
}).catch(() => { }).catch(() => {
}); });
}else{
this.$confirm(res.data.data.Msg, this.$t('tips.tips'), {
confirmButtonText: this.$t('objFill.ckbjd'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.$router.push({
name: 'OfferChange',
query: {
'offerid':res.data.data.OfferId,
'Qtype':3,
'blank': 'y',
}
});
}).catch(() => {
});
}
}else{ }else{
this.goDiJieZhiDan(obj, num, leadr, cur); this.goDiJieZhiDan(obj, num, leadr, cur);
} }
......
...@@ -394,7 +394,8 @@ ...@@ -394,7 +394,8 @@
otherPay: 0, otherPay: 0,
IsPrerealContrast: false, IsPrerealContrast: false,
PrerealContrastMsg:'', PrerealContrastMsg:'',
PrerealContrastOfferId:0 PrerealContrastOfferId:0,
roomZeroNum: 0
} }
}, },
methods: { methods: {
...@@ -522,7 +523,8 @@ ...@@ -522,7 +523,8 @@
}, },
goUrl(_orderSource, _type,Offset) { goUrl(_orderSource, _type,Offset) {
if(this.IsPrerealContrast){ if(this.IsPrerealContrast){
this.$confirm(this.PrerealContrastMsg, this.$t('tips.tips'), { if(_orderSource==1 && this.roomZeroNum>0){
this.$confirm('存在用款计划酒店数据未维护价格,请维护单价后再试', this.$t('tips.tips'), {
confirmButtonText: this.$t('objFill.ckbjd'), confirmButtonText: this.$t('objFill.ckbjd'),
cancelButtonText: this.$t('pub.cancelBtn'), cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
...@@ -538,6 +540,24 @@ ...@@ -538,6 +540,24 @@
}).catch(() => { }).catch(() => {
}); });
}else{
this.$confirm(this.PrerealContrastMsg, this.$t('tips.tips'), {
confirmButtonText: this.$t('objFill.ckbjd'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.$router.push({
name: 'OfferChange',
query: {
'offerid':this.PrerealContrastOfferId,
'Qtype':3,
'blank': 'y',
}
});
}).catch(() => {
});
}
return; return;
} }
...@@ -665,6 +685,7 @@ ...@@ -665,6 +685,7 @@
this.IsPrerealContrast=true; this.IsPrerealContrast=true;
this.PrerealContrastMsg = res.data.data.Msg; this.PrerealContrastMsg = res.data.data.Msg;
this.PrerealContrastOfferId = res.data.data.OfferId; this.PrerealContrastOfferId = res.data.data.OfferId;
this.roomZeroNum = res.data.data.roomZeroNum;
} }
} else {} } else {}
}, err => {}) }, err => {})
......
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