Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 68159688
authored
Jun 07, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
价格区间乘以百万
1 parent
8dfcecf4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/util/gradeData.js
src/views/serviceConfig/addService.vue
src/util/gradeData.js
View file @
6815968
...
...
@@ -85,8 +85,8 @@ export const handleGradeData = (dataFromApi, salePeriodList=[])=>{
gradeList
.
forEach
(
item
=>
{
const
_target
=
gradeConfigList
.
find
(
o
=>
o
.
priceGrade
==
item
)
let
{
id
,
servicePeriod
,
maxPrice
,
minPrice
,
priceCoefficient
}
=
_target
||
{}
maxPrice
=
NP
.
divide
(
maxPrice
||
0
,
100
)
minPrice
=
NP
.
divide
(
minPrice
||
0
,
100
)
maxPrice
=
NP
.
divide
(
maxPrice
||
0
,
100
0000
)
minPrice
=
NP
.
divide
(
minPrice
||
0
,
100
0000
)
_gradeObj
.
gradeConfigList
.
push
({
servicePeriod
,
priceGrade
:
item
,
maxPrice
,
minPrice
,
priceCoefficient
,
id
})
})
salePeriodList
=
salePeriodList
.
sort
(
function
(
a
,
b
){
return
a
-
b
})
...
...
src/views/serviceConfig/addService.vue
View file @
6815968
...
...
@@ -337,8 +337,8 @@ export default {
if
(
this
.
isEmpty
(
standardSalesCost
)
||
this
.
isEmpty
(
standardShelfCost
)){
throw
new
Error
(
`请输入
${
serviceGrade
}
规格
${
servicePeriod
}
年版的
${
this
.
isEmpty
(
standardSalesCost
)
?
'销售成本'
:
'上架成本'
}
`
)
}
let
min_price
=
NP
.
times
(
minPrice
||
0
,
100
)
let
max_price
=
NP
.
times
(
maxPrice
||
0
,
100
)
let
min_price
=
NP
.
times
(
minPrice
||
0
,
100
0000
)
let
max_price
=
NP
.
times
(
maxPrice
||
0
,
100
0000
)
standardSalesCost
=
NP
.
times
(
standardSalesCost
||
0
,
100
)
standardShelfCost
=
NP
.
times
(
standardShelfCost
||
0
,
100
)
let
gradeConfigObj
=
{
id
,
priceGrade
,
priceCoefficient
,
minPrice
:
min_price
,
maxPrice
:
max_price
,
servicePeriod
,
standardSalesCost
,
standardShelfCost
}
...
...
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