| | |
| | | |
| | | type UseEnterpriseDetailOptions = { |
| | | id: MaybeRef<string>; |
| | | supplierEnterpriseId?: MaybeRef<string>; |
| | | }; |
| | | |
| | | export function useEnterpriseDetail({ id }: UseEnterpriseDetailOptions) { |
| | | export function useEnterpriseDetail({ id, supplierEnterpriseId }: UseEnterpriseDetailOptions) { |
| | | const { data, refetch, isLoading, isError } = useQuery({ |
| | | queryKey: ['taskServices/getTaskEnterprise', id], |
| | | queryFn: async () => { |
| | | return await taskServices.getTaskEnterprise( |
| | | { id: unref(id) }, |
| | | { id: unref(id), supplierEnterpriseId: unref(supplierEnterpriseId) }, |
| | | { |
| | | showLoading: false, |
| | | } |