| | |
| | | return { taskSelect }; |
| | | } |
| | | |
| | | export function useEnterpriseWalletAccessSelect() { |
| | | type EnterpriseWalletAccessSelectOptions = { |
| | | supplierEnterpriseId: MaybeRef<string>; |
| | | }; |
| | | |
| | | export function useEnterpriseWalletAccessSelect(options: EnterpriseWalletAccessSelectOptions) { |
| | | const { supplierEnterpriseId } = options; |
| | | const queryClient = useQueryClient(); |
| | | |
| | | const { data } = useQuery({ |
| | | queryKey: ['enterpriseWalletServices/getEnterpriseWalletAccessSelect'], |
| | | queryKey: ['enterpriseWalletServices/getEnterpriseWalletAccessSelect', supplierEnterpriseId], |
| | | queryFn: () => { |
| | | return enterpriseWalletServices.getEnterpriseWalletAccessSelect( |
| | | {}, |
| | | { supplierEnterpriseId: unref(supplierEnterpriseId) }, |
| | | { |
| | | showLoading: false, |
| | | } |
| | |
| | | icon: 'home', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/BalanceManage', |
| | | name: 'BalanceManage', |
| | | hidden: false, |
| | | alwaysShow: true, |
| | | component: () => import('@/views/ServiceChargeManage/BalanceManage.vue'), |
| | | meta: { |
| | | rank: 10042, |
| | | title: '余额管理', |
| | | // rootMenu: true, |
| | | icon: 'home', |
| | | }, |
| | | }, |
| | | // { |
| | | // path: '/BalanceManage', |
| | | // name: 'BalanceManage', |
| | | // hidden: false, |
| | | // alwaysShow: true, |
| | | // component: () => import('@/views/ServiceChargeManage/BalanceManage.vue'), |
| | | // meta: { |
| | | // rank: 10042, |
| | | // title: '余额管理', |
| | | // // rootMenu: true, |
| | | // icon: 'home', |
| | | // }, |
| | | // }, |
| | | { |
| | | path: '/ServiceChargeDetail/:id', |
| | | name: 'ServiceChargeDetail', |
| | |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | request: undefined, |
| | | ...params['request'], |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | |
| | | } |
| | | |
| | | interface APIgetEnterpriseWalletAccessSelectParams { |
| | | /** 查询已签约企业钱包通道选择器数据 */ |
| | | request?: GetEnterpriseWalletAccessSelectQuery; |
| | | /** 供应商Id */ |
| | | supplierEnterpriseId?: string; |
| | | } |
| | | |
| | | interface APIgetEnterpriseWalletExpandindirectOrderParams { |
| | |
| | | /** 是否已配置 */ |
| | | isConfigured?: boolean; |
| | | } |
| | | |
| | | type GetEnterpriseWalletAccessSelectQuery = Record<string, any>; |
| | | |
| | | interface GetEnterpriseWalletAccessSelectQueryOption { |
| | | /** Id */ |
| | |
| | | const id = route.params.id as string; |
| | | const isEdit = !!id; |
| | | |
| | | const { settlementAccessList } = useEnterpriseWalletAccessSelect(); |
| | | const { supplierEnterpriseSelect } = useGetSupplierEnterpriseSelect(); |
| | | |
| | | function disabledDate(time: Date) { |
| | |
| | | settlementAccess: '' as any as EnumEnterpriseWalletAccess, |
| | | }); |
| | | |
| | | const { settlementAccessList } = useEnterpriseWalletAccessSelect({ |
| | | supplierEnterpriseId: computed(() => form.supplierEnterpriseId), |
| | | }); |
| | | |
| | | const { isLoading } = useQuery({ |
| | | queryKey: ['taskServices/getTaskInfo', id], |
| | | queryFn: async () => { |