Commit ee7001e5 by 王志慧

Merge branch 'v3.22.2' of http://192.168.3.233:8090/saas/scrm-micro-points into v3.22.2

2 parents 9eb708f3 53d7d2e0
......@@ -228,6 +228,16 @@ const auditIntegral = params => {
})
}
/**
* 获取所有的积分规则记录
*/
const getTypeListApi = params => {
params.method = 'scrm.api.shopmall.integral.rule.list'
return http({
url: 'rop-scrm-shopmall/router',
data: params
})
}
export default {
getList,
......@@ -249,5 +259,6 @@ export default {
exportIntegralList,
getIntegralDetail,
getCustomerIntegralList,
auditIntegral
auditIntegral,
getTypeListApi
}
......@@ -46,9 +46,8 @@ export default {
name: 'ruleType',
type: 'select',
optionList: [],
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'ruleTypeList'
optionId: 'ruleType',
optionLabel: 'ruleDesc'
}
],
detailData: {},
......@@ -102,45 +101,27 @@ export default {
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
// 基本数据
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: '售后扣减'
}
]
}
ruleTypeList: []
}
},
created() {
this.routeInfo = this.$route.query
this.getTypeList()
},
mounted() {
this.$utils.getOptionsList(this, 'showFormData')
this.customerDetail()
},
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() {
const params = {
customerId: this.routeInfo.id
......
......@@ -425,7 +425,7 @@ export default {
importObject: {},
totalKey: Date.now(),
pageObject: {
id: '',
id: null,
disabled: false,
batchNo: '',
status: ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!