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

修改签证bug

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