| | |
| | | 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 = { |
| | |
| | | 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 }; |
| | | } |