|
|
@@ -121,14 +121,14 @@ function F1editContent() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- const customTableLastBtn = useMemo(() => {
|
|
|
- return isLook ? (
|
|
|
+ const customTableLastBtn = (item: GoodsType) => {
|
|
|
+ return info.status === 4 ? (
|
|
|
<Dropdown
|
|
|
menu={{
|
|
|
items: registerMenu,
|
|
|
style: { width: 100 },
|
|
|
onClick: ({ key }) => {
|
|
|
- history.push(`/${key}_edit/1/null?pNum=${info.num}`)
|
|
|
+ history.push(`/${key}_edit/1/null?pNum=${`${info.num},${item.id}`}`)
|
|
|
}
|
|
|
}}
|
|
|
placement='bottom'
|
|
|
@@ -138,7 +138,7 @@ function F1editContent() {
|
|
|
</Button>
|
|
|
</Dropdown>
|
|
|
) : null
|
|
|
- }, [history, info.num, isLook])
|
|
|
+ }
|
|
|
|
|
|
useEffect(() => {
|
|
|
if (!isLook || !info.num) return
|