Commit 5cf65402 authored by 黄奎's avatar 黄奎

酒店信息保存修改

parent 96a9a6e9
......@@ -117,7 +117,7 @@
<td>
<div class="w80">
<p class="pHouseStyle" v-for="o in subItem.OrderDetailsList">
<el-input class='w50 tcenter' @keyup.native="checkInteger(o,'HouseTypeCount')"
<el-input class='w50 tcenter' @keyup.native="checkPrice(o,'HouseTypeCount')"
v-model='o.HouseTypeCount'></el-input>
</p>
</div>
......@@ -392,12 +392,6 @@
});
this.calculationPrice(subItem);
subItem.OrderDetailsList.forEach((x, index1) => {
if (x.HouseTypeCount <= 0) {
x.HouseTypeCount = subItem.HouseStatistics.HouseTypeList[index1].HouseTypeCount
.toString();
} else {
x.HouseTypeCount = x.HouseTypeCount.toString();
}
x.HouseTypeCount = x.HouseTypeCount.toString();
x.UnitPrice = x.UnitPrice.toString();
x.HotelDiscount = x.HotelDiscount.toString();
......@@ -468,7 +462,7 @@
this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => {
subItem.OrderDetailsList.forEach(y => {
y.HouseTypeCount = parseInt(y.HouseTypeCount);
y.HouseTypeCount = parseFloat(y.HouseTypeCount);
if(y.UnitPrice)
{
y.UnitPrice = parseInt(y.UnitPrice);
......@@ -501,7 +495,7 @@
this.list.forEach(item => {
item.HotelOrderList.forEach(subItem => {
subItem.OrderDetailsList.forEach(y => {
y.HouseTypeCount = parseInt(y.HouseTypeCount);
y.HouseTypeCount = parseFloat(y.HouseTypeCount);
y.UnitPrice = parseInt(y.UnitPrice);
y.HotelDiscount = parseInt(y.HotelDiscount);
if (y.BookNum == "") {
......
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