|
@@ -78,6 +78,8 @@ export default {
|
|
|
endTime:'',
|
|
endTime:'',
|
|
|
ghsId:0,
|
|
ghsId:0,
|
|
|
device: 'android',
|
|
device: 'android',
|
|
|
|
|
+ justLoaded: false,
|
|
|
|
|
+ salt: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -85,9 +87,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
onShow () {
|
|
onShow () {
|
|
|
if (this.ghsId) {
|
|
if (this.ghsId) {
|
|
|
|
|
+ if (this.justLoaded) {
|
|
|
|
|
+ this.justLoaded = false
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
this.initData()
|
|
this.initData()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ onHide() {
|
|
|
|
|
+ this.justLoaded = false
|
|
|
|
|
+ },
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
this.resetDebtListPage()
|
|
this.resetDebtListPage()
|
|
|
this.initData().then(res => {
|
|
this.initData().then(res => {
|
|
@@ -185,13 +194,18 @@ export default {
|
|
|
id = currentUrl.substring(currentUrl.lastIndexOf("?id=") + 4)
|
|
id = currentUrl.substring(currentUrl.lastIndexOf("?id=") + 4)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if(this.option.salt){
|
|
|
|
|
+ this.salt = this.option.salt
|
|
|
|
|
+ }
|
|
|
this.ghsId = id
|
|
this.ghsId = id
|
|
|
this.getGhsInfo(id)
|
|
this.getGhsInfo(id)
|
|
|
|
|
+ this.justLoaded = true
|
|
|
return purchaseDebtList(this.debtListQueryParams({
|
|
return purchaseDebtList(this.debtListQueryParams({
|
|
|
id: id,
|
|
id: id,
|
|
|
searchTime: this.searchTime,
|
|
searchTime: this.searchTime,
|
|
|
startTime: this.startTime,
|
|
startTime: this.startTime,
|
|
|
endTime: this.endTime,
|
|
endTime: this.endTime,
|
|
|
|
|
+ salt: this.salt
|
|
|
})).then(res => {
|
|
})).then(res => {
|
|
|
const list = res.data.list || []
|
|
const list = res.data.list || []
|
|
|
this.applyDebtListPageMeta(res.data)
|
|
this.applyDebtListPageMeta(res.data)
|
|
@@ -201,7 +215,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
getGhsInfo(id) {
|
|
getGhsInfo(id) {
|
|
|
- return ghsDetail({id:id}).then(res => {
|
|
|
|
|
|
|
+ return ghsDetail({id:id,salt:this.salt}).then(res => {
|
|
|
this.ghsInfo = res.data
|
|
this.ghsInfo = res.data
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|