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

护照时间判断,

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