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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
67 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
...
@@ -54,17 +54,18 @@
...
@@ -54,17 +54,18 @@
>
下载模板
<
/a
>
>
下载模板
<
/a
>
<
/div
>
<
/div
>
<
template
v
-
if
=
"importObject.detailList"
>
<
template
v
-
if
=
"importObject.detailList"
>
<
div
class
=
"file-info flex"
>
<
template
v
-
if
=
"importObject.name"
>
<
template
v
-
if
=
"importObject.name"
>
<
div
class
=
"file-info flex"
>
<
div
class
=
"el-icon-success"
><
/div
>
<
div
class
=
"el-icon-success"
><
/div
>
文件格式正确(
{{
importObject
.
name
}}
)
文件格式正确(
{{
importObject
.
name
}}
)
<
/template
>
<
/div
>
<
/div
>
<
/template
>
<
div
class
=
"table-box"
>
<
div
class
=
"table-box"
>
<
GLTable
<
GLTable
:
tableData
=
"importObject.detailList"
:
tableData
=
"importObject.detailList"
:
tableParams
=
"tableParams"
:
tableParams
=
"tableParams"
:
hasPage
=
"false"
:
hasPage
=
"false"
ref
=
"listRef"
>
>
<
template
<
template
slot
=
"cashBackValue"
slot
=
"cashBackValue"
...
@@ -102,16 +103,23 @@
...
@@ -102,16 +103,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"
width
=
"fit-content"
trigger
=
"hover"
>
<
div
<
div
v
-
for
=
"(item,index) in filterData(scope.scope.oilList,'oilList')"
:
key
=
"index"
:
key
=
"index"
class
=
"item flex"
>
>
{{
i
.
aliasName
}}
*
{{
i
.
amount
}}
({{
NP
.
times
(
i
.
amount
,
i
.
faceValue
)
}}
积分
)
<
/div
>
{{
item
}}
<
/template
>
<
/template
>
<
/div
>
<
/div
>
<
span
class
=
"more-info"
slot
=
"reference"
>
...({{
scope
.
scope
.
oilList
.
length
}}
)
<
/span
>
<
/el-popover
>
<
template
v
-
if
=
"!pageObject.disabled"
>
<
template
v
-
if
=
"!pageObject.disabled"
>
<
el
-
button
<
el
-
button
type
=
"text"
type
=
"text"
...
@@ -138,16 +146,23 @@
...
@@ -138,16 +146,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"
width
=
"fit-content"
trigger
=
"hover"
>
<
div
<
div
v
-
for
=
"(item,index) in filterData(scope.scope.couponList,'couponList')"
:
key
=
"index"
:
key
=
"index"
class
=
"item flex"
>
>
{{
i
.
couponName
}}
*
{{
i
.
amount
}}
<
/div
>
{{
item
}}
<
/template
>
<
/template
>
<
/div
>
<
/div
>
<
span
class
=
"more-info"
slot
=
"reference"
>
...({{
scope
.
scope
.
couponList
.
length
}}
)
<
/span
>
<
/el-popover
>
<
template
v
-
if
=
"!pageObject.disabled"
>
<
template
v
-
if
=
"!pageObject.disabled"
>
<
el
-
button
<
el
-
button
type
=
"text"
type
=
"text"
...
@@ -224,10 +239,6 @@
...
@@ -224,10 +239,6 @@
import
NP
from
'number-precision'
import
NP
from
'number-precision'
import
pointsConfig
from
'./components/pointsConfig.vue'
import
pointsConfig
from
'./components/pointsConfig.vue'
import
importErrDialog
from
'./components/importErrDialog.vue'
import
importErrDialog
from
'./components/importErrDialog.vue'
let
chargeObject
=
{
gasCardServiceCharge
:
0
,
passageServiceCharge
:
0
}
export
default
{
export
default
{
components
:
{
components
:
{
pointsConfig
,
pointsConfig
,
...
@@ -286,9 +297,9 @@ export default {
...
@@ -286,9 +297,9 @@ export default {
name
:
'passageServiceCharge'
,
name
:
'passageServiceCharge'
,
formatter
:
(
cell
)
=>
{
formatter
:
(
cell
)
=>
{
const
{
passageService
}
=
cell
,
const
{
passageService
}
=
cell
,
{
passageServiceCharge
}
=
chargeObject
,
{
passageServiceCharge
}
=
this
.
chargeObject
,
passageSum
=
passageService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
passageSum
=
passageService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
sum
=
NP
.
times
(
passageSum
,
NP
.
divide
(
passageServiceCharge
,
100
)
).
toFixed
(
2
)
sum
=
NP
.
times
(
passageSum
,
passageServiceCharge
,
0.01
).
toFixed
(
2
)
return
`${passageSum
}
*${passageServiceCharge
}
%=${sum
}
`
return
`${passageSum
}
*${passageServiceCharge
}
%=${sum
}
`
}
}
}
,
}
,
...
@@ -297,9 +308,9 @@ export default {
...
@@ -297,9 +308,9 @@ export default {
name
:
'gasCardServiceCharge'
,
name
:
'gasCardServiceCharge'
,
formatter
:
(
cell
)
=>
{
formatter
:
(
cell
)
=>
{
const
{
gasService
}
=
cell
,
const
{
gasService
}
=
cell
,
{
gasCardServiceCharge
}
=
chargeObject
,
{
gasCardServiceCharge
}
=
this
.
chargeObject
,
gasCardSum
=
gasService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
gasCardSum
=
gasService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
sum
=
NP
.
times
(
gasCardSum
,
NP
.
divide
(
gasCardServiceCharge
,
100
)
).
toFixed
(
2
)
sum
=
NP
.
times
(
gasCardSum
,
gasCardServiceCharge
,
0.01
).
toFixed
(
2
)
return
`${gasCardSum
}
*${gasCardServiceCharge
}
%=${sum
}
`
return
`${gasCardSum
}
*${gasCardServiceCharge
}
%=${sum
}
`
}
}
}
,
}
,
...
@@ -308,9 +319,9 @@ export default {
...
@@ -308,9 +319,9 @@ export default {
name
:
'sum'
,
name
:
'sum'
,
formatter
:
(
cell
)
=>
{
formatter
:
(
cell
)
=>
{
const
{
total
,
gasService
,
passageService
}
=
cell
,
const
{
total
,
gasService
,
passageService
}
=
cell
,
{
gasCardServiceCharge
,
passageServiceCharge
}
=
chargeObject
,
{
gasCardServiceCharge
,
passageServiceCharge
}
=
this
.
chargeObject
,
gasPrice
=
NP
.
times
(
gasService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
NP
.
divide
(
gasCardServiceCharge
,
100
)
),
gasPrice
=
NP
.
times
(
gasService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
gasCardServiceCharge
,
0.01
),
passagePrice
=
NP
.
times
(
passageService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
NP
.
divide
(
passageServiceCharge
,
100
)
),
passagePrice
=
NP
.
times
(
passageService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
passageServiceCharge
,
0.01
),
totalPrice
=
total
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
)
totalPrice
=
total
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
)
return
NP
.
plus
(
gasPrice
,
passagePrice
,
totalPrice
).
toFixed
(
2
)
return
NP
.
plus
(
gasPrice
,
passagePrice
,
totalPrice
).
toFixed
(
2
)
...
@@ -322,7 +333,7 @@ export default {
...
@@ -322,7 +333,7 @@ export default {
{
{
label
:
'保单号'
,
label
:
'保单号'
,
prop
:
'policyNo'
,
prop
:
'policyNo'
,
minWidth
:
1
00
minWidth
:
2
00
}
,
}
,
{
{
label
:
'用户姓名'
,
label
:
'用户姓名'
,
...
@@ -332,7 +343,7 @@ export default {
...
@@ -332,7 +343,7 @@ export default {
{
{
label
:
'身份证号'
,
label
:
'身份证号'
,
prop
:
'idCardNo'
,
prop
:
'idCardNo'
,
minWidth
:
1
00
minWidth
:
2
00
}
,
}
,
{
{
label
:
'用户手机号'
,
label
:
'用户手机号'
,
...
@@ -341,13 +352,13 @@ export default {
...
@@ -341,13 +352,13 @@ export default {
}
,
}
,
{
{
label
:
'返现金额'
,
label
:
'返现金额'
,
minWidth
:
200
,
minWidth
:
128
,
addHtml
:
'cashBackValue'
,
addHtml
:
'cashBackValue'
,
}
,
}
,
{
{
label
:
'商品兑换积分'
,
label
:
'商品兑换积分'
,
addHtml
:
'buyValue'
,
addHtml
:
'buyValue'
,
minWidth
:
200
minWidth
:
128
}
,
}
,
{
{
label
:
'赠送油券'
,
label
:
'赠送油券'
,
...
@@ -376,20 +387,29 @@ export default {
...
@@ -376,20 +387,29 @@ export default {
disabled
:
false
,
disabled
:
false
,
batchNo
:
''
,
batchNo
:
''
,
status
:
''
status
:
''
}
,
chargeObject
:
{
gasCardServiceCharge
:
0
,
passageServiceCharge
:
0
}
}
}
}
}
,
}
,
mounted
()
{
mounted
()
{
const
{
id
,
type
}
=
this
.
$route
.
query
const
{
id
,
type
}
=
this
.
$route
.
query
if
(
id
)
this
.
getDetail
(
id
,
type
)
if
(
id
)
this
.
getDetail
(
id
,
type
)
this
.
getMerchantCharge
()
else
this
.
getMerchantCharge
()
}
,
}
,
methods
:
{
methods
:
{
async
getDetail
(
id
,
type
)
{
async
getDetail
(
id
,
type
)
{
try
{
try
{
this
.
loading
=
true
this
.
loading
=
true
const
res
=
await
this
.
$apis
.
points
.
getIntegralDetail
({
id
}
),
const
res
=
await
this
.
$apis
.
points
.
getIntegralDetail
({
id
}
),
{
detailList
}
=
res
{
detailList
,
merchantId
,
merchantName
}
=
res
this
.
configForm
=
{
merchantId
,
merchantName
}
this
.
getMerchantCharge
()
detailList
.
map
((
row
,
index
)
=>
{
detailList
.
map
((
row
,
index
)
=>
{
this
.
setRowTotal
(
row
,
index
)
this
.
setRowTotal
(
row
,
index
)
this
.
setPassageService
(
row
,
index
)
this
.
setPassageService
(
row
,
index
)
...
@@ -406,6 +426,7 @@ export default {
...
@@ -406,6 +426,7 @@ export default {
detailList
detailList
}
}
this
.
loading
=
false
this
.
loading
=
false
this
.
setTableHeight
(
detailList
)
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
loading
=
false
this
.
loading
=
false
setTimeout
(()
=>
this
.
$router
.
go
(
-
1
),
1
e3
)
setTimeout
(()
=>
this
.
$router
.
go
(
-
1
),
1
e3
)
...
@@ -478,12 +499,14 @@ export default {
...
@@ -478,12 +499,14 @@ export default {
const
reader
=
new
FileReader
()
const
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
async
event
=>
{
reader
.
onload
=
async
event
=>
{
this
.
loading
=
true
this
.
$refs
.
file
.
value
=
''
this
.
$refs
.
file
.
value
=
''
const
imgFile
=
event
.
target
.
result
,
const
imgFile
=
event
.
target
.
result
,
[,
arrBase64
]
=
imgFile
.
split
(
','
),
[,
arrBase64
]
=
imgFile
.
split
(
','
),
splitStr
=
file
.
name
.
split
(
'.'
),
splitStr
=
file
.
name
.
split
(
'.'
),
fileUrl
=
splitStr
.
at
(
-
1
)
+
'@'
+
arrBase64
,
fileUrl
=
splitStr
.
at
(
-
1
)
+
'@'
+
arrBase64
,
{
code
,
message
,
data
}
=
await
this
.
$apis
.
points
.
importCustomerIntegral
({
file
:
fileUrl
}
)
{
code
,
message
,
data
}
=
await
this
.
$apis
.
points
.
importCustomerIntegral
({
file
:
fileUrl
}
)
this
.
loading
=
false
if
(
code
==
0
)
{
if
(
code
==
0
)
{
const
{
importStatue
,
const
{
importStatue
,
detailList
,
detailList
,
...
@@ -504,6 +527,7 @@ export default {
...
@@ -504,6 +527,7 @@ export default {
}
)
}
)
this
.
totalForm
.
customerTotal
=
detailList
.
length
this
.
totalForm
.
customerTotal
=
detailList
.
length
this
.
validateField
(
'table'
)
this
.
validateField
(
'table'
)
this
.
setTableHeight
(
detailList
)
}
else
this
.
importObj
=
{
}
else
this
.
importObj
=
{
errorCount
,
errorCount
,
errorUrl
,
errorUrl
,
...
@@ -511,14 +535,25 @@ export default {
...
@@ -511,14 +535,25 @@ export default {
show
:
true
show
:
true
}
}
}
}
else
th
row
message
||
''
else
th
is
.
$message
.
error
(
message
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
loading
=
false
this
.
$refs
.
file
.
value
=
''
this
.
$refs
.
file
.
value
=
''
if
(
error
)
this
.
$message
.
error
(
error
)
if
(
error
)
this
.
$message
.
error
(
error
)
}
}
}
,
}
,
setTableHeight
(
detailList
=
[])
{
const
{
listRef
}
=
this
.
$refs
,
{
id
}
=
this
.
pageObject
,
height
=
id
?
56
:
67.39
if
(
listRef
)
{
let
length
=
detailList
.
length
listRef
.
tableHeightValues
=
`${(length > 10 ? 10 : length) * height + 56
}
px`
}
else
setTimeout
(()
=>
{
this
.
setTableHeight
(
detailList
)
}
,
100
)
}
,
validateField
(
id
)
{
validateField
(
id
)
{
this
.
$refs
.
fromRef
.
$refs
.
formRef
.
validateField
(
id
)
this
.
$refs
.
fromRef
.
$refs
.
formRef
.
validateField
(
id
)
}
,
}
,
...
@@ -529,8 +564,9 @@ export default {
...
@@ -529,8 +564,9 @@ export default {
if
(
res
)
{
if
(
res
)
{
this
.
totalFormData
.
map
(
e
=>
{
this
.
totalFormData
.
map
(
e
=>
{
if
([
'gasCardServiceCharge'
,
'passageServiceCharge'
].
includes
(
e
.
name
))
{
if
([
'gasCardServiceCharge'
,
'passageServiceCharge'
].
includes
(
e
.
name
))
{
e
.
label
=
e
.
label
.
replace
(
/
\d
+/g
,
res
[
e
.
name
]
||
0
)
const
val
=
res
[
e
.
name
]
||
0
chargeObject
[
e
.
name
]
=
res
[
e
.
name
]
||
0
e
.
label
=
e
.
label
.
replace
(
/
\d
+/g
,
val
)
this
.
chargeObject
[
e
.
name
]
=
val
}
}
}
)
}
)
this
.
updateView
()
this
.
updateView
()
...
@@ -610,7 +646,12 @@ export default {
...
@@ -610,7 +646,12 @@ export default {
}
}
}
}
}
)
}
)
}
}
,
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
>
...
@@ -707,20 +748,24 @@ export default {
...
@@ -707,20 +748,24 @@ export default {
}
}
}
}
.
file
-
info
{
.
file
-
info
{
height
:
32
px
;
height
:
20
px
;
font
-
size
:
14
px
;
font
-
size
:
14
px
;
color
:
#
999999
;
color
:
#
999999
;
align
-
items
:
center
;
margin
-
top
:
10
px
;
.
el
-
icon
-
success
{
.
el
-
icon
-
success
{
color
:
#
67
c23a
;
color
:
#
67
c23a
;
line
-
height
:
32
px
;
line
-
height
:
20
px
;
margin
-
right
:
4
px
;
margin
-
right
:
4
px
;
}
}
}
}
.
table
-
box
{
.
table
-
box
{
width
:
864
px
;
min
-
width
:
864
px
;
max
-
width
:
calc
(
100
vw
-
446
px
);
background
:
#
f9f9f9
;
background
:
#
f9f9f9
;
border
-
radius
:
4
px
;
border
-
radius
:
4
px
;
padding
:
20
px
;
padding
:
20
px
;
margin
-
top
:
10
px
;
/deep/
.
el
-
input
{
/deep/
.
el
-
input
{
width
:
100
%
;
width
:
100
%
;
}
}
...
@@ -752,4 +797,9 @@ export default {
...
@@ -752,4 +797,9 @@ export default {
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
}
}
.
more
-
info
{
white
-
space
:
nowrap
;
color
:
#
5850
ff
;
cursor
:
pointer
;
}
<
/style>
<
/style>
\ No newline at end of file
\ No newline at end of file
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"
width=
"fit-content"
trigger=
"hover"
>
<div
<div
v-for=
"(item,index) in filterData(scope.scope.oilList,'oilList')"
:key=
"index"
:key=
"index"
class=
"item flex"
>
>
{{
i
.
aliasName
}}
*
{{
i
.
amount
}}
(
{{
NP
.
times
(
i
.
amount
,
i
.
faceValue
)
}}
积分)
{{
item
}}
</div>
</
template
>
</template>
</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"
width=
"fit-content"
trigger=
"hover"
>
<div
<div
v-for=
"(item,index) in filterData(scope.scope.couponList,'couponList')"
:key=
"index"
:key=
"index"
class=
"item flex"
>
>
{{
i
.
couponName
}}
*
{{
i
.
amount
}}
{{
item
}}
</div>
</
template
>
</template>
</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
:
{
handleSearch
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
resolve
()
}
)
}
,
handleSearch
()
{
// 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