(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d730d"],{7680:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[e._m(0),n("div",{staticClass:"app-container--bd"},[n("div",{staticClass:"table-container"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.inventeryList,"element-loading-text":"正在获取数据。。。",border:"",fit:"",stripe:"","highlight-current-row":""}},[n("el-table-column",{attrs:{align:"center",label:"序号",prop:"$index",width:"60px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.$index+1))])]}}])}),n("el-table-column",{attrs:{label:"单号",prop:"trade_no"}}),n("el-table-column",{attrs:{label:"操作类型",prop:"trade_type_str"}}),n("el-table-column",{attrs:{label:"数量",prop:"sku_num"}}),n("el-table-column",{attrs:{label:"单价",prop:"price"}}),n("el-table-column",{attrs:{label:"所属仓库",prop:"storage_name"}}),n("el-table-column",{attrs:{label:"库存余量",prop:"inventory"}}),n("el-table-column",{attrs:{label:"操作日期",prop:"operate_time",align:"center"}})],1)],1),n("div",{staticClass:"pagination-container fr"},[n("el-pagination",{attrs:{"current-page":e.page,"page-sizes":[10,20,50,100],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"prev-click":e.handlePrevClick,"next-click":e.handleNextClick}})],1)])])},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container--hd pb-20"},[n("h3",[e._v("库存明细")])])}],r=(n("2397"),n("96cf"),n("1da1")),l=n("d4ec"),s=n("bee2"),c=n("99de"),o=n("7e84"),u=n("262e"),p=n("9ab4"),h=n("60a3"),g=n("1fb3");function d(e,t,n){return t=Object(o["a"])(t),Object(c["a"])(e,v()?Reflect.construct(t,n||[],Object(o["a"])(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var b=function(e){function t(){var e;return Object(l["a"])(this,t),e=d(this,t,arguments),e.tableKey=0,e.inventeryList=[],e.page=1,e.pageSize=10,e.total=null,e}return Object(u["a"])(t,e),Object(s["a"])(t,[{key:"mounted",value:function(){var e=this;this.$nextTick((function(){e.getInventeryList()}))}},{key:"sku",get:function(){return this.$route.query.sku}},{key:"storage_id",get:function(){return this.$route.query.storage_id}},{key:"handleFilter",value:function(){this.getInventeryList()}},{key:"getInventeryList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={page:this.page,size:this.pageSize,sku:this.sku,storage_id:this.storage_id},e.next=3,Object(g["c"])(t);case 3:n=e.sent,a=n.data,this.inventeryList=a.list,this.total=a.count;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleSizeChange",value:function(e){this.pageSize=e,this.getInventeryList()}},{key:"handleCurrentChange",value:function(e){this.page=e,this.getInventeryList()}},{key:"handlePrevClick",value:function(e){this.page=e,this.getInventeryList()}},{key:"handleNextClick",value:function(e){this.page=e,this.getInventeryList()}}]),t}(h["i"]);b=Object(p["a"])([Object(h["a"])({name:"InventeryManage"})],b);var f=b,y=f,k=n("2877"),m=Object(k["a"])(y,a,i,!1,null,"2780a355",null);t["default"]=m.exports}}]);