webpackJsonp([117],{"6j9f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),i=a("P9l9"),n={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{postData:function(t){var e={wxEnterpriseId:this.wxEnterpriseId,auditFlag:this.storeSwitch,clerkChangeFlag:this.clerkChangeFlag};Object(i.g)("/haoban-manage3-web/audit/open-or-close",e).then(function(t){var e=t.data;1!=e.errorCode?r.a.errorMsg(e):s.a.showmsg("操作成功","success")}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})},getData:function(t){var e=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(i.b)("/haoban-manage3-web/audit/find-setting",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.storeSwitch=a.result.auditFlag,void(e.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(t){this.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},o={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"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.storeSwitch,callback:function(e){t.storeSwitch=e},expression:"storeSwitch"}},[t._v("开启门店资料修改审核")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("开启后，所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),t._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:t.clerkChangeFlag,callback:function(e){t.clerkChangeFlag=e},expression:"clerkChangeFlag"}},[t._v("门店导购变更审核")]),t._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("开启后，企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1),t._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[t.$getButtonLimit(t.$buttonCode.saveApplySetting)?a("el-button",{attrs:{"limit-code":t.$buttonCode.saveApplySetting,type:"primary",loading:t.loading},on:{click:t.postData}},[t._v("保 存")]):t._e()],1)])])])},staticRenderFns:[]};var c=a("VU/8")(n,o,!1,function(t){a("VWtM")},"data-v-0c4d9fc7",null);e.default=c.exports},VWtM:function(t,e){}});