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
7adc3822
Commit
7adc3822
authored
Aug 14, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复仓位货品
parent
db0503ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
index.ts
src/constants/index.ts
+1
-1
addRepository.tsx
src/pages/repositories/addRepository.tsx
+0
-7
index.tsx
src/pages/repositories/effects/index.tsx
+2
-0
No files found.
src/constants/index.ts
View file @
7adc3822
...
...
@@ -9,7 +9,7 @@ export const MALL_TYPE = {
}
// 本地环境跳过权限校验
export
const
isDev
=
fals
e
export
const
isDev
=
tru
e
export
const
Environment_Status
=
{
0
:
"所有"
,
...
...
src/pages/repositories/addRepository.tsx
View file @
7adc3822
...
...
@@ -21,11 +21,7 @@ import { PublicApi } from '@/services/api'
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
import
{
useInitValue
}
from
'@/formSchema/effects/useInitValue'
import
{
useWarehouseSelect
,
createAddRepositoryEffect
,
useUnitPreview
}
from
'./effects'
import
ModalTable
from
'@/components/ModalTable'
import
PositionSetting
from
'./components/PositionSetting'
import
{
useHttpRequest
}
from
'@/hooks/useHttpRequest'
const
addSchemaAction
=
createFormActions
()
...
...
@@ -35,9 +31,6 @@ const AddRepository:React.FC<{}> = (props) => {
preview
,
pageStatus
}
=
usePageStatus
()
const
initValue
=
useInitValue
(
PublicApi
.
getWarehouseFreightSpaceDetails
)
useUnitPreview
(
initValue
,
addSchemaAction
)
// 整体表单提交
const
formSubmit
=
async
(
values
)
=>
{
...
...
src/pages/repositories/effects/index.tsx
View file @
7adc3822
...
...
@@ -44,6 +44,7 @@ export const useUnitPreview = (initValue, context) => {
}
state
.
props
[
'x-props'
].
addonAfter
=
<
div
style=
{
{
marginLeft
:
4
}
}
>
{
initValue
.
unit
}
</
div
>
})
context
.
setFieldValue
(
'itemNo'
,
initValue
.
itemNo
)
}
},
[
initValue
])
}
\ No newline at end of file
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