25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

p__order__order-flow-manage.bbcdf679.async.js 10 KiB

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