| | |
| | | EnumTaskUserSignContractStatus, |
| | | EnumTaskUserSignContractStatusText, |
| | | } from '@12333/constants'; |
| | | import { format } from '@12333/utils'; |
| | | import { format, Message } from '@12333/utils'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | |
| | | }); |
| | | |
| | | function checkAgreement() { |
| | | const encodedUrl = encodeURIComponent(detail?.value?.contractUrl); |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.mineAgreementSignDetail}?url=${encodedUrl}`, |
| | | }); |
| | | if (detail?.value?.userSignContractStatus === EnumTaskUserSignContractStatus.Wait) { |
| | | goToSign(); |
| | | } else { |
| | | const encodedUrl = encodeURIComponent(detail?.value?.contractUrl); |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.mineAgreementSignDetail}?url=${encodedUrl}`, |
| | | }); |
| | | } |
| | | } |
| | | |
| | | const goToSign = useAccessReal(async () => { |
| | |
| | | let res = await enterpriseEmployeeServices.personalUserElectronSign(params); |
| | | if (res) { |
| | | const encodedUrl = encodeURIComponent(res.signContractLongUrl); |
| | | Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | Taro.navigateTo({ url: `${RouterPath.mineAgreementSignExtraPage}?url=${encodedUrl}` }); |
| | | } |
| | | } catch (error) {} |
| | | }); |
| | | Taro.useDidShow(() => { |
| | | refetch(); |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss"> |