Commit 416cf4cf authored by 华国豪's avatar 华国豪 🙄

修改签证bug

parent 350d0ce0
...@@ -680,9 +680,9 @@ export default { ...@@ -680,9 +680,9 @@ export default {
} }
}; };
result.forEach(x=>{ result.forEach(x=>{
let str = x.replace(/-/, this.$t('pub.year')) let str = x.replace(/-/, _this.$t('pub.year'))
let strS = str.replace(/-/, this.$t('pub.month')) let strS = str.replace(/-/, _this.$t('pub.month'))
let strSi = strS+this.$t('fnc.day') let strSi = strS+_this.$t('fnc.day')
// console.log(strSi) // console.log(strSi)
let msg = { let msg = {
VisaPlanId:_this.addMsg.Id, VisaPlanId:_this.addMsg.Id,
......
...@@ -760,18 +760,6 @@ export default { ...@@ -760,18 +760,6 @@ export default {
this.addMsg.LeaveCountryTime = this.addMsg.value6[1] this.addMsg.LeaveCountryTime = this.addMsg.value6[1]
let sDate1 = this.addMsg.EnterCountryTime let sDate1 = this.addMsg.EnterCountryTime
let sDate2 = this.addMsg.LeaveCountryTime let sDate2 = this.addMsg.LeaveCountryTime
if(sDate1==sDate2){
let msg = {
VisaPlanId:_this.addMsg.Id,
Date:1,
City:'',
TraveInfo:'',
HotelInfo:''
}
_this.addMsg.TravelPlanList.push(msg)
}else{
getBetweenDateStr(sDate1,sDate2);
}
function getBetweenDateStr(start,end){ function getBetweenDateStr(start,end){
var result = []; var result = [];
var beginDay = start.split("-"); var beginDay = start.split("-");
...@@ -796,9 +784,9 @@ export default { ...@@ -796,9 +784,9 @@ export default {
} }
}; };
result.forEach(x=>{ result.forEach(x=>{
let str = x.replace(/-/, this.$t('pub.year')) let str = x.replace(/-/, _this.$t('pub.year'))
let strS = str.replace(/-/, this.$t('pub.month')) let strS = str.replace(/-/, _this.$t('pub.month'))
let strSi = strS+ this.$t('fnc.day') let strSi = strS+ _this.$t('fnc.day')
let msg = { let msg = {
VisaPlanId:_this.addMsg.Id, VisaPlanId:_this.addMsg.Id,
Date:strSi, Date:strSi,
...@@ -809,6 +797,18 @@ export default { ...@@ -809,6 +797,18 @@ export default {
_this.addMsg.TravelPlanList.push(msg) _this.addMsg.TravelPlanList.push(msg)
}) })
}; };
if(sDate1==sDate2){
let msg = {
VisaPlanId:_this.addMsg.Id,
Date:1,
City:'',
TraveInfo:'',
HotelInfo:''
}
_this.addMsg.TravelPlanList.push(msg)
}else{
getBetweenDateStr(sDate1,sDate2);
}
this.dateTimeReg(); this.dateTimeReg();
}, },
goUrl(path){ goUrl(path){
...@@ -999,7 +999,6 @@ export default { ...@@ -999,7 +999,6 @@ export default {
this.apipost("dmc_get_visa_GetVisaDeparturesTypeEnum",msg,res => { this.apipost("dmc_get_visa_GetVisaDeparturesTypeEnum",msg,res => {
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.VisaDeparturesType = res.data.data; this.VisaDeparturesType = res.data.data;
console.log(res.data.data,'resss');
}else{ }else{
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
......
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