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 => { ...@@ -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 { export default {
getList, getList,
...@@ -249,5 +259,6 @@ export default { ...@@ -249,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
......
...@@ -425,7 +425,7 @@ export default { ...@@ -425,7 +425,7 @@ export default {
importObject: {}, importObject: {},
totalKey: Date.now(), totalKey: Date.now(),
pageObject: { pageObject: {
id: '', id: null,
disabled: false, disabled: false,
batchNo: '', batchNo: '',
status: '' status: ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!