|
- (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8089],{36930:function(D,p,e){"use strict";e.r(p),e.d(p,{default:function(){return G}});var K=e(71194),E=e(50146),z=e(66456),F=e(64411),H=e(9715),C=e(55843),c=e(2824),f=e(39428),J=e(34792),x=e(3182),s=e(67294),j=e(28790),P=e(16894),d=e(48971),I={page:function(t){return t.isreport=!0,(0,d.WY)("/kitchorder/api/Order/ThirdOrderPage",{method:"Post",data:t})},getThirdOrderInfo:function(t){return(0,d.WY)("/kitchorder/api/Order/GetThirdOrderInfo?thirdOrderId="+t,{method:"get"})},orderList:function(t){return t.isreport=!0,(0,d.WY)("/kitchorder/api/Order/PostDetail",{method:"Post",data:t})},srdList:function(){return(0,d.WY)("/kitchbase/api/store/getstorelist",{method:"GET"})},GetFlowExport:function(t){return(0,d.WY)("/kitchorder/api/Order/GetFlowExport",{method:"Post",data:t})}},r=e(85893),Q=null,R=function(){var t=(0,s.useState)(),h=(0,c.Z)(t,2),B=h[0],W=h[1],O=(0,s.useRef)(),Z=C.Z.useForm(),Y=(0,c.Z)(Z,1),U=Y[0],$=(0,s.useState)(!1),y=(0,c.Z)($,2),L=y[0],S=y[1],M=(0,s.useState)(!1),T=(0,c.Z)(M,2),w=T[0],A=T[1];(0,s.useEffect)(function(){},[]);var N=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNum"},{title:"\u540C\u6B65\u65F6\u95F4",dataIndex:"createAt",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",width:200,render:function(i,l){return[(0,r.jsx)("a",{onClick:(0,x.Z)((0,f.Z)().mark(function v(){var g;return(0,f.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,I.getThirdOrderInfo(l.id);case 2:g=a.sent,A(g.data.thirdOrderInfos),S(!0);case 5:case"end":return a.stop()}},v)})),children:"\u67E5\u770B\u8BE6\u60C5"},l.id)]}}],k=[{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",key:"goodsName",render:function(i){return(0,r.jsx)("a",{children:i})}},{title:"\u6570\u91CF",dataIndex:"count",key:"count"}];return(0,r.jsxs)(j.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(P.ZP,{headerTitle:"\u7B2C\u4E09\u65B9\u8BA2\u5355",actionRef:O,rowKey:"orderFlowId",search:{labelWidth:120},columns:N,request:function(){var u=(0,x.Z)((0,f.Z)().mark(function i(l,v,g){var m;return(0,f.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,I.page(l);case 2:return m=o.sent,o.abrupt("return",{data:m.data.data,success:!0,total:m.data.total});case 4:case"end":return o.stop()}},i)}));return function(i,l,v){return u.apply(this,arguments)}}()}),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(E.Z,{title:"\u8BE6\u60C5",open:L,onOk:function(){},onCancel:function(){S(!1)},children:(0,r.jsx)(F.Z,{columns:k,dataSource:w})})})]})},G=R}}]);
|