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
陈智峰
jinfa-platform
Commits
56c37d33
Commit
56c37d33
authored
Jan 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复单据数量显示错误的问题
parent
631d396a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
index.tsx
...ion/stockSellStorage/bills/components/BillsForm/index.tsx
+2
-2
No files found.
src/pages/transaction/stockSellStorage/bills/components/BillsForm/index.tsx
View file @
56c37d33
...
...
@@ -197,8 +197,8 @@ const BillsForm: React.FC<BillsFormProps> = ({
const
details
=
invoicesDetailsList
?
invoicesDetailsList
.
map
(
item
=>
({
...
item
,
// 单据数量,
需要判断是 入库 还是 发货 单 匹配对应的字段值
productCount
:
transforDirection
(
rest
.
invoicesTypeId
)
?
item
.
storageCount
:
item
.
shipmentQuantity
,
// 单据数量,
不是 入库数量 就是 发货数量
productCount
:
item
.
storageCount
||
item
.
shipmentQuantity
||
0
,
// 生成通知单字段不同,做兼容
product
:
item
.
produceNoticeOrderDetailId
||
item
.
relationInvoicesId
,
amount
:
`¥
${((
transforDirection
(
rest
.
invoicesTypeId
)
?
item
.
storageCount
:
item
.
shipmentQuantity
)
*
item
.
price
).
toFixed
(
2
)}
`
,
...
...
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