import { C1GoodType } from '@/pages/C_goodsManage/C1ledger/type' import { D1siteListType } from '@/pages/D_storeManage/D1storage/type' import { D1_APIgetInfo } from '@/store/action/D1storage' import { statusStorageObj } from '@/utils/tableData' import React, { useCallback, useEffect, useState } from 'react' type Props = { isLook?: boolean info: C1GoodType } function Y22com({ isLook, info }: Props) { const [detail, setDetail] = useState({} as D1siteListType) const getInfoFu = useCallback(async () => { if (info.siteId) { const res = await D1_APIgetInfo(info.siteId) if (res.code === 0) setDetail(res.data || {}) } }, [info.siteId]) useEffect(() => { getInfoFu() }, [getInfoFu]) return (