| | |
| | | </QueryFilterItem> |
| | | </template> |
| | | <template #btn> |
| | | <el-button @click="handleTemplateDownload()" icon="Download" type="primary" |
| | | >模板下载</el-button |
| | | > |
| | | <el-button @click="handleImport()" icon="Download" type="primary">导入</el-button> |
| | | <el-button @click="handleClear()" icon="Download" type="primary">清空数据</el-button> |
| | | <el-button @click="handleDownloadPerson()" icon="Download" type="primary" |
| | | >人员清单下载</el-button |
| | | > |
| | | <el-button @click="handleDownloadOrder()" icon="Download" type="primary" |
| | | >保单下载</el-button |
| | | > |
| | | <el-button @click="handleTemplateDownload()" link type="primary">模板下载</el-button> |
| | | <el-button @click="handleImport()" type="primary">导入</el-button> |
| | | <el-button @click="handleClear()" type="primary">清空数据</el-button> |
| | | <el-button @click="handleDownloadPerson()" type="primary">人员清单下载</el-button> |
| | | <el-button @click="handleDownloadOrder()" type="primary">保单下载</el-button> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | |
| | | defineOperationBtns, |
| | | useFormDialog, |
| | | } from '@bole-core/components'; |
| | | import { insuranceTypeText } from '@/constants'; |
| | | import { InsuranceOrderTempPath, insuranceTypeText } from '@/constants'; |
| | | import ChangePersonInfoDialog from './ChangePersonInfoDialog.vue'; |
| | | import * as insuranceOrderServices from '@/services/api/InsuranceOrder'; |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | import { OrderInputType } from '@bole-core/core'; |
| | | import { downloadFileByUrl, OrderInputType } from '@bole-core/core'; |
| | | |
| | | defineOptions({ |
| | | name: 'InsureOrderInfoView', |
| | |
| | | emits: { |
| | | onClick: (role) => handleChangeInfo(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | }, |
| | | // extraProps: { |
| | | // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | // }, |
| | | }, |
| | | { |
| | | data: { |
| | |
| | | name: '理赔详情', |
| | | }, |
| | | emits: { |
| | | onClick: (role) => handleInsureClaimDetail(), |
| | | onClick: (role) => handleInsureClaimDetail(role), |
| | | }, |
| | | extraProps: { |
| | | hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | }, |
| | | // extraProps: { |
| | | // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile, |
| | | // }, |
| | | }, |
| | | ]); |
| | | |
| | |
| | | } |
| | | ); |
| | | |
| | | function handleTemplateDownload() {} |
| | | function handleTemplateDownload() { |
| | | downloadFileByUrl(InsuranceOrderTempPath, '人员信息模板'); |
| | | } |
| | | function handleClear() {} |
| | | function handleImport() {} |
| | | |
| | | 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({ |
| | |
| | | |
| | | async function changeInfo() {} |
| | | |
| | | function handleInsureClaimDetail() {} |
| | | function handleInsureClaimDetail(row: API.InsuranceOrderListOutput) { |
| | | router.push({ |
| | | name: 'InsuranceClaimDetail', |
| | | params: { |
| | | id: row.id, |
| | | }, |
| | | query: { |
| | | fromRoute: 'InsuranceOrderDetail', |
| | | }, |
| | | }); |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |