webpackJsonp([33],{u1Yf:function(e,t,n){(t=n("yGwj")(!0)).push([e.i,"\n.el-radio[data-v-54be919b] {\n margin: 10px 20px 10px 0;\n}\n.el-form-item[data-v-54be919b] .el-tabs__content {\n /*max-height: 120px !important;*/\n overflow: auto;\n}\n.el-row[data-v-54be919b] {\n margin-bottom: 10px;\n}\n.el-input[data-v-54be919b] {\n width: 400px;\n}\n.avatar-uploader .el-upload[data-v-54be919b] {\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n}\n.avatar-uploader .el-upload[data-v-54be919b]:hover {\n border-color: #409EFF;\n}\n.avatar-uploader-icon[data-v-54be919b] {\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n font-size: 28px;\n color: #8c939d;\n width: 176px;\n height: 178px;\n line-height: 178px;\n text-align: center;\n}\n.avatar-uploader-icon[data-v-54be919b]:hover {\n border-color: #409EFF;\n}\n.avatar[data-v-54be919b] {\n width: 178px;\n height: 178px;\n display: block;\n}\n","",{version:3,sources:["AgencyAuthentication.vue"],names:[],mappings:";AACA;EACE,wBAAwB;AAC1B;AACA;EACE,gCAAgC;EAChC,cAAc;AAChB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,YAAY;AACd;AACA;EACE,0BAA0B;EAC1B,kBAAkB;EAClB,eAAe;EACf,kBAAkB;EAClB,gBAAgB;AAClB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,0BAA0B;EAC1B,kBAAkB;EAClB,eAAe;EACf,cAAc;EACd,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,kBAAkB;AACpB;AACA;EACE,qBAAqB;AACvB;AACA;EACE,YAAY;EACZ,aAAa;EACb,cAAc;AAChB",file:"AgencyAuthentication.vue",sourcesContent:["\n.el-radio[data-v-54be919b] {\n margin: 10px 20px 10px 0;\n}\n.el-form-item[data-v-54be919b] .el-tabs__content {\n /*max-height: 120px !important;*/\n overflow: auto;\n}\n.el-row[data-v-54be919b] {\n margin-bottom: 10px;\n}\n.el-input[data-v-54be919b] {\n width: 400px;\n}\n.avatar-uploader .el-upload[data-v-54be919b] {\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n cursor: pointer;\n position: relative;\n overflow: hidden;\n}\n.avatar-uploader .el-upload[data-v-54be919b]:hover {\n border-color: #409EFF;\n}\n.avatar-uploader-icon[data-v-54be919b] {\n border: 1px dashed #d9d9d9;\n border-radius: 6px;\n font-size: 28px;\n color: #8c939d;\n width: 176px;\n height: 178px;\n line-height: 178px;\n text-align: center;\n}\n.avatar-uploader-icon[data-v-54be919b]:hover {\n border-color: #409EFF;\n}\n.avatar[data-v-54be919b] {\n width: 178px;\n height: 178px;\n display: block;\n}\n"]}]),e.exports=t},yWUp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("SQ4B"),i=n("b9vf"),o=n("qI5z"),r=n("vGYV"),s={name:"AgencyAuthentication",data:function(){var e=this;return{userId:0,user:{},loading:!1,isModifyMode:!1,resourceTypes:[],serviceTypes:[],authentication:{mobile:"",evaluationAgencyName:"",bankAccount:"",address:"",evaluationAgencyAbilityList:[],evaluationAgencyResourceList:[],photo:[],authStatus:{},agencyPhoto:r.c.image,explain:""},rules:{evaluationAgencyName:[{required:!0,message:"请输入机构名称",trigger:"blur"},{min:3,max:50,message:"机构名称长度在 3 到 50 个字符",trigger:"blur"}],bankAccount:[{required:!0,message:"请输入银行卡账户",trigger:"blur"},{min:16,max:19,message:"银行卡账户输入有误",trigger:"blur"},{validator:function(t,n,a){e.checkNumber(n)?a():a(new Error("银行卡账户输入有误"))},trigger:"blur"}],address:[{required:!0,message:"请输入地址",trigger:"blur"}],evaluationAgencyAbilityList:[{type:"array",required:!0,message:"请至少选择一种测试类型",trigger:"change"}],evaluationAgencyResourceList:[{validator:function(e,t,n){var a=!1;if(null==t||0==t.length)n(new Error("机构资源不可为空"));else for(var i=0;i1e7)return Object(o.a)("error","单个文件大小不能超过10M"),!1;var t=e.name,n=t.lastIndexOf(".");if(n<=0)return Object(o.a)("error","只能上传png/jpg格式的文件"),!1;var a=t.substr(n);return".jpg"!==a&&".png"!==a?(Object(o.a)("error","只能上传png/jpg格式的文件"),!1):void 0},uploadFile:function(e){var t=this,n=new FormData;n.append("file",e.file),a.a.upload(i.a.FILE.UPLOAD_IMAGE.replace("{userId}",this.user.userVO.id),n,{headers:{"Content-Type":"multipart/form-data"}}).then(function(e){t.hideLoading(),t.authentication.agencyPhoto=e.data,console.log(e.data),Object(o.a)("success","上传成功"),t.$refs.authentication.validateField("agencyPhoto")}).catch(function(e){t.hideLoading();try{413===e.response.status?Object(o.a)("error","文件过大,请选择小于20M的图片"):500===e.response.status&&Object(o.a)("error","上传文件发生错误,请稍后重试")}catch(t){Object(o.a)("error",e.data)}})},setServiceTypes:function(){var e=this;Object(r.s)().then(function(t){e.serviceTypes=t}).catch(function(e){Object(o.a)("error","机构能力加载失败")})},setResourceTypes:function(){this.resourceTypes=Object(r.l)()},addAgencyResource:function(){var e={id:this.authentication.evaluationAgencyResourceList.length,type:this.resourceTypes[0],name:"",totalNum:0,availableNum:0};this.authentication.evaluationAgencyResourceList.push(e)},removeAgencyResource:function(e){this.authentication.evaluationAgencyResourceList.splice(e,1);for(var t=0;t