webpackJsonp([49],{RvMj:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),r=a("P9l9"),i={name:"app-detail",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:{salesGoodsFlag:!1},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var e=this,a={enterpriseId:e.brandId,salesGoodsFlag:e.myCustomData.salesGoodsFlag?1:"0"};Object(r.d)("/haoban-app-aggregation-web/save-goods-setting",a).then(function(t){var a=t.data;e.loading=!1,e.getCustomerSet(),1!=a.errorCode?o.a.errorMsg(a):s.a.showmsg("保存成功","success")}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var e=this,a={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(r.d)("/haoban-app-aggregation-web/find-goods-setting",a).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&(e.myCustomData.salesGoodsFlag=1==a.result.salesGoodsFlag)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&this.getCustomerSet(this.brandId)}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getCustomerSet(this.brandId)},components:{}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;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"}),t._v(" "),a("el-checkbox",{model:{value:t.myCustomData.salesGoodsFlag,callback:function(e){t.$set(t.myCustomData,"salesGoodsFlag",e)},expression:"myCustomData.salesGoodsFlag"}},[t._v("允许订单关联导购回复评价")]),a("span",{staticClass:"font-12 color-909399 p-l-10"},[t._v("注：开启后，订单关联导购不可回复评价")])],1),t._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){t.submit("searchFlag")}}},[t._v("保 存")])],1)])])},staticRenderFns:[]};var l=a("VU/8")(i,d,!1,function(t){a("eYpR")},"data-v-740ec466",null);e.default=l.exports},eYpR:function(t,e){}});