|
@@ -1,42 +1,43 @@
|
|
|
|
+<!-- 注册企业进度 -->
|
|
<template>
|
|
<template>
|
|
<div class="pt-5">
|
|
<div class="pt-5">
|
|
<v-card class="default-width pa-5">
|
|
<v-card class="default-width pa-5">
|
|
<div style="width: 600px;margin: 80px auto;">
|
|
<div style="width: 600px;margin: 80px auto;">
|
|
|
|
|
|
<!-- 提交企业注册以后跳转显示页面 -->
|
|
<!-- 提交企业注册以后跳转显示页面 -->
|
|
- <div v-if="!info || !(Object.keys(info).length)">
|
|
|
|
|
|
+ <div v-if="!applyInfo || !(Object.keys(applyInfo).length)">
|
|
<span>提交成功,审核时间在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收</span>
|
|
<span>提交成功,审核时间在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 等待审核 -->
|
|
<!-- 等待审核 -->
|
|
- <div v-else-if="info.status === '0'">
|
|
|
|
|
|
+ <div v-else-if="applyInfo.status === '0'">
|
|
<span>您的申请正在审核中,审核时间在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收</span>
|
|
<span>您的申请正在审核中,审核时间在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收</span>
|
|
<div class="mt-5">
|
|
<div class="mt-5">
|
|
- <span>提交时间:{{ info.info.createTime }}</span>
|
|
|
|
|
|
+ <span>提交时间:{{ applyInfo.createTime }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 审核不通过 -->
|
|
<!-- 审核不通过 -->
|
|
- <div v-else-if="info.status === '2'">
|
|
|
|
|
|
+ <div v-else-if="applyInfo.status === '2'">
|
|
<div class="mb-3" style="color: red;">审核不通过</div>
|
|
<div class="mb-3" style="color: red;">审核不通过</div>
|
|
- <div class="mb-3">原因:{{ info.reason }}</div>
|
|
|
|
- <div v-if="info.remark">备注:{{ info.remark }}</div>
|
|
|
|
- <!-- <div class="mt-5">
|
|
|
|
- <span>审核时间:{{ updateTime }}</span>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ <div class="mb-3">原因:{{ applyInfo.reason }}</div>
|
|
|
|
+ <div v-if="applyInfo.remark">备注:{{ applyInfo.remark }}</div>
|
|
<div class="mt-5">
|
|
<div class="mt-5">
|
|
- <span>提交时间:{{ info.info.createTime }}</span>
|
|
|
|
|
|
+ <span>审核时间:{{ applyInfo.updateTime }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mt-5">
|
|
|
|
+ <span>提交时间:{{ applyInfo.createTime }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 审核通过(审核通过不会进入此页面) -->
|
|
<!-- 审核通过(审核通过不会进入此页面) -->
|
|
- <div v-else-if="info.status === '1'">
|
|
|
|
|
|
+ <div v-else-if="applyInfo.status === '1'">
|
|
<span>审核通过</span>
|
|
<span>审核通过</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="text-center">
|
|
<div class="text-center">
|
|
<v-btn class="mt-16" color="warning" to="/">{{ $t('common.toHome') }}</v-btn>
|
|
<v-btn class="mt-16" color="warning" to="/">{{ $t('common.toHome') }}</v-btn>
|
|
- <v-btn v-if="info.status === '2'" class="mt-16 ml-12" color="primary" to="/enterprise/register">{{ $t('common.resubmit') }}</v-btn>
|
|
|
|
|
|
+ <v-btn v-if="applyInfo.status === '2'" class="mt-16 ml-12" color="primary" to="/enterprise/register">{{ $t('common.resubmit') }}</v-btn>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</v-card>
|
|
</v-card>
|
|
@@ -44,22 +45,25 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { ref } from 'vue';
|
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { getUserRegisterEnterpriseApply } from '@/api/personal/user'
|
|
import { getUserRegisterEnterpriseApply } from '@/api/personal/user'
|
|
|
|
+import { ref } from 'vue';
|
|
defineOptions({name: 'enterprise-enterpriseRegister-inReview'})
|
|
defineOptions({name: 'enterprise-enterpriseRegister-inReview'})
|
|
|
|
|
|
-const info = ref({})
|
|
|
|
|
|
+const applyInfo = ref({})
|
|
|
|
|
|
// 查看用户是否有在申请中的数据
|
|
// 查看用户是否有在申请中的数据
|
|
const getApplyInfo = async () => {
|
|
const getApplyInfo = async () => {
|
|
const data = await getUserRegisterEnterpriseApply() // 已经有数据说明已经申请过了
|
|
const data = await getUserRegisterEnterpriseApply() // 已经有数据说明已经申请过了
|
|
localStorage.setItem('userApplyInfo', JSON.stringify(data))
|
|
localStorage.setItem('userApplyInfo', JSON.stringify(data))
|
|
- info.value.info.createTime = ref(data?.createTime ? timesTampChange(data.createTime) : null) // 创建时间
|
|
|
|
- // updateTime = ref(data?.createTime ? timesTampChange(data.updateTime) : null) // 更新时间
|
|
|
|
- info.value.status = ref(data?.status) // 帐号状态(0正常 1停用 2 等待审核 3不通过) // 审核状态
|
|
|
|
- info.value.reason = ref(data?.reason) // 审核原因
|
|
|
|
- info.value.remark = ref(data?.remark) // 备注
|
|
|
|
|
|
+ const obj = {
|
|
|
|
+ createTime: timesTampChange(data.createTime), // 创建时间
|
|
|
|
+ updateTime: timesTampChange(data.updateTime), // 更新时间
|
|
|
|
+ status: data.status, // 审核状态(0审核中 1审核通过 2审核不通过)) // 审核状态
|
|
|
|
+ reason: data.reason, // 审核原因
|
|
|
|
+ remark: data.remark, // 备注
|
|
|
|
+ }
|
|
|
|
+ applyInfo.value = obj
|
|
}
|
|
}
|
|
getApplyInfo()
|
|
getApplyInfo()
|
|
|
|
|