瀏覽代碼

修复查看认证详情失败的bug

sunjh 5 年之前
父節點
當前提交
ac0c7414a3
共有 1 個文件被更改,包括 18 次插入7 次删除
  1. 18 7
      src/components/authen/AuthenticationManage.vue

+ 18 - 7
src/components/authen/AuthenticationManage.vue

@@ -103,7 +103,7 @@
                 fit="scale-down"></el-image>
                 fit="scale-down"></el-image>
             </span>
             </span>
           </el-form-item>
           </el-form-item>
-          <el-form-item label="统一社会信用代码:" v-if="authInfoDetail.type == 'enterprise'">
+          <el-form-item label="统一信用代码:" v-if="authInfoDetail.type == 'enterprise'">
             <span>{{authInfoDetail.unifiedSocialCreditCode}}</span>
             <span>{{authInfoDetail.unifiedSocialCreditCode}}</span>
           </el-form-item>
           </el-form-item>
 
 
@@ -111,10 +111,12 @@
             <span>{{authInfoDetail.evaluationAgencyName}}</span>
             <span>{{authInfoDetail.evaluationAgencyName}}</span>
           </el-form-item>
           </el-form-item>
           <el-form-item label="机构能力:" v-if="authInfoDetail.type == 'agency'">
           <el-form-item label="机构能力:" v-if="authInfoDetail.type == 'agency'">
-            <span>{{authInfoDetail.evaluationAgencyAbilityList}}</span>
+            <span v-for="item in authInfoDetail.evaluationAgencyAbilityList"> <el-tag>{{item}}</el-tag>
+            </span>
           </el-form-item>
           </el-form-item>
           <el-form-item label="机构资源:" v-if="authInfoDetail.type == 'agency'">
           <el-form-item label="机构资源:" v-if="authInfoDetail.type == 'agency'">
-            <span>{{authInfoDetail.evaluationAgencyResourceList}}</span>
+            <span v-for="item in authInfoDetail.evaluationAgencyResourceList"> <el-tag>{{item.type}} ( {{item.name}} ) :&nbsp; [总数:{{item.totalNum}} ,可用数量:{{item.availableNum}}]</el-tag>
+            </span>
           </el-form-item>
           </el-form-item>
           <el-form-item label="机构Logo:" v-if="authInfoDetail.type == 'agency'">
           <el-form-item label="机构Logo:" v-if="authInfoDetail.type == 'agency'">
             <span>
             <span>
@@ -331,25 +333,34 @@
                 this.hideLoading()
                 this.hideLoading()
                 notify('error', '获取个人认证信息出错:' + error.data)
                 notify('error', '获取个人认证信息出错:' + error.data)
             },
             },
-            getCurrentEnterpriseAuthInfoSuccess () {
+            getCurrentEnterpriseAuthInfoSuccess (res) {
                 this.hideLoading()
                 this.hideLoading()
                 this.authInfoDetail.enterpriseName = res.enterpriseName
                 this.authInfoDetail.enterpriseName = res.enterpriseName
                 this.authInfoDetail.legalPersonName = res.legalPersonName
                 this.authInfoDetail.legalPersonName = res.legalPersonName
                 this.authInfoDetail.businessLicensePhoto = res.businessLicensePhoto
                 this.authInfoDetail.businessLicensePhoto = res.businessLicensePhoto
+                this.authInfoDetail.bankAccount = res.bankAccount
+                this.authInfoDetail.address = res.address
+                this.authInfoDetail.applyTime = res.applyTime
+                this.authInfoDetail.unifiedSocialCreditCode = res.unifiedSocialCreditCode
+                this.showAuthDialog()
             },
             },
-            getCurrentEnterpriseAuthInfoFail () {
+            getCurrentEnterpriseAuthInfoFail (error) {
                 this.hideLoading()
                 this.hideLoading()
                 notify('error', '获取企业认证信息出错:' + error.data)
                 notify('error', '获取企业认证信息出错:' + error.data)
             },
             },
-            getCurrentAgencyAuthInfoSuccess () {
+            getCurrentAgencyAuthInfoSuccess (res) {
                 this.hideLoading()
                 this.hideLoading()
+              this.authInfoDetail.bankAccount = res.bankAccount
+              this.authInfoDetail.address = res.address
+              this.authInfoDetail.applyTime = res.applyTime
                 this.authInfoDetail.evaluationAgencyName = res.evaluationAgencyName
                 this.authInfoDetail.evaluationAgencyName = res.evaluationAgencyName
                 this.authInfoDetail.evaluationAgencyAbilityList = res.evaluationAgencyAbilityList
                 this.authInfoDetail.evaluationAgencyAbilityList = res.evaluationAgencyAbilityList
                 this.authInfoDetail.evaluationAgencyResourceList = res.evaluationAgencyResourceList
                 this.authInfoDetail.evaluationAgencyResourceList = res.evaluationAgencyResourceList
                 this.authInfoDetail.agencyPhoto = res.agencyPhoto
                 this.authInfoDetail.agencyPhoto = res.agencyPhoto
                 this.authInfoDetail.updateTime = res.updateTime
                 this.authInfoDetail.updateTime = res.updateTime
+              this.showAuthDialog()
             },
             },
-            getCurrentAgencyAuthInfoFail () {
+            getCurrentAgencyAuthInfoFail (error) {
                 this.hideLoading()
                 this.hideLoading()
                 notify('error', '获取机构认证信息出错:' + error.data)
                 notify('error', '获取机构认证信息出错:' + error.data)
             }
             }