wupengfei
2025-03-31 b697737f281023871227b26b6c9d6c309cd3e899
src/views/Home/components/InsureClaimDetailDialog.vue
@@ -6,9 +6,20 @@
        :columns="column"
        :operation-btns="operationBtns"
      >
        <template #changeType="{ row }"> {{ BatchChangeTypeEnumText[row.changeType] }}</template>
        <template #claimResult="{ row }">
          {{ InsuranceClaimResultEnumText[row.claimResult] }}
        </template>
        <template #reportedTime="{ row }">
          {{ dayjs(row.reportedTime).format('YYYY-MM-DD') }}
        </template>
      </ProTableV2>
    </ProDialogTableWrapper>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="emit('onCancel')">取 消</el-button>
        <el-button type="primary" @click="emit('onCancel')">确 定</el-button>
      </span>
    </template>
  </ProDialog>
</template>
@@ -20,9 +31,9 @@
  useTable,
  defineOperationBtns,
} from '@bole-core/components';
import { OrderInputType } from '@bole-core/core';
import { paginateList } from '@/utils';
import { BatchChangeTypeEnumText } from '@/constants';
import { InsuranceClaimResultEnumText } from '@/constants';
import dayjs from 'dayjs';
defineOptions({
  name: 'InsureClaimDetailDialog',
@@ -32,7 +43,8 @@
  modelValue: boolean;
  form?: {
    id: string;
    staffList: API.InsureBatchBillDetailDto[];
    routeId: string;
    staffList: API.InsuranceClaimDetailOutput[];
  };
};
@@ -58,22 +70,22 @@
  },
  {
    id: '3',
    enCode: 'idNumber',
    enCode: 'reportedTime',
    name: '报案时间',
  },
  {
    id: '4',
    enCode: 'idNumber',
    enCode: 'contactNumber',
    name: '联系电话',
  },
  {
    id: '5',
    enCode: 'idNumber',
    enCode: 'accidentType',
    name: '事故类型',
  },
  {
    id: '6',
    enCode: 'idNumber',
    enCode: 'claimResult',
    name: '理赔结果',
  },
];
@@ -120,7 +132,7 @@
  extraParamState,
  reset,
} = useTable(
  async ({ pageIndex, pageSize }, extraParamState) => {
  async ({ pageIndex, pageSize }) => {
    try {
      return Promise.resolve({
        pageModel: {
@@ -133,9 +145,11 @@
    } catch (error) {}
  },
  {
    defaultExtraParams: {
      keyWord: '',
      orderInput: [{ property: 'id', order: OrderInputType.Asc }],
    columnsRenderProps: {
      reportedTime: {
        type: 'date',
        format: 'YYYY-MM-DD',
      },
    },
  }
);
@@ -148,6 +162,8 @@
    },
    query: {
      fromRoute: 'InsuranceOrderDetail',
      insuranceClaimId: row.id,
      routeId: props.form.routeId,
    },
  });
}