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

退款说明接口改动

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