25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
7.6 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[35,1322],{10922:function(X,S,a){"use strict";a.r(S),a.d(S,{default:function(){return W}});var v=a(39428),j=a(3182),k=a(57663),F=a(71577),q=a(43358),x=a(34041),l=a(2824),C=a(90631),o=a(67294),z=a(78009),P=a(16894),R=a(53667),A=a.n(R),c=a(48971),m={orderList:function(i){return i.isreport=!0,(0,c.WY)("/kitchen/api/order/business-sum",{method:"Post",data:i})},srdTypeList:function(i){return(0,c.WY)("/kitchen/api/storetype/list",{method:"Post",data:i})},srdList:function(i){return(0,c.WY)("/kitchen/api/store/list",{method:"Post",data:i})},goodsList:function(i){return(0,c.WY)("/kitchen/api/goodes/list",{method:"Post",data:i})},goodsTypeList:function(i){return(0,c.WY)("/kitchen/api/goodstype/list",{method:"Post",data:i})}},h=a(85893),B=function(){var i=(0,o.useState)([]),y=(0,l.Z)(i,2),T=y[0],G=y[1],Y=(0,o.useState)([]),g=(0,l.Z)(Y,2),D=g[0],b=g[1],M=(0,o.useState)([]),L=(0,l.Z)(M,2),N=L[0],H=L[1],K=(0,o.useState)([]),w=(0,l.Z)(K,2),O=w[0],$=w[1],J=(0,o.useState)([]),E=(0,l.Z)(J,2),Z=E[0],Q=E[1],U=(0,o.useRef)(),_=function(r,d){console.log("\u6211\u662F\u9009\u4E2D",r),console.log("\u6211\u662F\u9009\u4E2D21",d)};(0,o.useEffect)(function(){function u(){m.srdTypeList().then(function(n){var e=n.data;e.forEach(function(t){t.storeTypeId=t.id,t.text=t.name}),G(e)})}function r(){m.srdList().then(function(n){var e=n.data;e.forEach(function(t){t.value=t.id,t.label=t.name}),b(e)})}function d(){m.goodsList().then(function(n){var e=n.data;e.forEach(function(t){t.label=t.name,t.value=t.id}),H(e)})}function f(){m.goodsTypeList().then(function(n){var e=n.data;e.forEach(function(t){t.label=t.name,t.value=t.id}),$(e)})}r(),u(),d(),f()},[]);function V(){var u=Z.ReqDetailList,r={},d=[];p.map(function(n,e){e>4&&d.push(n)}),r.fileName="\u8425\u4E1A\u65E5\u62A5",r.datas=[{sheetData:Z.map(function(n){var e={};return p.forEach(function(t,s){s>4&&(e[t.dataIndex]=n[t.dataIndex])}),e}),sheetName:"\u8425\u4E1A\u65E5\u62A5",sheetFilter:d.map(function(n){return n.dataIndex}),sheetHeader:d.map(function(n){return n.title}),columnWidths:d.map(function(){return 10})}];var f=new(A())(r);f.saveExcel()}var p=[{title:"\u4E3B\u952E",dataIndex:"rowIndex",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeId",hideInTable:!0,valueType:"select",valueEnum:T},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,h.jsx)(x.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:D})}},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,h.jsx)(x.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u7C7B\u578B",style:{width:"100%"},options:O})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,h.jsx)(x.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",style:{width:"100%"},options:N})}},{title:"\u7EDF\u8BA1\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",width:120,hideInTable:!0,search:{transform:function(r){return{order_CreateTime:r[0],order_EndTime:r[1]}}}},{title:"\u7EDF\u8BA1\u65E5\u671F",dataIndex:"order_CreateTime",valueType:"date",fixed:"left",width:150,hideInSearch:!0},{title:"\u6392\u9AA8\u9762\u9500\u91CF",dataIndex:"pgmnum",hideInSearch:!0,fixed:"left",width:150},{title:"\u6D77\u5473\u9762\u9500\u91CF",dataIndex:"hwmnum",hideInSearch:!0,fixed:"left",width:150},{title:"\u6E05\u6C64\u725B\u8089\u9762\u9500\u91CF",dataIndex:"qtmnum",hideInSearch:!0,fixed:"left",width:150},{title:"\u7B0B\u5B50\u725B\u8089\u9762\u9500\u91CF",dataIndex:"szmnum",hideInSearch:!0,fixed:"left",width:150},{title:"\u7EA2\u70E7\u725B\u8089\u9762\u9500\u91CF",dataIndex:"hsmnum",hideInSearch:!0,fixed:"left",width:150},{title:"\u677E\u8338\u7096\u9E21\u9762\u9500\u91CF",dataIndex:"jsrmnum",hideInSearch:!0,fixed:"left",width:150},{title:"\u6392\u9AA8\u9762\u9000\u5355\u91CF",dataIndex:"pgmtnum",hideInSearch:!0},{title:"\u6392\u9AA8\u9762\u5E9F\u5F03",dataIndex:"pgmfnum",hideInSearch:!0},{title:"\u6392\u9AA8\u9762\u7B49\u5F85\u5236\u4F5C",dataIndex:"pgmdnum",hideInSearch:!0},{title:"\u6392\u9AA8\u9762\u5236\u4F5C\u4E2D",dataIndex:"pgmznum",hideInSearch:!0},{title:"\u6392\u9AA8\u9762\u5236\u4F5C\u5B8C\u6210\u5F85\u53D6\u9910",dataIndex:"pgmwcnum",hideInSearch:!0},{title:"\u677E\u8338\u7096\u9E21\u9762\u9000\u5355\u91CF",dataIndex:"jsrmtnum",hideInSearch:!0},{title:"\u677E\u8338\u7096\u9E21\u9762\u5E9F\u5F03",dataIndex:"jsrmfnum",hideInSearch:!0},{title:"\u677E\u8338\u7096\u9E21\u9762\u7B49\u5F85\u5236\u4F5C",dataIndex:"jsrmdnum",hideInSearch:!0},{title:"\u677E\u8338\u7096\u9E21\u9762\u5236\u4F5C\u4E2D",dataIndex:"jsrmznum",hideInSearch:!0},{title:"\u677E\u8338\u7096\u9E21\u9762\u5236\u4F5C\u5B8C\u6210\u5F85\u53D6\u9910",dataIndex:"jsrmwcnum",hideInSearch:!0},{title:"\u6D77\u5473\u9762\u9000\u5355\u91CF",dataIndex:"hwmtnum",hideInSearch:!0},{title:"\u6D77\u5473\u9762\u5E9F\u5F03",dataIndex:"hwmfnum ",hideInSearch:!0},{title:"\u6D77\u5473\u9762\u7B49\u5F85\u5236\u4F5C",dataIndex:"hwmdnum",hideInSearch:!0},{title:"\u6D77\u5473\u9762\u5236\u4F5C\u4E2D",dataIndex:"hwmznum",hideInSearch:!0},{title:"\u6D77\u5473\u9762\u5236\u4F5C\u5B8C\u6210\u5F85\u53D6\u9910",dataIndex:"hwmwcnum",hideInSearch:!0},{title:"\u6E05\u6C64\u725B\u8089\u9762\u9000\u5355\u91CF",dataIndex:"qtmtnum",hideInSearch:!0},{title:"\u6E05\u6C64\u725B\u8089\u9762\u5E9F\u5F03",dataIndex:"qtmfnum",hideInSearch:!0},{title:"\u6E05\u6C64\u725B\u8089\u9762\u7B49\u5F85\u5236\u4F5C",dataIndex:"qtmdnum",hideInSearch:!0},{title:"\u6E05\u6C64\u725B\u8089\u9762\u5236\u4F5C\u4E2D",dataIndex:"qtmznum",hideInSearch:!0},{title:"\u6E05\u6C64\u725B\u8089\u9762\u5236\u4F5C\u5B8C\u6210\u5F85\u53D6\u9910",dataIndex:"qtmwcnum",hideInSearch:!0},{title:"\u7B0B\u5B50\u725B\u8089\u9762\u9000\u5355\u91CF",dataIndex:"szmtnum",hideInSearch:!0},{title:"\u7B0B\u5B50\u725B\u8089\u9762\u5E9F\u5F03",dataIndex:"szmfnum",hideInSearch:!0},{title:"\u7B0B\u5B50\u725B\u8089\u9762\u7B49\u5F85\u5236\u4F5C",dataIndex:"szmdnum",hideInSearch:!0},{title:"\u7B0B\u5B50\u725B\u8089\u9762\u5236\u4F5C\u4E2D",dataIndex:"szmdnum",hideInSearch:!0},{title:"\u7B0B\u5B50\u725B\u8089\u9762\u5236\u4F5C\u5B8C\u6210\u5F85\u53D6\u9910",dataIndex:"szmwcnum",hideInSearch:!0},{title:"\u7EA2\u70E7\u725B\u8089\u9762\u9000\u5355\u91CF",dataIndex:"hsmtnum",hideInSearch:!0},{title:"\u7EA2\u70E7\u725B\u8089\u9762\u5E9F\u5F03",dataIndex:"hsmfnum",hideInSearch:!0},{title:"\u7EA2\u70E7\u725B\u8089\u9762\u7B49\u5F85\u5236\u4F5C",dataIndex:"hsmdnum",hideInSearch:!0},{title:"\u7EA2\u70E7\u725B\u8089\u9762\u5236\u4F5C\u4E2D",dataIndex:"hsmdnum",hideInSearch:!0},{title:"\u7EA2\u70E7\u725B\u8089\u9762\u5236\u4F5C\u5B8C\u6210\u5F85\u53D6\u9910",dataIndex:"hsmwcnum",hideInSearch:!0}];return(0,h.jsx)(z.ZP,{children:(0,h.jsx)(P.ZP,{headerTitle:"\u8425\u4E1A\u65E5\u62A5",formRef:U,rowKey:"rowIndex",search:{labelWidth:120},toolBarRender:function(){return[(0,h.jsxs)(F.Z,{type:"primary",onClick:function(){return V()},children:[(0,h.jsx)(C.Z,{})," \u5BFC\u51FA"]},"create")]},scroll:{x:5e3},columns:p,request:function(){var u=(0,j.Z)((0,v.Z)().mark(function r(d,f,n){var e;return(0,v.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return d.storeTypeId!=null&&(d.storeTypeId=T[d.storeTypeId].storeTypeId),s.next=3,m.orderList(d);case 3:return e=s.sent,Q(e.data.data),s.abrupt("return",{data:e.data.data,success:!0,total:e.data.total});case 6:case"end":return s.stop()}},r)}));return function(r,d,f){return u.apply(this,arguments)}}()})})},W=B}}]);