提交 8dc5f6a8 编写于 作者: shuang.zhou's avatar shuang.zhou

退款说明接口改动

上级 38df60cd
...@@ -129,12 +129,11 @@ export const brokerOwnerListAll = (params) => { ...@@ -129,12 +129,11 @@ export const brokerOwnerListAll = (params) => {
}) })
}; };
// 获取退款说明 // 获取退款说明
export const getRefundDesc = (params) => { export const getRefundDesc = (aid) => {
return fetch({ return fetch({
headers, headers,
url: getBaseUrl(`/store/orders/admin/queryRefundDesc/${params.orderId}/${params.goodsId}`), url: getBaseUrl(`/store/orders/admin/queryRefundDesc/${aid}`),
method: 'get', method: 'get',
params: params, description: '退款说明',
description: '退货',
}) })
}; };
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="refundDesc" label="退款说明" min-width="100" align="center"> <el-table-column prop="refundDesc" label="退款说明" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="[6, 7, 8].includes(scope.row.goodsShowStatus)" type="text" @click="showRefundDetail(scope.row.goodsId,scope.row.id)">查看</el-button> <el-button v-if="[6, 7, 8].includes(scope.row.goodsShowStatus)" type="text" @click="showRefundDetail(scope.row.aid)">查看</el-button>
<span v-else> -- </span> <span v-else> -- </span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -408,22 +408,18 @@ ...@@ -408,22 +408,18 @@
return val; return val;
}, },
// 退款说明 // 退款说明
showRefundDetail(goodsId, orderId) { showRefundDetail(aid) {
let parmas = { getRefundDesc(aid).then(res => {
goodsId: goodsId, if (res.code == "000000") {
orderId: orderId this.isShowRefundDetail = true;
}; let refundWayStr = '';
getRefundDesc(parmas).then(res => { let refundObjectStr = '';
if (res.code == "000000") { this.refundDialog = true;
this.isShowRefundDetail = true; refundWayStr = res.data.refundWay == 0 ? '仅退款,无需退货' : '退款退货';
let refundWayStr = ''; refundObjectStr = res.data.refundObject == 1 ? '开单医生' : '支付用户';
let refundObjectStr = ''; res.data.refundWay = refundWayStr;
this.refundDialog = true; res.data.refundObject = refundObjectStr;
refundWayStr = res.data.refundWay == 0 ? '仅退款,无需退货' : '退款退货'; this.refundDialogData = res.data;
refundObjectStr = res.data.refundObject == 1 ? '开单医生' : '支付用户';
res.data.refundWay = refundWayStr;
res.data.refundObject = refundObjectStr;
this.refundDialogData = res.data;
} }
}) })
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册