wupengfei
2025-03-21 cd4a07141ec97ff6c51dd7137462e506d8d0881f
feat: init
5个文件已修改
81 ■■■■■ 已修改文件
src/views/Home/Home.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/BatchChangeRecordView.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/InsureOrderInfoView.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/UploadInsurePersonDialog.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/components/UploadStampFileDialog.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/Home/Home.vue
@@ -124,14 +124,11 @@
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),
    },
  },
  {
@@ -142,9 +139,9 @@
    emits: {
      onClick: (role) => handleBatch(role),
    },
    // extraProps: {
    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    // },
    extraProps: {
      hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    },
  },
  {
    data: {
@@ -154,17 +151,20 @@
    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);
@@ -218,14 +218,6 @@
        format: 'YYYY/MM/DD',
      },
    },
    showSummary: true,
    summaryPropertys: [
      {
        property: 'table-operation',
        valueKey: 'totalAmount',
        formatter: (v) => `¥${toThousand(v)}`,
      },
    ],
  }
);
src/views/Home/components/BatchChangeRecordView.vue
@@ -1,4 +1,5 @@
<template>
  <LoadingLayout :loading="state.loading">
  <AppContainer>
    <ProTableV2
      v-bind="proTableProps"
@@ -12,6 +13,7 @@
    </ProTableV2>
    <BatchChangeRecordDetailDialog v-bind="dialogProps"></BatchChangeRecordDetailDialog>
  </AppContainer>
  </LoadingLayout>
</template>
<script setup lang="ts">
@@ -146,8 +148,9 @@
  });
}
onMounted(() => {
  getBatchRefundInfoDetail();
onMounted(async () => {
  await getBatchRefundInfoDetail();
  state.loading = false;
});
</script>
src/views/Home/components/InsureOrderInfoView.vue
@@ -1,4 +1,5 @@
<template>
  <LoadingLayout :loading="state.loading">
  <AppScrollContainer>
    <ChunkCell title="">
      <ProForm :model="detail" ref="formRef" label-width="120px" :is-read="true">
@@ -106,6 +107,7 @@
    </ChunkCell>
    <ChangePersonInfoDialog v-bind="dialogProps"></ChangePersonInfoDialog>
  </AppScrollContainer>
  </LoadingLayout>
</template>
<script setup lang="ts">
@@ -126,7 +128,6 @@
  useTable,
  ProTableV2,
  ProFormRadio,
  FieldSelect,
  defineOperationBtns,
  useFormDialog,
} from '@bole-core/components';
@@ -240,7 +241,7 @@
    return await insuranceOrderServices.getInsuranceOrderDetail(
      { id: id },
      {
        showLoading: false,
        showLoading: !state.loading,
      }
    );
  },
@@ -254,7 +255,8 @@
  await queryClient.ensureQueryData({
    queryKey: ['insuranceOrderServices/getInsuranceOrderDetail', id],
  });
  getBatchRefundInfoDetail();
  await getBatchRefundInfoDetail();
  state.loading = false;
});
const {
@@ -297,12 +299,12 @@
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({
src/views/Home/components/UploadInsurePersonDialog.vue
@@ -29,7 +29,13 @@
          :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>
src/views/Home/components/UploadStampFileDialog.vue
@@ -13,7 +13,13 @@
        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>