wupengfei
2025-03-21 cd4a07141ec97ff6c51dd7137462e506d8d0881f
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)}`,
      },
    ],
  }
);