| New file |
| | |
| | | import * as externalSystemServices from '@/services/api/ExternalSystem'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | |
| | | export function useGetCurrentExternalSystem() { |
| | | const { data } = useQuery({ |
| | | queryKey: ['externalSystemServices/getCurrentExternalSystem'], |
| | | queryFn: async () => { |
| | | return await externalSystemServices.getCurrentExternalSystem({ showLoading: false }); |
| | | }, |
| | | initialData: () => ({} as API.GetCurrentExternalSystemOutput), |
| | | }); |
| | | |
| | | const isSignWallet = computed(() => data.value?.isSignWallet); |
| | | |
| | | return { |
| | | isSignWallet, |
| | | }; |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查看当前外部系统信息 GET /api/ExternalSystem/GetCurrentExternalSystem */ |
| | | export async function getCurrentExternalSystem(options?: API.RequestConfig) { |
| | | return request<API.GetCurrentExternalSystemOutput>( |
| | | '/api/ExternalSystem/GetCurrentExternalSystem', |
| | | { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 获取外部系统列表 POST /api/ExternalSystem/GetExternalSystemList */ |
| | | export async function getExternalSystemList( |
| | | body: API.GetExternalSystemInput, |
| | |
| | | endDate?: string; |
| | | } |
| | | |
| | | interface GetCurrentExternalSystemOutput { |
| | | /** 是否签约钱包 */ |
| | | isSignWallet?: boolean; |
| | | } |
| | | |
| | | interface GetCustomContractParamterListInput { |
| | | pageModel?: Pagination; |
| | | /** 客户Id */ |
| | |
| | | } |
| | | |
| | | interface UpdateParkBountyApplyByEnterpriseInput { |
| | | batchNo?: string; |
| | | enterpriseMonthApplyId?: string; |
| | | } |
| | | |
| | |
| | | import { convertApi2FormUrlObjectBySeparator, convertApi2FormUrlOnlyOne, format } from '@/utils'; |
| | | import { useIndustrialParkDropDownList } from '@/hooks/industrialPark'; |
| | | import { useAccess } from '@/hooks'; |
| | | import { useGetCurrentExternalSystem } from '@/hooks/externalSystem'; |
| | | |
| | | defineOptions({ |
| | | name: 'FinancialApproval', |
| | |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | | const { industrialParkList } = useIndustrialParkDropDownList(); |
| | | const { isSignWallet } = useGetCurrentExternalSystem(); |
| | | |
| | | const fourStreamsIndustrialParkList = computed(() => { |
| | | return industrialParkList.value.filter((x) => !!x.rewardEnable); |
| | |
| | | incomeBankName: row.incomeBankName, |
| | | creationTime: row.creationTime, |
| | | insurePeopleNum: row.insurePeopleNum ?? ('' as any as number), |
| | | |
| | | isSignWallet: isSignWallet.value, |
| | | }); |
| | | } |
| | | |
| | |
| | | incomeBankName: '', |
| | | creationTime: '', |
| | | insurePeopleNum: 0, |
| | | |
| | | isSignWallet: false, |
| | | }, |
| | | }); |
| | | |
| | |
| | | import _ from 'lodash'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { useAccess, useIndustrialParkDropDownList } from '@/hooks'; |
| | | import { useGetCurrentExternalSystem } from '@/hooks/externalSystem'; |
| | | |
| | | defineOptions({ |
| | | name: 'WithdrawalApproval', |
| | |
| | | const state = reactive({ ...BaseState }); |
| | | |
| | | const { fourStreamsIndustrialParkList } = useIndustrialParkDropDownList(); |
| | | const { isSignWallet } = useGetCurrentExternalSystem(); |
| | | |
| | | onMounted(async () => { |
| | | await getList(); |
| | |
| | | handleAdd({ |
| | | drawWithId: row.drawWithId, |
| | | isCheck, |
| | | isSignWallet: isSignWallet.value, |
| | | }); |
| | | } |
| | | |
| | |
| | | checkRemark: '', |
| | | isCheck: false, |
| | | checkFileUrl: [] as UploadUserFile[], |
| | | isSignWallet: false, |
| | | }, |
| | | }); |
| | | |
| | |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormCol v-if="!form.isSignWallet || form.isCheck"> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 |
| | | label="上传凭证:" |
| | |
| | | incomeBankName: string; |
| | | insurePeopleNum: number; |
| | | creationTime: string; |
| | | |
| | | isSignWallet: boolean; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormCol> |
| | | <ProFormCol v-if="!form.isSignWallet || form.isCheck"> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 |
| | | label="上传凭证:" |
| | |
| | | creationTime?: string; |
| | | isCheck: boolean; |
| | | checkFileUrl: UploadUserFile[]; |
| | | |
| | | isSignWallet: boolean; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |