import React, { useCallback, useMemo, useState } from 'react'
import styles from './index.module.scss'
import { Button } from 'antd'
import MyTable from '@/components/MyTable'
import { B3eTableC } from '@/utils/tableData'
import MyPopconfirm from '@/components/MyPopconfirm'
import classNames from 'classnames'
import Y1cathet from '@/pages/Y_goodsDetails/Y1cathet'
function B3goodsTable() {
// 点击删除
const delTableFu = useCallback(async (id: number) => {}, [])
// 点击查看 新窗口打开 待完善
const lookPage = useCallback((id: number) => {
window.open('/#/goodsLook/99', '_blank')
}, [])
// 打开侧边栏
const [cathet, setCathet] = useState(0)
const startBtn = useMemo(() => {
return [
{
title: '编号类型',
render: (item: any) => {
return (
setCathet(item.id)}
className={classNames('D1GtNum', item.id === cathet ? 'D1GtNumAc' : '')}
>
{item.num}
)
}
}
]
}, [cathet])
const tableLastBtn = useMemo(() => {
return [
{
title: '操作',
render: (item: any) => {
return (
<>
delTableFu(item.id)} />
>
)
}
}
]
}, [delTableFu, lookPage])
return (
{/* 表格 */}
{/* 打开侧边栏 */}
setCathet(0)} />
)
}
const MemoB3goodsTable = React.memo(B3goodsTable)
export default MemoB3goodsTable