import React, {useEffect, useState} from 'react'; import {Modal, Table, Button} from 'antd'; import { getLockFlowDetail } from '@/pages/pms/storage/partShop/api'; import usePagination from '@/hooks/usePagination'; interface Props { item?: any visible: boolean onCancel: () => any } const {Column} = Table; export default function Index(props: Props) { const {item, visible, onCancel} = props; const [delay, setDelay] = useState(true); const { list, loading, setParams, paginationConfig, setList } = usePagination(getLockFlowDetail, {}, { delay }); useEffect(() => { if (item.shopId && item.partId && visible) { setParams({ partId: item.partId, shopId: item.shopId, isLock: item.isLock }, true); setDelay(false); } else { setList([]); } }, [visible, item.partId]); return ( 取消, ]} > `${v.type}_${v.typeId}`} pagination={paginationConfig} > t || "--"} /> { const obj = JSON.parse(t || '{}'); return (
{!!obj.type &&
{`类型: ${obj.type}`}
} {!!obj.serviceCatName &&
{`进站类型: ${obj.serviceCatName}`}
} {!!obj.exclusiveAdviser &&
{`专属顾问: ${obj.exclusiveAdviser}`}
} {!!obj.shopLinkmanName &&
{`服务顾问: ${obj.shopLinkmanName}`}
} {!!obj.receiverName &&
{`服务顾问: ${obj.receiverName}`}
} {!!obj.plateNo &&
{`车牌号: ${obj.plateNo}`}
} {!!obj.ownerName &&
{`车主: ${obj.ownerName}`}
} {!!obj.vin &&
{`VIN: ${obj.vin}`}
} {!!obj.userName &&
{`操作账号: ${obj.userName}`}
} {!!obj.fixRemark &&
{`备注: ${obj.fixRemark}`}
}
); }} />
); }