Commit adff6419 authored by 黄奎's avatar 黄奎

1

parent f1028279
...@@ -490,10 +490,6 @@ ...@@ -490,10 +490,6 @@
return x.id == this.DiningList[this.dataIndex].DiningSummaryList[this.datas.diningIndex] return x.id == this.DiningList[this.dataIndex].DiningSummaryList[this.datas.diningIndex]
.ReimburseList.CurrencyId .ReimburseList.CurrencyId
}) })
console.log("this.DiningList[this.dataIndex].DiningSummaryList[this.datas.diningIndex]",this.DiningList[this.dataIndex].DiningSummaryList[this.datas.diningIndex]
.ReimburseList);
console.log("dining_list",list)
if (list.length == 1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0])) if (list.length == 1) list = this.currencyObj = JSON.parse(JSON.stringify(list[0]))
else this.currencyObj = { else this.currencyObj = {
id: 0, id: 0,
...@@ -554,11 +550,15 @@ ...@@ -554,11 +550,15 @@
name: '选择币种' name: '选择币种'
} }
for (let i = 0; i < this.datas.HotelOrderList.length; i++) { for (let i = 0; i < this.datas.HotelOrderList.length; i++) {
//只替换当前酒店下的币种
if (this.datas.hotelIndex == i) {
this.datas.HotelOrderList[i].CurrencyId = this.currencyObj.id this.datas.HotelOrderList[i].CurrencyId = this.currencyObj.id
this.datas.HotelOrderList[i].CurrencyStr = this.currencyObj.id ? this.currencyObj.name : '' this.datas.HotelOrderList[i].CurrencyStr = this.currencyObj.id ? this.currencyObj.name : ''
this.datas.HotelOrderList[i].ReimburseList.CurrencyId = this.currencyObj.id this.datas.HotelOrderList[i].ReimburseList.CurrencyId = this.currencyObj.id
for (let j = 0; j < this.datas.HotelOrderList[i].ReimburseList.ReimburseDetailsList.length; j++) { for (let j = 0; j < this.datas.HotelOrderList[i].ReimburseList.ReimburseDetailsList.length; j++) {
this.datas.HotelOrderList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this.currencyObj.id this.datas.HotelOrderList[i].ReimburseList.ReimburseDetailsList[j].CurrencyId = this
.currencyObj.id
}
} }
} }
}, },
......
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