提交 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,12 +408,8 @@ ...@@ -408,12 +408,8 @@
return val; return val;
}, },
// 退款说明 // 退款说明
showRefundDetail(goodsId, orderId) { showRefundDetail(aid) {
let parmas = { getRefundDesc(aid).then(res => {
goodsId: goodsId,
orderId: orderId
};
getRefundDesc(parmas).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
this.isShowRefundDetail = true; this.isShowRefundDetail = true;
let refundWayStr = ''; let refundWayStr = '';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册