shish 4 лет назад
Родитель
Сommit
8aec9ca714
2 измененных файлов с 9 добавлено и 10 удалено
  1. 1 0
      hdApp/src/admin/order/addOrderConfirm.vue
  2. 8 10
      hdApp/src/pagesPurchase/gathering.vue

+ 1 - 0
hdApp/src/admin/order/addOrderConfirm.vue

@@ -127,6 +127,7 @@ export default {
       });
     },
     confirmToSubmit () {
+      return
       let that = this
       let goods = this.selectList.map((ele) => {
         return {goodsId: ele.id, num: ele.bigCount,price: ele.userPrice,goodsSn:ele.sn,cover:ele.shortCover}

+ 8 - 10
hdApp/src/pagesPurchase/gathering.vue

@@ -61,16 +61,14 @@ export default {
       isAllCheck: false,
 			searchTime:'',
 			startTime:'',
-			endTime:''
+			endTime:'',
+      ghsId:0
     }
   },
   onPullDownRefresh() {
     this.initData().then(res => {
       uni.stopPullDownRefresh();
     })
-    this.getClient().then(res => {
-      uni.stopPullDownRefresh();
-    })
   },
   computed: {
     selectList () {
@@ -128,10 +126,8 @@ export default {
     },
     init() {
       this.initData()
-      this.getClient()
     },
     initData () {
-
       let id = 0
       if(this.option.id){
         id = this.option.id
@@ -139,10 +135,12 @@ export default {
 				//小票上的二维码打开结账页
 				//https://api.shop.huahb.cn/#/pagesPurchase/gathering?id=378
 				if(this.option.q){
-					let currentUrl = decodeURIComponent(this.option.q);
+					let currentUrl = decodeURIComponent(this.option.q)
 					id = currentUrl.substring(currentUrl.lastIndexOf("?id=") + 4)
 				}
       }
+      this.ghsId = id
+      this.getGhsInfo(id)
       return purchaseDebtList({id:id,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime}).then(res => {
         this.detailsList = res.data.list.map(ele => {
           return {
@@ -154,8 +152,8 @@ export default {
 
       })
     },
-    getClient() {
-      return ghsDetail({id:this.option.id}).then(res => {
+    getGhsInfo(id) {
+      return ghsDetail({id:id}).then(res => {
         this.customInfo = res.data
       }).catch(err => {})
     },
@@ -188,7 +186,7 @@ export default {
         that.selectList.forEach(item => {
           arr.push(item.id)
         })
-        purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:that.option.id }).then(res => {
+        purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:that.ghsId }).then(res => {
           if(res.code == 1) {
             if(res.data.hasUnComplete && res.data.hasUnComplete == 1){
               that.$util.confirmModal({content:'还有待完成的账单',okText:'查看'},() => {