webpackJsonp([80],{"6j9f":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),n=a("P9l9"),c={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{changeSwitch:function(e){this.postData()},postData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId,auditFlag:t.storeSwitch,clerkChangeFlag:t.clerkChangeFlag};Object(n.d)("/haoban-manage3-web/audit/open-or-close",a).then(function(e){var t=e.data;1!=t.errorCode?r.a.errorMsg(t):s.a.showmsg("操作成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,a={wxEnterpriseId:t.wxEnterpriseId};Object(n.a)("/haoban-manage3-web/audit/find-setting",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.storeSwitch=a.result.auditFlag,void(t.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},on:{change:e.changeSwitch},model:{value:e.storeSwitch,callback:function(t){e.storeSwitch=t},expression:"storeSwitch"}},[e._v("开启门店资料修改审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后，所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},on:{change:e.changeSwitch},model:{value:e.clerkChangeFlag,callback:function(t){e.clerkChangeFlag=t},expression:"clerkChangeFlag"}},[e._v("门店导购变更审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后，企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1)])])])},staticRenderFns:[]};var o=a("VU/8")(c,i,!1,function(e){a("Mcr+")},"data-v-29b54ed4",null);t.default=o.exports},"Mcr+":function(e,t){}});