Commit 44a44941 authored by youjie's avatar youjie

no message

parent e3e68a6f
...@@ -276,6 +276,13 @@ ...@@ -276,6 +276,13 @@
deep: true, deep: true,
immediate: false immediate: false
}, },
datas: {
handler(newVal, oldVal) {
this.updateData();
},
deep: true,
immediate: false
},
}, },
mounted() { mounted() {
this.initData(); this.initData();
...@@ -329,7 +336,6 @@ ...@@ -329,7 +336,6 @@
}) })
this.datas.HotelOrderList[this.datas.hotelIndex].TotalMoney = total; this.datas.HotelOrderList[this.datas.hotelIndex].TotalMoney = total;
} }
this.updateData()
}, },
delInfor(index) { delInfor(index) {
this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.ReimburseDetailsList.splice(index, 1) this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.ReimburseDetailsList.splice(index, 1)
...@@ -337,11 +343,9 @@ ...@@ -337,11 +343,9 @@
}, },
delImg(index) { delImg(index) {
this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.VoucherPicList.splice(index, 1) this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.VoucherPicList.splice(index, 1)
this.updateData()
}, },
getSettlementType(item) { getSettlementType(item) {
this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.SettlementType = item.id this.datas.HotelOrderList[this.datas.hotelIndex].ReimburseList.SettlementType = item.id
this.updateData()
this.$forceUpdate() this.$forceUpdate()
}, },
updateData() { updateData() {
...@@ -407,7 +411,6 @@ ...@@ -407,7 +411,6 @@
FileName: infor.name, FileName: infor.name,
url: infor.url, url: infor.url,
}) })
this.updateData()
} }
} }
} }
......
...@@ -268,6 +268,13 @@ ...@@ -268,6 +268,13 @@
deep: true, deep: true,
immediate: false immediate: false
}, },
datas: {
handler(newVal, oldVal) {
this.updateData();
},
deep: true,
immediate: false
},
}, },
mounted() { mounted() {
this.initData(); this.initData();
...@@ -316,7 +323,6 @@ ...@@ -316,7 +323,6 @@
total += x.UserNum * x.UnitPrice total += x.UserNum * x.UnitPrice
}) })
this.datas.DiningSummaryList[this.datas.diningIndex].TotalMoney = total this.datas.DiningSummaryList[this.datas.diningIndex].TotalMoney = total
this.updateData()
} }
}, },
delInfor(index) { delInfor(index) {
...@@ -325,11 +331,9 @@ ...@@ -325,11 +331,9 @@
}, },
delImg(index) { delImg(index) {
this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.VoucherPicList.splice(index, 1) this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.VoucherPicList.splice(index, 1)
this.updateData()
}, },
getSettlementType(item) { getSettlementType(item) {
this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.SettlementType = item.id this.datas.DiningSummaryList[this.datas.diningIndex].ReimburseList.SettlementType = item.id
this.updateData()
this.$forceUpdate() this.$forceUpdate()
}, },
updateData() { updateData() {
...@@ -401,7 +405,6 @@ ...@@ -401,7 +405,6 @@
FileName: infor.name, FileName: infor.name,
url: infor.url, url: infor.url,
}) })
this.updateData()
} }
} }
} }
......
...@@ -270,6 +270,13 @@ ...@@ -270,6 +270,13 @@
deep: true, deep: true,
immediate: false immediate: false
}, },
datas: {
handler(newVal, oldVal) {
this.updateData();
},
deep: true,
immediate: false
},
}, },
mounted() { mounted() {
this.initData(); this.initData();
...@@ -318,7 +325,6 @@ ...@@ -318,7 +325,6 @@
total += x.UserNum * x.UnitPrice total += x.UserNum * x.UnitPrice
}) })
this.datas.ScenicStatisticsList[this.datas.scenicIndex].TotalMoney = total this.datas.ScenicStatisticsList[this.datas.scenicIndex].TotalMoney = total
this.updateData()
} }
}, },
delInfor(index) { delInfor(index) {
...@@ -327,11 +333,9 @@ ...@@ -327,11 +333,9 @@
}, },
delImg(index) { delImg(index) {
this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.VoucherPicList.splice(index, 1) this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.VoucherPicList.splice(index, 1)
this.updateData()
}, },
getSettlementType(item) { getSettlementType(item) {
this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.SettlementType = item.id this.datas.ScenicStatisticsList[this.datas.scenicIndex].ReimburseList.SettlementType = item.id
this.updateData()
this.$forceUpdate() this.$forceUpdate()
}, },
updateData() { updateData() {
...@@ -403,7 +407,6 @@ ...@@ -403,7 +407,6 @@
FileName: infor.name, FileName: infor.name,
url: infor.url, url: infor.url,
}) })
this.updateData()
} }
} }
} }
......
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