| | |
| | | AppContainer, |
| | | QueryFilterItem, |
| | | useTable, |
| | | useFormDialog, |
| | | defineOperationBtns, |
| | | } from '@bole-core/components'; |
| | | import * as enterpriseServices from '@/services/api/enterprise'; |
| | | import { CustomerManageColumns } from './constants'; |
| | | import { |
| | | EnumEnterpriseCooperationStatusText, |
| | | EnumEnterpriseCooperationSignStatusText, |
| | |
| | | editBtn: { |
| | | emits: { |
| | | onClick: (role) => goAddOrEdit(role), |
| | | }, |
| | | }, |
| | | insureConfigureBtn: { |
| | | emits: { |
| | | onClick: (role) => goInsureProductConfigure(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (role: API.GetPartyAEnterprisesQueryResultItem) => !role.isConfigured, |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | return ''; |
| | | }, |
| | | }, |
| | | isConfigured: { |
| | | formatter: (row: API.GetPartyAEnterprisesQueryResultItem) => |
| | | row.isConfigured ? '已配置' : '未配置', |
| | | }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | function goInsureProductConfigure(row: API.GetPartyAEnterprisesQueryResultItem) { |
| | | router.push({ |
| | | name: 'InsureProductConfigure', |
| | | params: { |
| | | id: row?.id ?? '', |
| | | }, |
| | | }); |
| | | } |
| | | </script> |