From 0d1b01575736fbb808f9f7a2b17399de0900bcc7 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 12 十二月 2025 17:53:20 +0800
Subject: [PATCH] feat: 保险
---
packages/hooks/insurance.ts | 5 +++--
apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue b/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue
index d8ee63b..f1f4bec 100644
--- a/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue
+++ b/apps/bMiniApp/src/subpackages/task/publishTask/InnerPage.vue
@@ -628,6 +628,7 @@
const { enterpriseInsuranceProductSelect } = useEnterpriseInsuranceProductSelect({
supplierEnterpriseId: computed(() => form.supplierEnterpriseId),
+ isConfiguredInsurance: computed(() => form.isConfiguredInsurance),
});
const {
diff --git a/packages/hooks/insurance.ts b/packages/hooks/insurance.ts
index 2e79455..7ad3fb0 100644
--- a/packages/hooks/insurance.ts
+++ b/packages/hooks/insurance.ts
@@ -4,12 +4,13 @@
type UseEnterpriseInsuranceProductSelectOptions = {
supplierEnterpriseId: MaybeRef<string>;
+ isConfiguredInsurance: MaybeRef<boolean>;
};
export function useEnterpriseInsuranceProductSelect(
options: UseEnterpriseInsuranceProductSelectOptions
) {
- const { supplierEnterpriseId } = options;
+ const { supplierEnterpriseId, isConfiguredInsurance } = options;
const queryClient = useQueryClient();
const { data: enterpriseInsuranceProductSelect } = useQuery({
@@ -27,7 +28,7 @@
},
placeholderData: () =>
[] as API.SelectOptionNullableGuidGetEnterpriseInsuranceProductSelectQueryOption[],
- enabled: computed(() => !!unref(supplierEnterpriseId)),
+ enabled: computed(() => !!unref(supplierEnterpriseId) && unref(isConfiguredInsurance)),
});
return { enterpriseInsuranceProductSelect };
--
Gitblit v1.9.1