Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

p__order__exOrder.b0283637.async.js 2.7 KiB

1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6447,1322],{72448:function(A,l,e){"use strict";e.r(l),e.d(l,{default:function(){return C}});var f=e(3182),F=e(57663),m=e(71577),I=e(2824),T=e(94043),s=e.n(T),E=e(90631),y=e(67294),p=e(78009),S=e(16894),c=e(48971),h={orderList:function(n){return(0,c.WY)("/kitchen/api/order/GetExOrderPage",{method:"Post",data:n})},GetFlowExport:function(n){return(0,c.WY)("/kitchen/api/Order/GetExOrderExport",{method:"Post",data:n,responseType:"blob"})}},u=e(85893),g=function(){var n=(0,y.useState)([]),v=(0,I.Z)(n,2),R=v[0],j=v[1];function L(){h.GetFlowExport(R).then(function(r){var t=URL.createObjectURL(new Blob([r])),d="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=t,o.download=d,o.click(),URL.revokeObjectURL(t)})}var O=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(t){return{order_CreateTime:t[0],order_EndTime:t[1]}}}},{title:"\u8D26\u5355\u7C7B\u578B",dataIndex:"ExType",hideInTable:!0,valueEnum:{0:{text:"\u9000\u6B3E\u8BA2\u5355"},1:{text:"\u652F\u4ED8\u8BA2\u5355"}}},{title:"\u5FAE\u4FE1\u8BA2\u5355\u65F6\u95F4",dataIndex:"orderTime",valueType:"dateTime",hideInSearch:!0},{title:"\u5FAE\u4FE1\u91D1\u989D",dataIndex:"realMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u4E09\u65B9\u8BA2\u5355\u53F7",dataIndex:"tradeNo",hideInSearch:!0},{title:"\u652F\u4ED8\u5355\u53F7",dataIndex:"transactionId",hideInSearch:!0},{title:"\u5E73\u53F0\u91D1\u989D",dataIndex:"orderRealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u5E73\u53F0\u8BA2\u5355\u65F6\u95F4",valueType:"dateTime",dataIndex:"createdAt",hideInSearch:!0},{title:"\u91D1\u989D\u5F02\u5E38",dataIndex:"moneyEx",hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4\u5F02\u5E38",dataIndex:"orderTimeEx",hideInSearch:!0},{title:"\u8BA2\u5355\u5F02\u5E38",dataIndex:"orderEx",hideInSearch:!0}];return(0,u.jsx)(p.ZP,{children:(0,u.jsx)(S.ZP,{headerTitle:"\u5F02\u5E38\u8BA2\u5355\u6570\u636E",rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(m.Z,{type:"primary",onClick:function(){return L()},children:[(0,u.jsx)(E.Z,{})," \u5BFC\u51FA"]},"create")]},columns:O,request:function(){var r=(0,f.Z)(s().mark(function t(d,o,G){var i;return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return j(d),a.next=3,h.orderList(d);case 3:return i=a.sent,a.abrupt("return",{data:i.data.data,success:!0,total:i.data.total});case 5:case"end":return a.stop()}},t)}));return function(t,d,o){return r.apply(this,arguments)}}()})})},C=g}}]);