Commit 788f72a0 by Jianli Ou

对接厂商实名认证详情接口,完善厂商实名认证步骤跳转逻辑

parent bd0c992f
import {
POST, POSTFORM, UPLOAD
POST, POSTFORM, UPLOAD, GET
} from "../fetch.js"
......@@ -17,6 +17,10 @@ const saveMemberInfo = (params = {}) => {
const saveTycpdmFirmInfo = (params = {}) => {
return POST(`${Prefix}/office/tycpdmfirm/api/save`, params)
}
// 企业信息
const tycpdmFirmInfo = (params = {}) => {
return GET(`${Prefix}/office/tycpdmfirm/api/findUserName`, params)
}
// 修改登录密码
const saveUpdatePass = (params = {}) => {
return POST(`${Prefix}/office/member/api/updatePass`, params)
......@@ -26,5 +30,6 @@ export default {
memberInfo,
saveMemberInfo,
saveTycpdmFirmInfo,
tycpdmFirmInfo,
saveUpdatePass
}
......@@ -292,7 +292,7 @@ export default {
leaderTele:'', // 法定代表人电话
leaderHandset:'', // 法定代表人手机
website:'',
uploadImg: '上传的营业执照',
uploadImg: '',
name:'',
tel:'',
mobile:'',
......@@ -367,8 +367,19 @@ export default {
if (result.success) this.$message.success('保存成功')
return result.success
},
async getTycpdmFirmInfo() {
const tycpdmFirmInfo = (await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})).data
if (tycpdmFirmInfo) { // tycpdmFirmInfo不为null则已完成第一步填写实名信息
if (tycpdmFirmInfo.logoutFlag === null) { // logoutFlag如果为null表示未提交书面材料
this.$router.replace({path: '/MyManage/UnVerify/uploadvendor'})
} else {
this.$router.replace({path: '/MyManage/UnVerify/vendorStatus'})
}
}
},
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
this.getTycpdmFirmInfo()
}
},
mounted() {
......
......@@ -11,7 +11,7 @@
</p>
</div>
<div class="cnt">
<div class="fail" v-if="result">
<div class="fail" v-if="tycpdmFirmInfo.logoutFlag === 2">
<img src="../../../assets/image/mymanage/fail.png" alt="">
<span>很抱歉!您未通过中国物品编码中心实名认证。一下为您所在的 <a href="#" target="_blank">分支机构</a> 审核意见:</span>
<p>{{opinion}}</p>
......@@ -19,15 +19,11 @@
<el-button type="primary" style="width: 192px">重新修改企业资料</el-button>
</p>
</div>
<div class="success" v-else>
<div class="success" v-if="tycpdmFirmInfo.logoutFlag === 0">
<img src="../../../assets/image/mymanage/continue.png" alt="">
<span>您好!实名认证资料正在审核中!</span>
</div>
</div>
</div>
</div>
......@@ -39,12 +35,24 @@ export default {
data() {
return {
opinion:'请修改材料!',
result:false
loginInfo: {},
memberInfo: {},
tycpdmFirmInfo: {}
}
},
methods: {
}
async getTycpdmFirmInfo() {
this.tycpdmFirmInfo = (await this.$api.myManage.tycpdmFirmInfo({userName: this.memberInfo.username})).data
},
async getMemberInfo() {
this.memberInfo = (await this.$api.myManage.memberInfo({id: this.loginInfo.id})).data
this.getTycpdmFirmInfo()
}
},
mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
this.getMemberInfo()
}
}
</script>
......
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