Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

2 lignes
10 KiB

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