|
@@ -77,23 +77,21 @@ function B34edit({ type }: Props) {
|
|
|
const tableLastBtn = useMemo(() => {
|
|
|
let arr: any = []
|
|
|
|
|
|
- if (topInfo.status === 4) {
|
|
|
- arr.push({
|
|
|
- title: '关联藏品登记',
|
|
|
- render: (item: C1GoodType) => {
|
|
|
- return item.subNum && item.relatedOrderId ? (
|
|
|
- <span
|
|
|
- onClick={() => openGoodsInfoFu(item.relatedOrderId, '#/register_edit/4/')}
|
|
|
- className='D1GtNum'
|
|
|
- >
|
|
|
- {item.subNum}
|
|
|
- </span>
|
|
|
- ) : (
|
|
|
- '(空)'
|
|
|
- )
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ arr.push({
|
|
|
+ title: '关联藏品登记',
|
|
|
+ render: (item: C1GoodType) => {
|
|
|
+ return item.subNum && item.relatedOrderId ? (
|
|
|
+ <span
|
|
|
+ onClick={() => openGoodsInfoFu(item.relatedOrderId, '#/register_edit/4/')}
|
|
|
+ className='D1GtNum'
|
|
|
+ >
|
|
|
+ {item.subNum}
|
|
|
+ </span>
|
|
|
+ ) : (
|
|
|
+ '(空)'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
arr.push({
|
|
|
title: '操作',
|
|
@@ -119,7 +117,7 @@ function B34edit({ type }: Props) {
|
|
|
})
|
|
|
|
|
|
return arr
|
|
|
- }, [topInfo.status, key, snaps])
|
|
|
+ }, [key, snaps])
|
|
|
// -------新增藏品-新字段-------------
|
|
|
|
|
|
// 创建订单
|