Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
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 85fedc07
authored
Dec 18, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
e2e62ce9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
34 deletions
src/views/points/add.vue
src/views/points/components/detailDialog.vue
src/views/points/index.vue
src/views/points/add.vue
View file @
85fedc0
This diff is collapsed.
Click to expand it.
src/views/points/components/detailDialog.vue
View file @
85fedc0
...
...
@@ -23,18 +23,23 @@
<template
v-if=
"scope.scope.oilList && scope.scope.oilList.length"
>
<div
class=
"flex"
>
<div
class=
"list"
>
<template
v-for=
"(i,index) in scope.scope.oilList"
>
<template>
<div
:key=
"index"
class=
"item flex"
>
{{
i
.
aliasName
}}
*
{{
i
.
amount
}}
(
{{
NP
.
times
(
i
.
amount
,
i
.
faceValue
)
}}
积分)
</div>
</
template
>
</template>
</div>
<span>
{{
filterData
(
scope
.
scope
.
oilList
,
'oilList'
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<el-popover
placement=
"top"
width=
"fit-content"
trigger=
"hover"
>
<div
v-for=
"(item,index) in filterData(scope.scope.oilList,'oilList')"
:key=
"index"
>
{{
item
}}
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
scope
.
scope
.
oilList
.
length
}}
)
</span>
</el-popover>
</div>
</
template
>
<
template
v-else
>
...
...
@@ -47,18 +52,23 @@
>
<template
v-if=
"scope.scope.couponList && scope.scope.couponList.length"
>
<div
class=
"flex"
>
<div
class=
"list"
>
<template
v-for=
"(i,index) in scope.scope.couponList"
>
<template>
<div
:key=
"index"
class=
"item flex"
>
{{
i
.
couponName
}}
*
{{
i
.
amount
}}
</div>
</
template
>
</template>
</div>
<span>
{{
filterData
(
scope
.
scope
.
couponList
,
'couponList'
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<el-popover
placement=
"top"
width=
"fit-content"
trigger=
"hover"
>
<div
v-for=
"(item,index) in filterData(scope.scope.couponList,'couponList')"
:key=
"index"
>
{{
item
}}
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
scope
.
scope
.
couponList
.
length
}}
)
</span>
</el-popover>
</div>
</
template
>
<
template
v-else
>
...
...
@@ -94,7 +104,7 @@ export default {
{
label
:
'保单号'
,
prop
:
'policyNo'
,
minWidth
:
1
00
minWidth
:
2
00
},
{
label
:
'用户姓名'
,
...
...
@@ -103,7 +113,7 @@ export default {
},
{
label
:
'身份证号'
,
minWidth
:
1
00
,
minWidth
:
2
00
,
prop
:
'idCardNo'
,
},
{
...
...
@@ -150,17 +160,27 @@ export default {
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
searchForm
.
batchNo
=
this
.
detailObj
.
batchNo
this
.
searchForm
.
recordId
=
this
.
detailObj
.
recordId
this
.
loading
=
false
resolve
()
})
},
handleClose
()
{
this
.
$emit
(
'update:detailObj'
,
{})
}
},
filterData
(
list
,
name
)
{
return
list
?.
map
(
i
=>
{
return
name
==
'oilList'
?
`
${
i
.
aliasName
}
*
${
i
.
amount
}
(
${
NP
.
times
(
i
.
amount
,
i
.
faceValue
)}
积分)`
:
`
${
i
.
couponName
}
*
${
i
.
amount
}
`
})
||
[]
},
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.more-info
{
white-space
:
nowrap
;
color
:
#5850ff
;
cursor
:
pointer
;
}
</
style
>
\ No newline at end of file
src/views/points/index.vue
View file @
85fedc0
...
...
@@ -13,8 +13,12 @@
type=
"default"
plain
@
click=
"jump"
size=
"small"
>
客户积分充值
</el-button>
<el-button
@
click=
"handleExport"
>
导出
<el-button
@
click=
"handleExport"
size=
"small"
>
导出
</el-button>
</div>
<div
class=
"tabelList"
>
...
...
@@ -24,6 +28,7 @@
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<template
slot=
"customerNumber"
...
...
@@ -31,7 +36,7 @@
>
<div
class=
"link"
@
click=
"openDetail(scope.scope.
batchNo
)"
@
click=
"openDetail(scope.scope.
id
)"
>
{{
scope
.
scope
.
customerNumber
}}
</div>
</
template
>
<
template
...
...
@@ -85,7 +90,8 @@ export default {
policyNo
:
''
,
customerName
:
''
,
customerPhone
:
''
,
auditDate
:
[]
auditDate
:
[],
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
,
searchFormData
:
[
{
...
...
@@ -197,8 +203,14 @@ export default {
mounted
()
{
}
,
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
resolve
()
}
)
}
,
handleSearch
()
{
this
.
tableSearchForm
=
this
.
getParams
()
//
this.tableSearchForm = this.getParams()
this
.
$refs
.
listRef
.
refreshTable
()
}
,
handleReset
()
{
...
...
@@ -231,10 +243,10 @@ export default {
}
}
)
}
,
openDetail
(
batchNo
)
{
openDetail
(
recordId
)
{
this
.
detailObj
=
{
show
:
true
,
batchNo
recordId
}
}
,
editForm
(
row
,
type
=
''
)
{
...
...
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