Commit 0ae69409 authored by youjie's avatar youjie

团下单 人员数验证

parent 2a633e29
......@@ -3065,9 +3065,9 @@
yzSafeNum: function () {
let count = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
this.TotalNumber = count
if (count < this.addMsg.SafeNum) {
this.addMsg.SafeNum = count
this.TotalNumber = count
this.$message.error('保险人数不能大于总人数')
}
},
......
......@@ -2611,9 +2611,9 @@
yzSafeNum: function () {
let count = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
this.TotalNumber = count
if (count < this.addMsg.SafeNum) {
this.addMsg.SafeNum = count
this.TotalNumber = count
this.$message.error('保险人数不能大于总人数')
}
},
......@@ -3331,7 +3331,7 @@
Number(this.addMsg.ChirdNum) +
Number(this.addMsg.BabyNum) +
Number(this.addMsg.OldPeopleNum)
this.TotalNumber =
this.TotalNumber =
Number(this.addMsg.AirticketNum) +
Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) +
......
......@@ -2101,9 +2101,9 @@
ChirdNum +
Number(this.addMsg.BabyNum) +
Number(this.addMsg.OldPeopleNum);
this.TotalNumber = count
if (count < this.addMsg.SafeNum) {
this.addMsg.SafeNum = count;
this.TotalNumber = count
this.$message.error("保险人数不能大于总人数");
}
},
......@@ -2710,6 +2710,12 @@
ChirdNum +
Number(this.addMsg.BabyNum) +
Number(this.addMsg.OldPeopleNum);
this.TotalNumber =
Number(this.addMsg.AirticketNum) +
Number(this.addMsg.ManNum) +
ChirdNum +
Number(this.addMsg.BabyNum) +
Number(this.addMsg.OldPeopleNum);
var SeatNum =
Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) +
......
......@@ -1411,9 +1411,9 @@
yzSafeNum: function () {
let count = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
this.TotalNumber = count
if (count < this.addMsg.SafeNum) {
this.addMsg.SafeNum = count
this.TotalNumber = count
this.$message.error('保险人数不能大于总人数')
this.getNumGuest()
}
......
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