Commit d498e454 authored by 华国豪's avatar 华国豪 🙄

护照时间判断,

parent 3612b3a6
......@@ -19,7 +19,7 @@
<td>
<div class="padding10">{{item.Titles}}</div>
</td>
<td>{{item.TCNUMS}}</td>
<td>{{item.TCNUMS + '(' + item.TCIDS}})</td>
<td>{{NewCombinationNum}}</td>
<td>{{item.FlightDate}}</td>
<td>{{item.DayNum}}</td>
......
......@@ -131,7 +131,9 @@
top: 0;
cursor: pointer;
}
.colorRed input{
color: red !important;
}
</style>
<template>
<div class="addPassenger">
......@@ -219,7 +221,7 @@
</li>
<li>
<el-form-item label="护照过期日" prop="PassportExpiry">
<el-date-picker v-model='addMsg.PassportExpiry' class="w230" value-format="yyyy-MM-dd" type="date"
<el-date-picker v-model='addMsg.PassportExpiry' class="w230" :class=" guoqi ? 'colorRed' : ''" @change="timeOver" value-format="yyyy-MM-dd" type="date"
placeholder="选择日期"></el-date-picker>
</el-form-item>
</li>
......@@ -776,9 +778,23 @@
roomlist:[],
isOneDay: 0,
LineId: 0,
EndDateStr: '',
guoqi: false,
};
},
methods: {
CompareDate(d1, d2){
return ((new Date(d1.replace(/-/g,"\/"))) < (new Date(d2.replace(/-/g,"\/"))));
},
timeOver: function(){
this.guoqi = this.CompareDate(this.addMsg.PassportExpiry, this.EndDateStr)
// console.log(this.CompareDate(this.addMsg.PassportExpiry, this.EndDateStr))
// console.log(this.addMsg.PassportExpiry, this.EndDateStr)
if (this.guoqi) {
this.$message.error("客人护照过期时间小于团队出发日期后六个月")
return
}
},
getAccessToken() {
let url =
this.BD_GET_ACCESS_TOKEN +
......@@ -1518,6 +1534,7 @@
}
},
savePassenger(type) {
this.timeOver()
if ((this.LineId === 14 || this.LineId === 2) && this.addMsg.IdCard === '') {
return this.$message.error('请填写身份证号码!');
}
......@@ -1996,6 +2013,7 @@
this.LineId = this.$route.query.LineId;
this.addMsg.TCID = this.$route.query.TCID;
this.addMsg.OrderId = this.$route.query.orderId;
this.EndDateStr = this.$route.query.EndDateStr;
let userInfo = this.getLocalStorage();
var BranchName = userInfo.BranchName;
if (BranchName.search("武汉") != -1) {
......
......@@ -90,6 +90,7 @@
tableList: [],
isOneDay: 0,
LineId: 0,
EndDateStr: ""
};
},
methods: {
......@@ -103,6 +104,7 @@
this.tableList = res.data.data.list;
this.isOneDay = res.data.data.IsOneDay;
this.LineId = res.data.data.LineId;
this.EndDateStr = res.data.data.EndDateStr
} else {
this.$message.error(res.data.message)
}
......@@ -136,6 +138,7 @@
'guestId': guestId,
'isOneDay': this.isOneDay,
'LineId': this.LineId,
"EndDateStr": this.EndDateStr
}
});
},
......
......@@ -7,13 +7,13 @@
</style>
<template>
<div class="flexOne">
<div class="query-box">
<!-- <div class="query-box">
<ul>
<li>
<input type="button" class="normalBtn" @click="generateTable" value="生成提成报表"/>
</li>
</ul>
</div>
</div> -->
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>期数</th>
......
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