Commit 6f9ac5d1 authored by 黄奎's avatar 黄奎

11

parent e1d21773
...@@ -332,6 +332,7 @@ ...@@ -332,6 +332,7 @@
data: { data: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal)) this.params = JSON.parse(JSON.stringify(newVal))
console.log("this.params",this.params);
this.BusList = this.params.BusList //车信息 this.BusList = this.params.BusList //车信息
this.HotelOrderListReport = this.params.HotelOrderListReport //酒店信息,合团 this.HotelOrderListReport = this.params.HotelOrderListReport //酒店信息,合团
this.DiningList = this.params.DiningList //餐厅 this.DiningList = this.params.DiningList //餐厅
......
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
watch: { watch: {
OtherList: { OtherList: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.updateData() this.updateData();
}, },
deep: true, deep: true,
immediate: false immediate: false
...@@ -302,8 +302,8 @@ ...@@ -302,8 +302,8 @@
this.OtherList[i].VoucherPicList.splice(index, 1) this.OtherList[i].VoucherPicList.splice(index, 1)
}, },
updateData() { updateData() {
this.params.OtherOrderInfo.OtherList = JSON.parse(JSON.stringify(this.OtherList)) //this.params.OtherOrderInfo.OtherList = JSON.parse(JSON.stringify(this.OtherList))
this.$emit('change', this.params) this.$emit('change', JSON.parse(JSON.stringify(this.OtherList)),5)
}, },
getRenderingData() { getRenderingData() {
this.ReimDatas = JSON.parse(JSON.stringify(this.OtherList[0])) this.ReimDatas = JSON.parse(JSON.stringify(this.OtherList[0]))
......
...@@ -245,8 +245,8 @@ ...@@ -245,8 +245,8 @@
this.TipList[i].VoucherPicList.splice(index, 1) this.TipList[i].VoucherPicList.splice(index, 1)
}, },
updateData() { updateData() {
this.params.OtherOrderInfo.TipList = JSON.parse(JSON.stringify(this.TipList)) //this.params.OtherOrderInfo.TipList = JSON.parse(JSON.stringify(this.TipList))
this.$emit('change', this.params) this.$emit('change', JSON.parse(JSON.stringify(this.TipList)),this.params.type);
}, },
getRenderingData() { getRenderingData() {
this.ReimDatas = JSON.parse(JSON.stringify(this.TipList[0])) this.ReimDatas = JSON.parse(JSON.stringify(this.TipList[0]))
......
...@@ -248,8 +248,8 @@ ...@@ -248,8 +248,8 @@
this.TeamList[i].VoucherPicList.splice(index, 1) this.TeamList[i].VoucherPicList.splice(index, 1)
}, },
updateData() { updateData() {
this.params.OtherOrderInfo.TeamList = JSON.parse(JSON.stringify(this.TeamList)) //this.params.OtherOrderInfo.TeamList = JSON.parse(JSON.stringify(this.TeamList))
this.$emit('change', this.params) this.$emit('change', JSON.parse(JSON.stringify(this.TeamList)),7);
}, },
getRenderingData() { getRenderingData() {
this.ReimDatas = JSON.parse(JSON.stringify(this.TeamList[0])) this.ReimDatas = JSON.parse(JSON.stringify(this.TeamList[0]))
......
...@@ -272,8 +272,8 @@ ...@@ -272,8 +272,8 @@
this.SelfPlayingIncomeList[i].VoucherPicList.splice(index, 1) this.SelfPlayingIncomeList[i].VoucherPicList.splice(index, 1)
}, },
updateData() { updateData() {
this.params.OtherOrderInfo.SelfPlayingIncomeList = JSON.parse(JSON.stringify(this.SelfPlayingIncomeList)) //this.params.OtherOrderInfo.SelfPlayingIncomeList = JSON.parse(JSON.stringify(this.SelfPlayingIncomeList))
this.$emit('change', this.params) this.$emit('change', JSON.parse(JSON.stringify(this.SelfPlayingIncomeList)),8)
}, },
getRenderingData() { getRenderingData() {
this.ReimDatas = JSON.parse(JSON.stringify(this.SelfPlayingIncomeList[0])) this.ReimDatas = JSON.parse(JSON.stringify(this.SelfPlayingIncomeList[0]))
......
...@@ -283,8 +283,8 @@ ...@@ -283,8 +283,8 @@
this.SelfPlayingExpendList[i].VoucherPicList.splice(index, 1) this.SelfPlayingExpendList[i].VoucherPicList.splice(index, 1)
}, },
updateData() { updateData() {
this.params.OtherOrderInfo.SelfPlayingExpendList = JSON.parse(JSON.stringify(this.SelfPlayingExpendList)) //this.params.OtherOrderInfo.SelfPlayingExpendList = JSON.parse(JSON.stringify(this.SelfPlayingExpendList))
this.$emit('change', this.params) this.$emit('change', JSON.parse(JSON.stringify(this.SelfPlayingExpendList)),9)
}, },
getRenderingData() { getRenderingData() {
this.ReimDatas = JSON.parse(JSON.stringify(this.SelfPlayingExpendList[0])) this.ReimDatas = JSON.parse(JSON.stringify(this.SelfPlayingExpendList[0]))
......
...@@ -306,8 +306,8 @@ ...@@ -306,8 +306,8 @@
this.LeaderShopList[i].VoucherPicList.splice(index, 1) this.LeaderShopList[i].VoucherPicList.splice(index, 1)
}, },
updateData() { updateData() {
this.params.LeaderShopList = JSON.parse(JSON.stringify(this.LeaderShopList)) // this.params.LeaderShopList = JSON.parse(JSON.stringify(this.LeaderShopList))
this.$emit('change', this.params) this.$emit('change', JSON.parse(JSON.stringify(this.LeaderShopList)), 10);
}, },
getRenderingData() { getRenderingData() {
this.ReimDatas = JSON.parse(JSON.stringify(this.LeaderShopList[0])) this.ReimDatas = JSON.parse(JSON.stringify(this.LeaderShopList[0]))
......
...@@ -569,8 +569,23 @@ ...@@ -569,8 +569,23 @@
this.loading = false this.loading = false
}) })
}, },
getNewData(params) { getNewData(params, type) {
this.params = JSON.parse(JSON.stringify(params)) //其它费用
if (type == 5) {
this.params.OtherOrderInfo.OtherList = params;
} else if (type == 6) {
this.params.OtherOrderInfo.TipList = params;
} else if (type == 7) {
this.params.OtherOrderInfo.TeamList = params;
} else if (type == 8) {
this.params.OtherOrderInfo.SelfPlayingIncomeList = params;
} else if (type == 9) {
this.params.OtherOrderInfo.SelfPlayingExpendList = params;
} else if (type == 10) {
this.params.LeaderShopList = params;
} else {
this.params = JSON.parse(JSON.stringify(params))
}
}, },
getType(item) { getType(item) {
this.params.type = item.id this.params.type = item.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