Commit 9634e178 by chenwq

优惠券导出

1 parent ff52aeff
......@@ -106,4 +106,16 @@ const exportCoupon = params => {
returnAll: true
})
}
export default { getListApi, getDetailListApi, getTypeList, addCouponApi, updateCouponApi, deleteCouponApi, commodityAddSeviceMerchant, getDistinctColum, exportCoupon }
const exportCustomerCoupon = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = 'dj.api.life.customer.coupon.exportExcel'
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getListApi, getDetailListApi, getTypeList, addCouponApi, updateCouponApi, deleteCouponApi, commodityAddSeviceMerchant, getDistinctColum, exportCoupon, exportCustomerCoupon }
......@@ -393,7 +393,11 @@ export default {
currentPage: 1,
pageSize: 9999
}
this.$apis.coupons.exportCoupon(params).then(res => {
let apiName = {
storeList: 'exportCoupon',
couponsDetail: 'exportCustomerCoupon'
}
this.$apis.coupons[apiName[this.activeName] || 'storeList'](params).then(res => {
aToExport(res.data)
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!