Commit 2d03a983 authored by 黄奎's avatar 黄奎

页面验证修改

parent e3e788ff
...@@ -818,7 +818,7 @@ ...@@ -818,7 +818,7 @@
} }
this.list.forEach(item => { this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => { item.HotelOrderList.forEach(subItem => {
subItem.OrderDetailsList.forEach(y => { subItem.OrderDetailsList.forEach((y, sIndex) => {
if (y.HouseTypeCount) { if (y.HouseTypeCount) {
y.HouseTypeCount = parseFloat(y.HouseTypeCount); y.HouseTypeCount = parseFloat(y.HouseTypeCount);
} else { } else {
...@@ -837,10 +837,13 @@ ...@@ -837,10 +837,13 @@
if (y.BookNum == "") { if (y.BookNum == "") {
y.BookNum = 0; y.BookNum = 0;
} }
if (y.RebateRatio == "") { if (!this.$commonUtils.isNumber(y.RebateRatio)) {
y.RebateRatio = 0; y.RebateRatio = 0;
} }
}) })
if (!this.$commonUtils.isNumber(subItem.TotalPrice)) {
subItem.TotalPrice = 0;
}
}); });
}) })
this.loading = true; this.loading = true;
...@@ -879,10 +882,13 @@ ...@@ -879,10 +882,13 @@
if (y.BookNum == "") { if (y.BookNum == "") {
y.BookNum = 0; y.BookNum = 0;
} }
if (y.RebateRatio == "") { if (!this.$commonUtils.isNumber(y.RebateRatio)) {
y.RebateRatio = 0; y.RebateRatio = 0;
} }
}) })
if (!this.$commonUtils.isNumber(subItem.TotalPrice)) {
subItem.TotalPrice = 0;
}
}); });
}) })
let mag = { let mag = {
......
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