(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5782cef6"],{"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 d}));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 d(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),d=u.querySelector(e.barSelector),l=e.speed,c=e.easing;return u.offsetWidth,a((function(o){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),s(d,n(r,l,c)),1===r?(s(u,{transition:"none",opacity:1}),u.offsetWidth,setTimeout((function(){s(u,{transition:"all "+l+"ms linear",opacity:0}),setTimeout((function(){t.remove(),o()}),l)}),l)):setTimeout(o,l)})),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),d=o?"-100":r(t.status||0),l=document.querySelector(e.parent);return s(i,{transition:"all 0 linear",transform:"translate3d("+d+"%,0,0)"}),e.showSpinner||(a=n.querySelector(e.spinnerSelector),a&&c(a)),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(n),n},t.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&c(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:l(t);return o.indexOf(" "+e+" ")>=0}function u(t,e){var o=l(t),r=o+e;i(o,e)||(t.className=r.substring(1))}function d(t,e){var o,r=l(t);i(t,e)&&(o=r.replace(" "+e+" "," "),t.className=o.substring(1,o.length-1))}function l(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function c(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"),d=o("a640"),l=o("04d1"),c=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)})),_=d("sort"),v=!i((function(){if(p)return p<70;if(!(l&&l>3)){if(c)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=[],d=s(e.length);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:1;this.groupGoodsSearch.page=e,this.groupGoodsSearch.new_ids=this.goodsList.new_ids,Object(s["d"])(this.groupGoodsSearch).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)}))},getGoupInfo:function(t){var e=this;Object(s["f"])(t).then((function(t){e.group=t.data.data,e.group.datetimerange=[e.group.start_time,e.group.end_time]}))},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){t.groupGoodsSearch.delete_ids.push(e.id);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.groupGoodsSearch.delete_ids.push(t.id),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.goodsList.group_id=this.groupGoodsSearch.group_id,this.goodsList.delete_ids=this.groupGoodsSearch.delete_ids,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=this;this.selectGoods.forEach((function(e,o){void 0!==o&&(t.goodsList.new_ids.push(o),t.goodsList.has_ids.push(o))})),this.getGroupGoodsList(),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)}}},l=d,c=o("2877"),p=Object(c["a"])(l,r,n,!1,null,null,null);e["default"]=p.exports},"6d71":function(t,e,o){"use strict";o.d(e,"h",(function(){return n})),o.d(e,"e",(function(){return a})),o.d(e,"b",(function(){return s})),o.d(e,"g",(function(){return i})),o.d(e,"c",(function(){return u})),o.d(e,"d",(function(){return d})),o.d(e,"a",(function(){return l})),o.d(e,"f",(function(){return c}));var r=o("adb5");function n(t){return Object(r["a"])({url:"/api/goods_types",method:"get",params:t})}function a(t){return Object(r["a"])({url:"/api/goods_types/".concat(t),method:"delete"})}function s(t){return Object(r["a"])({url:"/api/goods_types/",method:"post",data:t})}function i(t,e){return Object(r["a"])({url:"/api/goods_types/".concat(t),method:"patch",data:e})}function u(t){return Object(r["a"])({url:"/api/goods_brands",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/api/goods_brands/".concat(t),method:"delete"})}function l(t){return Object(r["a"])({url:"/api/goods_brands",method:"post",data:t})}function c(t,e){return Object(r["a"])({url:"/api/goods_brands/".concat(t),method:"patch",data:e})}},a5d8:function(t,e,o){},adb5:function(t,e,o){"use strict";o("d3b7");var r=o("bc3a"),n=o.n(r),a=o("0a5a"),s=o("323e"),i=o.n(s),u=(o("a5d8"),o("5c96")),d=n.a.create({timeout:3e4});d.interceptors.request.use((function(t){return t.headers.Authorization="Bearer "+Object(a["a"])(),i.a.start(),t}),(function(t){return Promise.reject(t)})),d.interceptors.response.use((function(t){i.a.done();var e=t.status;if(200===e||201===e)return t}),(function(t){return i.a.done(),400===t.response.status&&Object(u["Message"])({message:t.response.data.errorMessage,type:"error"}),500===t.response.status&&Object(u["Message"])({message:t.response.data.message,type:"error"}),Promise.reject(t)})),e["a"]=d},addb:function(t,e){var o=Math.floor,r=function(t,e){var s=t.length,i=o(s/2);return s<8?n(t,e):a(r(t.slice(0,i),e),r(t.slice(i),e),e)},n=function(t,e){var o,r,n=t.length,a=1;while(a0)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(a