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

1

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