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

11

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