webpackJsonp([83],{"+eVq":function(e,t){},VlR1:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("P9l9"),n=s("3E4D"),r=s("Ch4/"),o={name:"setting",data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",clerkPhoneFlag:0,storeEditFlag:0}},methods:{submit:function(){var e=this,t={wxEnterpriseId:this.wxEnterpriseId,clerkPhoneFlag:this.clerkPhoneFlag,storeEditFlag:this.storeEditFlag};Object(a.g)("/haoban-manage3-web/setting/operation-setting/save-or-update",t).then(function(e){1==e.data.errorCode&&n.a.showmsg("保存成功","success"),r.a.errorMsg(e.data)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this;Object(a.b)("/haoban-manage3-web/setting/get-operation-setting",{wxEnterpriseId:this.wxEnterpriseId}).then(function(t){var s=t.data.result||{},a=s.clerkPhoneFlag,n=s.storeEditFlag;e.clerkPhoneFlag=a||0,e.storeEditFlag=n||0}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",6),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},i={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"unreview-wrap common-set-wrap"},[s("div",{staticClass:"app-detail-pane border-box p-20"},[s("div",{staticClass:"m-b-20"},[s("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkPhoneFlag,callback:function(t){e.clerkPhoneFlag=t},expression:"clerkPhoneFlag"}},[e._v("添加导购时，手机号必填")]),e._v(" "),s("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注：勾选此项后，门店店长在好办移动端添加导购时，导购的手机号必填")])],1),e._v(" "),s("div",{staticClass:"m-t-46 m-l-25"},[s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保 存")])],1)])])},staticRenderFns:[]};var l=s("VU/8")(o,i,!1,function(e){s("+eVq")},"data-v-6b670bb3",null);t.default=l.exports}});