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