(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/statistics/particulars"],{"269d":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),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"))},uniLoadMore:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-load-more/components/uni-load-more/uni-load-more")]).then(n.bind(null,"a556"))}},i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.chartData,(function(t,n){var a=e.__get_orig(t),i=e.getTime(t.opTime);return{$orig:a,m0:i}})));e.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},"32d6":function(e,t,n){"use strict";var a=n("729d"),i=n.n(a);i.a},"38bc":function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("2eee")),r=a(n("448a")),s=a(n("c973")),o=n("49c7"),c={data:function(){return{status:"more",wu:!1,showRight:!1,showLeft:!1,list:"",id:"",num:0,BeginSingle:"",FinishSingle:"",chartData:"",brandIndex:0,capacityIndex:0,geneIndex:0,levelIndex:0,warehouseIndex:0,brand:[],capacity:[],gene:[],level:[],warehouse:[],brandName:"",capacityName:"",geneName:"",levelName:"",warehouseName:"",page:1,contentText:{contentdown:"上拉加载更多",contentrefresh:"加载中",contentnomore:"没有更多"}}},onLoad:function(t){this.id=t.id,this.name=t.name,this.BeginSingle=t.startTime,this.FinishSingle=t.endTime,this.num=t.sum,this.name&&e.setNavigationBarTitle({title:this.name}),this.getData()},created:function(){},mounted:function(){this.getScreen()},methods:{getData:function(){var t=this;return(0,s.default)(i.default.mark((function n(){var a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.showLoading({title:"加载中"}),n.next=3,(0,o.recordDetail)({startTime:t.BeginSingle,endTime:t.FinishSingle,type:t.id,typeName:t.name,brand:t.brandName,gene:t.geneName,level:t.levelName,capacity:t.capacityName,warehouse:t.warehouseName,accessToken:e.getStorageSync("tokenInfo"),account:e.getStorageSync("account")});case 3:a=n.sent,e.hideLoading(),t.list=a.data.list,0===t.list.length&&(t.wu=!0),t.chartData=t.pagination(1,20,t.list);case 8:case"end":return n.stop()}}),n)})))()},more:function(){this.status="loading",this.page++,this.chartData=[].concat((0,r.default)(this.chartData),(0,r.default)(this.pagination(this.page,20,this.list))),this.chartData.length===this.list.length&&(this.status="noMore")},pagination:function(e,t,n){var a=(e-1)*t;return a+t>=n.length?n.slice(a,n.length):n.slice(a,a+t)},getScreen:function(){var e=this;return(0,s.default)(i.default.mark((function t(){var n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,o.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.name):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()},getTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=new Date(e),n=t.getFullYear(),a=t.getMonth()+1,i=t.getDate(),r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();a>=1&&a<=9&&(a="0"+a),i>=0&&i<=9&&(i="0"+i);var o=n+"-"+a+"-"+i+" "+r+":"+s;return o}}};t.default=c}).call(this,n("543d")["default"])},"729d":function(e,t,n){},8704:function(e,t,n){"use strict";n.r(t);var a=n("38bc"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"8e2e":function(e,t,n){"use strict";n.r(t);var a=n("269d"),i=n("8704");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("32d6");var s=n("f0c5"),o=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=o.exports},f292:function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("9012");a(n("66fd"));var i=a(n("8e2e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["f292","common/runtime","common/vendor"]]]);