webpackJsonp([46],{"6j9f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3E4D"),r=a("Ch4/"),s=a("P9l9"),o={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{changeSwitch:function(t){this.postData()},postData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,auditFlag:e.storeSwitch?1:0,clerkChangeFlag:e.clerkChangeFlag?1:0};Object(s.d)("/haoban-manage3-web/audit/open-or-close",a).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):n.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId};Object(s.a)("/haoban-manage3-web/audit/find-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.storeSwitch=1==a.result.auditFlag,void(e.clerkChangeFlag=1==a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;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",[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeSwitch},model:{value:t.storeSwitch,callback:function(e){t.storeSwitch=e},expression:"storeSwitch"}}),t._v(" "),a("el-tooltip",{attrs:{content:"开启后，所有门店在小程序端修改门店资料需要审核通过后才能修改",placement:"top"}},[a("span",{staticClass:"inline-block font-14 color-303133 m-l-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("开启门店资料修改审核")])])],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:t.changeSwitch},model:{value:t.clerkChangeFlag,callback:function(e){t.clerkChangeFlag=e},expression:"clerkChangeFlag"}}),t._v(" "),a("el-tooltip",{attrs:{content:"开启后，企业微信成员在好办小程序店长删除或新增导购需要进行审核",placement:"top"}},[a("span",{staticClass:"inline-block font-14 color-303133 m-l-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("门店导购变更审核")])])],1)])])])},staticRenderFns:[]};var c=a("VU/8")(o,i,!1,function(t){a("T7Sb")},"data-v-7f5e8d6c",null);e.default=c.exports},T7Sb:function(t,e){}});