25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

p__order__exOrder.186a03c6.async.js 2.7 KiB

1 yıl önce
1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6447,7975,1322],{72448:function(L,l,e){"use strict";e.r(l),e.d(l,{default:function(){return g}});var s=e(39428),v=e(3182),O=e(57663),I=e(71577),f=e(2824),T=e(90631),E=e(67294),p=e(78009),y=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"})}},i=e(85893),S=function(){var n=(0,E.useState)([]),m=(0,f.Z)(n,2),R=m[0],C=m[1];function Z(){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 j=[{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,i.jsx)(p.ZP,{children:(0,i.jsx)(y.ZP,{headerTitle:"\u5F02\u5E38\u8BA2\u5355\u6570\u636E",rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,i.jsxs)(I.Z,{type:"primary",onClick:function(){return Z()},children:[(0,i.jsx)(T.Z,{})," \u5BFC\u51FA"]},"create")]},columns:j,request:function(){var r=(0,v.Z)((0,s.Z)().mark(function t(d,o,A){var u;return(0,s.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return C(d),a.next=3,h.orderList(d);case 3:return u=a.sent,a.abrupt("return",{data:u.data.data,success:!0,total:u.data.total});case 5:case"end":return a.stop()}},t)}));return function(t,d,o){return r.apply(this,arguments)}}()})})},g=S}}]);