wupengfei
2025-03-24 ee36747f2db9ac3a641e1cbaeb01f726ce9faa98
src/views/Home/components/InsureOrderInfoView.vue
@@ -80,17 +80,11 @@
            </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
@@ -131,11 +125,11 @@
  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',
@@ -208,9 +202,9 @@
    emits: {
      onClick: (role) => handleChangeInfo(role),
    },
    extraProps: {
      hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    },
    // extraProps: {
    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    // },
  },
  {
    data: {
@@ -218,11 +212,11 @@
      name: '理赔详情',
    },
    emits: {
      onClick: (role) => handleInsureClaimDetail(),
      onClick: (role) => handleInsureClaimDetail(role),
    },
    extraProps: {
      hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    },
    // extraProps: {
    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    // },
  },
]);
@@ -292,19 +286,21 @@
  }
);
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({
@@ -322,7 +318,17 @@
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>