| | |
| | | <script setup lang="ts"> |
| | | import { AppContainer, useTable, ProTableV2, defineOperationBtns } from '@bole-core/components'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import * as informationServices from '@/services/api/Information'; |
| | | import * as parkBountyApplyServices from '@/services/api/ParkBountyApply'; |
| | | import { BountyCheckStatusEnumText } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseDeclareRecordView', |
| | |
| | | const column: API.CustomModuleColumnDto[] = [ |
| | | { |
| | | id: '1', |
| | | enCode: 'batchBillNo', |
| | | enCode: 'batchNo', |
| | | name: '申报批次号', |
| | | }, |
| | | { |
| | | id: '2', |
| | | enCode: 'changeType', |
| | | enCode: 'creationTime', |
| | | name: '申报日期', |
| | | }, |
| | | { |
| | | id: '3', |
| | | enCode: 'creationTime', |
| | | name: '内部审核日期', |
| | | enCode: 'outCheckTime', |
| | | name: '审核日期', |
| | | }, |
| | | { |
| | | id: '4', |
| | | enCode: 'effectTime', |
| | | name: '内部审核结果', |
| | | }, |
| | | { |
| | | id: '5', |
| | | enCode: 'insurePersonNumber', |
| | | name: '外部审核日期', |
| | | }, |
| | | { |
| | | id: '6', |
| | | enCode: 'orginInsurePersonNumber', |
| | | name: '外部审核结果', |
| | | enCode: 'outCheckStatus', |
| | | name: '审核结果', |
| | | }, |
| | | ]; |
| | | |
| | |
| | | } = useTable( |
| | | async ({ pageIndex, pageSize }, extraParamState) => { |
| | | try { |
| | | let params: API.GetInformationForManageInput = { |
| | | let params: API.QueryParkCustomerBountyApplyInput = { |
| | | pageModel: { |
| | | rows: pageSize, |
| | | page: pageIndex, |
| | | orderInput: extraParamState.orderInput, |
| | | }, |
| | | id: id, |
| | | }; |
| | | let res = await informationServices.getInformationForManage(params, { |
| | | let res = await parkBountyApplyServices.getParkCustomerBountyApplyList(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | | return res; |
| | |
| | | }, |
| | | { |
| | | defaultExtraParams: { |
| | | orderInput: [{ property: 'creationTime', order: OrderInputType.Desc }], |
| | | orderInput: [{ property: 'id', order: OrderInputType.Desc }], |
| | | }, |
| | | columnsRenderProps: { |
| | | outCheckTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | creationTime: { type: 'date', format: 'YYYY-MM-DD HH:mm:ss' }, |
| | | outCheckStatus: { type: 'enum', valueEnum: BountyCheckStatusEnumText }, |
| | | }, |
| | | } |
| | | ); |
| | | |
| | | async function goDetail(row: API.InsureBatchBillDto) { |
| | | async function goDetail(row: API.GetParkCustomerBountyApplyOutput) { |
| | | router.push({ |
| | | name: '', |
| | | name: 'MaterialReviewDetail', |
| | | params: { |
| | | id: row.id, |
| | | }, |
| | | }); |
| | | } |
| | | |