Commit 15409a74 authored by 华国豪's avatar 华国豪 🙄

新增付款单房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!

parent 2f6700a5
...@@ -890,9 +890,34 @@ export default { ...@@ -890,9 +890,34 @@ export default {
if(this.orderObj){ if(this.orderObj){
this.msg.VisaIds = this.orderObj.VisaIds?this.orderObj.VisaIds:''; this.msg.VisaIds = this.orderObj.VisaIds?this.orderObj.VisaIds:'';
} }
// 2019-12-3 18:29:31 新增费用类型判断
let riqi = false
this.msg.detailList.forEach(x=>{ this.msg.detailList.forEach(x=>{
if (!riqi && (x.CostTypeName == '房费' || x.CostTypeName == '差旅费' || x.CostTypeName == '签证费' || x.CostTypeName.indexOf('机票') !== -1)){
riqi = true
}
delete x.rate; delete x.rate;
}); });
if (riqi) {
var today = new Date();
var year = today.getFullYear();
var month = today.getMonth();
var date = today.getDate();
var weeks = ["日","一","二","三","四","五","六"]
var temp = new Date(year,month,date+3)
var today = Date.parse(new Date())
var PayDate = this.msg.PayDate
var startTime = Date.parse(temp);
var endTime = Date.parse(PayDate);
if (endTime > startTime) {
this.$message.error('房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!');
return
}
// else if (endTime < today) {
// this.$message.error('房费、差旅费、签证费、机票相关费用类型单据的预付款日期最多推后3天!');
// return
// }
}
//旅客名单数据组装 //旅客名单数据组装
if(!this.$route.query.edit){ if(!this.$route.query.edit){
this.msg.Type = this.$route.query.Type this.msg.Type = this.$route.query.Type
......
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