wupengfei
2025-03-24 80dd2bebbe3d204cc7833a4793aba67bba356b1d
src/views/Home/components/InsureOrderInfoView.vue
@@ -34,13 +34,16 @@
          </ProFormCol>
          <ProFormCol>
            <ProFormColItem :span="8">
              <ProFormItemV2 label="参保机构:" prop="applyTime">
                <ProFormText v-model.trim="detail.orderNo" />
              <ProFormItemV2 label="参保机构:" prop="insuredInstitution">
                <ProFormRadio
                  v-model="detail.insuredInstitution"
                  :value-enum="InsuredInstitutionEnum"
                />
              </ProFormItemV2>
            </ProFormColItem>
            <ProFormColItem :span="8">
              <ProFormItemV2 label="投保方案:" prop="applyTime">
                <ProFormText v-model.trim="detail.orderNo" />
              <ProFormItemV2 label="投保方案:" prop="insuranceScheme">
                <ProFormRadio v-model="detail.insuranceScheme" :value-enum="InsuranceSchemeEnum" />
              </ProFormItemV2>
            </ProFormColItem>
            <ProFormColItem :span="8">
@@ -73,24 +76,18 @@
              <SearchInput
                v-model="extraParamState.keyWord"
                style="width: 300px"
                placeholder="人员姓名/身份证号/手机号"
                placeholder="姓名/身份证号/手机号"
                @on-click-search="getBatchRefundInfoDetail"
              >
              </SearchInput>
            </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 +128,16 @@
  defineOperationBtns,
  useFormDialog,
} from '@bole-core/components';
import { insuranceTypeText } from '@/constants';
import {
  InsuranceOrderTempPath,
  insuranceTypeText,
  InsuredInstitutionEnum,
  InsuranceSchemeEnum,
} 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 +210,9 @@
    emits: {
      onClick: (role) => handleChangeInfo(role),
    },
    extraProps: {
      hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    },
    // extraProps: {
    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    // },
  },
  {
    data: {
@@ -218,11 +220,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 +294,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 +326,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>