| | |
| | | defineOperationBtns, |
| | | useFormDialog, |
| | | } from '@bole-core/components'; |
| | | import * as insuranceOrderServices from '@/services/api/InsuranceOrder'; |
| | | import * as insureBatchBillServices from '@/services/api/InsureBatchBill'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import BatchChangeRecordDetailDialog from './BatchChangeRecordDetailDialog.vue'; |
| | | |
| | |
| | | onClick: (role) => handleDetail(role), |
| | | }, |
| | | // extraProps: { |
| | | // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | // hide: (row: API.InsureBatchBillDto) => !row.orderBillFile, |
| | | // }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'downloadBtn', |
| | | name: '下载批单', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => handleDownload(role), |
| | | }, |
| | | // extraProps: { |
| | | // hide: (row: API.InsureBatchBillDto) => !row.orderBillFile, |
| | | // }, |
| | | }, |
| | | ]); |
| | |
| | | } = useTable( |
| | | async ({ pageIndex, pageSize }, extraParamState) => { |
| | | try { |
| | | let params: API.QueryInsuranceOrderPageInput = { |
| | | let params: API.GetInsuranceBatchBillInput = { |
| | | pageModel: { |
| | | rows: pageSize, |
| | | page: pageIndex, |
| | | orderInput: extraParamState.orderInput, |
| | | }, |
| | | condition: extraParamState.keyWord, |
| | | // insurePolicyOperateHistoryId: id, |
| | | insurancePolicyId: id, |
| | | }; |
| | | let res = await insuranceOrderServices.getInsuranceOrderPage(params, { |
| | | let res = await insureBatchBillServices.getInsureBatchBillList(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | | return res; |
| | |
| | | }, |
| | | }); |
| | | |
| | | function handleDetail(row: API.InsuranceOrderListOutput) { |
| | | function handleDetail(row: API.InsureBatchBillDto) { |
| | | handleEdit({ |
| | | id: row.id, |
| | | id: row.insureBatchBillId, |
| | | }); |
| | | } |
| | | |
| | | function handleDownload(row: API.InsureBatchBillDto) {} |
| | | |
| | | onMounted(async () => { |
| | | await getBatchRefundInfoDetail(); |
| | | state.loading = false; |