(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b898c1e"],{"2d38":function(t,i,e){"use strict";var a=e("94dc"),u=e.n(a);u.a},"71f6":function(t,i,e){"use strict";e.d(i,"a",(function(){return u}));e("ac6a"),e("456d");var a=e("b775");function u(t,i){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var u=t[e];"string"===typeof u&&(u={url:u}),u.url="".concat(i).concat(u.url),t[e]=function(t,i){return Object(a["a"])(u,t,i)}})),t}},"94dc":function(t,i,e){},"96b6":function(t,i,e){"use strict";var a=e("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};u=Object(a["a"])(u,"/hb-manage-web"),i["a"]=u},daa8:function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"audit-config"},[e("h3",{staticClass:"audit-config-title"},[t._v("需要进行审核的事项")]),e("div",{staticClass:"audit-config-content"},[e("el-switch",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{value:1==t.clerkAddFlag},on:{change:t.saveAuditConfig}}),t._m(0)],1)])},u=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"audit-config-desc"},[e("p",{staticClass:"desc-content"},[t._v("导购账号新增")]),e("p",{staticClass:"desc-tip"},[t._v("门店角色添加导购账号，需要经过管理员审批同意后才能新增成功，管理员新增导购无需审核")])])}],d=(e("c5f6"),e("96b6")),n=d["a"].findAuditSetting,r=d["a"].saveAuditSetting,s={name:"AuditConfig",data:function(){return{wxEnterpriseId:"",clerkAddFlag:1,loading:!1}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.getAuditConfig(),this.$emit("showTab","/audit-config")},methods:{getAuditConfig:function(){var t=this;n({wxEnterpriseId:this.wxEnterpriseId}).then((function(i){var e=i.result||{},a=e.clerkAddFlag;t.clerkAddFlag=a}))},saveAuditConfig:function(t){var i=this,e={clerkAddFlag:Number(t),wxEnterpriseId:this.wxEnterpriseId};this.loading=!0,r(e).then((function(t){i.$message.success("保存成功！"),i.getAuditConfig()})).finally((function(){return i.loading=!1}))}}},o=s,c=(e("2d38"),e("2877")),l=Object(c["a"])(o,a,u,!1,null,"7c83d98c",null);i["default"]=l.exports}}]);