shish 22 часов назад
Родитель
Сommit
54f8035fc7
2 измененных файлов с 8 добавлено и 40 удалено
  1. 5 37
      hdApp/src/pagesPurchase/purDetails.vue
  2. 3 3
      hdApp/src/pagesPurchase/refund.vue

+ 5 - 37
hdApp/src/pagesPurchase/purDetails.vue

@@ -322,15 +322,6 @@
 
       <button class="admin-button-com blue big" open-type="share" v-if="detailInfo.status!=5 && detailInfo.payStatus != 1" style="margin-right:50upx;padding-left:50upx;padding-right:50upx;">邀请付款</button>
 
-      <block v-if="detailInfo.book == 0">
-        <button class="admin-button-com blue big" v-if="detailInfo.status== 3 || detailInfo.status== 2" @click="affirmTake()" style="margin-right:50upx;padding-left:30upx;padding-right:30upx;">确认收货</button>
-      </block>
-      <block v-else>
-        <button class="admin-button-com blue big" v-if="detailInfo.status== 3" @click="affirmTake()" style="margin-right:40upx;padding-left:30upx;padding-right:30upx;">确认收货</button>
-      </block>
-
-      <!-- <button class="admin-button-com blue big" v-if="detailInfo.status== 4" @click="affirmTake()" style="margin-right:50upx;padding-left:50upx;padding-right:50upx;">再次改价</button> -->
-
       <block v-if="detailInfo.status == 1">
         <button class="admin-button-com blue big" @click="toPay">去付款</button>
       </block>
@@ -345,7 +336,7 @@
 <script>
 import { mapGetters } from "vuex";
 import { getCgExpressTrack } from "@/api/express"
-import { purchaseDetail, purchaseDebtPay,purchaseClearCreateOrder,confirmTake,cancelOrder,ghsDetail } from "@/api/purchase";
+import { purchaseDetail, purchaseDebtPay,purchaseClearCreateOrder,cancelOrder,ghsDetail } from "@/api/purchase";
 import TuiListCell from "@/components/plugin/list-cell";
 import { getGhsDataApi } from "@/api/ghs";
 import { CURRENT_ENV } from "@/config";
@@ -477,13 +468,6 @@ export default {
   methods: {
     adError(err) {
       console.error('原生模板广告加载失败', err)
-    },
-    affirmTake(){
-      if(this.loginStyle == 0){
-        this.$msg('请先登录')
-        return false
-      }
-      this.pageTo({url: '/pagesPurchase/confirmTake?id='+this.detailInfo.id})
     },
 		copyWl(val){
 			const self = this;
@@ -504,6 +488,9 @@ export default {
           })
         })
     },
+    /**
+     * 申请售后:直接进售后页;提交申请时若未完成,后端自动「仅入库不改价」再创建售后
+     */
     refundOrder(){
       if(this.loginStyle == 0){
         this.$msg('请先登录')
@@ -517,31 +504,12 @@ export default {
         return false
       }
       if(this.detailInfo.status == 1){
-        let that = this
         that.$util.confirmModal({content:'订单未付款'},() => {
           that.beginInit()
         })
         return false
       }
-      if(this.detailInfo.status == 4){
-        that.pageTo({url: '/pagesPurchase/refund?id='+this.detailInfo.id})
-      }else{
-        if(this.detailInfo.pfShopId && this.detailInfo.pfShopId>0){
-          that.$util.confirmModal({content:'请先确认收货'},() => {
-            that.affirmTake()
-          })            
-        }else{
-          that.$util.confirmModal({content:'确认已收货?'},() => {
-            uni.showLoading({mask:true})
-            confirmTake({id:that.detailInfo.id}).then(res=>{
-              uni.hideLoading()
-              if(res.code == 1){
-                that.pageTo({url: '/pagesPurchase/refund?id='+this.detailInfo.id})
-              }
-            })
-          })
-        }
-      }
+      that.pageTo({url: '/pagesPurchase/refund?id='+this.detailInfo.id})
     },
     clearOrder(){
 

+ 3 - 3
hdApp/src/pagesPurchase/refund.vue

@@ -320,11 +320,11 @@ export default {
 			let topTitle = '提示'
 			let title = '确认提交?'
 			if (this.orderInfo.payWay == 2) {
-				title = '此单余额付款,审核通过后钱会原路退回余额,确认提交?'
+				title = '确认提交?'
 			} else if (this.orderInfo.onlinePay == 2) {
-				title = '此单线上付款,审核通过后钱会原路退回,确认提交?'
+				title = '确认提交?'
 			} else if (Number(this.orderInfo.debt) != 1) {
-				title = '此单线下付款,钱不会原路退回,请与批发店协商,确认提交?'
+				title = '此单线下付款,钱不会原路退回,注意核实,确认提交?'
 				topTitle = '特别注意'
 			}
 			that.$util.confirmModal({ title: topTitle, content: title }, () => {