"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[926],{76704:function(m,r,e){var u=e(97857),a=e.n(u),d=e(12578);r.Z={PagedList:function(n){return(0,d.request)("/api/report/getproductreport",{method:"POST",data:a()({},n)})},PagedMaterialList:function(n){return(0,d.request)("/api/report/getmaterialsreport",{method:"POST",data:a()({},n)})}}},47667:function(m,r,e){e.r(r);var u=e(15009),a=e.n(u),d=e(99289),o=e.n(d),n=e(67294),E=e(15513),p=e(76704),P=e(85893);r.default=function(){var c=(0,n.useRef)(),T=[{title:"productId",dataIndex:"productId",hideInSearch:!0,hideInTable:!0,align:"center"},{title:"\u6210\u54C1\u540D\u79F0",dataIndex:"productName",align:"center"},{title:"\u751F\u4EA7\u6570\u91CF",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:T,actionRef:c,cardBordered:!0,request:o()(a()().mark(function M(){var _,l,s,i=arguments;return a()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return _=i.length>0&&i[0]!==void 0?i[0]:{},l={pageIndex:_.current||1,pageSize:_.pageSize||10,endTime:_.dateTime?_.dateTime[1]:void 0,startTime:_.dateTime?_.dateTime[0]:void 0,productName:_.productName||""},t.next=4,p.Z.PagedList(l);case 4:if(s=t.sent,s.statusCode!==200){t.next=9;break}return t.abrupt("return",{data:s.data.items,success:!0,total:s.total});case 9:return t.abrupt("return",{data:[],success:!1,total:0});case 10:case"end":return t.stop()}},M)})),rowKey:"productId",pagination:{pageSize:10,showSizeChanger:!1},dateFormatter:"string"},"myTable")}}}]);
