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 7a13d84b
authored
Dec 22, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
替换油卡积分
1 parent
0a5cc243
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
src/views/points/add.vue
src/views/points/components/detailDialog.vue
src/views/points/components/pointsConfig.vue
src/views/points/add.vue
View file @
7a13d84
...
@@ -470,7 +470,7 @@ export default {
...
@@ -470,7 +470,7 @@ export default {
oilList
.
push
({
oilList
.
push
({
oilCouponId
:
o
.
oilCouponId
,
oilCouponId
:
o
.
oilCouponId
,
amount
:
o
.
amount
,
amount
:
o
.
amount
,
faceValue
:
o
.
faceValu
e
,
salesPrice
:
o
.
salesPric
e
,
aliasName
:
o
.
aliasName
aliasName
:
o
.
aliasName
}
)
}
)
}
)
}
)
...
@@ -613,7 +613,7 @@ export default {
...
@@ -613,7 +613,7 @@ export default {
setRowTotal
(
row
,
index
)
{
setRowTotal
(
row
,
index
)
{
const
{
oilList
,
cashBackValue
,
buyValue
}
=
row
const
{
oilList
,
cashBackValue
,
buyValue
}
=
row
let
total
=
NP
.
plus
((
cashBackValue
||
0
),
(
buyValue
||
0
))
let
total
=
NP
.
plus
((
cashBackValue
||
0
),
(
buyValue
||
0
))
oilList
&&
oilList
.
map
(
i
=>
total
+=
NP
.
times
((
i
.
amount
||
0
),
(
i
.
faceValue
||
0
)
))
oilList
&&
oilList
.
map
(
i
=>
total
+=
NP
.
times
((
i
.
amount
||
0
),
(
i
.
salesPrice
||
0
),
0.01
))
row
.
total
=
total
row
.
total
=
total
this
.
totalForm
.
total
[
index
]
=
total
this
.
totalForm
.
total
[
index
]
=
total
this
.
updateView
()
this
.
updateView
()
...
@@ -641,7 +641,7 @@ export default {
...
@@ -641,7 +641,7 @@ export default {
const
{
oilList
}
=
row
const
{
oilList
}
=
row
let
total
=
0
let
total
=
0
if
(
oilList
&&
oilList
.
length
)
oilList
.
map
(
i
=>
{
if
(
oilList
&&
oilList
.
length
)
oilList
.
map
(
i
=>
{
total
+=
NP
.
times
((
i
.
amount
||
0
),
(
i
.
faceValue
||
0
)
)
total
+=
NP
.
times
((
i
.
amount
||
0
),
(
i
.
salesPrice
||
0
),
0.01
)
}
)
}
)
this
.
totalForm
.
gasService
[
index
]
=
total
this
.
totalForm
.
gasService
[
index
]
=
total
this
.
updateView
()
this
.
updateView
()
...
@@ -673,7 +673,7 @@ export default {
...
@@ -673,7 +673,7 @@ export default {
}
,
}
,
filterData
(
list
,
name
)
{
filterData
(
list
,
name
)
{
return
list
?.
map
(
i
=>
{
return
list
?.
map
(
i
=>
{
return
name
==
'oilList'
?
`${i.aliasName
}
*${i.amount
}
(${NP.times(i.amount, i.
faceValue
)
}
积分)`
:
`${i.couponName
}
*${i.amount
}
`
return
name
==
'oilList'
?
`${i.aliasName
}
*${i.amount
}
(${NP.times(i.amount, i.
salesPrice,0.01
)
}
积分)`
:
`${i.couponName
}
*${i.amount
}
`
}
)
||
[]
}
)
||
[]
}
,
}
,
splitArray
(
arr
,
size
)
{
splitArray
(
arr
,
size
)
{
...
...
src/views/points/components/detailDialog.vue
View file @
7a13d84
...
@@ -147,7 +147,7 @@ export default {
...
@@ -147,7 +147,7 @@ export default {
formatter
:
cell
=>
{
formatter
:
cell
=>
{
const
{
oilList
,
cashBackValue
,
buyValue
}
=
cell
const
{
oilList
,
cashBackValue
,
buyValue
}
=
cell
let
total
=
NP
.
plus
((
cashBackValue
||
0
),
(
buyValue
||
0
))
let
total
=
NP
.
plus
((
cashBackValue
||
0
),
(
buyValue
||
0
))
oilList
&&
oilList
.
map
(
i
=>
total
+=
NP
.
times
(
i
.
amount
,
i
.
faceValue
))
oilList
&&
oilList
.
map
(
i
=>
total
+=
NP
.
times
(
i
.
amount
,
i
.
salesPrice
,
0.01
))
return
total
return
total
}
}
},
},
...
@@ -170,7 +170,7 @@ export default {
...
@@ -170,7 +170,7 @@ export default {
},
},
filterData
(
list
,
name
)
{
filterData
(
list
,
name
)
{
return
list
?.
map
(
i
=>
{
return
list
?.
map
(
i
=>
{
return
name
==
'oilList'
?
`
${
i
.
aliasName
}
*
${
i
.
amount
}
(
${
NP
.
times
(
i
.
amount
,
i
.
faceValue
)}
积分)`
:
`
${
i
.
couponName
}
*
${
i
.
amount
}
`
return
name
==
'oilList'
?
`
${
i
.
aliasName
}
*
${
i
.
amount
}
(
${
NP
.
times
(
i
.
amount
,
i
.
salesPrice
,
0.01
)}
积分)`
:
`
${
i
.
couponName
}
*
${
i
.
amount
}
`
})
||
[]
})
||
[]
},
},
}
}
...
...
src/views/points/components/pointsConfig.vue
View file @
7a13d84
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
return
{
return
{
oilCouponId
:
e
.
oilCouponId
,
oilCouponId
:
e
.
oilCouponId
,
amount
:
e
.
amount
,
amount
:
e
.
amount
,
faceValue
:
e
.
faceValu
e
,
salesPrice
:
e
.
salesPric
e
,
aliasName
:
e
.
aliasName
aliasName
:
e
.
aliasName
}
}
})
||
[],
})
||
[],
...
...
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