Commit 01d0b107 authored by youjie's avatar youjie

no message

parent acb6d8a7
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
this.params = JSON.parse(JSON.stringify(newVal)) this.params = JSON.parse(JSON.stringify(newVal))
this.OtherList = this.params.OtherOrderInfo.OtherList this.OtherList = this.params.OtherOrderInfo.OtherList
this.OtherList.forEach(x=>{ this.OtherList.forEach(x=>{
x.UseDate = this.$utils.formatDates(new Date(x.UseDate),'yyyy-MM-dd') x.UseDate = x.UseDate?this.$utils.formatDates(new Date(x.UseDate),'yyyy-MM-dd'):''
let findIndex = this.options.findIndex(y=>y.id==x.CostProject) let findIndex = this.options.findIndex(y=>y.id==x.CostProject)
if(findIndex!=-1) x.CostProjectStr =this.options[findIndex].name if(findIndex!=-1) x.CostProjectStr =this.options[findIndex].name
let findIndex2 = this.currencyList.findIndex(y=>y.id==x.Currency) let findIndex2 = this.currencyList.findIndex(y=>y.id==x.Currency)
......
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
this.params = JSON.parse(JSON.stringify(newVal)) this.params = JSON.parse(JSON.stringify(newVal))
this.SelfPlayingIncomeList = this.params.OtherOrderInfo.SelfPlayingIncomeList this.SelfPlayingIncomeList = this.params.OtherOrderInfo.SelfPlayingIncomeList
this.SelfPlayingIncomeList.forEach(x=>{ this.SelfPlayingIncomeList.forEach(x=>{
x.UseDate = this.$utils.formatDates(new Date(x.UseDate),'yyyy-MM-dd') x.UseDate = x.UseDate?this.$utils.formatDates(new Date(x.UseDate),'yyyy-MM-dd'):''
}) })
}, },
deep:true, deep:true,
......
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
this.params = JSON.parse(JSON.stringify(newVal)) this.params = JSON.parse(JSON.stringify(newVal))
this.SelfPlayingExpendList = this.params.OtherOrderInfo.SelfPlayingExpendList this.SelfPlayingExpendList = this.params.OtherOrderInfo.SelfPlayingExpendList
this.SelfPlayingExpendList.forEach(x=>{ this.SelfPlayingExpendList.forEach(x=>{
x.UseDate = this.$utils.formatDates(new Date(x.UseDate),'yyyy-MM-dd') x.UseDate = x.UseDate?this.$utils.formatDates(new Date(x.UseDate),'yyyy-MM-dd'):''
let findIndex = this.currencyList.findIndex(y=>y.id==x.Currency) let findIndex = this.currencyList.findIndex(y=>y.id==x.Currency)
if(findIndex!=-1) x.CurrencyName =this.currencyList[findIndex].name if(findIndex!=-1) x.CurrencyName =this.currencyList[findIndex].name
}) })
......
...@@ -249,7 +249,7 @@ export default { ...@@ -249,7 +249,7 @@ export default {
this.params = JSON.parse(JSON.stringify(newVal)) this.params = JSON.parse(JSON.stringify(newVal))
this.LeaderShopList = this.params.LeaderShopList this.LeaderShopList = this.params.LeaderShopList
this.LeaderShopList.forEach(x=>{ this.LeaderShopList.forEach(x=>{
x.EnterTime = this.$utils.formatDates(new Date(x.EnterTime),'yyyy-MM-dd') x.EnterTime = x.UseDate?this.$utils.formatDates(new Date(x.EnterTime),'yyyy-MM-dd'):''
let findIndex = this.options.findIndex(y=>y.id==x.ShopId) let findIndex = this.options.findIndex(y=>y.id==x.ShopId)
if(findIndex!=-1) x.ShopStr =this.options[findIndex].name if(findIndex!=-1) x.ShopStr =this.options[findIndex].name
let findIndex2 = this.currencyList.findIndex(y=>y.id==x.CurrencyId) let findIndex2 = this.currencyList.findIndex(y=>y.id==x.CurrencyId)
......
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