|
|
@@ -1,16 +1,13 @@
|
|
|
-import React, { useState, useRef, useMemo } from 'react'
|
|
|
+import React from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import { rowArrTemp } from '@/pages/Zother/data'
|
|
|
import { InfoProvider } from '@/pages/Zother/InfoContext'
|
|
|
import EditTop from '@/pages/Zother/EditTop'
|
|
|
-import MyTable from '@/components/MyTable'
|
|
|
-import SelectGoods from '@/pages/Zother/SelectGoods'
|
|
|
-import { useParams } from 'react-router-dom'
|
|
|
-import { Button, Input } from 'antd'
|
|
|
+import { Button } from 'antd'
|
|
|
import { API_getGoodsLists } from '@/store/action/Cledger/C1ledger'
|
|
|
-import { B3_APIgetClueList, B3_APIgoodsSave, B3API_obj } from '@/store/action/Benter/B3auth'
|
|
|
+import { B3API_obj } from '@/store/action/Benter/B3auth'
|
|
|
import EditBtn from '@/pages/Zother/EditBtn'
|
|
|
-import history from '@/utils/history'
|
|
|
+import { openLink } from '@/utils/history'
|
|
|
import MyPopconfirm from '@/components/MyPopconfirm'
|
|
|
import { goodsSonTableC } from '@/utils/tableData'
|
|
|
import { sgBaseFormDataGood, sgTopSelectDomGood } from '@/pages/Zother/SonGoodsList/data'
|
|
|
@@ -47,18 +44,9 @@ const rowArrDom = [
|
|
|
},
|
|
|
callBackChildren: (selectedRows: GoodsType[], setSnapsFu: any) => {
|
|
|
return (
|
|
|
- <div
|
|
|
- className='snipInfo'
|
|
|
- style={{
|
|
|
- height: '80px',
|
|
|
- display: 'flex',
|
|
|
- alignItems: 'center',
|
|
|
- gap: '20px',
|
|
|
- justifyContent: 'space-around'
|
|
|
- }}
|
|
|
- >
|
|
|
- <ImageLazy width={80} height={80} src={selectedRows[0].thumb || ''} />
|
|
|
- <div style={{ flex: 1, textAlign: 'center' }}>
|
|
|
+ <div className='snipInfo'>
|
|
|
+ <ImageLazy width={60} height={60} src={selectedRows[0].thumb || ''} />
|
|
|
+ <div style={{ flex: 1, textAlign: 'left' }}>
|
|
|
{selectedRows[0]?.num ? selectedRows[0]?.num + '-' + selectedRows[0]?.name : ''}
|
|
|
</div>
|
|
|
<div>
|
|
|
@@ -66,8 +54,7 @@ const rowArrDom = [
|
|
|
style={{ marginRight: '0' }}
|
|
|
type='text'
|
|
|
size='small'
|
|
|
- danger
|
|
|
- onClick={() => history.push(`/goodsInfo`)}
|
|
|
+ onClick={() => openLink(`/goodsLook/${selectedRows[0].id}`)}
|
|
|
>
|
|
|
查看
|
|
|
</Button>
|
|
|
@@ -87,8 +74,7 @@ const rowArrDom = [
|
|
|
{
|
|
|
name: '鉴定部门',
|
|
|
type: 'Input',
|
|
|
- key: 'unit',
|
|
|
- noNull: true
|
|
|
+ key: 'unit'
|
|
|
},
|
|
|
{
|
|
|
name: '鉴定人员',
|
|
|
@@ -134,6 +120,7 @@ function B3edit() {
|
|
|
rowArr={rowArrDom}
|
|
|
APIobj={B3API_obj}
|
|
|
fileUpInfo={{ myUrl: 'cms/order/auth/upload', dirCode: 'auth' }}
|
|
|
+ Tit='鉴定报告'
|
|
|
/>
|
|
|
{/* 添加藏品 */}
|
|
|
{/* {showSelectGoods && (
|