wupengfei
2025-12-03 36b00e2ef3b079755b4e240ede283407974086a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { useQuery, useQueryClient } from '@tanstack/vue-query';
import * as enterpriseServices from '@/services/api/enterprise';
 
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 };
}