(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8089],{36930:function(N,g,t){"use strict";t.r(g),t.d(g,{default:function(){return G}});var K=t(71194),P=t(50146),z=t(89816),W=t(99519),H=t(9715),R=t(55843),c=t(2824),f=t(39428),J=t(34792),x=t(3182),d=t(67294),Y=t(28790),E=t(16894),n=t(48971),O={page:function(e){return e.isreport=!0,(0,n.WY)("/storemanagementorder/api/Order/ThirdOrderPage",{method:"Post",data:e})},getThirdOrderInfo:function(e){return(0,n.WY)("/storemanagementorder/api/Order/GetThirdOrderInfo?thirdOrderId="+e,{method:"get"})},orderList:function(e){return e.isreport=!0,(0,n.WY)("/storemanagementorder/api/Order/PostDetail",{method:"Post",data:e})},srdList:function(e){return(0,n.WY)("/storemanagement/api/shop/alllist",{method:"GET"})},GetFlowExport:function(e){return(0,n.WY)("/storemanagementorder/api/Order/GetFlowExport",{method:"Post",data:e})},srdTypeList:function(e){return(0,n.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},goodsList:function(e){return(0,n.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,n.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})},StartRefund:function(e){return(0,n.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:e})},GetOrderDetails:function(e){return(0,n.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:e})},printsmallticket:function(e){return(0,n.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:e})}},a=t(85893),Q=null,F=function(){var e=(0,d.useState)(),h=(0,c.Z)(e,2),L=h[0],C=h[1],y=(0,d.useRef)(),I=R.Z.useForm(),j=(0,c.Z)(I,1),U=j[0],k=(0,d.useState)(!1),T=(0,c.Z)(k,2),B=T[0],S=T[1],$=(0,d.useState)(!1),Z=(0,c.Z)($,2),D=Z[0],M=Z[1];(0,d.useEffect)(function(){},[]);var w=[{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(u,l){return[(0,a.jsx)("a",{onClick:(0,x.Z)((0,f.Z)().mark(function p(){var v;return(0,f.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,O.getThirdOrderInfo(l.id);case 2:v=o.sent,M(v.data.thirdOrderInfos),S(!0);case 5:case"end":return o.stop()}},p)})),children:"\u67E5\u770B\u8BE6\u60C5"},l.id)]}}],A=[{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",key:"goodsName",render:function(u){return(0,a.jsx)("a",{children:u})}},{title:"\u6570\u91CF",dataIndex:"count",key:"count"}];return(0,a.jsxs)(Y.ZP,{header:{title:"",breadcrumb:{}},children:[(0,a.jsx)(E.ZP,{headerTitle:"\u7B2C\u4E09\u65B9\u8BA2\u5355",actionRef:y,rowKey:"orderFlowId",search:{labelWidth:120},columns:w,request:function(){var i=(0,x.Z)((0,f.Z)().mark(function u(l,p,v){var m;return(0,f.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,O.page(l);case 2:return m=s.sent,s.abrupt("return",{data:m.data.data,success:!0,total:m.data.total});case 4:case"end":return s.stop()}},u)}));return function(u,l,p){return i.apply(this,arguments)}}()}),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(P.Z,{title:"\u8BE6\u60C5",open:B,onOk:function(){},onCancel:function(){S(!1)},children:(0,a.jsx)(W.Z,{columns:A,dataSource:D})})})]})},G=F}}]);
