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 aabeaabb
authored
Dec 14, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
测试跳转
1 parent
82aa2975
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
src/views/storeCredit/add.vue
src/views/storeCredit/components/service.vue
src/views/storeCredit/add.vue
View file @
aabeaab
...
...
@@ -100,7 +100,7 @@
><
/el-input
>
<
/template
>
<
template
v
-
else
>
{{
scope
.
scope
.
buy
Value
||
'-'
}}
{{
scope
.
scope
.
cashBack
Value
||
'-'
}}
<
/template
>
<
/template
>
<
template
...
...
@@ -326,7 +326,7 @@ export default {
const
{
passageService
}
=
cell
,
{
passageServiceCharge
}
=
chargeObject
,
passageSum
=
passageService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
sum
=
NP
.
times
(
passageSum
,
passageServiceCharge
).
toFixed
(
2
)
sum
=
NP
.
times
(
passageSum
,
NP
.
divide
(
passageServiceCharge
,
100
)
).
toFixed
(
2
)
return
`${passageSum
}
*${passageServiceCharge
}
%=${sum
}
`
}
}
,
...
...
@@ -337,7 +337,7 @@ export default {
const
{
gasService
}
=
cell
,
{
gasCardServiceCharge
}
=
chargeObject
,
gasCardSum
=
gasService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
sum
=
NP
.
times
(
gasCardSum
,
gasCardServiceCharge
).
toFixed
(
2
)
sum
=
NP
.
times
(
gasCardSum
,
NP
.
divide
(
gasCardServiceCharge
,
100
)
).
toFixed
(
2
)
return
`${gasCardSum
}
*${gasCardServiceCharge
}
%=${sum
}
`
}
}
,
...
...
@@ -347,8 +347,8 @@ export default {
formatter
:
(
cell
)
=>
{
const
{
total
,
gasService
,
passageService
}
=
cell
,
{
gasCardServiceCharge
,
passageServiceCharge
}
=
chargeObject
,
gasPrice
=
NP
.
times
(
gasService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
gasCardServiceCharge
),
passagePrice
=
NP
.
times
(
passageService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
passageServiceCharge
),
gasPrice
=
NP
.
times
(
gasService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
NP
.
divide
(
gasCardServiceCharge
,
100
)
),
passagePrice
=
NP
.
times
(
passageService
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
),
NP
.
divide
(
passageServiceCharge
,
100
)
),
totalPrice
=
total
.
reduce
((
acc
,
cur
)
=>
acc
+
cur
,
0
)
return
NP
.
plus
(
gasPrice
,
passagePrice
,
totalPrice
).
toFixed
(
2
)
...
...
@@ -592,9 +592,8 @@ export default {
if
(
res
)
{
this
.
totalFormData
.
map
(
e
=>
{
if
([
'gasCardServiceCharge'
,
'passageServiceCharge'
].
includes
(
e
.
name
))
{
const
val
=
NP
.
divide
(
res
[
e
.
name
]
||
0
,
100
)
e
.
label
=
e
.
label
.
replace
(
/
\d
+/g
,
val
)
chargeObject
[
e
.
name
]
=
val
e
.
label
=
e
.
label
.
replace
(
/
\d
+/g
,
res
[
e
.
name
]
||
0
)
chargeObject
[
e
.
name
]
=
res
[
e
.
name
]
||
0
}
}
)
this
.
updateView
()
...
...
src/views/storeCredit/components/service.vue
View file @
aabeaab
...
...
@@ -214,7 +214,8 @@ export default {
}[
row
.
useType
]
},
addCoupon
()
{
util
.
openTab
(
'/tools/couponManage/index'
)
// util.openTab('/tools/couponManage/index')
window
.
open
(
'/tools/couponManage/index'
)
},
}
}
...
...
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