Commit 93fe4244 authored by 黄奎's avatar 黄奎

11

parent cc38a61b
...@@ -261,22 +261,6 @@ ...@@ -261,22 +261,6 @@
} }
}, },
watch: { watch: {
data: {
handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal))
this.OtherList = this.params.OtherOrderInfo.OtherList
this.OtherList.forEach(x => {
x.UseDate = x.UseDate ? this.$utils.formatDates(new Date(x.UseDate), 'yyyy-MM-dd') : null
let findIndex = this.options.findIndex(y => y.id == x.CostProject && x.ID > 0)
if (findIndex != -1) x.CostProjectStr = this.options[findIndex].name
let findIndex2 = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex2 != -1) x.CurrencyName = this.currencyList[findIndex2].name
})
this.getRenderingData()
},
deep: true,
immediate: true
},
OtherList: { OtherList: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.updateData() this.updateData()
...@@ -286,9 +270,21 @@ ...@@ -286,9 +270,21 @@
} }
}, },
mounted() { mounted() {
this.initData();
this.getRenderingData();
}, },
methods: { methods: {
initData() {
this.params = JSON.parse(JSON.stringify(this.data))
this.OtherList = this.params.OtherOrderInfo.OtherList
this.OtherList.forEach(x => {
x.UseDate = x.UseDate ? this.$utils.formatDates(new Date(x.UseDate), 'yyyy-MM-dd') : null
let findIndex = this.options.findIndex(y => y.id == x.CostProject && x.ID > 0)
if (findIndex != -1) x.CostProjectStr = this.options[findIndex].name
let findIndex2 = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex2 != -1) x.CurrencyName = this.currencyList[findIndex2].name
})
},
showDateVisible(index) { showDateVisible(index) {
this.ReimIndex = index this.ReimIndex = index
this.time = this.OtherList[index].UseDate this.time = this.OtherList[index].UseDate
......
...@@ -210,15 +210,6 @@ ...@@ -210,15 +210,6 @@
} }
}, },
watch: { watch: {
data: {
handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal))
this.TipList = this.params.OtherOrderInfo.TipList
this.getRenderingData()
},
deep: true,
immediate: true
},
TipList: { TipList: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.updateData() this.updateData()
...@@ -228,9 +219,14 @@ ...@@ -228,9 +219,14 @@
} }
}, },
mounted() { mounted() {
this.initData()
}, },
methods: { methods: {
initData() {
this.params = JSON.parse(JSON.stringify(this.data))
this.TipList = this.params.OtherOrderInfo.TipList
this.getRenderingData()
},
showDateVisible(index) { showDateVisible(index) {
this.ReimIndex = index this.ReimIndex = index
this.time = this.TipList[index].UseDate this.time = this.TipList[index].UseDate
...@@ -242,7 +238,6 @@ ...@@ -242,7 +238,6 @@
this.TipList[this.ReimIndex].UseDate = this.time this.TipList[this.ReimIndex].UseDate = this.time
this.dateVisible = false this.dateVisible = false
}, },
delInfor(index) { delInfor(index) {
this.TipList.splice(index, 1) this.TipList.splice(index, 1)
}, },
...@@ -273,7 +268,6 @@ ...@@ -273,7 +268,6 @@
id: this.TipList[this.ReimIndex].Currency, id: this.TipList[this.ReimIndex].Currency,
} }
} }
}, },
close() { close() {
this.optionVisible = false this.optionVisible = false
......
...@@ -209,19 +209,6 @@ ...@@ -209,19 +209,6 @@
} }
}, },
watch: { watch: {
data: {
handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal))
this.TeamList = this.params.OtherOrderInfo.TeamList
this.TeamList.forEach(x => {
let findIndex = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex != -1) x.CurrencyName = this.currencyList[findIndex].name
})
this.getRenderingData()
},
deep: true,
immediate: true
},
TeamList: { TeamList: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.updateData() this.updateData()
...@@ -231,9 +218,18 @@ ...@@ -231,9 +218,18 @@
} }
}, },
mounted() { mounted() {
this.initData();
}, },
methods: { methods: {
initData() {
this.params = JSON.parse(JSON.stringify(this.data))
this.TeamList = this.params.OtherOrderInfo.TeamList
this.TeamList.forEach(x => {
let findIndex = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex != -1) x.CurrencyName = this.currencyList[findIndex].name
})
this.getRenderingData()
},
showDateVisible(index) { showDateVisible(index) {
this.ReimIndex = index this.ReimIndex = index
this.time = this.TeamList[index].UseDate this.time = this.TeamList[index].UseDate
......
...@@ -233,20 +233,6 @@ ...@@ -233,20 +233,6 @@
} }
}, },
watch: { watch: {
data: {
handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal))
this.SelfPlayingIncomeList = this.params.OtherOrderInfo.SelfPlayingIncomeList
this.SelfPlayingIncomeList.forEach(x => {
x.UseDate = x.UseDate ? this.$utils.formatDates(new Date(x.UseDate), 'yyyy-MM-dd') : null
let findIndex = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex != -1) x.CurrencyName = this.currencyList[findIndex].name
})
this.getRenderingData()
},
deep: true,
immediate: true
},
SelfPlayingIncomeList: { SelfPlayingIncomeList: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.updateData() this.updateData()
...@@ -256,9 +242,19 @@ ...@@ -256,9 +242,19 @@
} }
}, },
mounted() { mounted() {
this.initData();
}, },
methods: { methods: {
initData() {
this.params = JSON.parse(JSON.stringify(this.data))
this.SelfPlayingIncomeList = this.params.OtherOrderInfo.SelfPlayingIncomeList
this.SelfPlayingIncomeList.forEach(x => {
x.UseDate = x.UseDate ? this.$utils.formatDates(new Date(x.UseDate), 'yyyy-MM-dd') : null
let findIndex = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex != -1) x.CurrencyName = this.currencyList[findIndex].name
})
this.getRenderingData()
},
showDateVisible(index) { showDateVisible(index) {
this.ReimIndex = index this.ReimIndex = index
this.time = this.SelfPlayingIncomeList[index].UseDate this.time = this.SelfPlayingIncomeList[index].UseDate
......
...@@ -244,20 +244,6 @@ ...@@ -244,20 +244,6 @@
} }
}, },
watch: { watch: {
data: {
handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal))
this.SelfPlayingExpendList = this.params.OtherOrderInfo.SelfPlayingExpendList
this.SelfPlayingExpendList.forEach(x => {
x.UseDate = x.UseDate ? this.$utils.formatDates(new Date(x.UseDate), 'yyyy-MM-dd') : null
let findIndex = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex != -1) x.CurrencyName = this.currencyList[findIndex].name
})
this.getRenderingData()
},
deep: true,
immediate: true
},
SelfPlayingExpendList: { SelfPlayingExpendList: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.updateData() this.updateData()
...@@ -267,9 +253,19 @@ ...@@ -267,9 +253,19 @@
} }
}, },
mounted() { mounted() {
this.initData();
}, },
methods: { methods: {
initData() {
this.params = JSON.parse(JSON.stringify(this.data))
this.SelfPlayingExpendList = this.params.OtherOrderInfo.SelfPlayingExpendList
this.SelfPlayingExpendList.forEach(x => {
x.UseDate = x.UseDate ? this.$utils.formatDates(new Date(x.UseDate), 'yyyy-MM-dd') : null
let findIndex = this.currencyList.findIndex(y => y.id == x.Currency)
if (findIndex != -1) x.CurrencyName = this.currencyList[findIndex].name
})
this.getRenderingData()
},
showDateVisible(index) { showDateVisible(index) {
this.ReimIndex = index this.ReimIndex = index
this.time = this.SelfPlayingExpendList[index].UseDate this.time = this.SelfPlayingExpendList[index].UseDate
......
...@@ -254,23 +254,7 @@ ...@@ -254,23 +254,7 @@
} }
}, },
watch: { watch: {
data: {
handler(newVal, oldVal) {
this.params = JSON.parse(JSON.stringify(newVal))
this.LeaderShopList = this.params.LeaderShopList
this.LeaderShopList.forEach(x => {
x.EnterTime = x.EnterTime ? this.$utils.formatDates(new Date(x.EnterTime), 'yyyy-MM-dd') :
null
let findIndex = this.options.findIndex(y => y.id == x.ShopId)
if (findIndex != -1) x.ShopStr = this.options[findIndex].name
let findIndex2 = this.currencyList.findIndex(y => y.id == x.CurrencyId)
if (findIndex2 != -1) x.CurrencyName = this.currencyList[findIndex2].name
})
this.getRenderingData()
},
deep: true,
immediate: true
},
LeaderShopList: { LeaderShopList: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
this.updateData() this.updateData()
...@@ -280,9 +264,22 @@ ...@@ -280,9 +264,22 @@
} }
}, },
mounted() { mounted() {
this.initData();
}, },
methods: { methods: {
initData() {
this.params = JSON.parse(JSON.stringify(this.data))
this.LeaderShopList = this.params.LeaderShopList
this.LeaderShopList.forEach(x => {
x.EnterTime = x.EnterTime ? this.$utils.formatDates(new Date(x.EnterTime), 'yyyy-MM-dd') :
null
let findIndex = this.options.findIndex(y => y.id == x.ShopId)
if (findIndex != -1) x.ShopStr = this.options[findIndex].name
let findIndex2 = this.currencyList.findIndex(y => y.id == x.CurrencyId)
if (findIndex2 != -1) x.CurrencyName = this.currencyList[findIndex2].name
})
this.getRenderingData()
},
showDateVisible(index) { showDateVisible(index) {
this.ReimIndex = index this.ReimIndex = index
this.time = this.LeaderShopList[index].EnterTime this.time = this.LeaderShopList[index].EnterTime
......
...@@ -542,7 +542,6 @@ ...@@ -542,7 +542,6 @@
title: '保存中...' title: '保存中...'
}) })
this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", this.params, (res) => { this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", this.params, (res) => {
uni.hideLoading()
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
...@@ -552,6 +551,7 @@ ...@@ -552,6 +551,7 @@
}); });
this.init() this.init()
} }
uni.hideLoading()
}, (failed) => { }, (failed) => {
this.loading = false this.loading = false
uni.showToast({ uni.showToast({
...@@ -623,7 +623,7 @@ ...@@ -623,7 +623,7 @@
}); });
} }
}); });
console.log("this.params.HotelOrderListReport",this.params.HotelOrderListReport) console.log("this.params.HotelOrderListReport", this.params.HotelOrderListReport)
} }
if (this.params && this.params.DiningList && this.params.DiningList.length > 0) { if (this.params && this.params.DiningList && this.params.DiningList.length > 0) {
......
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