Commit a655b16c authored by 吴冠's avatar 吴冠

审核流程

parent 0aea5ae9
......@@ -293,7 +293,6 @@ export default {
<style scoped>
.pagination{
position: absolute;
/* bottom: -2%; */
left: 50%;
transform:translateX(-50%);
margin-top:20px
......
......@@ -15,13 +15,16 @@
</template>
<script>
/* import {powerLogin} from '~/api/bid/login'; */
import Cookies from 'js-cookie'
export default {
mounted(){
/* 判断来自于登录的code信息 */
let status = Cookies.get("code")
this.code = status
/* this.powerLogin() */
let message = Cookies.get("message")
this.msg = message
Cookies.remove("code"),
Cookies.remove("message")
},
data(){
return{
......@@ -34,13 +37,7 @@ export default {
changeInfo(){
Cookies.set("auditStatus",1)
this.$router.push("/login/examine")
},
/* async powerLogin(){
const {data,msg,code} = await powerLogin()
console.log(data)
this.code = code
this.msg = msg
}, */
}
}
}
</script>
......
......@@ -679,14 +679,11 @@ export default {
this.flag = !this.flag;
this.getIndustryList();
this.getCompanyNatureList();
/* this.powerLogin() */
// this.getCordimg();
//如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充
if(Cookies.get("auditStatus")=="1"){
this.active ==1
this.getErrorInfo()
}
Cookies.remove("auditStatus")
},
data() {
// 测试省份
......@@ -1090,18 +1087,25 @@ export default {
};
},
methods: {
//code502填充注册所有信息
//code502填充注册第二部所有信息
async getErrorInfo(){
let companyErrorId = Cookies.get("companyErrorId")
const {data} = await getErrorInfo(companyErrorId)
this.form = data.form
/* this.adminform = data.adminform */
this.perfectForm = data.perfectForm
this.perfectForm.legalPersonPhone = data.legalPersonPhone
this.perfectForm.legalPersonName = data.legalPersonName
this.perfectForm.location = data.location
this.perfectForm.bankAccount = data.bankAccount
this.perfectForm.bankAccountName = data.bankAccountName
this.perfectForm.contactAddress = data.contactAddress
this.perfectForm.socialCode = data.socialCode
this.perfectForm.companyNature = data.companyNature
this.perfectForm.industryType = data.industryList
this.perfectForm.bankName = data.bankName
this.perfectForm.registeredCapital = data.registeredCapital
this.perfectForm.businessScope = data.businessScope
Cookies.remove("companyErrorId")
Cookies.remove("auditStatus")
},
/* watchStatus(){
this.$router.push("auditStatus")
}, */
prev(){
this.active--
},
......
......@@ -166,9 +166,23 @@
this.$message.error(msg)
}
//储存公司id 审核未通过时自动填充数据
if(code!=200){
/* if(code!=200){
this.$router.push("/login/auditStatus")
Cookies.set("companyErrorId",data.companyId)
} */
if(code==502){
/* 审核未通过 说明拒绝原因 */
this.$router.push('/login/auditStatus')
Cookies.set("companyErrorId",data.companyId)
Cookies.set("code",data.code)
Cookies.set("message",data.message)
}else if(code==501){
/* 审核中 */
Cookies.set("code",data.code)
this.$router.push('/login/auditStatus')
}else{
Cookies.set("code",data.code)
this.$router.push('/login/auditStatus')
}
}
} catch (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment