wupengfei
2025-03-27 12cce14bc30a85bbf96b5b30bb1aff1fc354091a
src/views/Home/components/BatchChangeRecordView.vue
@@ -1,17 +1,19 @@
<template>
  <AppContainer>
    <ProTableV2
      v-bind="proTableProps"
      :columns="column"
      :operationBtns="operationBtns"
      :autoHeight="false"
      :tableProps="{
        maxHeight: '400px',
      }"
    >
    </ProTableV2>
    <BatchChangeRecordDetailDialog v-bind="dialogProps"></BatchChangeRecordDetailDialog>
  </AppContainer>
  <LoadingLayout :loading="state.loading">
    <AppContainer>
      <ProTableV2
        v-bind="proTableProps"
        :columns="column"
        :operationBtns="operationBtns"
        :autoHeight="false"
        :tableProps="{
          maxHeight: '400px',
        }"
      >
      </ProTableV2>
      <BatchChangeRecordDetailDialog v-bind="dialogProps"></BatchChangeRecordDetailDialog>
    </AppContainer>
  </LoadingLayout>
</template>
<script setup lang="ts">
@@ -22,7 +24,7 @@
  defineOperationBtns,
  useFormDialog,
} from '@bole-core/components';
import * as insuranceOrderServices from '@/services/api/InsuranceOrder';
import * as insureBatchBillServices from '@/services/api/InsureBatchBill';
import { OrderInputType } from '@bole-core/core';
import BatchChangeRecordDetailDialog from './BatchChangeRecordDetailDialog.vue';
@@ -88,7 +90,19 @@
      onClick: (role) => handleDetail(role),
    },
    // extraProps: {
    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
    //   hide: (row: API.InsureBatchBillDto) => !row.orderBillFile,
    // },
  },
  {
    data: {
      enCode: 'downloadBtn',
      name: '下载批单',
    },
    emits: {
      onClick: (role) => handleDownload(role),
    },
    // extraProps: {
    //   hide: (row: API.InsureBatchBillDto) => !row.orderBillFile,
    // },
  },
]);
@@ -110,16 +124,15 @@
} = useTable(
  async ({ pageIndex, pageSize }, extraParamState) => {
    try {
      let params: API.QueryInsuranceOrderPageInput = {
      let params: API.GetInsuranceBatchBillInput = {
        pageModel: {
          rows: pageSize,
          page: pageIndex,
          orderInput: extraParamState.orderInput,
        },
        condition: extraParamState.keyWord,
        // insurePolicyOperateHistoryId: id,
        insurancePolicyId: id,
      };
      let res = await insuranceOrderServices.getInsuranceOrderPage(params, {
      let res = await insureBatchBillServices.getInsureBatchBillList(params, {
        showLoading: !state.loading,
      });
      return res;
@@ -140,14 +153,17 @@
  },
});
function handleDetail(row: API.InsuranceOrderListOutput) {
function handleDetail(row: API.InsureBatchBillDto) {
  handleEdit({
    id: row.id,
    id: row.insureBatchBillId,
  });
}
onMounted(() => {
  getBatchRefundInfoDetail();
function handleDownload(row: API.InsureBatchBillDto) {}
onMounted(async () => {
  await getBatchRefundInfoDetail();
  state.loading = false;
});
</script>