ソースを参照

fix: 撤销退货

zh 2 年 前
コミット
26f269406a

+ 7 - 0
src/api/sales.js

@@ -147,6 +147,13 @@ export function setSendRevoke(params) {
     params
   })
 }
+export function sendRefundRevoke(params) {
+  return request({
+    url: '/customer/frontOrder/sendRefundRevoke',
+    method: 'post',
+    params
+  })
+}
 
 
 

+ 3 - 3
src/views/sales_control/sales_management/components/return_sales_details.vue

@@ -26,7 +26,7 @@
           <el-button v-if="details.stockType ===1 && details.status == 1" size="mini" :disabled="dis" @click="handleInform(2)">退货通知</el-button>
         </div>
         <div v-else>
-          <el-button v-if="(details.status == 2 && details.stockType == 1)" size="mini" @click="handleSendRevoke(1)">撤销货</el-button>
+          <el-button v-if="(details.status == 2 && details.stockType == 1)" size="mini" @click="handleSendRevoke(1)">撤销退货</el-button>
         </div>
       </template>
       <template v-slot:custom="{ item: { row, $index } }">
@@ -68,7 +68,7 @@ import {
   sendRefund,
   updateRefund,
   listOrder,
-  setSendRevoke
+  sendRefundRevoke
 } from '@/api/sales'
 
 export default {
@@ -249,7 +249,7 @@ export default {
       return arr1.filter(v => arr2.every(val => val.id != v.id))
     },
     handleSendRevoke(status) {
-      setSendRevoke({ id: this.detailsId, status }).then(res => {
+      sendRefundRevoke({ id: this.detailsId, status }).then(res => {
         this.$successMsg('撤销发货')
         this.handleBack()
       })