Commit 7adc3822 authored by 前端-许佳敏's avatar 前端-许佳敏

修复仓位货品

parent db0503ba
...@@ -9,7 +9,7 @@ export const MALL_TYPE = { ...@@ -9,7 +9,7 @@ export const MALL_TYPE = {
} }
// 本地环境跳过权限校验 // 本地环境跳过权限校验
export const isDev = false export const isDev = true
export const Environment_Status = { export const Environment_Status = {
0: "所有", 0: "所有",
......
...@@ -21,11 +21,7 @@ import { PublicApi } from '@/services/api' ...@@ -21,11 +21,7 @@ import { PublicApi } from '@/services/api'
import { useRowSelectionTable } from '@/hooks/useRowSelectionTable' import { useRowSelectionTable } from '@/hooks/useRowSelectionTable'
import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect' import { useAsyncSelect } from '@/formSchema/effects/useAsyncSelect'
import { usePageStatus, PageStatus } from '@/hooks/usePageStatus' 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 PositionSetting from './components/PositionSetting'
import { useHttpRequest } from '@/hooks/useHttpRequest'
const addSchemaAction = createFormActions() const addSchemaAction = createFormActions()
...@@ -35,9 +31,6 @@ const AddRepository:React.FC<{}> = (props) => { ...@@ -35,9 +31,6 @@ const AddRepository:React.FC<{}> = (props) => {
preview, preview,
pageStatus pageStatus
} = usePageStatus() } = usePageStatus()
const initValue = useInitValue(PublicApi.getWarehouseFreightSpaceDetails)
useUnitPreview(initValue, addSchemaAction)
// 整体表单提交 // 整体表单提交
const formSubmit = async (values) => { const formSubmit = async (values) => {
......
...@@ -44,6 +44,7 @@ export const useUnitPreview = (initValue, context) => { ...@@ -44,6 +44,7 @@ export const useUnitPreview = (initValue, context) => {
} }
state.props['x-props'].addonAfter = <div style={{marginLeft: 4}}>{initValue.unit}</div> state.props['x-props'].addonAfter = <div style={{marginLeft: 4}}>{initValue.unit}</div>
}) })
context.setFieldValue('itemNo', initValue.itemNo)
} }
}, [initValue]) }, [initValue])
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment