webpackJsonp([55],{MbqO:function(e,t){},RvMj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),n=a("PI0u"),i=a("P9l9"),o={name:"evaluate-set",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{guideReplyFlag:!1},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(e){this.loading=!0,this.setData(e)},500),setData:function(e){var t=this,a={enterpriseId:t.brandId,guideReplyFlag:t.myCustomData.guideReplyFlag?1:"0"};Object(i.d)("/haoban-app-aggregation-web/order-evaluation-setting",a).then(function(e){var a=e.data;t.loading=!1,t.getCustomerSet(),1!=a.errorCode?r.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},getCustomerSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(i.d)("/haoban-app-aggregation-web/order-evaluation-find",a).then(function(e){var a=e.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&(t.myCustomData.guideReplyFlag=1==a.result.guideReplyFlag)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.getCustomerSet(this.brandId)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getCustomerSet(this.brandId)},components:{}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("div",{staticClass:"m-b-20"},[a("span",{staticClass:"font-14 p-r-10"}),e._v(" "),a("el-switch",{model:{value:e.myCustomData.guideReplyFlag,callback:function(t){e.$set(e.myCustomData,"guideReplyFlag",t)},expression:"myCustomData.guideReplyFlag"}}),e._v(" "),a("span",{staticClass:"p-r-10 font-14 color-303133"},[e._v("禁止订单关联导购回复评价")]),a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("注：开启后，订单关联导购不可回复评价")])],1),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:e.loading,disabled:e.$store.state.wxEnterpriseType},on:{click:function(t){return e.submit("searchFlag")}}},[e._v("保 存")])],1)])])},staticRenderFns:[]};var u=a("VU/8")(o,d,!1,function(e){a("MbqO")},"data-v-7dd2eefc",null);t.default=u.exports}});