ソースを参照

1、手动申请微信退款

huangmp 2 年 前
コミット
8e36552745

+ 2 - 2
.env.development

@@ -2,8 +2,8 @@
 ENV = 'development'
 
 // api接口请求地址
-//VUE_APP_BASE_API = 'http://lymall-platform.58for.com/apis'
-VUE_APP_BASE_API = 'http://127.0.0.1:8088'
+VUE_APP_BASE_API = 'http://lymall-platform.58for.com/apis'
+//VUE_APP_BASE_API = 'http://127.0.0.1:8088'
 
 // 客服api接口请求地址
 //VUE_APP_IM_API = 'https://b2b2c-im.mall4j.com'

+ 28 - 4
src/views/modules/afterSales/thirdAfterSales.vue

@@ -239,7 +239,27 @@
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button v-if="changeMoney" @click="wxRefundVisible=false">关闭</el-button>
-        <el-button v-else type="primary" @click="handleWxRefund()">确认退款</el-button>
+        <el-button v-else type="primary" @click="handleWxRefund(true)">确认退款</el-button>
+      </div>
+    </el-dialog>
+    <el-dialog
+      title="申请微信退款(手动退款)"
+      :close-on-click-modal="false"
+      :visible.sync="wxRefundVisible2"
+      @close="closeRefundDialog"
+      width="38%">
+      <el-form :model="wxRefundData" label-position="right">
+        <el-form-item label="订单号" label-width="70px">
+          <el-input v-model="wxRefundData.orderNumber" placeholder="请输入订单号" @change="queryWxRefundInfo"></el-input>
+          <span style="color: red" v-if="wxRefundBalanceVisible">{{orderRefundQueryInfo}}</span>
+        </el-form-item>
+        <el-form-item label="退款金额" label-width="70px">
+          <el-input v-model="wxRefundData.refundAmount" type="number" placeholder="请输入退款金额"></el-input>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button v-if="changeMoney" @click="wxRefundVisible2=false">关闭</el-button>
+        <el-button v-else type="primary" @click="handleWxRefund(false)">确认退款</el-button>
       </div>
     </el-dialog>
   </div>
@@ -259,6 +279,7 @@ export default {
       },
       refoundRow: {},
       wxRefundVisible: false,
+      wxRefundVisible2: false,
       wxRefundBalanceVisible: false,
       shopId: this.$store.state.user.shopId,
       wxRefundData: {
@@ -297,10 +318,11 @@ export default {
   },
   methods: {
     openWxRefundDialog(){
-      this.wxRefundVisible = true;
+      this.wxRefundVisible2 = true;
     },
     closeRefundDialog(){
       this.wxRefundVisible = false;
+      this.wxRefundVisible2 = false;
       this.wxRefundBalanceVisible = false;
       this.wxRefundData = {}
     },
@@ -347,7 +369,7 @@ export default {
         })
       })
     },
-    handleWxRefund(){
+    handleWxRefund(updateRow){
       this.$confirm('即将退款' + this.wxRefundData.refundAmount + '元, 是否继续?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
@@ -361,7 +383,9 @@ export default {
           this.wxRefundBalanceVisible = false;
           this.wxRefundVisible = false;
           this.wxRefundData = {};
-          this.updateRow()
+          if(updateRow){
+            this.updateRow()
+          }
           this.$message({
             message: '退款发起成功',
             type: 'success'

+ 3 - 0
src/views/modules/order/order.vue

@@ -261,6 +261,9 @@
               <el-tag effect="dark" v-if="order.isPromotion === 1" type="primary">推广</el-tag>
               <el-tag effect="dark" v-if="order.isMerge === 1" type="primary">集货</el-tag>
               <el-tag effect="dark" v-if="order.printStatus === 6" type="primary">已扫码</el-tag>
+              <el-tag effect="dark" v-if="order.auditStatus==0" type="danger">待审阅</el-tag>
+              <el-tag effect="dark" v-else-if="order.auditStatus==1" type="success">已审阅</el-tag>
+              <el-tag effect="dark" v-else type="danger">待审阅</el-tag>
               <!-- <el-button type="text" @click="openOrderPromotionDialog(order.orderNumber, order.prodName)">推广链接</el-button> -->
             </div>
             <!-- <span>买家:19999999999</span>