wupengfei
2025-03-27 12cce14bc30a85bbf96b5b30bb1aff1fc354091a
src/views/Home/components/BatchChangeRecordView.vue
@@ -24,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';
@@ -90,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,
    // },
  },
]);
@@ -112,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;
@@ -142,12 +153,14 @@
  },
});
function handleDetail(row: API.InsuranceOrderListOutput) {
function handleDetail(row: API.InsureBatchBillDto) {
  handleEdit({
    id: row.id,
    id: row.insureBatchBillId,
  });
}
function handleDownload(row: API.InsureBatchBillDto) {}
onMounted(async () => {
  await getBatchRefundInfoDetail();
  state.loading = false;