From 63077f4663c259dfa3614d8564b14827c443a4e7 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 31 十月 2025 15:29:59 +0800
Subject: [PATCH] fix: bug

---
 packages/hooks/enterprise.ts |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/packages/hooks/enterprise.ts b/packages/hooks/enterprise.ts
index 308786e..d399944 100644
--- a/packages/hooks/enterprise.ts
+++ b/packages/hooks/enterprise.ts
@@ -1,5 +1,6 @@
 import { useQuery, useQueryClient } from '@tanstack/vue-query';
 import * as taskServices from '@12333/services/apiV2/task';
+import * as enterpriseServices from '@12333/services/apiV2/enterprise';
 import { MaybeRef, unref } from 'vue';
 
 type UseEnterpriseDetailOptions = {
@@ -27,3 +28,22 @@
     isError,
   };
 }
+
+export function useGetSupplierEnterpriseSelect() {
+  const queryClient = useQueryClient();
+
+  const { data: supplierEnterpriseSelect } = useQuery({
+    queryKey: ['enterpriseServices/getSupplierEnterpriseSelect'],
+    queryFn: () => {
+      return enterpriseServices.getSupplierEnterpriseSelect(
+        {},
+        {
+          showLoading: false,
+        }
+      );
+    },
+    placeholderData: () => [] as API.SelectOptionGuidGetSupplierEnterpriseSelectQueryOption[],
+  });
+
+  return { supplierEnterpriseSelect };
+}

--
Gitblit v1.9.1