Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-points
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a0d9a2f2
authored
Dec 12, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改消费类型
1 parent
f26f3c55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
40 deletions
src/api/modules/points.js
src/views/pointsList/detail.vue
src/api/modules/points.js
View file @
a0d9a2f
...
...
@@ -114,8 +114,6 @@ const getIntegralDetailExport = params => {
})
}
/**自店服务 */
const
getghDirectionalGiftListApi
=
params
=>
{
params
.
method
=
'scrm.api.coupon.gh.group.equity.coupon.list'
...
...
@@ -127,7 +125,7 @@ const getghDirectionalGiftListApi = params => {
})
}
/**
* 客户积分导入
* 客户积分导入
*/
const
importCustomerIntegral
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.import.excel.analysis'
...
...
@@ -141,7 +139,7 @@ const importCustomerIntegral = params => {
})
}
/**
* 客户积分充值
* 客户积分充值
*/
const
updateCustomerIntegral
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.import.save.or.update'
...
...
@@ -154,7 +152,7 @@ const updateCustomerIntegral = params => {
}
/**
* 获取油劵列表
* 获取油劵列表
*/
const
getOilCouponList
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.goods.oil.coupon.list'
...
...
@@ -220,7 +218,7 @@ const exportIntegralList = params => {
})
}
/**
* 客户积分审核
* 客户积分审核
*/
const
auditIntegral
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.import.audit'
...
...
@@ -229,8 +227,29 @@ const auditIntegral = 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
{
getList
,
getOrderDetail
,
orderExport
,
orderImport
,
integralorderSettle
,
getIntegralCustomerList
,
getIntegralCustomerExport
,
getIntegralDetailList
,
customerDetail
,
getIntegralDetailExport
,
getList
,
getOrderDetail
,
orderExport
,
orderImport
,
integralorderSettle
,
getIntegralCustomerList
,
getIntegralCustomerExport
,
getIntegralDetailList
,
customerDetail
,
getIntegralDetailExport
,
getghDirectionalGiftListApi
,
importCustomerIntegral
,
updateCustomerIntegral
,
...
...
@@ -240,5 +259,6 @@ export default {
exportIntegralList
,
getIntegralDetail
,
getCustomerIntegralList
,
auditIntegral
auditIntegral
,
getTypeListApi
}
src/views/pointsList/detail.vue
View file @
a0d9a2f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment