1 |
- webpackJsonp([39],{"IPr/":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("qI5z"),i=a("vGYV"),s={name:"NewAgencyDetail",components:{},data:function(){return{user:{},loading:!1,type:0,userId:0,resourceTypes:[],serviceTypes:[],defaultValue:i.c,authentication:{mobile:"",evaluationAgencyName:"",address:"",evaluationAgencyAbilityList:[],evaluationAgencyResourceList:[],authStatus:{},legalPersonName:"",checkTime:"",agencyPhoto:i.c.image,explain:"",taskCount:0}}},mounted:function(){var t=this;this.$nextTick(function(){t.init()})},methods:{init:function(){this.userId=this.$route.query.id,this.type=this.$route.query.type,this.setUserInfo(),this.setServiceTypes(),this.setResourceTypes(),this.getAuthInfo()},back:function(){this.$router.go(-1)},getAuthInfo:function(){this.showLoading(),Object(i.h)(this.userId,this.getAuthInfoSuccess,this.getAuthInfoFail)},getAuthInfoSuccess:function(t){this.hideLoading(),this.authentication.agencyPhoto=null==t.data.agencyPhoto?i.c.image:t.data.agencyPhoto,this.authentication.evaluationAgencyName=null==t.data.evaluationAgencyName?"暂未填写":t.data.evaluationAgencyName,this.authentication.evaluationAgencyAbilityList=null==t.data.evaluationAgencyAbilityList?[]:t.data.evaluationAgencyAbilityList,this.authentication.evaluationAgencyResourceList=null==t.data.evaluationAgencyResourceList?[]:t.data.evaluationAgencyResourceList,this.authentication.address=null==t.data.address?"暂未填写":t.data.address,this.authentication.authStatus=t.data.authStatus,this.authentication.legalPersonName=null==t.data.legalPersonName?"暂未填写":t.data.legalPersonName,this.authentication.taskCount=t.data.taskCount,this.authentication.checkTime=t.data.checkTime},getAuthInfoFail:function(t){this.hideLoading(),Object(n.a)("error","加载认证信息失败:"+t.data)},setServiceTypes:function(){var t=this;Object(i.r)().then(function(e){t.serviceTypes=e}).catch(function(t){Object(n.a)("error","机构能力加载失败")})},setResourceTypes:function(){this.resourceTypes=Object(i.k)()},setUserInfo:function(){this.user=Object(i.J)("user")},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},dateFormat:function(t,e){var a={"M+":(t=new Date(t)).getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?a[n]:("00"+a[n]).substr((""+a[n]).length)));return e}},watch:{agencyType:function(t){this.agencyType=t}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"create-container"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"create-body",staticStyle:{width:"100%"}},[0==this.type?a("div",{staticClass:"title"},[t._v("测评机构信息")]):a("div",{staticClass:"title"},[t._v("入驻品牌机构信息")]),t._v(" "),a("el-form",{ref:"authentication",staticClass:"demo-report",attrs:{model:t.authentication,"label-width":"12%"}},[a("el-form-item",{attrs:{prop:"agencyPhoto",label:"机构logo"}},[a("span",[a("el-image",{staticStyle:{width:"100px"},attrs:{src:null==t.authentication.agencyPhoto?t.defaultValue.image:t.authentication.agencyPhoto,fit:"scale-down"}})],1)]),t._v(" "),a("el-form-item",{attrs:{label:"机构名称",prop:"evaluationAgencyName"}},[a("span",[t._v(t._s(t.authentication.evaluationAgencyName))])]),t._v(" "),a("el-form-item",{attrs:{label:"法人名称",prop:"legalPersonName"}},[a("span",[t._v(t._s(t.authentication.legalPersonName))])]),t._v(" "),null!=this.authentication.address&&""!=this.authentication.address?a("el-form-item",{attrs:{label:"地址",prop:"address"}},[a("span",[t._v(t._s(t.authentication.address))])]):t._e(),t._v(" "),0==this.type?a("el-form-item",{attrs:{label:"接包数量",prop:"taskCount"}},[a("span",[t._v(t._s(t.authentication.taskCount))])]):t._e(),t._v(" "),a("el-form-item",{attrs:{label:"认证时间",prop:"checkTime"}},[a("span",[t._v(t._s(t.dateFormat(new Date(t.authentication.checkTime),"yyyy-MM-dd HH:mm:ss")))])]),t._v(" "),a("el-form-item",[a("div",{staticClass:"btn btn-medium btn-info",on:{click:function(e){return t.back()}}},[t._v("返回")])])],1)],1)])},staticRenderFns:[]};var c=a("VU/8")(s,o,!1,function(t){a("dNXB")},null,null);e.default=c.exports},dNXB:function(t,e){}});
|