Commit a0d9a2f2 by zhangquan

修改消费类型

1 parent f26f3c55
...@@ -114,8 +114,6 @@ const getIntegralDetailExport = params => { ...@@ -114,8 +114,6 @@ const getIntegralDetailExport = params => {
}) })
} }
/**自店服务 */ /**自店服务 */
const getghDirectionalGiftListApi = params => { const getghDirectionalGiftListApi = params => {
params.method = 'scrm.api.coupon.gh.group.equity.coupon.list' params.method = 'scrm.api.coupon.gh.group.equity.coupon.list'
...@@ -127,7 +125,7 @@ const getghDirectionalGiftListApi = params => { ...@@ -127,7 +125,7 @@ const getghDirectionalGiftListApi = params => {
}) })
} }
/** /**
* 客户积分导入 * 客户积分导入
*/ */
const importCustomerIntegral = params => { const importCustomerIntegral = params => {
params.method = 'scrm.api.shopmall.integral.import.excel.analysis' params.method = 'scrm.api.shopmall.integral.import.excel.analysis'
...@@ -141,7 +139,7 @@ const importCustomerIntegral = params => { ...@@ -141,7 +139,7 @@ const importCustomerIntegral = params => {
}) })
} }
/** /**
* 客户积分充值 * 客户积分充值
*/ */
const updateCustomerIntegral = params => { const updateCustomerIntegral = params => {
params.method = 'scrm.api.shopmall.integral.import.save.or.update' params.method = 'scrm.api.shopmall.integral.import.save.or.update'
...@@ -154,7 +152,7 @@ const updateCustomerIntegral = params => { ...@@ -154,7 +152,7 @@ const updateCustomerIntegral = params => {
} }
/** /**
* 获取油劵列表 * 获取油劵列表
*/ */
const getOilCouponList = params => { const getOilCouponList = params => {
params.method = 'scrm.api.shopmall.goods.oil.coupon.list' params.method = 'scrm.api.shopmall.goods.oil.coupon.list'
...@@ -220,7 +218,7 @@ const exportIntegralList = params => { ...@@ -220,7 +218,7 @@ const exportIntegralList = params => {
}) })
} }
/** /**
* 客户积分审核 * 客户积分审核
*/ */
const auditIntegral = params => { const auditIntegral = params => {
params.method = 'scrm.api.shopmall.integral.import.audit' params.method = 'scrm.api.shopmall.integral.import.audit'
...@@ -229,8 +227,29 @@ const auditIntegral = params => { ...@@ -229,8 +227,29 @@ const auditIntegral = params => {
data: params data: params
}) })
} }
/**
* 获取所有的积分规则记录
*/
const getTypeListApi = params => {
params.method = 'scrm.api.shopmall.integral.rule.list'
return http({
url: 'rop-scrm-shopmall/router',
data: params
})
}
export default { export default {
getList, getOrderDetail, orderExport, orderImport, integralorderSettle, getIntegralCustomerList, getIntegralCustomerExport, getIntegralDetailList, customerDetail, getIntegralDetailExport, getList,
getOrderDetail,
orderExport,
orderImport,
integralorderSettle,
getIntegralCustomerList,
getIntegralCustomerExport,
getIntegralDetailList,
customerDetail,
getIntegralDetailExport,
getghDirectionalGiftListApi, getghDirectionalGiftListApi,
importCustomerIntegral, importCustomerIntegral,
updateCustomerIntegral, updateCustomerIntegral,
...@@ -240,5 +259,6 @@ export default { ...@@ -240,5 +259,6 @@ export default {
exportIntegralList, exportIntegralList,
getIntegralDetail, getIntegralDetail,
getCustomerIntegralList, getCustomerIntegralList,
auditIntegral auditIntegral,
getTypeListApi
} }
...@@ -46,9 +46,8 @@ export default { ...@@ -46,9 +46,8 @@ export default {
name: 'ruleType', name: 'ruleType',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'confId', optionId: 'ruleType',
optionLabel: 'confLabel', optionLabel: 'ruleDesc'
optionsName: 'ruleTypeList'
} }
], ],
detailData: {}, detailData: {},
...@@ -102,45 +101,27 @@ export default { ...@@ -102,45 +101,27 @@ export default {
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据 ruleTypeList: []
baseData: {
ruleTypeList: [
{
confId: 'SHOPPING_GIVE',
confLabel: '购物赠送'
},
{
confId: 'SHOPPING_DEDUCT',
confLabel: '购物抵扣'
},
{
confId: 'SHOP_VERIFY',
confLabel: '门店核销'
},
{
confId: 'GIVE_BACK',
confLabel: '退还积分'
},
{
confId: 'GR_SEND',
confLabel: '保险返现'
},
{
confId: 'CANCLE_GIVE',
confLabel: '售后扣减'
}
]
}
} }
}, },
created() { created() {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.getTypeList()
}, },
mounted() { mounted() {
this.$utils.getOptionsList(this, 'showFormData') this.$utils.getOptionsList(this, 'showFormData')
this.customerDetail() this.customerDetail()
}, },
methods: { methods: {
getTypeList() {
this.$apis.points.getTypeListApi({}).then(res => {
if (res?.length) {
this.ruleTypeList = res
const target = this.showFormData.find(item => item.name == 'ruleType')
target.optionList = res
}
})
},
customerDetail() { customerDetail() {
const params = { const params = {
customerId: this.routeInfo.id customerId: this.routeInfo.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!