|
@@ -10,7 +10,7 @@ import { Button, Input } from 'antd'
|
|
|
import { API_getGoodsLists } from '@/store/action/Cledger/C1ledger'
|
|
import { API_getGoodsLists } from '@/store/action/Cledger/C1ledger'
|
|
|
import { B3_APIgetClueList, B3_APIgoodsSave, B3API_obj } from '@/store/action/Benter/B3auth'
|
|
import { B3_APIgetClueList, B3_APIgoodsSave, B3API_obj } from '@/store/action/Benter/B3auth'
|
|
|
import EditBtn from '@/pages/Zother/EditBtn'
|
|
import EditBtn from '@/pages/Zother/EditBtn'
|
|
|
-import SonGoodsList from '@/pages/Zother/SonGoodsList'
|
|
|
|
|
|
|
+import history from '@/utils/history'
|
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
|
import { goodsSonTableC } from '@/utils/tableData'
|
|
import { goodsSonTableC } from '@/utils/tableData'
|
|
|
import { sgBaseFormDataGood, sgTopSelectDomGood } from '@/pages/Zother/SonGoodsList/data'
|
|
import { sgBaseFormDataGood, sgTopSelectDomGood } from '@/pages/Zother/SonGoodsList/data'
|
|
@@ -32,6 +32,7 @@ const rowArrDom = [
|
|
|
must: true,
|
|
must: true,
|
|
|
type: 'ChildTable',
|
|
type: 'ChildTable',
|
|
|
key: 'goods',
|
|
key: 'goods',
|
|
|
|
|
+ full: true,
|
|
|
placeHolder: '选择藏品',
|
|
placeHolder: '选择藏品',
|
|
|
SelectGoodsProps: {
|
|
SelectGoodsProps: {
|
|
|
myType: '藏品',
|
|
myType: '藏品',
|
|
@@ -46,23 +47,73 @@ const rowArrDom = [
|
|
|
},
|
|
},
|
|
|
callBackChildren: (selectedRows: GoodsType[], setSnapsFu: any) => {
|
|
callBackChildren: (selectedRows: GoodsType[], setSnapsFu: any) => {
|
|
|
return (
|
|
return (
|
|
|
- <div className='snipInfo' style={{ height: '80px', display: 'flex', alignItems: 'center' }}>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ className='snipInfo'
|
|
|
|
|
+ style={{
|
|
|
|
|
+ height: '80px',
|
|
|
|
|
+ display: 'flex',
|
|
|
|
|
+ alignItems: 'center',
|
|
|
|
|
+ gap: '20px',
|
|
|
|
|
+ justifyContent: 'space-around'
|
|
|
|
|
+ }}
|
|
|
|
|
+ >
|
|
|
<ImageLazy width={80} height={80} src={selectedRows[0].thumb || ''} />
|
|
<ImageLazy width={80} height={80} src={selectedRows[0].thumb || ''} />
|
|
|
- {selectedRows[0]?.num ? selectedRows[0]?.num + '-' + selectedRows[0]?.name : ''}
|
|
|
|
|
- <Button type='default' size='small'>
|
|
|
|
|
- 查看
|
|
|
|
|
- </Button>
|
|
|
|
|
- <MyPopconfirm
|
|
|
|
|
- txtK='删除'
|
|
|
|
|
- onConfirm={() =>
|
|
|
|
|
- setSnapsFu((prevSnaps: GoodsType[]) =>
|
|
|
|
|
- prevSnaps.filter(snap => snap.id !== selectedRows[0].id)
|
|
|
|
|
- )
|
|
|
|
|
- }
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <div style={{ flex: 1, textAlign: 'center' }}>
|
|
|
|
|
+ {selectedRows[0]?.num ? selectedRows[0]?.num + '-' + selectedRows[0]?.name : ''}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <Button
|
|
|
|
|
+ style={{ marginRight: '0' }}
|
|
|
|
|
+ type='text'
|
|
|
|
|
+ size='small'
|
|
|
|
|
+ danger
|
|
|
|
|
+ onClick={() => history.push(`/goodsInfo`)}
|
|
|
|
|
+ >
|
|
|
|
|
+ 查看
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ <MyPopconfirm
|
|
|
|
|
+ txtK='删除'
|
|
|
|
|
+ onConfirm={() =>
|
|
|
|
|
+ setSnapsFu((prevSnaps: GoodsType[]) =>
|
|
|
|
|
+ prevSnaps.filter(snap => snap.id !== selectedRows[0].id)
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '鉴定部门',
|
|
|
|
|
+ type: 'Input',
|
|
|
|
|
+ key: 'unit',
|
|
|
|
|
+ noNull: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '鉴定人员',
|
|
|
|
|
+ must: true,
|
|
|
|
|
+ type: 'Input',
|
|
|
|
|
+ key: 'member',
|
|
|
|
|
+ noNull: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '鉴定过程',
|
|
|
|
|
+ type: 'TextArea',
|
|
|
|
|
+ full: true,
|
|
|
|
|
+ key: 'course'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '鉴定结论',
|
|
|
|
|
+ type: 'TextArea',
|
|
|
|
|
+ full: true,
|
|
|
|
|
+ key: 'conclusion'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '备注',
|
|
|
|
|
+ type: 'TextArea',
|
|
|
|
|
+ full: true,
|
|
|
|
|
+ key: 'remark'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
|
|
|