| | |
| | | return insureProduct?.id ?? ''; |
| | | } |
| | | |
| | | const queryClient = useQueryClient(); |
| | | |
| | | function ensureUserInsureProductSetting() { |
| | | return queryClient.ensureQueryData<API.InsureProductSettingDto[]>({ |
| | | queryKey: ['dictionaryServices/getUserInsureProductSetting'], |
| | | }); |
| | | } |
| | | |
| | | /**是否是生煎保账号 */ |
| | | const isSjbAccount = computed(() => allUserInsureProductSettingList.value.length > 0); |
| | | |
| | | return { |
| | | allUserInsureProductSettingList, |
| | | getInsureProductByIdNumber, |
| | | getInsureProductIdByIdNumber, |
| | | refetch, |
| | | ensureUserInsureProductSetting, |
| | | isSjbAccount, |
| | | }; |
| | | } |
| | | |
| | |
| | | staleTime: Infinity, |
| | | }); |
| | | |
| | | function getInsureProductSchemeByCode(code: string) { |
| | | return allInsureProductSchemeList.value.find((x) => x.code === code); |
| | | } |
| | | |
| | | return { |
| | | allInsureProductSchemeList, |
| | | refetch, |
| | | getInsureProductSchemeByCode, |
| | | }; |
| | | } |