shish před 5 roky
rodič
revize
cd79c2d3a3
1 změnil soubory, kde provedl 12 přidání a 19 odebrání
  1. 12 19
      hdApp/src/pagesPurchase/gathering.vue

+ 12 - 19
hdApp/src/pagesPurchase/gathering.vue

@@ -190,27 +190,20 @@ export default {
     batchConfirm () {
       let arr = []
       if (this.selectList.length > 0) {
-      uni.showModal({
-          content: '确认结清选择的订单?',
-          success: (res) => {
-            if (res.confirm) {
-                this.selectList.forEach(item => {
-                  arr.push(item.id)
+            this.selectList.forEach(item => {
+              arr.push(item.id)
+            })
+            purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:this.option.id }).then(res => {
+              console.log('res ===>', res)
+              if(res.code == 1) {
+                this.pageTo({
+                  url: '/pagesPurchase/gatherPay?orderSn=' + res.data.orderSn + '&actPrice=' + res.data.actPrice,
+                  type: 2
                 })
-                purchaseClearCreateOrder({ purchaseIds:arr.join(','),ghsId:this.option.id }).then(res => {
-                  console.log('res ===>', res)
-                  if(res.code == 1) {
-                    this.pageTo({
-                      url: '/pagesPurchase/gatherPay?orderSn=' + res.data.orderSn + '&actPrice=' + res.data.actPrice,
-                      type: 2
-                    })
-                  }
-                }).catch(err => {console.log('err===>', err)})
-            } else if (res.cancel) {
+              }
+            }).catch(err => {console.log('err===>', err)})
 
-            }
-          }
-        })
+        } else if (res.cancel) {
       }
     },
     // 返回上一页