|
@@ -73,7 +73,7 @@
|
|
|
|
|
|
|
|
<div class="bold-text">未注册电子税务局</div>
|
|
<div class="bold-text">未注册电子税务局</div>
|
|
|
<div class="register-btn btn" @click="registerUrl">立即注册</div>
|
|
<div class="register-btn btn" @click="registerUrl">立即注册</div>
|
|
|
- <div class="footer">客服电话:18813119496(微信同号)</div>
|
|
|
|
|
|
|
+ <div class="footer">客服电话:400-639-1811(微信同号)</div>
|
|
|
<div class="footer">技术支持:要易云(北京)科技有限公司</div>
|
|
<div class="footer">技术支持:要易云(北京)科技有限公司</div>
|
|
|
|
|
|
|
|
<!-- 失败弹窗 -->
|
|
<!-- 失败弹窗 -->
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
loginEtssmsApi,
|
|
loginEtssmsApi,
|
|
|
registerUrlApi,
|
|
registerUrlApi,
|
|
|
} from '@/services/modules/login'
|
|
} from '@/services/modules/login'
|
|
|
-import { getStatusApi } from '@/services/modules/invoiceInformation'
|
|
|
|
|
|
|
+import { getStatusAfterLoginApi } from '@/services/modules/invoiceInformation'
|
|
|
import type {
|
|
import type {
|
|
|
SendTtsSmsRequest,
|
|
SendTtsSmsRequest,
|
|
|
LoginEtssmsRequest,
|
|
LoginEtssmsRequest,
|
|
@@ -285,20 +285,31 @@ const loginBtn = useDebounceFn(async () => {
|
|
|
const res: any = await loginEtssmsApi(formData)
|
|
const res: any = await loginEtssmsApi(formData)
|
|
|
if (res?.access_token) {
|
|
if (res?.access_token) {
|
|
|
userStore.setAccessToken(res.access_token)
|
|
userStore.setAccessToken(res.access_token)
|
|
|
- const statusRes = await getStatusApi({ pushRecordId: formData.pushRecordId })
|
|
|
|
|
toast.close()
|
|
toast.close()
|
|
|
- // 修改认证下的状态内容,如果已经提交,跳转到成功页
|
|
|
|
|
- if (statusRes.code == 0) {
|
|
|
|
|
- const { invoiceStatus, eventStatus } = statusRes.data
|
|
|
|
|
- const isInvoiceSubmitted = invoiceStatus && isSubmitStatusMap.includes(invoiceStatus)
|
|
|
|
|
- const isEventSubmitted = eventStatus && isSubmitEventStatusMap.includes(eventStatus)
|
|
|
|
|
- if (isInvoiceSubmitted && isEventSubmitted) {
|
|
|
|
|
- return router.replace({
|
|
|
|
|
- path: '/login-success',
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ const statusToast = showLoadingToast({
|
|
|
|
|
+ message: '获取状态中…',
|
|
|
|
|
+ forbidClick: true,
|
|
|
|
|
+ duration: 0,
|
|
|
|
|
+ })
|
|
|
|
|
+ try {
|
|
|
|
|
+ const statusRes = await getStatusAfterLoginApi({
|
|
|
|
|
+ pushRecordId: formData.pushRecordId,
|
|
|
|
|
+ })
|
|
|
|
|
+ // 修改认证下的状态内容,如果已经提交,跳转到成功页
|
|
|
|
|
+ if (statusRes.code == 0) {
|
|
|
|
|
+ const { invoiceStatus, eventStatus } = statusRes.data
|
|
|
|
|
+ const isInvoiceSubmitted = invoiceStatus && isSubmitStatusMap.includes(invoiceStatus)
|
|
|
|
|
+ const isEventSubmitted = eventStatus && isSubmitEventStatusMap.includes(eventStatus)
|
|
|
|
|
+ if (isInvoiceSubmitted && isEventSubmitted) {
|
|
|
|
|
+ return router.replace({
|
|
|
|
|
+ path: '/login-success',
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+ router.replace({ path: '/invoice-information' })
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ statusToast.close()
|
|
|
}
|
|
}
|
|
|
- router.replace({ path: '/invoice-information' })
|
|
|
|
|
} else if (res.code == 401) {
|
|
} else if (res.code == 401) {
|
|
|
loginMessage.value = res.msg
|
|
loginMessage.value = res.msg
|
|
|
loginDialog.value = true
|
|
loginDialog.value = true
|