(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/inventory/inventory"],{"6ad9":function(e,t,n){"use strict";n.r(t);var a=n("92d0"),r=n.n(a);for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);t["default"]=r.a},"6adf":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return a}));var a={uniDrawer:function(){return n.e("uni_modules/uni-drawer/components/uni-drawer/uni-drawer").then(n.bind(null,"594e"))}},r=function(){var e=this.$createElement;this._self._c},c=[]},"6fc8":function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("9012");a(n("66fd"));var r=a(n("ccb8"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"92d0":function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("2eee")),c=a(n("c973")),i=a(n("9523")),o=n("26cb"),u=n("9296"),s=n("49c7");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}var f={data:function(){return{showRight:!1,showLeft:!1,data:"",sum:0,brandIndex:0,capacityIndex:0,geneIndex:0,levelIndex:0,warehouseIndex:0,brand:[],capacity:[],gene:[],level:[],warehouse:[],brandName:"",capacityName:"",geneName:"",levelName:"",warehouseName:""}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,o.mapState)({user:function(e){return e.user}})),onLoad:function(t){this.name=t.name,this.name&&e.setNavigationBarTitle({title:this.name})},mounted:function(){this.getScreen(),this.getData()},methods:{getData:function(){var t=this;return(0,c.default)(r.default.mark((function n(){var a,c;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.showLoading({title:"加载中"}),n.next=3,(0,u.stock)({code:t.warehouseName,brand:t.brandName,gene:t.geneName,level:t.levelName,capacity:t.capacityName,accessToken:e.getStorageSync("tokenInfo"),account:e.getStorageSync("account")});case 3:a=n.sent,e.hideLoading(),t.data=a.data.list,c=t,a.data.list.forEach((function(e){c.sum+=e.warehouseStock}));case 8:case"end":return n.stop()}}),n)})))()},getScreen:function(){var e=this;return(0,c.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,s.stockSearch)({});case 2:n=t.sent,e.warehouse=n.data.data.warehouse,e.warehouse.unshift({name:"全部仓库",code:"ck00"}),e.brand=n.data.data.brand,e.brand.unshift("全部品牌"),e.level=n.data.data.level,e.level.unshift("全部等级"),e.capacity=n.data.data.capacity,e.capacity.unshift("全部容量"),e.gene=n.data.data.gene,e.gene.unshift(-1);case 13:case"end":return t.stop()}}),t)})))()},showDrawer:function(e){this.$refs.showRight.open()},closeDrawer:function(e){this.$refs.showRight.close()},change:function(e,t,n){0===n?(this.warehouseIndex=t,this.warehouseName=0==t?"":e.code):1===n?(this.brandIndex=t,this.brandName=0==t?"":e):2===n?(this.geneIndex=t,this.geneName=0==t?"":e):3===n?(this.levelIndex=t,this.levelName=0==t?"":e):4===n&&(this.capacityIndex=t,this.capacityName=0==t?"":e)},reset:function(){this.brandIndex=0,this.capacityIndex=0,this.geneIndex=0,this.levelIndex=0,this.warehouseIndex=0,this.brandName="",this.capacityName="",this.geneName="",this.levelName="",this.warehouseName=""},confirm:function(){this.getData(),this.closeDrawer()}}};t.default=f}).call(this,n("543d")["default"])},"93bc":function(e,t,n){"use strict";var a=n("dc6e"),r=n.n(a);r.a},ccb8:function(e,t,n){"use strict";n.r(t);var a=n("6adf"),r=n("6ad9");for(var c in r)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(c);n("93bc");var i=n("f0c5"),o=Object(i["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=o.exports},dc6e:function(e,t,n){}},[["6fc8","common/runtime","common/vendor"]]]);