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
linweijiong
jinfa-platform
Commits
3ad6a40b
Commit
3ad6a40b
authored
Aug 16, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改取值条件
parent
4b7dd172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.ts
.../stockSellStorage/bills/components/BillsFormPage/utils.ts
+3
-3
No files found.
src/pages/transaction/stockSellStorage/bills/components/BillsFormPage/utils.ts
View file @
3ad6a40b
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-12 16:41:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-1
2 16:41:18
* @LastEditTime: 2021-08-1
6 16:10:00
* @Description:
*/
import
{
BillDetailsItemType
,
BillDetailsItemValueType
}
from
'./interface'
;
...
...
@@ -14,8 +14,8 @@ export function normalizeBillDetails(data: BillDetailsItemType[]): BillDetailsIt
data
.
forEach
((
item
)
=>
{
const
atom
:
BillDetailsItemValueType
=
{
...
item
,
count
:
+
item
.
relatedCount
,
amount
:
+
(
+
item
.
relatedCount
*
+
item
.
price
).
toFixed
(
2
),
count
:
+
(
item
.
count
||
item
.
relatedCount
),
// 有count(查看详情)直接去,没有取关联单据数量(新增的时候)
amount
:
+
(
+
(
item
.
count
||
item
.
relatedCount
)
*
+
item
.
price
).
toFixed
(
2
),
};
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