webpackJsonp([55],{QRSH:function(e,t){},Z3Aa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),s=a("Ch4/"),o=a("P9l9"),n={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,myCustomData:{searchFlag:0,handoverFlag:0},loading:!1}},methods:{setData:function(){var e={enterpriseId:this.brandId,wxEnterpriseRelatedId:this.wxEnterpriseRelatedId};e.searchFlag=this.myCustomData.searchFlag,e.handoverFlag=this.myCustomData.handoverFlag,Object(o.g)("/haoban-app-customer-web/customer/save-customer-setting",e).then(function(e){var t=e.data;1!=t.errorCode?s.a.errorMsg(t):r.a.showmsg("保存成功","success")})},getCustomerSet:function(){var e=this,t={enterpriseId:this.brandId,wxEnterpriseRelatedId:this.wxEnterpriseRelatedId};Object(o.g)("/haoban-app-customer-web/customer/find-customer-setting",t).then(function(t){var a=t.data||{},r=a.errorCode,o=a.result;1!=r?s.a.errorMsg(t.data):o&&(e.myCustomData.searchFlag=o.searchFlag,e.myCustomData.handoverFlag=o.handoverFlag)})}},mounted:function(){this.getCustomerSet()}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("el-form",[a("el-form-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.myCustomData.searchFlag,callback:function(t){e.$set(e.myCustomData,"searchFlag",t)},expression:"myCustomData.searchFlag"}},[e._v("允许全品牌搜索")])],1),e._v(" "),a("el-form-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.myCustomData.handoverFlag,callback:function(t){e.$set(e.myCustomData,"handoverFlag",t)},expression:"myCustomData.handoverFlag"}},[e._v("离职继承")]),e._v(" "),a("div",{staticClass:"set-tip-text"},[e._v("保存勾选项后，店长可以选择离职的导购名下的好友会员，选择离职继承")])],1)],1),e._v(" "),a("div",{staticClass:"m-t-46"},[e.$getButtonLimit(e.$buttonCode.searchSetSave)?a("el-button",{attrs:{"limit-code":e.$buttonCode.searchSetSave,type:"primary",loading:e.loading},on:{click:e.setData}},[e._v("保 存")]):e._e()],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,l,!1,function(e){a("QRSH")},"data-v-d98378a2",null);t.default=i.exports}});