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
9ba75b1d
Commit
9ba75b1d
authored
Oct 13, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复仓位调拨时字段显示问题
parent
d3e86448
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
adjustRepository.tsx
src/pages/repositories/adjustRepository.tsx
+17
-1
No files found.
src/pages/repositories/adjustRepository.tsx
View file @
9ba75b1d
...
...
@@ -30,6 +30,9 @@ const AddRepository:React.FC<{}> = (props) => {
const
{
id
,
}
=
usePageStatus
()
// 强制渲染
const
[
forceRender
,
setForceRender
]
=
useState
(
0
)
// 获取到的所有仓库, 用于选中后获得仓库库存
const
[
reposits
,
setReposits
]
=
useState
<
any
>
([])
const
[
isEdit
,
setIsEdit
]
=
useState
(
false
)
...
...
@@ -60,7 +63,7 @@ const AddRepository:React.FC<{}> = (props) => {
}
})
}
},
[
initValue
])
},
[
initValue
,
forceRender
])
const
tableRecordColumns
:
any
[]
=
[
{
dataIndex
:
'id'
,
title
:
'ID'
,
align
:
'center'
},
...
...
@@ -107,11 +110,17 @@ const AddRepository:React.FC<{}> = (props) => {
repositInAction
.
setFieldValue
(
'NO_SUBMIT2'
,
bringUpTheInventory
)
repositInAction
.
setFieldValue
(
'NO_SUBMIT1'
,
callInInventory
)
repositOutAction
.
setFieldValue
(
'NO_SUBMIT1'
,
bringUpTheInventory
)
repositInAction
.
setFieldValue
(
'foldInventory'
,
0
,
false
)
repositInAction
.
setFieldState
(
'foldInventory'
,
state
=>
{
state
.
props
[
"x-component-props"
].
max
=
callInInventory
state
.
props
[
"x-component-props"
].
marks
=
getStepNumber
(
callInInventory
)
})
repositOutAction
.
setFieldValue
(
'foldFreightSpaceId'
,
''
)
repositOutAction
.
setFieldValue
(
'NO_SUBMIT2'
,
0
)
setForceRender
(
forceRender
+
1
)
tableRecordRef
.
current
.
reload
&&
tableRecordRef
.
current
.
reload
()
}
}
...
...
@@ -130,11 +139,18 @@ const AddRepository:React.FC<{}> = (props) => {
repositOutAction
.
setFieldValue
(
'NO_SUBMIT1'
,
bringUpTheInventory
)
repositOutAction
.
setFieldValue
(
'NO_SUBMIT2'
,
callInInventory
)
repositInAction
.
setFieldValue
(
'freightSpaceId'
,
''
)
repositInAction
.
setFieldValue
(
'NO_SUBMIT1'
,
0
)
repositInAction
.
setFieldValue
(
'NO_SUBMIT2'
,
bringUpTheInventory
)
repositOutAction
.
setFieldValue
(
'foldInventory'
,
0
,
false
)
repositOutAction
.
setFieldState
(
'foldInventory'
,
state
=>
{
state
.
props
[
"x-component-props"
].
max
=
callInInventory
state
.
props
[
"x-component-props"
].
marks
=
getStepNumber
(
callInInventory
)
})
setForceRender
(
forceRender
+
1
)
tableRecordRef
.
current
.
reload
&&
tableRecordRef
.
current
.
reload
()
}
...
...
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