shish 1 bulan lalu
induk
melakukan
3db0943c85

+ 1 - 1
hdApp/src/admin/ghs/pay.vue

@@ -349,7 +349,7 @@
 					this.$msg('供货商信息加载中,请稍后再试')
 					return
 				}
-				this.pageTo({ url: `/pagesPurchase/gathering?id=${this.id}`, type: 2 })
+				this.pageTo({ url: `/pagesPurchase/gathering?id=${this.id}&salt=${this.salt}`, type: 2 })
 			},
 			downloadImg() {
 				if (!this.imgUrl) {

+ 15 - 1
hdApp/src/pagesPurchase/gathering.vue

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

+ 10 - 1
hdApp/src/pagesPurchase/purDetails.vue

@@ -388,7 +388,8 @@ export default {
 				'40': { text: '申请取消中', color: '#ff2842' },
 				'50': { text: '客服介入处理中', color: '#ff2842' }
 			},
-      currentEnv:'production'
+      currentEnv:'production',
+      justLoaded: false
     };
   },
   onShareAppMessage(res) {
@@ -432,7 +433,14 @@ export default {
           }
         }
     }
+    if (this.justLoaded) {
+      this.justLoaded = false
+      return
+    }
     this.beginInit()
+  },
+  onHide() {
+    this.justLoaded = false
   },
 	onLoad(){
     this.beginInit()
@@ -586,6 +594,7 @@ export default {
         }
       }
       this.id = id
+      this.justLoaded = true
       this.initData(id)
     },
     initData (id) {