Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

2 Zeilen
16 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3991,1322,8821,3416,3729,2320,2359,858],{32141:function($){$.exports={"welcome-head":"welcome-head___2KkzI","welcome-head-org":"welcome-head-org___1csW8","echarts-card-choose":"echarts-card-choose___3MUZE","my-loading":"my-loading___13xim","device-list":"device-list___2yRMk","my-range-picker":"my-range-picker___3_gNJ","tabs-title":"tabs-title___qUM48"}},10370:function($,W,s){"use strict";s.r(W),s.d(W,{default:function(){return Ce}});var ft=s(66456),M=s(61128),ht=s(49111),A=s(19650),xt=s(58024),V=s(91894),gt=s(13062),he=s(71230),pt=s(57663),w=s(71577),yt=s(43358),K=s(34041),St=s(89032),N=s(15746),Rt=s(20228),xe=s(11382),E=s(3182),f=s(2824),Dt=s(18106),J=s(51752),Gt=s(14965),ge=s(91774),pe=s(94043),d=s.n(pe),v=s(67294),L=s(90631),ye=s(30381),y=s.n(ye),j=s(48971),T={GetReservationUser:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationUser",{method:"POST",data:o})},GetReservationGoods:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationGoods",{method:"POST",data:o})},GetReservationGoodsDetailed:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailed",{method:"POST",data:o})},GetReservationUserGoods:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationUserGoods",{method:"POST",data:o})},GetDeparent:function(o){return(0,j.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:o})},GetReservationGoodsExcel:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationGoodsExcel",{method:"POST",responseType:"blob",data:o})},GetReservationUserExcel:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationUserExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrgExcel:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationOrgExcel",{method:"POST",responseType:"blob",data:o})},GetReservationGoodsDetailedExcel:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailedExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrg:function(o){return(0,j.WY)("/kitchen/api/Reservation/GetReservationOrg",{method:"POST",data:o})}},Se=s(32141),h=s.n(Se),Re=s(78009),Et=s(71194),De=s(50146),Ge=s(16894),t=s(85893),Ee=function(o){console.log("\u8C03\u8BD51",o);var R=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(U,p){if(p.mealType==="1")return"\u65E9\u9910";if(p.mealType==="2")return"\u5348\u9910";if(p.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(U,p){return U.value-p.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"reservationTime"}];return(0,t.jsx)(De.Z,{title:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",width:640,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(Ge.ZP,{headerTitle:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",rowKey:"id",search:!1,request:function(){var O=(0,E.Z)(d().mark(function U(p){var g,C;return d().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return g=[],C=0,o.values.id!=null&&(p.UserId=o.values.id,p.beginTime=o.timeRange[0]._i,p.endTime=o.timeRange[1]._i),Z.next=5,T.GetReservationUserGoods(p).then(function(D){g=D.data.data,C=D.data.total});case 5:return Z.abrupt("return",{data:g,success:!0,total:C});case 6:case"end":return Z.stop()}},U)}));return function(U){return O.apply(this,arguments)}}(),columns:R})})},je=Ee,Te=ge.Z.RangePicker,P=J.Z.TabPane,Ce=function(){var S=(0,v.useState)(1),o=(0,f.Z)(S,2),R=o[0],O=o[1],U=(0,v.useState)(1),p=(0,f.Z)(U,2),g=p[0],C=p[1],H=(0,v.useState)(10),Z=(0,f.Z)(H,2),D=Z[0],F=Z[1],Ze=(0,v.useState)(0),Q=(0,f.Z)(Ze,2),k=Q[0],z=Q[1],Be=(0,v.useState)([]),X=(0,f.Z)(Be,2),Ue=X[0],we=X[1],Oe=(0,v.useState)([]),q=(0,f.Z)(Oe,2),Ie=q[0],Ye=q[1],be=(0,v.useState)([]),_=(0,f.Z)(be,2),Fe=_[0],ze=_[1],Me=(0,v.useState)([]),ee=(0,f.Z)(Me,2),Ae=ee[0],Ne=ee[1],Le=(0,v.useState)(!1),te=(0,f.Z)(Le,2),Pe=te[0],B=te[1],ke=(0,v.useState)(!1),ae=(0,f.Z)(ke,2),$e=ae[0],ne=ae[1],We=(0,v.useState)(),re=(0,f.Z)(We,2),Ve=re[0],se=re[1],Ke=(0,v.useState)([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ie=(0,f.Z)(Ke,2),G=ie[0],oe=ie[1],Je=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],He=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u59D3\u540D",dataIndex:"realName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u662F\u5426\u7EDF\u4E00\u9884\u5B9A",dataIndex:"qty",render:function(a,e){return e.qty>1?"\u662F":"\u5426"}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],Qe=[{title:"\u90E8\u95E8\u540D\u79F0",dataIndex:"orgName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}}],Xe=[{title:"\u9884\u5B9A\u4EBA\u5458\u540D\u79F0",dataIndex:"name"},{title:"\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,e){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){ne(!0),se(e)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}],qe=(0,v.useState)([]),le=(0,f.Z)(qe,2),I=le[0],_e=le[1],et=(0,v.useState)(),ue=(0,f.Z)(et,2),Y=ue[0],de=ue[1],tt=(0,v.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),ce=(0,f.Z)(tt,2),at=ce[0],jt=ce[1],nt=(0,v.useState)(),ve=(0,f.Z)(nt,2),b=ve[0],me=ve[1],rt=function(){var i=(0,E.Z)(d().mark(function a(){var e,n,c,u;return d().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,T.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:e=l.sent,e.statusCode===200&&(u=[],(n=e.data)===null||n===void 0||(c=n.data)===null||c===void 0||c.forEach(function(m){u.push({label:m.name,value:m.id})}),_e(u));case 4:case"end":return l.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),fe=function(){var a=I.find(function(n){return n.value===Y}),e={beginTime:G[0]._i,endTime:G[1]._i,orgName:(a==null?void 0:a.label)||"",mealType:b||"",current:g,pageSize:D};R==1?st(e):R==2?ot(e):R==3?it(e):R==4&&lt(e)},st=function(){var i=(0,E.Z)(d().mark(function a(e){var n,c;return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,T.GetReservationGoods(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),we(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),it=function(){var i=(0,E.Z)(d().mark(function a(e){var n,c;return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,T.GetReservationOrg(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ye(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),ot=function(){var i=(0,E.Z)(d().mark(function a(e){var n,c;return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,T.GetReservationUser(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),ze(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),lt=function(){var i=(0,E.Z)(d().mark(function a(e){var n,c;return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,T.GetReservationGoodsDetailed(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ne(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),ut=function(){return(0,t.jsx)(xe.Z,{className:h()["my-loading"],size:"large"})},dt=function(){var i=(0,E.Z)(d().mark(function a(){var e,n;return d().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},T.GetReservationGoodsExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),ct=function(){var i=(0,E.Z)(d().mark(function a(){var e,n;return d().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},T.GetReservationUserExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),vt=function(){var i=(0,E.Z)(d().mark(function a(){var e,n;return d().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},T.GetReservationOrgExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u90E8\u95E8\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),mt=function(){var i=(0,E.Z)(d().mark(function a(){var e,n;return d().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},T.GetReservationGoodsDetailedExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}();return(0,v.useEffect)(function(){rt()},[]),(0,v.useEffect)(function(){fe()},[R,g]),(0,t.jsxs)(Re.ZP,{children:[(0,t.jsxs)("div",{className:h()["welcome-container"],children:[Pe?(0,t.jsx)(ut,{}):null,(0,t.jsx)(V.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(he.Z,{children:[(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(Te,{style:{width:"70%"},className:h()["my-range-picker"],value:G,onChange:function(a,e){var n=[y()(y()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];oe(n)}})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u6240\u5C5E\u90E8\u95E8\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01",style:{width:"70%"},value:Y,onChange:de,options:I})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u7528\u9910\u65F6\u6BB5\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u7528\u9910\u65F6\u6BB5\uFF01",style:{width:"70%"},value:b,onChange:me,options:at})]})}),(0,t.jsxs)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return fe()},children:"\u67E5\u8BE2"}),(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],style:{width:"100px"},onClick:function(){oe([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),de(),me(),C(1),F(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(V.Z,{children:(0,t.jsxs)(J.Z,{tabPosition:"left",value:R,onChange:function(a){O(a),z(0),C(1)},children:[(0,t.jsx)(P,{tab:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B",children:R==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:dt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Je,dataSource:Ue,pagination:{current:g,pageSize:D,total:k,onChange:C,onShowSizeChange:function(a,e){return F(e)}}})]})},1),(0,t.jsx)(P,{tab:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B",children:R==3&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:vt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Qe,dataSource:Ie,pagination:{current:g,pageSize:D,total:k,onChange:C,onShowSizeChange:function(a,e){return F(e)}}})]})},3),(0,t.jsx)(P,{tab:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6",children:R==2&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ct,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Xe,dataSource:Fe,pagination:{current:g,pageSize:D,onChange:C,onShowSizeChange:function(a,e){return F(e)}}})]})},2)," ",(0,t.jsx)(P,{tab:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6",children:R==4&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:mt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:He,dataSource:Ae,pagination:{current:g,pageSize:D,total:k,onChange:C,onShowSizeChange:function(a,e){return F(e)}}})]})},4)]})})]}),$e&&(0,t.jsx)(je,{createModalVisible:!0,values:Ve||{},timeRange:G,onCancel:function(){ne(!1),se(void 0)}})]})}}}]);