Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
2e32d9a8
Commit
2e32d9a8
authored
Aug 10, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 添加初始值
parent
a6993ecf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
utils.ts
src/pages/transaction/purchaserEvaluation/utils.ts
+8
-6
No files found.
src/pages/transaction/purchaserEvaluation/utils.ts
View file @
2e32d9a8
...
...
@@ -2,9 +2,10 @@
* @Author: XieZhiXiong
* @Date: 2020-10-19 16:02:53
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-
09 18:30:30
* @LastEditTime: 2021-08-
10 17:24:28
* @Description:
*/
import
{
normalizeFiledata
}
from
'@/utils'
;
// 初始化待评价列表
export
const
normalizeUnevaluatedList
=
(
arr
:
{[
key
:
string
]:
any
}[])
=>
{
...
...
@@ -23,12 +24,13 @@ export const normalizeUnevaluatedList = (arr: {[key: string]: any}[]) => {
unit
:
item
.
unit
,
price
:
item
.
price
,
purchaseCount
:
item
.
quantity
,
// 采购数量
totalPrice
:
item
.
amount
,
totalPrice
:
item
.
amount
,
orderProductId
:
item
.
orderProductId
,
},
star
:
undefined
,
// 评分星星
comment
:
undefined
,
// 评价
picture
:
[],
smile
:
undefined
,
// 笑脸
star
:
item
.
star
||
undefined
,
// 评分星星
comment
:
item
.
star
||
undefined
,
// 评价
picture
:
item
.
pics
?
item
.
pics
.
map
((
item
)
=>
normalizeFiledata
(
item
))
:
[],
smile
:
item
.
star
||
undefined
,
// 笑脸
commentStatus
:
item
.
commentStatus
,
};
ret
.
push
(
atom
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment