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 b7e05923
authored
Apr 23, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益服务项目,默认没有区间数据修改
1 parent
8f4ca775
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
36 deletions
src/util/gradeData.js
src/util/gradeData.js
View file @
b7e0592
import
NP
from
'number-precision'
const
gradeObj
=
{
gradeConfigList
:
[
{
servicePeriod
:
''
,
maxPrice
:
'15'
,
minPrice
:
'0'
,
computeFlag
:
0
,
priceCoefficient
:
''
,
standardShelfCost
:
''
,
standardSalesCost
:
''
,
shelfCost
:
''
,
salesCost
:
''
,
childSalePeriodData
:
[]
},
{
servicePeriod
:
''
,
maxPrice
:
'30'
,
minPrice
:
'15'
,
computeFlag
:
0
,
priceCoefficient
:
''
,
standardShelfCost
:
''
,
standardSalesCost
:
''
,
shelfCost
:
''
,
salesCost
:
''
,
childSalePeriodData
:
[]
},
{
servicePeriod
:
''
,
maxPrice
:
'200
'
,
minPrice
:
'30
'
,
computeFlag
:
0
,
priceCoefficient
:
''
,
standardShelfCost
:
''
,
standardSalesCost
:
''
,
shelfCost
:
''
,
salesCost
:
''
,
childSalePeriodData
:
[]
}
//
{
//
servicePeriod: '',
//
maxPrice: '15',
//
minPrice: '0',
//
computeFlag: 0,
//
priceCoefficient: '',
//
standardShelfCost: '',
//
standardSalesCost: '',
//
shelfCost: '',
//
salesCost: '',
//
childSalePeriodData: []
//
},
//
{
//
servicePeriod: '',
//
maxPrice: '30',
//
minPrice: '15',
//
computeFlag: 0,
//
priceCoefficient: '',
//
standardShelfCost: '',
//
standardSalesCost: '',
//
shelfCost: '',
//
salesCost: '',
//
childSalePeriodData: []
//
},
//
{
//
servicePeriod: '',
// maxPrice: '
',
// minPrice: '
',
//
computeFlag: 0,
//
priceCoefficient: '',
//
standardShelfCost: '',
//
standardSalesCost: '',
//
shelfCost: '',
//
salesCost: '',
// childSalePeriodData: [],
//
}
],
salePeriodData
:
[],
serviceGrade
:
'A'
,
...
...
@@ -132,5 +132,6 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
})
arr
.
push
(
_gradeObj
)
})
console
.
log
(
arr
,
'==='
)
return
arr
}
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