Commit a655b16c authored by 吴冠's avatar 吴冠

审核流程

parent 0aea5ae9
...@@ -293,7 +293,6 @@ export default { ...@@ -293,7 +293,6 @@ export default {
<style scoped> <style scoped>
.pagination{ .pagination{
position: absolute; position: absolute;
/* bottom: -2%; */
left: 50%; left: 50%;
transform:translateX(-50%); transform:translateX(-50%);
margin-top:20px margin-top:20px
......
...@@ -15,13 +15,16 @@ ...@@ -15,13 +15,16 @@
</template> </template>
<script> <script>
/* import {powerLogin} from '~/api/bid/login'; */
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
export default { export default {
mounted(){ mounted(){
/* 判断来自于登录的code信息 */
let status = Cookies.get("code") let status = Cookies.get("code")
this.code = status this.code = status
/* this.powerLogin() */ let message = Cookies.get("message")
this.msg = message
Cookies.remove("code"),
Cookies.remove("message")
}, },
data(){ data(){
return{ return{
...@@ -34,13 +37,7 @@ export default { ...@@ -34,13 +37,7 @@ export default {
changeInfo(){ changeInfo(){
Cookies.set("auditStatus",1) Cookies.set("auditStatus",1)
this.$router.push("/login/examine") this.$router.push("/login/examine")
}, }
/* async powerLogin(){
const {data,msg,code} = await powerLogin()
console.log(data)
this.code = code
this.msg = msg
}, */
} }
} }
</script> </script>
......
...@@ -679,14 +679,11 @@ export default { ...@@ -679,14 +679,11 @@ export default {
this.flag = !this.flag; this.flag = !this.flag;
this.getIndustryList(); this.getIndustryList();
this.getCompanyNatureList(); this.getCompanyNatureList();
/* this.powerLogin() */
// this.getCordimg();
//如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充 //如果是来自于auditStatus状态的话 说明有错误信息 重新把用户输入的信息自动填充
if(Cookies.get("auditStatus")=="1"){ if(Cookies.get("auditStatus")=="1"){
this.active ==1 this.active ==1
this.getErrorInfo() this.getErrorInfo()
} }
Cookies.remove("auditStatus")
}, },
data() { data() {
// 测试省份 // 测试省份
...@@ -1090,18 +1087,25 @@ export default { ...@@ -1090,18 +1087,25 @@ export default {
}; };
}, },
methods: { methods: {
//code502填充注册所有信息 //code502填充注册第二部所有信息
async getErrorInfo(){ async getErrorInfo(){
let companyErrorId = Cookies.get("companyErrorId") let companyErrorId = Cookies.get("companyErrorId")
const {data} = await getErrorInfo(companyErrorId) const {data} = await getErrorInfo(companyErrorId)
this.form = data.form this.perfectForm.legalPersonPhone = data.legalPersonPhone
/* this.adminform = data.adminform */ this.perfectForm.legalPersonName = data.legalPersonName
this.perfectForm = data.perfectForm 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(){ prev(){
this.active-- this.active--
}, },
......
...@@ -166,9 +166,23 @@ ...@@ -166,9 +166,23 @@
this.$message.error(msg) this.$message.error(msg)
} }
//储存公司id 审核未通过时自动填充数据 //储存公司id 审核未通过时自动填充数据
if(code!=200){ /* if(code!=200){
this.$router.push("/login/auditStatus") 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("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) { } 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