(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-432a6e1f"],{"93e4":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"body"},[e("div",{staticClass:"table-page-search-box"},[e("a-form",{attrs:{layout:"inline"}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{md:8,sm:24}},[e("a-form-item",{attrs:{label:"供货商"}},[e("a-select",{staticStyle:{width:"215px"},attrs:{showSearch:!0,"filter-option":t.filterOption,allowClear:"",placeholder:"请选择"},model:{value:t.queryParam.supplier_id,callback:function(e){t.$set(t.queryParam,"supplier_id",e)},expression:"queryParam.supplier_id"}},t._l(t.supplierList,(function(a){return e("a-select-option",{key:a.id,attrs:{value:a.id}},[t._v(t._s(a.name))])})),1)],1)],1),e("a-col",{attrs:{md:8,sm:24}},[e("a-form-item",{attrs:{label:"入库单号"}},[e("a-input",{attrs:{"allow-clear":"",placeholder:"请输入入库单号"},model:{value:t.queryParam.order_no,callback:function(e){t.$set(t.queryParam,"order_no",e)},expression:"queryParam.order_no"}})],1)],1),e("a-col",{attrs:{md:8,sm:24}},[e("a-form-item",{attrs:{label:"商品名称"}},[e("a-input",{attrs:{"allow-clear":"",placeholder:"请输入商品名称"},model:{value:t.queryParam.goods_name,callback:function(e){t.$set(t.queryParam,"goods_name",e)},expression:"queryParam.goods_name"}})],1)],1),e("a-col",{attrs:{md:24,sm:24}},[e("a-form-item",{staticStyle:{"margin-top":"16px"},attrs:{label:"操作人员"}},[e("div",{staticClass:"titleStyle"},[e("a-input",{staticStyle:{width:"200px"},attrs:{"allow-clear":"",placeholder:"请输入操作人员"},model:{value:t.queryParam.operator,callback:function(e){t.$set(t.queryParam,"operator",e)},expression:"queryParam.operator"}}),e("a-button",{staticStyle:{"margin-left":"16px"},attrs:{type:"primary"},on:{click:function(e){return t.getList()}}},[t._v("搜索入库")])],1)])],1),t.items?e("a-col",{attrs:{md:24,sm:24}},[e("div",{staticStyle:{"margin-top":"16px"}},[t._v(" 当前查询记录商品: "),e("span",{staticClass:"goods_name"},[t._v(t._s(t.items.goods_name))]),t._v(" 规格:"),e("span",{staticClass:"attr_names"},[t._v(t._s(t.items.attr_names))]),e("span",{staticClass:"attr_all",on:{click:function(e){return t.selsctAll()}}},[t._v("查询全部")])])]):t._e()],1)],1)],1),e("div",{staticClass:"table-operator",staticStyle:{display:"flex","justify-content":"space-between",margin:"10px 0px"}},[e("div"),e("div",{staticStyle:{display:"flex"}},[e("a-dropdown",[e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",[e("a-popconfirm",{attrs:{title:"是否批量导出?","ok-text":"确定"},on:{confirm:function(e){return t.handleAll("export")}}},[t._v(" 批量导出 ")])],1)],1),e("a-button",[t._v(" 批量操作 ")])],1)],1)]),e("a-table",{staticStyle:{width:"100%","overflow-x":"auto"},attrs:{rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},size:"default",columns:t.columns,"data-source":t.list,"row-key":t=>t.id,scroll:{x:1500,y:550},pagination:{current:t.pageNo,total:t.total,pageSize:t.pageSize,onShowSizeChange:t.onShowSizeChange,showSizeChanger:!1,onChange:t.tablePageChange}},scopedSlots:t._u([{key:"action",fn:function(a,s){return e("span",{},[e("a-button",{attrs:{type:"link",size:"small"},on:{click:function(e){return t.handle("see",s)}}},[t._v("查看详情")])],1)}}])})],1)},i=[],r=(a("14d9"),a("0fc4"));const o=[{title:"ID",dataIndex:"id",width:80},{title:"入库单号",dataIndex:"order_no"},{title:"商品数量",dataIndex:"num"},{title:"操作人员",dataIndex:"operator"},{title:"添加时间",dataIndex:"created_at"},{title:"操作",scopedSlots:{customRender:"action"},width:180,fixed:"right"}];var l={components:{},data(){return{items:null,total:0,pageNo:1,pageSize:10,columns:o,queryParam:{supplier_id:"",order_no:"",goods_name:"",operator:"",inventory_id:""},list:[],selectedRowKeys:[],categoryInfo:[],statusList:[{id:"-1",title:"全部"},{id:"1",title:"已打印"},{id:"0",title:"未打印"}],supplierList:[]}},created(){this.$route.query.item&&(this.items=JSON.parse(this.$route.query.item),this.queryParam.inventory_id=this.items.inventory_id)},mounted(){this.getList(),Object(r["I"])().then(t=>{0==t.code&&(this.supplierList=t.data)})},computed:{getStatus(){return t=>{let e,a;switch(String(t)){case"0":e="未打印",a="rgba(0, 0, 0, 0.25)";break;case"1":e="已打印",a="#65C817";break}return[e,a]}}},methods:{selsctAll(){this.items=null,this.queryParam.inventory_id="",this.getList()},filterOption(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},onSelectChange(t){this.selectedRowKeys=t},handleAll(t){const{selectedRowKeys:e}=this;if(e.length)switch(t){case"export":this.export(e.join(","));break}else this.$message.error("请至少选择一条数据~")},async getList(t=1){const{queryParam:e,pageSize:a}=this,s=await Object(r["B"])({...e,pageSize:a,pageNo:t});if(0==s.code){this.pageNo=t,this.selectedRowKeys=[];const{totalCount:e,list:a}=s.data;this.total=e,this.list=a}},tablePageChange(t){this.getList(t)},onShowSizeChange(t,e){this.pageSize=e,this.getList(t)},handle(t,e,a){switch(t){case"see":this.$router.push({path:"/productStorageItem?id="+e.id});break;case"edit":break}},async export(t){try{await Object(r["g"])(t)}catch(e){}}}},n=l,c=(a("f973"),a("2877")),d=Object(c["a"])(n,s,i,!1,null,"0fd5f84a",null);e["default"]=d.exports},da3d:function(t,e,a){},f973:function(t,e,a){"use strict";a("da3d")}}]);