"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[496],{76704:function(m,n,e){var s=e(97857),t=e.n(s),d=e(12578);n.Z={PagedList:function(r){return(0,d.request)("/api/report/getproductreport",{method:"POST",data:t()({},r)})},PagedMaterialList:function(r){return(0,d.request)("/api/report/getmaterialsreport",{method:"POST",data:t()({},r)})}}},7780:function(m,n,e){e.r(n);var s=e(15009),t=e.n(s),d=e(99289),u=e.n(d),r=e(67294),E=e(15513),P=e(76704),p=e(85893);n.default=function(){var T=(0,r.useRef)(),M=[{title:"materialId",dataIndex:"materialId",hideInSearch:!0,hideInTable:!0,align:"center"},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"materialName",align:"center"},{title:"\u751F\u4EA7\u91CD\u91CF(kg)",dataIndex:"count",hideInSearch:!0,align:"center"},{title:"\u751F\u4EA7\u65F6\u95F4",dataIndex:"dateTime",valueType:"dateRange",hideInTable:!0,align:"center"}];return(0,p.jsx)(E.Z,{columns:M,actionRef:T,cardBordered:!0,request:u()(t()().mark(function c(){var _,o,i,l=arguments;return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return _=l.length>0&&l[0]!==void 0?l[0]:{},o={pageIndex:_.current||1,pageSize:_.pageSize||10,endTime:_.dateTime?_.dateTime[1]:void 0,startTime:_.dateTime?_.dateTime[0]:void 0,materialName:_.materialName},a.next=4,P.Z.PagedMaterialList(o);case 4:if(i=a.sent,i.statusCode!==200){a.next=9;break}return a.abrupt("return",{data:i.data.items,success:!0,total:1});case 9:return a.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return a.stop()}},c)})),rowKey:"productId",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string",headerTitle:"\u5217\u8868"})}}}]);
