Commit 73f7e150 by crushh

update: dist

parent 3bc61c28
......@@ -176,3 +176,6 @@ export const ecmConsumeCouponExcel = config.api + PREFIX + 'ecm-consume-coupon-e
//退单卡券积分列表详情
export const listConsumeCouponDetail = params => requests(PREFIX + '/list-consume-coupon-detail', params);
//是否是奥莱
export const isAolai = params => requests(PREFIX + '/is-aolai', params);
......@@ -125,7 +125,7 @@ export default {
this.show = true;
this.detailLoading = true;
try {
let res = await listConsumeCouponDetail({ id: row.couponId }); //2c90a8838020f6a2018020f6ed1f0000
let res = await listConsumeCouponDetail({ id: '2c90a8838020f6a2018020f6ed1f0000' || row.couponId }); //2c90a8838020f6a2018020f6ed1f0000
this.detailList = res.result || [];
} catch (err) {
this.$tips({ type: 'error', message: '加载列表失败' });
......
......@@ -3,7 +3,7 @@
<el-tab-pane label="退款记录" name="refund-list">
<refundList />
</el-tab-pane>
<el-tab-pane label="卡券积分回收明细" name="recycle-record-detail">
<el-tab-pane label="卡券积分回收明细" name="recycle-record-detail" v-if="isAolaiVal">
<recycleRecordDetail />
</el-tab-pane>
</el-tabs>
......@@ -11,16 +11,27 @@
<script>
import refundList from './refund-list.vue';
import { isAolai } from '@/service/api/cardApi.js';
import recycleRecordDetail from './recycle-record-detail.vue';
export default {
data() {
return {
activeName: 'refund-list'
activeName: 'refund-list',
isAolaiVal: false
};
},
components: {
refundList,
recycleRecordDetail
},
mounted() {
this.isAolai();
},
methods: {
async isAolai() {
const res = await isAolai();
this.isAolaiVal = res.result;
}
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment