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 @@
...
@@ -23,18 +23,23 @@
<template
v-if=
"scope.scope.oilList && scope.scope.oilList.length"
>
<template
v-if=
"scope.scope.oilList && scope.scope.oilList.length"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"list"
>
<span>
{{
filterData
(
scope
.
scope
.
oilList
,
'oilList'
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<template
v-for=
"(i,index) in scope.scope.oilList"
>
<el-popover
<template>
placement=
"top"
<div
width=
"fit-content"
:key=
"index"
trigger=
"hover"
class=
"item flex"
>
>
<div
{{
i
.
aliasName
}}
*
{{
i
.
amount
}}
(
{{
NP
.
times
(
i
.
amount
,
i
.
faceValue
)
}}
积分)
v-for=
"(item,index) in filterData(scope.scope.oilList,'oilList')"
</div>
:key=
"index"
</
template
>
>
</template>
{{
item
}}
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
scope
.
scope
.
oilList
.
length
}}
)
</span>
</el-popover>
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -47,18 +52,23 @@
...
@@ -47,18 +52,23 @@
>
>
<template
v-if=
"scope.scope.couponList && scope.scope.couponList.length"
>
<template
v-if=
"scope.scope.couponList && scope.scope.couponList.length"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"list"
>
<span>
{{
filterData
(
scope
.
scope
.
couponList
,
'couponList'
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<template
v-for=
"(i,index) in scope.scope.couponList"
>
<el-popover
<template>
placement=
"top"
<div
width=
"fit-content"
:key=
"index"
trigger=
"hover"
class=
"item flex"
>
>
<div
{{
i
.
couponName
}}
*
{{
i
.
amount
}}
v-for=
"(item,index) in filterData(scope.scope.couponList,'couponList')"
</div>
:key=
"index"
</
template
>
>
</template>
{{
item
}}
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
scope
.
scope
.
couponList
.
length
}}
)
</span>
</el-popover>
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -94,7 +104,7 @@ export default {
...
@@ -94,7 +104,7 @@ export default {
{
{
label
:
'保单号'
,
label
:
'保单号'
,
prop
:
'policyNo'
,
prop
:
'policyNo'
,
minWidth
:
1
00
minWidth
:
2
00
},
},
{
{
label
:
'用户姓名'
,
label
:
'用户姓名'
,
...
@@ -103,7 +113,7 @@ export default {
...
@@ -103,7 +113,7 @@ export default {
},
},
{
{
label
:
'身份证号'
,
label
:
'身份证号'
,
minWidth
:
1
00
,
minWidth
:
2
00
,
prop
:
'idCardNo'
,
prop
:
'idCardNo'
,
},
},
{
{
...
@@ -150,17 +160,27 @@ export default {
...
@@ -150,17 +160,27 @@ export default {
methods
:
{
methods
:
{
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
searchForm
.
batchNo
=
this
.
detailObj
.
batchNo
this
.
searchForm
.
recordId
=
this
.
detailObj
.
recordId
this
.
loading
=
false
this
.
loading
=
false
resolve
()
resolve
()
})
})
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'update:detailObj'
,
{})
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
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.more-info
{
white-space
:
nowrap
;
color
:
#5850ff
;
cursor
:
pointer
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/points/index.vue
View file @
85fedc0
...
@@ -13,8 +13,12 @@
...
@@ -13,8 +13,12 @@
type=
"default"
type=
"default"
plain
plain
@
click=
"jump"
@
click=
"jump"
size=
"small"
>
客户积分充值
</el-button>
>
客户积分充值
</el-button>
<el-button
@
click=
"handleExport"
>
导出
<el-button
@
click=
"handleExport"
size=
"small"
>
导出
</el-button>
</el-button>
</div>
</div>
<div
class=
"tabelList"
>
<div
class=
"tabelList"
>
...
@@ -24,6 +28,7 @@
...
@@ -24,6 +28,7 @@
:searchForm=
"tableSearchForm"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
>
<template
<template
slot=
"customerNumber"
slot=
"customerNumber"
...
@@ -31,7 +36,7 @@
...
@@ -31,7 +36,7 @@
>
>
<div
<div
class=
"link"
class=
"link"
@
click=
"openDetail(scope.scope.
batchNo
)"
@
click=
"openDetail(scope.scope.
id
)"
>
{{
scope
.
scope
.
customerNumber
}}
</div>
>
{{
scope
.
scope
.
customerNumber
}}
</div>
</
template
>
</
template
>
<
template
<
template
...
@@ -85,7 +90,8 @@ export default {
...
@@ -85,7 +90,8 @@ export default {
policyNo
:
''
,
policyNo
:
''
,
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
auditDate
:
[]
auditDate
:
[],
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
,
}
,
searchFormData
:
[
searchFormData
:
[
{
{
...
@@ -197,8 +203,14 @@ export default {
...
@@ -197,8 +203,14 @@ export default {
mounted
()
{
mounted
()
{
}
,
}
,
methods
:
{
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
resolve
()
}
)
}
,
handleSearch
()
{
handleSearch
()
{
this
.
tableSearchForm
=
this
.
getParams
()
//
this.tableSearchForm = this.getParams()
this
.
$refs
.
listRef
.
refreshTable
()
this
.
$refs
.
listRef
.
refreshTable
()
}
,
}
,
handleReset
()
{
handleReset
()
{
...
@@ -231,10 +243,10 @@ export default {
...
@@ -231,10 +243,10 @@ export default {
}
}
}
)
}
)
}
,
}
,
openDetail
(
batchNo
)
{
openDetail
(
recordId
)
{
this
.
detailObj
=
{
this
.
detailObj
=
{
show
:
true
,
show
:
true
,
batchNo
recordId
}
}
}
,
}
,
editForm
(
row
,
type
=
''
)
{
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