Commit 0a6005d5 authored by 华国豪's avatar 华国豪 🙄

1

parent 604ab07d
......@@ -1523,7 +1523,7 @@
},
savePassenger(type) {
if ((this.LineId === 14 || LineId === 2) && (this.addMsg.IdCard === '' || this.addMsg.IdCard.length < 18)) {
this.$message.error('请填写身份证号码!');
return this.$message.error('请填写身份证号码!');
}
this.addMsg.EconomicCapabilityList = [];
this.EconomicCapabilityS.forEach(x => {
......
......@@ -3362,21 +3362,21 @@
},
saveOrder() {
//验证人数和机位数
if (
Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum) !=
Number(this.addMsg.YSeatNum) +
Number(this.addMsg.ESeatNum) +
Number(this.addMsg.FSeatNum)
) {
if (this.IsChargeLossOrders == 1) {
} else {
this.$message.warning('人数和机位数不相等!')
return
}
}
// if (
// Number(this.addMsg.ManNum) +
// Number(this.addMsg.ChirdNum) +
// Number(this.addMsg.OldPeopleNum) !=
// Number(this.addMsg.YSeatNum) +
// Number(this.addMsg.ESeatNum) +
// Number(this.addMsg.FSeatNum)
// ) {
// if (this.IsChargeLossOrders == 1) {
// } else {
// this.$message.warning('人数和机位数不相等!')
// return
// }
// }
if (
Number(this.addMsg.AirticketNum) +
Number(this.addMsg.ManNum) +
......@@ -3401,22 +3401,22 @@
return
}
if (Number(this.addMsg.ChirdNeedBedNum) > Number(this.addMsg.ChirdNum)) {
this.$message.warning('儿童占床不能大于儿童数!')
return
}
// if (Number(this.addMsg.ChirdNeedBedNum) > Number(this.addMsg.ChirdNum)) {
// this.$message.warning('儿童占床不能大于儿童数!')
// return
// }
if (
Number(this.addMsg.ChirdNum) -
Number(this.addMsg.ChirdNeedBedNum) +
Number(this.addMsg.BabyNum) >
Number(this.addMsg.ManNum) +
Number(this.addMsg.OldPeopleNum) +
Number(this.addMsg.ChirdNeedBedNum)
) {
this.$message.warning('儿童占床数量不足!')
return
}
// if (
// Number(this.addMsg.ChirdNum) -
// Number(this.addMsg.ChirdNeedBedNum) +
// Number(this.addMsg.BabyNum) >
// Number(this.addMsg.ManNum) +
// Number(this.addMsg.OldPeopleNum) +
// Number(this.addMsg.ChirdNeedBedNum)
// ) {
// this.$message.warning('儿童占床数量不足!')
// return
// }
if (this.userId == this.createByInfo) {
if (this.addMsg.CommissionSharePeople == '-1') {
......
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