Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

2 linhas
11 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2369],{26177:function(K,g,e){"use strict";var h=e(71194),f=e(50146),r=e(98858),c=e(4914),z=e(34792),D=e(48086),_=e(39428),F=e(3182),W=e(2824),j=e(67294),N=e(16894),B=e(12826),I=e(46389),n=e(85893),l={},b=function(P){var C,m,E,M,p=P.createModalVisible,A=P.onCancel,k=(0,j.useState)([]),Z=(0,W.Z)(k,2),y=Z[0],a=Z[1];return(0,n.jsxs)(f.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:P.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return A()},maskClosable:!1,children:[(0,n.jsx)(B.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,F.Z)((0,_.Z)().mark(function d(){return(0,_.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:P.values.id});case 2:return l=s.sent,a(l),s.abrupt("return",Promise.resolve({success:!0,data:l}));case 5:case"end":return s.stop()}},d)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(N.ZP,{rowKey:"id",request:(0,F.Z)((0,_.Z)().mark(function d(){return(0,_.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:P.values.id});case 2:return l=s.sent,s.abrupt("return",{data:l.detailList,success:!0});case 4:case"end":return s.stop()}},d)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(L,s){return[(0,n.jsx)("a",{onClick:function(){I.Z.printsmallticket({orderId:P.values.id,subOrderId:s.id}).then(function(R){debugger;R.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(c.Z,{title:"\u4F18\u60E0\u5238",children:(C=l)===null||C===void 0||(m=C.paperCoupons)===null||m===void 0?void 0:m.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:d.amount})]})})}),(0,n.jsx)(c.Z,{column:5,title:"\u62B5\u6263\u5238",children:(E=l)===null||E===void 0||(M=E.goodsCoupons)===null||M===void 0?void 0:M.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u62B5\u6263\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1",children:d.goodsName}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:d.goodsAmount}),(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:d.platformAmount})]})})})]})};g.Z=b},46389:function(K,g,e){"use strict";var h=e(48971);g.Z={orderList:function(r){return r.isreport=!0,(0,h.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:r})},srdTypeList:function(r){return(0,h.WY)("/kitchen/api/storetype/list",{method:"Post",data:r})},srdList:function(r){return(0,h.WY)("/kitchen/api/store/list",{method:"Post",data:r})},goodsList:function(r){return(0,h.WY)("/kitchen/api/goodes/list",{method:"Post",data:r})},goodsTypeList:function(r){return(0,h.WY)("/kitchen/api/goodstype/list",{method:"Post",data:r})},StartRefund:function(r){return(0,h.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:r})},GetOrderDetails:function(r){return(0,h.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:r})},GetFlowExport:function(r){return(0,h.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:r})},printsmallticket:function(r){return(0,h.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:r})}}},65585:function(K,g,e){"use strict";e.r(g),e.d(g,{default:function(){return Z}});var h=e(57663),f=e(71577),r=e(39428),c=e(3182),z=e(34792),D=e(48086),_=e(11849),F=e(47673),W=e(4107),j=e(93224),N=e(43358),B=e(34041),I=e(2824),n=e(90631),l=e(67294),b=e(78009),U=e(16894),P=e(53667),C=e.n(P),m=e(48971),E={orderList:function(a){return a.isreport=!0,(0,m.WY)("/kitchen/api/order/psot-unpaid-order",{method:"Post",data:a})},srdTypeList:function(a){return(0,m.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,m.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,m.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,m.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,m.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,m.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,m.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,m.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}},M=e(26177),p=e(85893),A=["defaultRender"],k=function(){var a=(0,l.useState)(),d=(0,I.Z)(a,2),L=d[0],s=d[1],G=(0,l.useState)(!1),R=(0,I.Z)(G,2),J=R[0],Y=R[1],Q=(0,l.useState)([]),w=(0,I.Z)(Q,2),X=w[0],q=w[1],ee=(0,l.useState)([]),V=(0,I.Z)(ee,2),se=V[0],te=V[1],re=(0,l.useRef)(),ae=(0,l.useState)([]),$=(0,I.Z)(ae,2),H=$[0],ne=$[1];(0,l.useEffect)(function(){function u(){E.srdList().then(function(i){var t=i.data;console.log(t),t==null||t.forEach(function(o){o.value=o.id,o.label=o.name}),q(t)})}u()},[]);function ie(){E.GetFlowExport(H).then(function(u){var i=URL.createObjectURL(new Blob([u])),t="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=i,o.download=t,o.click(),URL.revokeObjectURL(i)})}var oe=[{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(i){return{order_CreateTime:i[0],order_EndTime:i[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,p.jsx)(B.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:X})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(i,t,o){var T=t.defaultRender,v=(0,j.Z)(t,A),O=o.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,p.jsx)(W.Z,(0,_.Z)((0,_.Z)({},v),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):T(i)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,t){return[(0,p.jsx)("a",{onClick:function(){s(t),Y(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,p.jsx)("a",{onClick:function(){E.printsmallticket({orderId:t.id}).then(function(T){T.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],de=function(){var u=(0,c.Z)((0,r.Z)().mark(function i(){var t,o,T,v,O,x;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,E.GetFlowExport(H);case 2:t=S.sent,t.isSuccess?(o={},T=new Date,v="\u8BA2\u5355\u6D41\u6C34"+T.toLocaleString().replaceAll("/","-"),o.fileName=v,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:t.data,sheetName:v,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],x=new(C())(o),x.saveExcel()):D.default.error(t.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return S.stop()}},i)}));return function(){return u.apply(this,arguments)}}();return(0,p.jsxs)(b.ZP,{children:[(0,p.jsx)(U.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:re,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,p.jsxs)(f.Z,{type:"primary",onClick:de,children:[(0,p.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:oe,request:function(){var u=(0,c.Z)((0,r.Z)().mark(function i(t,o,T){var v;return(0,r.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return t.storeTypeId!=null&&(t.storeTypeId=srdTypeList[t.storeTypeId].storeTypeId),t.orderStatus=0,x.next=4,E.orderList(t);case 4:return v=x.sent,ne(t),te(v.data.data),x.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 8:case"end":return x.stop()}},i)}));return function(i,t,o){return u.apply(this,arguments)}}()}),!!L&&(0,p.jsx)(M.Z,{onCancel:function(){s(void 0),Y(!1)},createModalVisible:J,values:L||{}})]})},Z=k}}]);