Explorar el Código

可以查看认证详情

sunjh hace 6 años
padre
commit
733842bdc0

+ 11 - 1
src/components/authen/AgencyAuthentication.vue

@@ -29,6 +29,13 @@
         <!--<el-input v-if="isModifyMode" v-model="authentication.mobile"></el-input>-->
         <!--&lt;!&ndash;<span v-if="!isModifyMode">{{authentication.name}}</span>&ndash;&gt;-->
         <!--</el-form-item>-->
+        <el-form-item v-if="!isModifyMode" label="认证状态" prop="name">
+          <el-tag :type="authentication.authStatus.style">{{authentication.authStatus.text}}</el-tag>
+        </el-form-item>
+        <el-form-item v-if="!isModifyMode && authentication.authStatus.text == '认证失败'" label="失败原因" prop="name">
+          <el-link v-if="authentication.explain!=null&&authentication.explain!=''" type="danger" disabled>{{authentication.explain}}</el-link>
+          <el-link v-if="authentication.explain==null || authentication.explain==''" type="danger" disabled>管理员未填写</el-link>
+        </el-form-item>
         <el-form-item label="对公账户" prop="name">
           <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
           <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>
@@ -117,7 +124,9 @@ export default {
         evaluationAgencyAbilityList: [],
         evaluationAgencyResourceList: [],
         photo: [],
+        authStatus: {},
         agencyPhoto: defaultValue.image,
+        explain: ''
       },
       rules: {
         // name: [
@@ -166,7 +175,8 @@ export default {
       this.authentication.evaluationAgencyResourceList = res.evaluationAgencyResourceList == null ? [] : res.evaluationAgencyResourceList
       this.authentication.bankAccount = res.bankAccount == null ? '暂未填写' : res.bankAccount
       this.authentication.address = res.address == null ? '暂未填写' : res.address
-
+      this.authentication.authStatus = res.authStatus
+      this.authentication.explain = res.explain
       console.log(this.authentication)
     },
     getAuthInfoFail (error) {

+ 10 - 4
src/components/authen/AuthenticationManage.vue

@@ -181,10 +181,16 @@ export default {
       notify('error', '通过失败:' + error.data)
     },
     handleAuthenticationReject (userId, type) {
-      this.showLoading()
-      // console.log(userId)
-      // console.log(type)
-      checkRejectAuth(type, userId, this.handleAuthenticationRejectSuccess, this.handleAuthenticationRejectFail)
+      this.$prompt('请输入驳回本申请的原因', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+      }).then((event) => {
+        const explain = event.value
+        console.log(explain)
+        this.showLoading()
+        checkRejectAuth(type, userId, this.handleAuthenticationRejectSuccess, this.handleAuthenticationRejectFail)
+      }).catch(() => {
+      })
     },
     handleAuthenticationRejectSuccess (res) {
       this.hideLoading()

+ 12 - 1
src/components/authen/EnterpriseAuthentication.vue

@@ -30,6 +30,13 @@
           <!--{{authentication.photo}}</a>-->
           <!--</div>-->
         </el-form-item>
+        <el-form-item v-if="!isModifyMode" label="认证状态" prop="name">
+          <el-tag :type="authentication.authStatus.style">{{authentication.authStatus.text}}</el-tag>
+        </el-form-item>
+        <el-form-item v-if="!isModifyMode && authentication.authStatus.text == '认证失败'" label="失败原因" prop="name">
+          <el-link v-if="authentication.explain!=null&&authentication.explain!=''" type="danger" disabled>{{authentication.explain}}</el-link>
+          <el-link v-if="authentication.explain==null || authentication.explain==''" type="danger" disabled>管理员未填写</el-link>
+        </el-form-item>
         <el-form-item label="公司法人姓名" prop="name">
           <el-input v-if="isModifyMode" v-model="authentication.legalPersonName"></el-input>
           <span v-if="!isModifyMode">{{authentication.legalPersonName}}</span>
@@ -79,7 +86,9 @@ export default {
         bankAccount: '',
         businessLicensePhoto: defaultValue.image,
         unifiedSocialCreditCode: '',
-        address: ''
+        address: '',
+        authStatus: {},
+        explain:''
       },
       rules: {
         // name: [
@@ -126,6 +135,8 @@ export default {
       this.authentication.unifiedSocialCreditCode = res.unifiedSocialCreditCode == null ? '暂未填写' : res.unifiedSocialCreditCode
       this.authentication.bankAccount = res.bankAccount == null ? '暂未填写' : res.bankAccount
       this.authentication.address = res.address == null ? '暂未填写' : res.address
+      this.authentication.authStatus = res.authentication
+      this.authentication.explain = res.explain
       console.log(this.authentication)
     },
     getAuthInfoFail (error) {

+ 13 - 2
src/components/authen/IndividualAuthentication.vue

@@ -29,7 +29,13 @@
           <el-input v-if="isModifyMode" v-model="authentication.IDCard"></el-input>
           <span v-if="!isModifyMode">{{authentication.IDCard}}</span>
         </el-form-item>
-
+        <el-form-item v-if="!isModifyMode" label="认证状态" prop="name">
+          <el-tag :type="authentication.authStatus.style">{{authentication.authStatus.text}}</el-tag>
+        </el-form-item>
+        <el-form-item v-if="!isModifyMode && authentication.authStatus.text == '认证失败'" label="失败原因" prop="name">
+          <el-link v-if="authentication.explain!=null&&authentication.explain!=''" type="danger" disabled>{{authentication.explain}}</el-link>
+          <el-link v-if="authentication.explain==null || authentication.explain==''" type="danger" disabled>管理员未填写</el-link>
+        </el-form-item>
         <el-form-item label="银行卡账户" prop="name">
           <el-input v-if="isModifyMode" v-model="authentication.bankAccount"></el-input>
           <span v-if="!isModifyMode">{{authentication.bankAccount}}</span>
@@ -40,7 +46,8 @@
         </el-form-item>
 
         <el-form-item v-if="!isModifyMode">
-          <div class="btn btn-medium btn-info" @click="modifyInfo()">修改</div>
+          <div v-if="authentication.authStatus.text!='认证通过'" class="btn btn-medium btn-info" @click="modifyInfo()">修改
+          </div>
         </el-form-item>
         <el-form-item v-if="isModifyMode">
           <div class="btn btn-primary btn-info" @click="updateAuthInfo()">提交</div>
@@ -80,6 +87,8 @@ export default {
         IDCard: '',
         bankAccount: '',
         address: '',
+        authStatus: {},
+        explain:''
       },
       rules: {
         // name: [
@@ -131,6 +140,8 @@ export default {
       this.authentication.IDCard = res.idcard == null ? '暂未填写' : res.idcard
       this.authentication.bankAccount = res.bankAccount == null ? '暂未填写' : res.bankAccount
       this.authentication.address = res.address == null ? '暂未填写' : res.address
+      this.authentication.authStatus = res.authStatus
+      this.authentication.explain = res.explain
       console.log(this.authentication)
     },
     getAuthInfoFail (error) {

+ 23 - 16
src/components/commons/Header.vue

@@ -429,44 +429,51 @@ export default {
       this.fullScreenLoading = false
     },
     handleClickAuthReject () {
-      if (this.user.userVO.authType == 'agency'){
+      if (this.user.userVO.authType == 'agency') {
         this.$router.push({
-          name:'AgencyAuthentication'
+          name: 'AgencyAuthentication',
+          params: {userId: this.user.userVO.id}
         })
       }
-      if (this.user.userVO.authType == 'enterprise'){
+      if (this.user.userVO.authType == 'enterprise') {
         this.$router.push({
-          name:'IndividualAuthentication'
+          name: 'EnterpriseAuthentication',
+          params: {userId: this.user.userVO.id}
         })
       }
-      if (this.user.userVO.authType == 'personal'){
+      if (this.user.userVO.authType == 'personal') {
         this.$router.push({
-          name:'IndividualAuthentication'
+          name: 'IndividualAuthentication',
+          params: {userId: this.user.userVO.id}
         })
       }
 
       //this.getAuthInfo()
     },
     handleClickAuthPass () {
-      if (this.user.userVO.authType == 'agency'){
+
+      //this.getAuthInfo()
+    },
+    handleClickAuthChecking () {
+      //this.getAuthInfo()
+      if (this.user.userVO.authType == 'agency') {
         this.$router.push({
-          name:'AgencyAuthentication'
+          name: 'AgencyAuthentication',
+          params: {userId: this.user.userVO.id}
         })
       }
-      if (this.user.userVO.authType == 'enterprise'){
+      if (this.user.userVO.authType == 'enterprise') {
         this.$router.push({
-          name:'IndividualAuthentication'
+          name: 'EnterpriseAuthentication',
+          params: {userId: this.user.userVO.id}
         })
       }
-      if (this.user.userVO.authType == 'personal'){
+      if (this.user.userVO.authType == 'personal') {
         this.$router.push({
-          name:'IndividualAuthentication'
+          name: 'IndividualAuthentication',
+          params: {userId: this.user.userVO.id}
         })
       }
-      //this.getAuthInfo()
-    },
-    handleClickAuthChecking () {
-      this.getAuthInfo()
     },
     showAuthRejectDialog () {
       this.isShowAuthRejectDialog = true