wupengfei
2025-03-28 cc0e1bffc4fa5dc3f51405ef967e99c00997a18e
src/views/Home/components/BatchChangeRecordDetailDialog.vue
@@ -6,6 +6,7 @@
        :columns="column"
        :show-operation-column="false"
      >
        <template #changeType="{ row }"> {{ BatchChangeTypeEnumText[row.changeType] }}</template>
      </ProTableV2>
    </ProDialogTableWrapper>
  </ProDialog>
@@ -13,8 +14,9 @@
<script setup lang="ts">
import { ProDialog, ProTableV2, ProDialogTableWrapper, useTable } from '@bole-core/components';
import * as insuranceOrderServices from '@/services/api/InsuranceOrder';
import { OrderInputType } from '@bole-core/core';
import { paginateList } from '@/utils';
import { BatchChangeTypeEnumText } from '@/constants';
defineOptions({
  name: 'BatchChangeRecordDetailDialog',
@@ -24,6 +26,7 @@
  modelValue: boolean;
  form?: {
    id: string;
    staffList: API.InsureBatchBillDetailDto[];
  };
};
@@ -39,57 +42,48 @@
const column: API.CustomModuleColumnDto[] = [
  {
    id: '1',
    enCode: 'name',
    enCode: 'changeType',
    name: '批改类型',
    width: 120,
  },
  {
    id: '2',
    enCode: 'name',
    name: '姓名',
    width: 120,
  },
  {
    id: '3',
    enCode: 'name',
    enCode: 'idNumber',
    name: '身份证号',
    width: 120,
  },
  {
    id: '4',
    enCode: 'name',
    enCode: 'workType',
    name: '雇员工种',
    width: 120,
  },
  {
    id: '5',
    enCode: 'name',
    enCode: 'gender',
    name: '性别',
    width: 120,
  },
  {
    id: '6',
    enCode: 'name',
    enCode: 'age',
    name: '年龄',
    width: 120,
  },
  {
    id: '7',
    enCode: 'name',
    enCode: 'birthDay',
    name: '出生日期',
    width: 120,
  },
  {
    id: '8',
    enCode: 'name',
    enCode: 'phoneNumber',
    name: '电话号码',
    width: 120,
  },
  {
    id: '9',
    enCode: 'name',
    enCode: 'modifyInfo',
    name: '修改内容',
    width: 120,
  },
];
@@ -106,7 +100,7 @@
  () => props.modelValue,
  (val) => {
    if (val) {
      getBatchRefundInfoDetail();
      getList();
    }
  },
  {
@@ -115,7 +109,7 @@
);
const {
  getDataSource: getBatchRefundInfoDetail,
  getDataSource: getList,
  proTableProps,
  paginationState,
  extraParamState,
@@ -123,17 +117,14 @@
} = useTable(
  async ({ pageIndex, pageSize }, extraParamState) => {
    try {
      let params: API.QueryInsuranceOrderPageInput = {
      return Promise.resolve({
        pageModel: {
          rows: pageSize,
          page: pageIndex,
          orderInput: extraParamState.orderInput,
          totalCount: props.form.staffList.length,
        },
        condition: extraParamState.keyWord,
        // insurePolicyOperateHistoryId: id,
      };
      let res = await insuranceOrderServices.getInsuranceOrderPage(params);
      return res;
        data: paginateList(props.form.staffList, pageIndex, pageSize),
      });
    } catch (error) {}
  },
  {
@@ -141,7 +132,6 @@
      keyWord: '',
      orderInput: [{ property: 'id', order: OrderInputType.Asc }],
    },
    columnsRenderProps: {},
  }
);
</script>