Commit 2093a834 authored by 黄媛媛's avatar 黄媛媛
parents 5d2bd1af 0bfaa62c
This diff is collapsed.
......@@ -1770,6 +1770,30 @@
},
//保存数据
SaveData(type) {
if (!this.postData.DayNum) {
this.postData.DayNum = 0;
}
if (!this.postData.GuestNum) {
this.postData.GuestNum = 0;
}
if (!this.postData.FocNum) {
this.postData.FocNum = 0;
}
if (!this.postData.SalePrice) {
this.postData.SalePrice = 0;
}
if (!this.postData.SingleRoomPrice) {
this.postData.SingleRoomPrice = 0;
}
if (!this.postData.HotelDisNum) {
this.postData.HotelDisNum = 0;
}
if (!this.postData.DinnerDisNum) {
this.postData.DinnerDisNum = 0;
}
if (!this.postData.TicketDisNum) {
this.postData.TicketDisNum = 0;
}
//酒店默认值赋值
if (this.postData.SWTHotelList && this.postData.SWTHotelList.length > 0) {
this.postData.SWTHotelList.forEach(item => {
......@@ -1835,6 +1859,24 @@
})
})
}
if (this.postData.SWTBusOtherList && this.postData.SWTBusOtherList.length > 0) {
this.postData.SWTBusOtherList.forEach(rootItem => {
rootItem.SubBusList.forEach(item => {
if (!item.Kilometre) {
item.Kilometre = 0;
}
if (!item.VNDPrice) {
item.VNDPrice = 0;
}
if (!item.Times) {
item.Times = 0;
}
if (!item.Price) {
item.Price = 0;
}
})
})
}
//船票默认值赋值
if (this.postData.SWTShipList && this.postData.SWTShipList.length > 0) {
this.postData.SWTShipList.forEach(item => {
......
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