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
154c7224
Commit
154c7224
authored
Aug 19, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改初始单据数量数据
parent
8daf9496
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
addDeliverBill.tsx
...e/returnApplication/returnPrAddDeliver/addDeliverBill.tsx
+1
-0
addWarehouseBill.tsx
.../returnManage/returnPrAddWarehousing/addWarehouseBill.tsx
+1
-0
utils.ts
.../stockSellStorage/bills/components/BillsFormPage/utils.ts
+3
-3
No files found.
src/pages/afterService/returnApplication/returnPrAddDeliver/addDeliverBill.tsx
View file @
154c7224
...
...
@@ -44,6 +44,7 @@ const ReturnAddDeliverBill = () => {
unit
:
item
.
category
,
price
:
item
.
purchasePrice
,
relatedCount
:
item
.
returnCount
,
count
:
item
.
returnCount
,
})),
}
);
}
...
...
src/pages/afterService/returnManage/returnPrAddWarehousing/addWarehouseBill.tsx
View file @
154c7224
...
...
@@ -45,6 +45,7 @@ const ReturnAddWarehouseBill = () => {
price
:
item
.
purchasePrice
,
relatedCount
:
item
.
returnCount
,
billCount
:
item
.
returnDeliveryCount
,
count
:
item
.
returnDeliveryCount
,
})),
});
}
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsFormPage/utils.ts
View file @
154c7224
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-12 16:41:18
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-1
6 16:10:00
* @LastEditTime: 2021-08-1
9 14:12:36
* @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
.
count
||
item
.
relatedCount
),
// 有count(查看详情)直接去,没有取关联单据数量(新增的时候)
amount
:
+
(
+
(
item
.
count
||
item
.
relatedCount
)
*
+
item
.
price
).
toFixed
(
2
),
count
:
+
item
.
count
,
amount
:
+
(
+
item
.
count
*
+
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