| | |
| | | } from '@12333/constants'; |
| | | import _ from 'lodash'; |
| | | import { trim } from '@12333/utils'; |
| | | import { computed, MaybeRef, reactive, ref, unref } from 'vue'; |
| | | import { computed, MaybeRef, reactive, Ref, ref, unref } from 'vue'; |
| | | import * as taskServices from '@12333/services/apiV2/task'; |
| | | import * as enterpriseWalletServices from '@12333/services/apiV2/enterpriseWallet'; |
| | | import dayjs from 'dayjs'; |
| | |
| | | }; |
| | | } |
| | | |
| | | export function useEnterpriseWalletAccessSelect() { |
| | | type EnterpriseWalletAccessSelectOptions = { |
| | | supplierEnterpriseId: MaybeRef<string>; |
| | | }; |
| | | |
| | | export function useEnterpriseWalletAccessSelect(options: EnterpriseWalletAccessSelectOptions) { |
| | | const { supplierEnterpriseId } = options; |
| | | const { data } = useQuery({ |
| | | queryKey: ['enterpriseWalletServices/getEnterpriseWalletAccessSelect'], |
| | | queryKey: ['enterpriseWalletServices/getEnterpriseWalletAccessSelect', supplierEnterpriseId], |
| | | queryFn: () => { |
| | | return enterpriseWalletServices.getEnterpriseWalletAccessSelect( |
| | | {}, |
| | | { supplierEnterpriseId: unref(supplierEnterpriseId) }, |
| | | { |
| | | showLoading: false, |
| | | } |