webpackJsonp([53],{XrL3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),r=a("P9l9"),d={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,notSalesGoodsFlag:!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,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(r.d)("/haoban-app-customer-web/customer/save-goods-setting",a).then(function(e){var a=e.data;t.loading=!1,1!=a.errorCode?o.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(r.d)("/haoban-app-customer-web/customer/find-goods-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):a.result&&(t.myCustomData.salesGoodsFlag=!!a.result.salesGoodsFlag,t.myCustomData.notSalesGoodsFlag=!!a.result.notSalesGoodsFlag)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){this.getCustomerSet(this.brandId)}},mounted:function(){this.$emit("showTab","1"),this.getCustomerSet(this.brandId)},components:{}},i={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("span",{staticClass:"font-14 p-r-10"},[e._v("商品展示：")]),e._v(" "),a("el-checkbox",{model:{value:e.myCustomData.salesGoodsFlag,callback:function(t){e.$set(e.myCustomData,"salesGoodsFlag",t)},expression:"myCustomData.salesGoodsFlag"}},[e._v("已上架商品")]),a("el-checkbox",{model:{value:e.myCustomData.notSalesGoodsFlag,callback:function(t){e.$set(e.myCustomData,"notSalesGoodsFlag",t)},expression:"myCustomData.notSalesGoodsFlag"}},[e._v("未上架商品")]),e._v(" "),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){e.submit("searchFlag")}}},[e._v("保 存")])],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(d,i,!1,function(e){a("fDfK")},"data-v-566aef1e",null);t.default=l.exports},fDfK:function(e,t){}});