(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c062"],{CeOi:function(e,t,r){},JaGM:function(e,t,r){"use strict";r.r(t);var o={mixins:[r("T3R4").a],data:function(){return{member:{},isLoading:!1,form:{address:{},member_id:"",name:"",logo:"",logo_image:"",tel:"",thumb:"",thumb_image:"",introduction:"",address_detail:"",status:1,province_id:"",city_id:"",area_id:"",street_id:""}}},created:function(){this.getdata()},methods:{rules:function(e){return[{required:!0,message:e,trigger:"blur"}]},change1:function(e,t){console.log(e,t)},getdata:function(){var e=this;this.loading(),$http.pc_post("plugin/LawyerPlatform/lawyerFirmDetail").then(function(t){var r=t.result,o=t.msg,n=t.data.lawyer_firm;e.closeLoading(),r?(e.member=n.member,e.id=n.id,e.form=n,e.isLoading=!0):(e.$message.error(o),setTimeout(e.goback,1e3))})},getAddress:function(e){for(var t in e)this.form[t+"_id"]=e[t]},submitForm:function(){var e=this;this.$refs.form.validate(function(t){return t?e.setdata():e.$message.error("必填项不能为空"),t})},setdata:function(){var e=this;this.loading("正在保存数据中..."),$http.pc_post("plugin/LawyerPlatform/lawyerFirmEdit",{form:this.form,id:this.id}).then(function(t){var r=t.result,o=t.msg;e.closeLoading(),e.$message[r?"success":"error"](o)})}}},n=(r("cM5P"),r("KHd+")),a=Object(n.a)(o,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("modular",{attrs:{name:"lawfirmIndex"}},[r("yz-modular",{attrs:{text:"基本信息"}},[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"200px"}},[r("el-form-item",{attrs:{label:"选择会员",prop:"member_id",rules:e.rules("请选择会员")}},[r("member",{attrs:{member:e.member},model:{value:e.form.member_id,callback:function(t){e.$set(e.form,"member_id",t)},expression:"form.member_id"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"律所名称",prop:"name",rules:e.rules("请输入律所名称")}},[r("el-input",{attrs:{placeholder:""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"logo",prop:"logo",rules:e.rules("请上传logo")}},[r("upload-img",{attrs:{src:e.form.logo_image,keyname:"logo"},on:{change:e.setImage}})],1),e._v(" "),r("el-form-item",{attrs:{label:"联系电话",prop:"tel",rules:e.rules("请输入联系电话")}},[r("el-input",{attrs:{placeholder:""},model:{value:e.form.tel,callback:function(t){e.$set(e.form,"tel",t)},expression:"form.tel"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"资质",prop:"thumb",rules:e.rules("请上传资质图片")}},[r("upload-img",{attrs:{src:e.form.thumb_image,keyname:"thumb"},on:{change:e.setImage}})],1),e._v(" "),r("el-form-item",{attrs:{label:"律所简介",prop:"introduction",rules:e.rules("请输入律所简介")}},[r("el-input",{attrs:{placeholder:"",type:"textarea",rows:5},model:{value:e.form.introduction,callback:function(t){e.$set(e.form,"introduction",t)},expression:"form.introduction"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"律所地址",prop:"street_id",rules:e.rules("请选择律所地址")}},[r("detaile-address",{attrs:{isStreet:!0,isLoadComplete:e.isLoading},on:{change:e.getAddress},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"详细地址",prop:"address_detail",rules:e.rules("请输入详细地址")}},[r("el-input",{attrs:{type:"textarea",rows:5,placeholder:"请输入详细地址"},model:{value:e.form.address_detail,callback:function(t){e.$set(e.form,"address_detail",t)},expression:"form.address_detail"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"状态",prop:""}},[r("el-radio",{attrs:{label:1},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[e._v("经营")]),e._v(" "),r("el-radio",{attrs:{label:0},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[e._v("休息")])],1)],1),e._v(" "),r("div",{attrs:{slot:"page"},slot:"page"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("提交")])],1)],1)],1)},[],!1,null,"960a0344",null);a.options.__file="index.vue";t.default=a.exports},T3R4:function(e,t,r){"use strict";t.a={data:function(){return{loadingData:null}},methods:{loading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载数据中...";return this.loadingData=this.$loading({lock:!0,text:e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},closeLoading:function(){this.loadingData.close()},goback:function(){this.$router.back()},goto:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$router.push(this.fun.getUrl(e,t,r))},setImage:function(e){for(var t in e)this.form[t]=e[t]}},components:{sign_side:function(){return r.e("chunk-commons").then(r.bind(null,"Xzti"))},modular:function(){return Promise.all([r.e("chunk-commons"),r.e("chunk-145b")]).then(r.bind(null,"/rjL"))},yzModular:function(){return r.e("chunk-cea2").then(r.bind(null,"yK0p"))},uploadImg:function(){return Promise.all([r.e("chunk-commons"),r.e("chunk-8765")]).then(r.bind(null,"jD2Z"))},member:function(){return r.e("chunk-6186").then(r.bind(null,"J6kF"))},detaileAddress:function(){return r.e("chunk-3525").then(r.bind(null,"4j5u"))},tableTemplate:function(){return r.e("chunk-00b5").then(r.bind(null,"t8Xl"))},coordinate:function(){return r.e("chunk-f544").then(r.bind(null,"cSQG"))}}}},cM5P:function(e,t,r){"use strict";var o=r("CeOi");r.n(o).a}}]);