| | |
| | | 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, |
| | | } |
| | |
| | | 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 */ |
| | |
| | | </QueryFilterItem> |
| | | </template> |
| | | <template #btn> |
| | | <el-button @click="goAddOrEdit()" type="primary">发布</el-button> |
| | | <!-- <el-button @click="goAddOrEdit()" type="primary">发布</el-button> --> |
| | | </template> |
| | | </ProTableQueryFilterBar> |
| | | <ProTableV2 |
| | |
| | | params: { |
| | | id: row?.id ?? '', |
| | | }, |
| | | query: { |
| | | supplierEnterpriseId: row?.supplierEnterpriseId, |
| | | }, |
| | | }); |
| | | } |
| | | function goDetail(row: API.GetTaskInfosQueryResultItem) { |