Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

p__card__enterpriseReservation.a1fcdfae.async.js 2.0 KiB

pirms 1 gada
1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1555,1322],{86031:function(L,o,t){"use strict";t.r(o),t.d(o,{default:function(){return R}});var r=t(39428),v=t(3182),f=t(67294),p=t(78009),g=t(16894),y=t(48971);function I(u){return i.apply(this,arguments)}function i(){return i=(0,v.Z)((0,r.Z)().mark(function u(s){return(0,r.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,y.WY)("/kitchen/api/one-card/enterprise-reservation-page",{method:"Post",data:s}));case 1:case"end":return a.stop()}},u)})),i.apply(this,arguments)}var h=t(85893),x=function(){var s=(0,f.useRef)();(0,f.useEffect)(function(){},[]);var T=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u516C\u53F8",dataIndex:"name",valueType:"textarea"},{title:"\u9884\u7EA6\u4EBA\u6570",dataIndex:"peopleQuantity",search:!1,valueType:"textarea"},{title:"\u5230\u573A\u65F6\u95F4",dataIndex:"arrivalTimeList",hideInTable:!0,valueType:"dateTimeRange"},{title:"\u5230\u573A\u65F6\u95F4",dataIndex:"arrivalTime",search:!1,valueType:"dateTime"},{title:"\u9884\u7EA6\u65F6\u95F4",dataIndex:"createAtList",hideInTable:!0,valueType:"dateTimeRange"},{title:"\u9884\u7EA6\u65F6\u95F4",search:!1,dataIndex:"createAt",valueType:"dateTime"}];return(0,h.jsx)(p.ZP,{children:(0,h.jsx)(g.ZP,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:s,showHiddenNum:!0,rowKey:"id",search:{labelWidth:120},request:function(){var a=(0,v.Z)((0,r.Z)().mark(function d(e){var l,c;return(0,r.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e.arrivalTimeList!=null&&(e.arrivalStartTime=e.arrivalTimeList[0],e.arrivalEndTime=e.arrivalTimeList[1]),e.createAtList!=null&&(e.createStartTime=e.createAtList[0],e.createEndTime=e.createAtList[1]),l=[],c=0,n.next=6,I(e).then(function(m){l=m.data.data.data,c=m.data.data.total});case 6:return n.abrupt("return",{data:l,success:!0,total:c});case 7:case"end":return n.stop()}},d)}));return function(d){return a.apply(this,arguments)}}(),columns:T,rowSelection:{onChange:function(d,e){setSelectedRows(e)}}})})},R=x}}]);