| | |
| | | const operationBtns = defineOperationBtns([ |
| | | { |
| | | data: { |
| | | enCode: 'downloadBtn', |
| | | name: '保单下载', |
| | | enCode: 'detailBtn', |
| | | name: '详情', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => handleDownloadOrderNo(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | onClick: (role) => handleDetail(role), |
| | | }, |
| | | }, |
| | | { |
| | |
| | | emits: { |
| | | onClick: (role) => handleBatch(role), |
| | | }, |
| | | // extraProps: { |
| | | // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | // }, |
| | | extraProps: { |
| | | hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | }, |
| | | }, |
| | | { |
| | | data: { |
| | |
| | | emits: { |
| | | onClick: (role) => handleUploadStampFile(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | }, |
| | | // extraProps: { |
| | | // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | // }, |
| | | }, |
| | | { |
| | | data: { |
| | | enCode: 'detailBtn', |
| | | name: '详情', |
| | | enCode: 'downloadBtn', |
| | | name: '保单下载', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => handleDetail(role), |
| | | onClick: (role) => handleDownloadOrderNo(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | }, |
| | | }, |
| | | ]).filter(Boolean); |
| | |
| | | format: 'YYYY/MM/DD', |
| | | }, |
| | | }, |
| | | showSummary: true, |
| | | summaryPropertys: [ |
| | | { |
| | | property: 'table-operation', |
| | | valueKey: 'totalAmount', |
| | | formatter: (v) => `¥${toThousand(v)}`, |
| | | }, |
| | | ], |
| | | } |
| | | ); |
| | | |
| | |
| | | <template> |
| | | <LoadingLayout :loading="state.loading"> |
| | | <AppContainer> |
| | | <ProTableV2 |
| | | v-bind="proTableProps" |
| | |
| | | </ProTableV2> |
| | | <BatchChangeRecordDetailDialog v-bind="dialogProps"></BatchChangeRecordDetailDialog> |
| | | </AppContainer> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | }); |
| | | } |
| | | |
| | | onMounted(() => { |
| | | getBatchRefundInfoDetail(); |
| | | onMounted(async () => { |
| | | await getBatchRefundInfoDetail(); |
| | | state.loading = false; |
| | | }); |
| | | </script> |
| | | |
| | |
| | | <template> |
| | | <LoadingLayout :loading="state.loading"> |
| | | <AppScrollContainer> |
| | | <ChunkCell title=""> |
| | | <ProForm :model="detail" ref="formRef" label-width="120px" :is-read="true"> |
| | |
| | | </ChunkCell> |
| | | <ChangePersonInfoDialog v-bind="dialogProps"></ChangePersonInfoDialog> |
| | | </AppScrollContainer> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | useTable, |
| | | ProTableV2, |
| | | ProFormRadio, |
| | | FieldSelect, |
| | | defineOperationBtns, |
| | | useFormDialog, |
| | | } from '@bole-core/components'; |
| | |
| | | return await insuranceOrderServices.getInsuranceOrderDetail( |
| | | { id: id }, |
| | | { |
| | | showLoading: false, |
| | | showLoading: !state.loading, |
| | | } |
| | | ); |
| | | }, |
| | |
| | | await queryClient.ensureQueryData({ |
| | | queryKey: ['insuranceOrderServices/getInsuranceOrderDetail', id], |
| | | }); |
| | | getBatchRefundInfoDetail(); |
| | | await getBatchRefundInfoDetail(); |
| | | state.loading = false; |
| | | }); |
| | | |
| | | const { |
| | |
| | | function handleDownloadPerson() {} |
| | | function handleDownloadOrder() {} |
| | | function handleBatchChange() { |
| | | router.push({ |
| | | name: 'BatchChange', |
| | | params: { |
| | | id: id, |
| | | }, |
| | | }); |
| | | // router.push({ |
| | | // name: 'BatchChange', |
| | | // params: { |
| | | // id: id, |
| | | // }, |
| | | // }); |
| | | } |
| | | |
| | | const { dialogProps, handleEdit, editForm } = useFormDialog({ |
| | |
| | | :limit="1" |
| | | :limitFileSize="10" |
| | | accept="xlsx,xls" |
| | | ></ProFormUpload> |
| | | > |
| | | <template #tip> |
| | | <div> |
| | | <el-text type="danger">支持excel文件,请上传同批次的投保人员清单</el-text> |
| | | </div> |
| | | </template> |
| | | </ProFormUpload> |
| | | </ProFormItemV2> |
| | | </ProForm> |
| | | <template #footer> |
| | |
| | | prop="url" |
| | | :check-rules="[{ message: '请上传文件', type: 'upload' }]" |
| | | > |
| | | <ProFormUpload v-model:file-url="innerForm.url" accept="pdf,jpg,jpeg,png"></ProFormUpload> |
| | | <ProFormUpload v-model:file-url="innerForm.url" accept="pdf,jpg,jpeg,png"> |
| | | <template #tip> |
| | | <div> |
| | | <el-text type="danger">支持pdf、jpg、jepg、png图片</el-text> |
| | | </div> |
| | | </template> |
| | | </ProFormUpload> |
| | | </ProFormItemV2> |
| | | </ProForm> |
| | | <template #footer> |