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 ee7001e5
authored
Dec 13, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.22.2' of
http://192.168.3.233:8090/saas/scrm-micro-points
into v3.22.2
2 parents
9eb708f3
53d7d2e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
34 deletions
src/api/modules/points.js
src/views/pointsList/detail.vue
src/views/storeCredit/add.vue
src/api/modules/points.js
View file @
ee7001e
...
@@ -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
}
}
src/views/pointsList/detail.vue
View file @
ee7001e
...
@@ -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
...
...
src/views/storeCredit/add.vue
View file @
ee7001e
...
@@ -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
:
''
...
...
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