|
@@ -10,7 +10,11 @@ import { F1_APIgetStorageList, F1API_obj } from '@/store/action/Fstorehouse/F1in
|
|
|
import { Button, Dropdown, MenuProps, Select } from 'antd'
|
|
import { Button, Dropdown, MenuProps, Select } from 'antd'
|
|
|
import { selectObj } from '@/utils/dataChange'
|
|
import { selectObj } from '@/utils/dataChange'
|
|
|
import FileArchive from '@/pages/Zother/FileArchive'
|
|
import FileArchive from '@/pages/Zother/FileArchive'
|
|
|
-import { F4_APIgetClueList, F4API_obj } from '@/store/action/Fstorehouse/F4check'
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ F4_APIgetClueList,
|
|
|
|
|
+ F4_APIgetRelatedOrderList,
|
|
|
|
|
+ F4API_obj
|
|
|
|
|
+} from '@/store/action/Fstorehouse/F4check'
|
|
|
import { NewPcsCell, PdRemarkCell, PdRemarkModal } from './components'
|
|
import { NewPcsCell, PdRemarkCell, PdRemarkModal } from './components'
|
|
|
import MyTable from '@/components/MyTable'
|
|
import MyTable from '@/components/MyTable'
|
|
|
import { GoodsType } from '@/pages/Zother/SonGoodsList/data'
|
|
import { GoodsType } from '@/pages/Zother/SonGoodsList/data'
|
|
@@ -54,6 +58,7 @@ function F1editContent() {
|
|
|
value: string
|
|
value: string
|
|
|
onChange: (v: string) => void
|
|
onChange: (v: string) => void
|
|
|
} | null>(null)
|
|
} | null>(null)
|
|
|
|
|
+ const [relatedOrderList, setRelatedOrderList] = useState<any[]>([])
|
|
|
|
|
|
|
|
const handleStorageChange = useCallback(
|
|
const handleStorageChange = useCallback(
|
|
|
async (value: string, option: any) => {
|
|
async (value: string, option: any) => {
|
|
@@ -123,7 +128,7 @@ function F1editContent() {
|
|
|
items: registerMenu,
|
|
items: registerMenu,
|
|
|
style: { width: 100 },
|
|
style: { width: 100 },
|
|
|
onClick: ({ key }) => {
|
|
onClick: ({ key }) => {
|
|
|
- history.push(`/${key}_edit/1/null?pId=${info.id}`)
|
|
|
|
|
|
|
+ history.push(`/${key}_edit/1/null?pNum=${info.num}`)
|
|
|
}
|
|
}
|
|
|
}}
|
|
}}
|
|
|
placement='bottom'
|
|
placement='bottom'
|
|
@@ -133,7 +138,16 @@ function F1editContent() {
|
|
|
</Button>
|
|
</Button>
|
|
|
</Dropdown>
|
|
</Dropdown>
|
|
|
) : null
|
|
) : null
|
|
|
- }, [history, info.id, isLook])
|
|
|
|
|
|
|
+ }, [history, info.num, isLook])
|
|
|
|
|
+
|
|
|
|
|
+ useEffect(() => {
|
|
|
|
|
+ if (!isLook || !info.num) return
|
|
|
|
|
+ F4_APIgetRelatedOrderList(info.num).then((res: any) => {
|
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
|
+ setRelatedOrderList(res.data.records)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }, [info.num, isLook])
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className={styles.F4edit} id='editBox'>
|
|
<div className={styles.F4edit} id='editBox'>
|
|
@@ -232,9 +246,9 @@ function F1editContent() {
|
|
|
<p className='F4editStorageTitle'>盘点登记</p>
|
|
<p className='F4editStorageTitle'>盘点登记</p>
|
|
|
<MyTable
|
|
<MyTable
|
|
|
classKey='SonGoodsList'
|
|
classKey='SonGoodsList'
|
|
|
- list={[]}
|
|
|
|
|
|
|
+ list={relatedOrderList}
|
|
|
columnsTemp={[
|
|
columnsTemp={[
|
|
|
- ['txt', '业务类型', 'num'],
|
|
|
|
|
|
|
+ ['select', '业务类型', 'type', selectObj['维护类型']],
|
|
|
['txt', '申请编号', 'num'],
|
|
['txt', '申请编号', 'num'],
|
|
|
['txt', '发起部门', 'deptName'],
|
|
['txt', '发起部门', 'deptName'],
|
|
|
['txt', '发起人', 'creatorName'],
|
|
['txt', '发起人', 'creatorName'],
|