| | |
| | | name: 'InnerPage', |
| | | }); |
| | | |
| | | const { userDetail } = useUser(); |
| | | const router = Taro.useRouter(); |
| | | const id = router.params?.id; |
| | | const code = router.params?.code; |
| | |
| | | data: detail, |
| | | refetch, |
| | | } = useQuery({ |
| | | queryKey: ['enterpriseEmployeeServices/getTaskInfo', id, code], |
| | | queryKey: ['enterpriseEmployeeServices/getPersonalUserElectronSign', id, code], |
| | | queryFn: async () => { |
| | | return await enterpriseEmployeeServices.getPersonalUserElectronSign( |
| | | { id: id, code: code }, |
| | |
| | | }); |
| | | } |
| | | |
| | | const goToSign = useAccessReal(() => {}); |
| | | const goToSign = useAccessReal(async () => { |
| | | try { |
| | | let params: API.PersonalUserElectronSignCommand = { |
| | | id: id, |
| | | }; |
| | | let res = await enterpriseEmployeeServices.personalUserElectronSign(params); |
| | | if (res) { |
| | | const encodedUrl = encodeURIComponent(res.signContractLongUrl); |
| | | Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | } |
| | | } catch (error) {} |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss"> |