(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20ee929b"],{"04d1":function(t,e,o){var r=o("342f"),n=r.match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},"0a5a":function(t,e,o){"use strict";o.d(e,"a",(function(){return n})),o.d(e,"b",(function(){return a}));var r="admin_token";function n(){return localStorage.getItem("token")}function a(){return localStorage.removeItem(r)}},"23ba":function(t,e,o){"use strict";o.d(e,"e",(function(){return n})),o.d(e,"a",(function(){return a})),o.d(e,"f",(function(){return s})),o.d(e,"c",(function(){return i})),o.d(e,"d",(function(){return u})),o.d(e,"b",(function(){return l}));var r=o("adb5");function n(t){return Object(r["a"])({url:"/api/group",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/api/group",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/group/".concat(t),method:"get"})}function i(t,e){return Object(r["a"])({url:"/api/group/".concat(t),method:"patch",data:e})}function u(t){return Object(r["a"])({url:"/api/groupGoods",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/api/groupGoods",method:"post",params:t})}},"323e":function(t,e,o){var r,n; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(a,s){r=s,n="function"===typeof r?r.call(e,o,e,t):r,void 0===n||(t.exports=n)})(0,(function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function o(t,e,o){return to?o:t}function r(t){return 100*(-1+t)}function n(t,o,n){var a;return a="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},a.transition="all "+o+"ms "+n,a}t.configure=function(t){var o,r;for(o in t)r=t[o],void 0!==r&&t.hasOwnProperty(o)&&(e[o]=r);return this},t.status=null,t.set=function(r){var i=t.isStarted();r=o(r,e.minimum,1),t.status=1===r?null:r;var u=t.render(!i),l=u.querySelector(e.barSelector),c=e.speed,d=e.easing;return u.offsetWidth,a((function(o){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),s(l,n(r,c,d)),1===r?(s(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){s(u,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){t.remove(),o()}),c)}),c)):setTimeout(o,c)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var o=function(){setTimeout((function(){t.status&&(t.trickle(),o())}),e.trickleSpeed)};return e.trickle&&o(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*o(Math.random()*r,.1,.95)),r=o(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,o=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===o&&t.start(),e++,o++,r.always((function(){o--,0===o?(e=0,t.done()):t.set((e-o)/e)})),this):this}}(),t.render=function(o){if(t.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=e.template;var a,i=n.querySelector(e.barSelector),l=o?"-100":r(t.status||0),c=document.querySelector(e.parent);return s(i,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),e.showSpinner||(a=n.querySelector(e.spinnerSelector),a&&d(a)),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(n),n},t.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&d(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var o=t.shift();o&&o(e)}return function(o){t.push(o),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function o(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var o=document.body.style;if(e in o)return e;var r,n=t.length,a=e.charAt(0).toUpperCase()+e.slice(1);while(n--)if(r=t[n]+a,r in o)return r;return e}function n(t){return t=o(t),e[t]||(e[t]=r(t))}function a(t,e,o){e=n(e),t.style[e]=o}return function(t,e){var o,r,n=arguments;if(2==n.length)for(o in e)r=e[o],void 0!==r&&e.hasOwnProperty(o)&&a(t,o,r);else a(t,n[1],n[2])}}();function i(t,e){var o="string"==typeof t?t:c(t);return o.indexOf(" "+e+" ")>=0}function u(t,e){var o=c(t),r=o+e;i(o,e)||(t.className=r.substring(1))}function l(t,e){var o,r=c(t);i(t,e)&&(o=r.replace(" "+e+" "," "),t.className=o.substring(1,o.length-1))}function c(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function d(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},"4e82":function(t,e,o){"use strict";var r=o("23e7"),n=o("1c0b"),a=o("7b0b"),s=o("50c4"),i=o("d039"),u=o("addb"),l=o("a640"),c=o("04d1"),d=o("d998"),p=o("2d00"),g=o("512ce"),f=[],h=f.sort,m=i((function(){f.sort(void 0)})),b=i((function(){f.sort(null)})),_=l("sort"),v=!i((function(){if(p)return p<70;if(!(c&&c>3)){if(d)return!0;if(g)return g<603;var t,e,o,r,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:o=3;break;case 68:case 71:o=4;break;default:o=2}for(r=0;r<47;r++)f.push({k:e+r,v:o})}for(f.sort((function(t,e){return e.v-t.v})),r=0;rString(o)?1:-1}};r({target:"Array",proto:!0,forced:y},{sort:function(t){void 0!==t&&n(t);var e=a(this);if(v)return void 0===t?h.call(e):h.call(e,t);var o,r,i=[],l=s(e.length);for(r=0;r0)t[r]=t[--r];r!==a++&&(t[r]=o)}return t},a=function(t,e,o){var r=t.length,n=e.length,a=0,s=0,i=[];while(a0&&void 0!==arguments[0]?arguments[0]:1,o={page:e,per_page:this.groupGoodsSearch.per_page,goods_keyword:this.groupGoodsSearch.external_sku_id,has_stock:this.groupGoodsSearch.has_stock,type_id:this.groupGoodsSearch.type_id,shop_id:this.group.shop_id,has_ids:this.goodsList.has_ids};Object(s["b"])(o).then((function(e){t.groupGoods=e.data,t.groupGoods.data.forEach((function(e,o){void 0!==t.changeData[e.id]&&(t.groupGoods.data[o].sort=t.changeData[e.id].sort,t.groupGoods.data[o].limit_buy=t.changeData[e.id].limit_buy,t.groupGoods.data[o].price_in_fen=t.changeData[e.id].price_in_fen)})),t.groupGoods.meta.per_page=parseInt(t.groupGoods.meta.per_page)}))},getgoodsType:function(){var t=this,e={per_page:9999};Object(i["h"])(e).then((function(e){t.types=e.data.data}))},getbrandType:function(){var t=this,e={per_page:9999};Object(i["c"])(e).then((function(e){t.brands=e.data.data}))},batchRemove:function(){var t=this;this.$refs.multipleTableGroup.selection.forEach((function(e){var o=t.goodsList.has_ids.indexOf(e.id);o>0&&delete t.goodsList.has_ids[o]})),this.$refs.multipleTableGroup.clearSelection(),this.getGroupGoodsList()},remove:function(t){var e=this;this.goodsList.has_ids.forEach((function(o,r){o==t.id&&delete e.goodsList.has_ids[r]})),this.getGroupGoodsList()},handleCellChange:function(t){this.changeData[t.id]={id:t.id,sort:t.sort,limit_buy:t.limit_buy,price_in_fen:t.price_in_fen}},importGoods:function(){this.group.shop_id?(this.dialogTitle="您的商品库中已有 "+this.groupGoods.meta.total+" 件商品",this.goodsSearch(),this.centerDialogVisible=!0):this.$message.error("请先选择店铺")},goodsSearch:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.goodsList.page=e,this.goodsList.per_page=this.goodsListPage.per_page,this.goodsLoading=!0,Object(u["c"])(this.goodsList).then((function(e){t.goods=e.data,t.goods.meta.per_page=parseInt(t.goods.meta.per_page),t.goods.data.forEach((function(e,o){void 0!==t.selectGoods[e.id]&&t.$refs.multipleTable.toggleRowSelection(e,!0)})),t.goodsLoading=!1})),1===e&&this.getAllGoods(this.goodsList)},getAllGoods:function(t){var e=this;t.page=1,t.per_page=9999,Object(u["c"])(t).then((function(t){e.allGoods=t.data.data}))},handleSizeChange:function(t){this.goodsListPage.per_page=t,this.goodsSearch()},getRowKeys:function(t){return t.id},toggleSelection:function(t){var e=this;t?(this.allGoods.forEach((function(t,o){void 0===e.selectGoods[t.id]&&e.selectNum++,e.selectGoods[t.id]=1})),this.goods.data.forEach((function(t,o){e.$refs.multipleTable.toggleRowSelection(t,!0)}))):(this.allGoods.forEach((function(t,o){void 0!==e.selectGoods[t.id]&&(delete e.selectGoods[t.id],e.selectNum--)})),this.$refs.multipleTable.clearSelection())},handleSelect:function(t,e){void 0===this.selectGoods[e.id]?(this.selectGoods[e.id]=1,this.selectNum++):(delete this.selectGoods[e.id],this.selectNum--)},resetForm:function(){this.$refs.goodsList.resetFields(),this.goodsSearch()},addGoods:function(){var t,e=this,o=[];this.selectGoods.forEach((function(t,e){void 0!==e&&o.push(e)}));var r={shop_id:this.group.shop_id,has_ids:this.goodsList.has_ids,new_ids:o,per_page:this.groupGoods.meta.per_page};(t=this.goodsList.has_ids).push.apply(t,o),Object(s["b"])(r).then((function(t){e.groupGoods=t.data,e.groupGoods.meta.per_page=parseInt(e.groupGoods.meta.per_page)})),this.$refs.goodsList.resetFields(),this.$refs.multipleTable.clearSelection(),this.selectGoods=[],this.selectNum=0,this.centerDialogVisible=!1},selectCurrentGoods:function(t){var e=this;t.length?(t.forEach((function(t){void 0===e.selectGoods[t.id]&&(e.selectGoods[t.id]=1)})),this.selectNum+=t.length):(this.goods.data.forEach((function(t){void 0!==e.selectGoods[t.id]&&delete e.selectGoods[t.id]})),this.selectNum-=this.goods.data.length)}}},c=l,d=o("2877"),p=Object(d["a"])(c,r,n,!1,null,null,null);e["default"]=p.exports},c40e:function(t,e,o){"use strict";o.d(e,"d",(function(){return n})),o.d(e,"a",(function(){return a})),o.d(e,"b",(function(){return s})),o.d(e,"e",(function(){return i})),o.d(e,"i",(function(){return u})),o.d(e,"h",(function(){return l})),o.d(e,"g",(function(){return c})),o.d(e,"f",(function(){return d})),o.d(e,"c",(function(){return p}));var r=o("adb5");function n(t){return Object(r["a"])({url:"/api/goods_skus",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/api/goods",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/goods_skus/".concat(t),method:"get"})}function i(t){return Object(r["a"])({url:"/api/goods",method:"get",params:t})}function u(t,e){return Object(r["a"])({url:"/api/goods_skus/".concat(t),method:"patch",data:e})}function l(t){return Object(r["a"])({url:"/api/batch/goods_skus",method:"patch",data:t})}function c(t,e){return Object(r["a"])({url:"/api/single/goods_skus/".concat(t),method:"patch",data:e})}function d(t,e){return Object(r["a"])({url:"/api/upload",Headers:e,method:"post",data:t})}function p(t){return Object(r["a"])({url:"/api/goodsList",method:"get",params:t})}},d998:function(t,e,o){var r=o("342f");t.exports=/MSIE|Trident/.test(r)},e692:function(t,e,o){"use strict";o.d(e,"c",(function(){return n})),o.d(e,"b",(function(){return a})),o.d(e,"d",(function(){return s})),o.d(e,"a",(function(){return i}));var r=o("adb5");function n(){return Object(r["a"])({url:"/api/shop_platforms",method:"get"})}function a(t){return Object(r["a"])({url:"/api/shops",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/shops",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/api/download/".concat(t,"/goods"),method:"get"})}}}]); //# sourceMappingURL=chunk-20ee929b.66c18bf5.js.map