You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.6 KiB
83 lines
2.6 KiB
import { jsx as _jsx } from "react/jsx-runtime"; |
|
import { ProTable } from '@ant-design/pro-components'; |
|
import { getCompensatePageList } from './action'; |
|
import { useMemo } from 'react'; |
|
import { useRoutes, toFixed, urlEncodeParams } from '@component/utils'; |
|
import { Link } from 'react-router-dom'; |
|
export default function ({ claimUrl }) { |
|
const { paramsParse, historyPush } = useRoutes(); |
|
const columns = useMemo(() => [ |
|
{ |
|
title: '立案号', |
|
dataIndex: 'claimno', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '管理分类', |
|
dataIndex: 'typePname', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '保单号', |
|
dataIndex: 'policyno', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '归属机构', |
|
dataIndex: 'insuranceName', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '事故类型', |
|
dataIndex: 'accidentnameDesc', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '特殊行业事故类型', |
|
dataIndex: 'scaccidentname', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '估损金额', |
|
dataIndex: 'claimloss', |
|
ellipsis: true, |
|
search: false, |
|
render(_, record) { |
|
return `${toFixed(record === null || record === void 0 ? void 0 : record.claimloss)} 元`; |
|
}, |
|
}, |
|
{ |
|
title: '保单终保日期', |
|
dataIndex: 'doneDate', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '案件状态', |
|
dataIndex: 'tasktypeName', |
|
ellipsis: true, |
|
search: false, |
|
}, |
|
{ |
|
title: '操作', |
|
valueType: 'option', |
|
key: 'option', |
|
fixed: 'right', |
|
width: 80, |
|
align: 'center', |
|
render: (_, record) => (_jsx(Link, Object.assign({ to: `${claimUrl}${urlEncodeParams({ |
|
registno: record === null || record === void 0 ? void 0 : record.registno, |
|
})}` }, { children: "\u8BE6\u60C5" }))), |
|
}, |
|
]); |
|
return (_jsx(ProTable, { columns: columns, request: getCompensatePageList, rowKey: "userId", toolBarRender: false, search: false, params: paramsParse, pagination: { |
|
pageSize: 10, |
|
showSizeChanger: false, |
|
} })); |
|
}
|
|
|