webpackJsonp([43],{LCtm:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("vGYV"),i=e("qI5z"),o={name:"AuthenticationManage",data:function(){return{currentPage:1,loading:!1,showDialog:!1,authenticationStatusUntreated:"审核中",authenticationStatusPass:"审核通过",authenticationStatusReject:"审核未通过",handlingAuthList:[],handledAuthList:[],authInfoDetail:{userId:"",realName:"",applyTime:"",checkTime:"",explain:"",gender:"",idCard:"",idCardBackPhoto:"",idCardDeadTime:"",idCardPositivePhoto:"",isAuthentication:0,isDeleted:0,roleList:[],address:"",type:"",bankAccount:"",enterpriseName:"",legalPersonName:"",businessLicensePhoto:"",unifiedSocialCreditCode:"",agencyPhoto:"",evaluationAgencyName:"",expireTime:"",idCardNum:"",evaluationAgencyAbilityList:[],evaluationAgencyResourceList:[],updateTime:""}}},mounted:function(){var n=this;this.$nextTick(function(){n.init()})},methods:{init:function(){this.getHandlingAuthList()},getHandlingAuthList:function(){this.showLoading(),Object(a.p)(this.getHandlingAuthListSuccess,this.getHandlingAuthListFail)},getHandlingAuthListSuccess:function(n){this.handlingAuthList=n,this.hideLoading()},getHandlingAuthListFail:function(n){this.hideLoading(),Object(i.a)("error","获取认证信息失败:"+n.data)},getHandledAuthList:function(){this.showLoading(),Object(a.o)(this.getHandledAuthListSuccess,this.getHandledAuthListFail)},getHandledAuthListSuccess:function(n){this.handledAuthList=n,this.hideLoading()},getHandledAuthListFail:function(n){this.hideLoading(),Object(i.a)("error","获取已认证信息失败:"+n.data)},handleCurrentChange:function(n){console.log(n)},handleAuthenticationPass:function(n,t){this.showLoading(),Object(a.a)(t,n,this.handleAuthenticationPassSuccess,this.handleAuthenticationPassFail),this.showDialog=!1},handleAuthenticationPassSuccess:function(n){this.hideLoading(),this.getHandlingAuthList(),console.log(n)},handleAuthenticationPassFail:function(n){this.hideLoading(),console.log(n),Object(i.a)("error","通过失败:"+n.data)},handleAuthenticationReject:function(n,t){var e=this;this.$prompt("请输入驳回本申请的原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(i){var o=i.value;console.log(o),e.showLoading();var s={explain:i.value};Object(a.b)(t,n,s,e.handleAuthenticationRejectSuccess,e.handleAuthenticationRejectFail)}).catch(function(){})},handleAuthenticationRejectSuccess:function(n){this.hideLoading(),this.getHandlingAuthList(),Object(i.a)("success","驳回成功"),this.hideAuthDialog(),console.log(n)},handleAuthenticationRejectFail:function(n){this.hideLoading(),console.log(n),Object(i.a)("error","拒绝失败:"+n.data)},handleAuthDetail:function(n,t){this.authInfoDetail.userId=n,this.authInfoDetail.type=t,this.getAuthInfo(n,t)},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},reformTime:function(n){return Object(a.x)(n)},rowClassName:function(n){var t=n.row,e=n.rowIndex;t.id=e+1},showAuthDialog:function(){this.showDialog=!0},hideAuthDialog:function(){this.showDialog=!1},getAuthInfo:function(n,t){this.showLoading(),"personal"==t?Object(a.v)(n,this.getCurrentIndividualAuthenInfoSuccess,this.getCurrentIndividualAuthenInfoFail):"enterprise"==t?Object(a.u)(n,this.getCurrentEnterpriseAuthInfoSuccess,this.getCurrentEnterpriseAuthInfoFail):"agency"==t&&Object(a.t)(n,this.getCurrentAgencyAuthInfoSuccess,this.getCurrentAgencyAuthInfoFail)},getCurrentIndividualAuthenInfoSuccess:function(n){this.hideLoading(),console.log(n),this.authInfoDetail.realName=n.realName,this.authInfoDetail.applyTime=n.applyTime,this.authInfoDetail.checkTime=n.checkTime,this.authInfoDetail.explain=n.explain,this.authInfoDetail.gender=n.gender,this.authInfoDetail.idCard=n.idCard,this.authInfoDetail.idCardBackPhoto=n.idCardBackPhoto,this.authInfoDetail.idCardDeadTime=n.idCardDeadTime,this.authInfoDetail.idCardPositivePhoto=n.idCardPositivePhoto,this.authInfoDetail.isAuthentication=n.isAuthentication,this.authInfoDetail.isDeleted=n.isDeleted,this.authInfoDetail.roleList=n.roleList,this.authInfoDetail.address=n.address,this.showAuthDialog(),console.log(n)},getCurrentIndividualAuthenInfoFail:function(n){this.hideLoading(),Object(i.a)("error","获取个人认证信息出错:"+n.data)},getCurrentEnterpriseAuthInfoSuccess:function(n){this.hideLoading(),this.authInfoDetail.enterpriseName=n.enterpriseName,this.authInfoDetail.legalPersonName=n.legalPersonName,this.authInfoDetail.businessLicensePhoto=n.businessLicensePhoto,this.authInfoDetail.bankAccount=n.bankAccount,this.authInfoDetail.address=n.address,this.authInfoDetail.applyTime=n.applyTime,this.authInfoDetail.unifiedSocialCreditCode=n.unifiedSocialCreditCode,this.showAuthDialog()},getCurrentEnterpriseAuthInfoFail:function(n){this.hideLoading(),Object(i.a)("error","获取企业认证信息出错:"+n.data)},getCurrentAgencyAuthInfoSuccess:function(n){this.hideLoading(),this.authInfoDetail.bankAccount=n.data.bankAccount,this.authInfoDetail.legalPersonName=n.data.legalPersonName,this.authInfoDetail.businessLicensePhoto=n.data.businessLicensePhoto,this.authInfoDetail.address=n.data.address,this.authInfoDetail.applyTime=n.data.applyTime,this.authInfoDetail.evaluationAgencyName=n.data.evaluationAgencyName,this.authInfoDetail.evaluationAgencyAbilityList=n.data.evaluationAgencyAbilityList,this.authInfoDetail.evaluationAgencyResourceList=n.data.evaluationAgencyResourceList,this.authInfoDetail.agencyPhoto=n.data.agencyPhoto,this.authInfoDetail.updateTime=n.data.updateTime,this.authInfoDetail.checkTime=n.data.checkTime,this.authInfoDetail.explain=n.data.explain,this.authInfoDetail.gender=n.data.gender,this.authInfoDetail.idCardNum=n.data.idCardNum,this.authInfoDetail.idCardBackPhoto=n.data.idCardBackPhoto,this.authInfoDetail.idCardDeadTime=n.data.idCardDeadTime,this.authInfoDetail.idCardPositivePhoto=n.data.idCardPositivePhoto,this.authInfoDetail.isAuthentication=n.data.isAuthentication,this.authInfoDetail.isDeleted=n.data.isDeleted,this.authInfoDetail.roleList=n.data.roleList,this.showAuthDialog()},getCurrentAgencyAuthInfoFail:function(n){this.hideLoading(),Object(i.a)("error","获取机构认证信息出错:"+n.data)}}},s=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:n.loading,expression:"loading"}],staticClass:"create-container"},[e("div",{staticClass:"create-body"},[e("div",{staticClass:"title"},[n._v("审核认证信息")]),n._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{data:n.handlingAuthList,"row-class-name":n.rowClassName,stripe:""}},[e("el-table-column",{attrs:{prop:"id",label:"编号"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("span",[n._v(n._s(t.row.id))])]}}])}),n._v(" "),e("el-table-column",{attrs:{prop:"userInfo",label:"用户信息"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("span",{staticStyle:{cursor:"pointer"}},[e("el-link",{attrs:{type:"primary"}},[n._v(n._s(t.row.userName))])],1)]}}])}),n._v(" "),e("el-table-column",{attrs:{prop:"type",label:"认证类型"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("span",["personal"==t.row.type?e("el-tag",{attrs:{type:"success"}},[n._v("个人")]):n._e(),n._v(" "),"agency"==t.row.type?e("el-tag",[n._v("机构")]):n._e(),n._v(" "),"enterprise"==t.row.type?e("el-tag",{attrs:{type:"warning"}},[n._v("企业")]):n._e()],1)]}}])}),n._v(" "),e("el-table-column",{attrs:{prop:"detail",label:"认证详情"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("el-link",{attrs:{type:"primary"},on:{click:function(e){return n.handleAuthDetail(t.row.userId,t.row.type)}}},[n._v("认证详情")])]}}])}),n._v(" "),e("el-table-column",{attrs:{prop:"status",label:"认证状态"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("span",[e("el-tag",{attrs:{type:t.row.authStatus.style}},[n._v(n._s(t.row.authStatus.text))])],1)]}}])}),n._v(" "),e("el-table-column",{attrs:{prop:"date",label:"申请时间",width:"180"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("span",[n._v(n._s(n.reformTime(new Date(t.row.applytime))))])]}}])}),n._v(" "),e("el-table-column",{attrs:{label:"操作",width:"180"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return n.handleAuthenticationPass(t.row.userId,t.row.type)}}},[n._v("\n 通过\n ")]),n._v(" "),e("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(e){return n.handleAuthenticationReject(t.row.userId,t.row.type)}}},[n._v("\n 驳回\n ")])]}}])})],1),n._v(" "),e("el-dialog",{attrs:{title:"认证详情",visible:n.showDialog,center:"",width:"40%"},on:{"update:visible":function(t){n.showDialog=t}}},[e("el-form",{attrs:{model:n.authInfoDetail,"label-width":"150px","label-position":"right"}},[e("el-form-item",{attrs:{label:"类型:"}},[e("span",["personal"==n.authInfoDetail.type?e("el-tag",{attrs:{type:"success"}},[n._v("个人")]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-tag",[n._v("机构")]):n._e(),n._v(" "),"enterprise"==n.authInfoDetail.type?e("el-tag",{attrs:{type:"warning"}},[n._v("企业")]):n._e()],1)]),n._v(" "),"personal"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"姓名:"}},[e("span",[n._v(n._s(n.authInfoDetail.realName))])]):n._e(),n._v(" "),"personal"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"性别:"}},[e("span",[n._v(n._s(n.authInfoDetail.gender))])]):n._e(),n._v(" "),"personal"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"身份证号:"}},[e("span",[n._v(n._s(n.authInfoDetail.idCard))])]):n._e(),n._v(" "),"personal"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"身份证正面照:"}},[e("span",[e("el-image",{staticStyle:{width:"100px"},attrs:{src:n.authInfoDetail.idCardPositivePhoto,fit:"scale-down"}})],1)]):n._e(),n._v(" "),"personal"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"身份证反面照:"}},[e("span",[e("el-image",{staticStyle:{width:"100px"},attrs:{src:n.authInfoDetail.idCardBackPhoto,fit:"scale-down"}})],1)]):n._e(),n._v(" "),"personal"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"身份证截止时间:"}},[e("span",[n._v(n._s(n.authInfoDetail.idCardDeadTime))])]):n._e(),n._v(" "),e("el-form-item",{attrs:{label:"地址:"}},[e("span",[n._v(n._s(n.authInfoDetail.address))])]),n._v(" "),"personal"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"角色:"}},[e("el-checkbox-group",{attrs:{disabled:""},model:{value:n.authInfoDetail.roleList,callback:function(t){n.$set(n.authInfoDetail,"roleList",t)},expression:"authInfoDetail.roleList"}},[e("el-checkbox",{attrs:{label:1}},[n._v("发包")]),n._v(" "),e("el-checkbox",{attrs:{label:0}},[n._v("接包")])],1)],1):n._e(),n._v(" "),e("el-form-item",{attrs:{label:"申请时间:"}},[e("span",[n._v(n._s(n.reformTime(new Date(n.authInfoDetail.applyTime))))])]),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"企业名称:"}},[e("span",[n._v(n._s(n.authInfoDetail.evaluationAgencyName))])]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"营业执照:"}},[e("span",[e("el-image",{staticStyle:{width:"100px"},attrs:{src:n.authInfoDetail.businessLicensePhoto,fit:"scale-down"}})],1)]):n._e(),n._v(" "),e("el-form-item",{attrs:{label:"企业地址:"}},[e("span",[n._v(n._s(n.authInfoDetail.address))])]),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"企业Logo:"}},[e("span",[e("el-image",{staticStyle:{width:"100px"},attrs:{src:n.authInfoDetail.agencyPhoto,fit:"scale-down"}})],1)]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"法人姓名:"}},[e("span",[n._v(n._s(n.authInfoDetail.legalPersonName))])]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"法人性别:"}},[e("span",[n._v(n._s(n.authInfoDetail.gender))])]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"法人身份证号:"}},[e("span",[n._v(n._s(n.authInfoDetail.idCardNum))])]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"法人身份证正面照:"}},[e("span",[e("el-image",{staticStyle:{width:"100px"},attrs:{src:n.authInfoDetail.idCardPositivePhoto,fit:"scale-down"}})],1)]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"法人身份证反面照:"}},[e("span",[e("el-image",{staticStyle:{width:"100px"},attrs:{src:n.authInfoDetail.idCardBackPhoto,fit:"scale-down"}})],1)]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"身份证截止时间:"}},[e("span",[n._v(n._s(n.authInfoDetail.idCardDeadTime))])]):n._e(),n._v(" "),"agency"==n.authInfoDetail.type?e("el-form-item",{attrs:{label:"企业角色:"}},[e("el-checkbox-group",{attrs:{disabled:""},model:{value:n.authInfoDetail.roleList,callback:function(t){n.$set(n.authInfoDetail,"roleList",t)},expression:"authInfoDetail.roleList"}},[e("el-checkbox",{attrs:{label:1}},[n._v("发包")]),n._v(" "),e("el-checkbox",{attrs:{label:0}},[n._v("接包")])],1)],1):n._e()],1),n._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(t){return n.hideAuthDialog()}}},[n._v("返回")]),n._v(" "),e("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(t){return n.handleAuthenticationReject(n.authInfoDetail.userId,n.authInfoDetail.type)}}},[n._v("驳回\n ")]),n._v(" "),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return n.handleAuthenticationPass(n.authInfoDetail.userId,n.authInfoDetail.type)}}},[n._v("通过\n ")])],1)],1)],1)])};s._withStripped=!0;var l={render:s,staticRenderFns:[]},r=l;var u=!1;var h=e("VU/8")(o,r,!1,function(n){u||e("TeHj")},"data-v-169155bb",null);h.options.__file="src/components/authen/AuthenticationManage.vue";t.default=h.exports},TeHj:function(n,t,e){var a=e("jcyC");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("rjj0")("c908f25e",a,!1,{})},jcyC:function(n,t,e){(t=e("yGwj")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"AuthenticationManage.vue"}]),n.exports=t}});