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
049e27ad
Commit
049e27ad
authored
Sep 29, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'物流栈溢出问题'
parent
d47152e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
toOrderSubmitDetail.tsx
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
+10
-3
No files found.
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
View file @
049e27ad
...
...
@@ -3,7 +3,7 @@
* @Date: 2020-07-28 11:25:30
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-09-29 10:
05:44
* @LastEditTime: 2020-09-29 10:
54:58
*/
import
React
,
{
Component
,
useEffect
,
useRef
,
useState
,
ReactNode
}
from
'react'
...
...
@@ -36,6 +36,7 @@ import {
useFormSpy
,
createFormActions
}
from
'@formily/antd'
import
createAscyncActions
from
'@formily/antd/esm'
import
{
Input
,
NumberPicker
,
...
...
@@ -543,10 +544,11 @@ const Deatail: React.FC<{}> = () => {
const
useTabEffect
=
()
=>
{
const
{
setFieldValue
}
=
createFormActions
()
onFieldValueChange$
(
'detailList'
).
subscribe
(({
value
})
=>
{
setFieldValue
(
'detailList'
,
value
)
let
detailData
=
value
// setFieldValue('detailList', [...value]
)
let
detailData
=
[...
value
]
computedALL
(
detailData
)
})
}
/**
...
...
@@ -555,8 +557,12 @@ const Deatail: React.FC<{}> = () => {
* @return {type}
*/
const
computedALL
=
(
data
)
=>
{
let
_totalCarton
=
0
,
_totalVolume
=
0
,
_totalWeight
=
0
if
(
data
&&
data
.
length
>
0
)
{
console
.
log
(
'全部'
,
data
)
data
.
forEach
(
v
=>
{
if
(
v
.
amount
&&
v
.
carton
)
{
_totalCarton
+=
Number
(
v
.
carton
)
...
...
@@ -569,6 +575,7 @@ const Deatail: React.FC<{}> = () => {
}
});
}
setTotalCarton
(
_totalCarton
)
setTotalVolume
(
_totalVolume
)
setTotalWeight
(
_totalWeight
)
...
...
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