require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/goods/components/label/index"],{"4c33":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("6af6"),a=(i("3240"),{components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)}},props:{visible:{type:Boolean,default:!1}},data:function(){return{getHeight:this.$util.getWXStatusHeight(),labelList:[],goodsInfo:{},dataLabel:[],isStore:!1,num:0,ids:[]}},mounted:function(){},methods:{define:function(){var t=this;if(this.checkKefuAuth("kefu-admin-product-edit")){var e={data:{store_label_id:this.dataLabel},type:2};this.num?e.ids=this.ids:e.ids=this.goodsInfo.id,(0,n.postBatchProcess)(e).then((function(e){t.$util.Tips({title:e.msg}),t.$emit("successChange")})).catch((function(e){t.$util.Tips({title:e})}))}},reset:function(){this.productLabel(this.goodsInfo,this.num,this.ids)},inArray:function(t,e){for(var i in e)if(e[i]==t)return!0;return!1},productLabel:function(t,e,i){var a=this;this.checkKefuAuth("kefu-admin-product-edit")&&(this.dataLabel=t.store_label_id||[],this.goodsInfo=JSON.parse(JSON.stringify(t)),this.num=e,this.ids=i,(0,n.getProductLabel)().then((function(t){t.data.map((function(t){t.children&&t.children.length&&(a.isStore=!0,t.children.map((function(t){a.inArray(t.id,a.dataLabel)?t.disabled=!0:t.disabled=!1})))})),a.labelList=t.data})).catch((function(t){a.$util.Tips({title:t})})))},selectLabel:function(t){if(t.disabled){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e==t.id}))[0]);this.dataLabel.splice(e,1),t.disabled=!1}else this.dataLabel.push(t.id),t.disabled=!0},closeDrawer:function(){this.$emit("closeDrawer")}}});e.default=a},"7f84":function(t,e,i){"use strict";i.r(e);var n=i("4c33"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"891e":function(t,e,i){"use strict";var n=i("fac0"),a=i.n(n);a.a},b158:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.isStore?t.__map(t.labelList,(function(e,i){var n=t.__get_orig(e),a=e.children&&e.children.length,s=e.children&&e.children.length;return{$orig:n,g0:a,g1:s}})):null);t.$mp.data=Object.assign({},{$root:{l0:i}})},a=[]},d2d6:function(t,e,i){"use strict";i.r(e);var n=i("b158"),a=i("7f84");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("891e");var o=i("828b"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"3c847dce",null,!1,n["a"],void 0);e["default"]=c.exports},fac0:function(t,e,i){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/admin/goods/components/label/index-create-component',
    {
        'pages/admin/goods/components/label/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("d2d6"))
        })
    },
    [['pages/admin/goods/components/label/index-create-component']]
]);
