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.

p__financereport__finance.f848f772.async.js 26 KiB

1
  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8741,7975,1322,5284,1915,9130,5081],{81903:function(){},31651:function(F,N,t){"use strict";t.r(N),t.d(N,{default:function(){return Ne}});var v=t(39428),i=t(3182),m=t(57663),S=t(71577),x=t(43358),g=t(34041),r=t(2824),X=t(90631),a=t(67294),O=t(78009),P=t(53779),ie=t(71194),ue=t(50146),he=t(58024),c=t(91894),ce=t(95300),$=t(7277),ve=t(13062),re=t(71230),Ae=t(89032),te=t(15746),ke=t(49111),se=t(19650),qe=t(14965),be=t(71356),_e=t(47673),q=t(4107),ne=t(402),d=t(56256),D=t(21349),C=t(48971),y={finaceList:function(n){return(0,C.WY)("/kitchen/api/finance/finance-report",{method:"Post",data:n})},finaceDeatal:function(n){return(0,C.WY)("/kitchen/api/finance/finance-detail",{method:"Post",data:n})},sumFinance:function(n){return(0,C.WY)("\u200B\u200B/kitchen/api/finance/sum-finance",{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})},financeSummaryList:function(n){return(0,C.WY)("/kitchen/api/finance/finance-analysis",{method:"Post",data:n})},setSettlementDetail:function(n,w,H){return(0,C.WY)("/kitchen/api/finance/settlement-detail/".concat(w,"/").concat(H),{method:"Post",data:n})},StoreList:function(n){return(0,C.WY)("/kitchen/api/select/storelist",{method:"Post",data:n})}},e=t(85893),T={width:"33%",textAlign:"center",height:"20px"},Q={width:"100%",textAlign:"center",height:"10px",marginTop:"1"},E=function(n){var w=(0,a.useRef)(),H=d.Z.Text;return(0,e.jsx)(ue.Z,{width:800,height:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u7ED3\u7B97\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return n.onCancel()},maskClosable:!1,children:(0,e.jsxs)(D.Z,{children:[(0,e.jsx)(c.Z,{title:"\u7ED3\u7B97\u8BE6\u60C5",type:"inner",style:{height:120},children:(0,e.jsx)("div",{style:{float:"center",height:100},children:(0,e.jsx)($.Z,{style:{float:"center"},title:"\u7ED3\u7B97\u91D1\u989D",value:n.values.refund.settlementMoney,prefix:"\xA5"})})}),n.values.refund.refundOrderId!=""?(0,e.jsxs)(c.Z,{title:"\u9000\u6B3E\u91D1\u989D",type:"inner",extra:n.values.refund.refundMoney,children:[(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:Q,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),n.values.goodsList==null?"":n.values.goodsList.map(function(b,Ee){return(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(q.Z,{value:b.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(q.Z,{value:"".concat(b.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(q.Z,{value:"\xA5 ".concat(b.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}):(0,e.jsxs)(c.Z,{title:"\u5546\u54C1\u603B\u4EF7",type:"inner",extra:n.values.refund.orderOriginalMoney,children:[(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:Q,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),n.values.goodsList==null?"":n.values.goodsList.map(function(b,Ee){return(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(q.Z,{value:b.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(q.Z,{value:"".concat(b.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(q.Z,{value:"\xA5 ".concat(b.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}),n.values.refund.refundOrderId==""&&n.values.refund.discountMoney!=0?(0,e.jsxs)(c.Z,{style:{height:100},type:"inner",title:"\u4F18\u60E0\u652F\u51FA",extra:n.values.refund.discountMoney,children:[(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:n.values.refund.couponTypeValue==""||n.values.refund.couponTypeValue==null?"\u4F18\u60E0\u652F\u51FA":n.values.refund.couponTypeValue}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:"\xA5 ".concat(n.values.refund.discountMoney)})]}):null,n.values.refund.refundOrderId==""&&n.values.refund.businessPrice!=0?(0,e.jsxs)(c.Z,{style:{height:100},type:"inner",title:n.values.refund.refundOrderId==""?"\u5E73\u53F0\u8D39\u652F\u51FA":"\u5E73\u53F0\u9000\u6B3E",extra:n.values.refund.businessPrice,children:[(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:n.values.refund.refundOrderId==""?"\u5E73\u53F0\u6280\u672F\u670D\u52A1\u8D39":"\u9000\u6B3E\u91D1\u989D"}),(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:[n.values.refund.businessPrice,"\xA5"]})]}):null,(0,e.jsxs)(c.Z,{type:"inner",title:"\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:n.values.refund.orderId}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u8BA2\u5355\u53F7"}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:n.values.refund.orderNumber}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",n.values.refund.createdAt]}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",n.values.refund.completeTakeTime]})]}),n.values.refund.refundOrderId!=""?(0,e.jsxs)(c.Z,{type:"inner",title:"\u9000\u6B3E\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",n.values.refund.refundOrderId]}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u8BA2\u5355\u53F7"}),(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",n.values.refund.refundOrderNumber]}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",n.values.refund.refundCreatedAt]}),(0,e.jsx)(c.Z.Grid,{hoverable:!1,style:T,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(c.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",n.values.refund.refundTime]})]}):null]})})},W=E,z=t(30381),L=t.n(z),k=function(n){var w="YYYY-MM-DD",H=(0,a.useRef)(),b=d.Z.Text,Ee=q.Z.TextArea,je=be.Z.RangePicker,Oe=(0,a.useState)([]),fe=(0,r.Z)(Oe,2),Ge=fe[0],De=fe[1],_=(0,a.useState)([]),ae=(0,r.Z)(_,2),Ye=ae[0],de=ae[1],xe=(0,a.useState)(0),ye=(0,r.Z)(xe,2),we=ye[0],Ce=ye[1],Ve=(0,a.useState)(0),me=(0,r.Z)(Ve,2),We=me[0],Me=me[1],tt=(0,a.useState)(0),pe=(0,r.Z)(tt,2),ze=pe[0],Fe=pe[1],nt=(0,a.useState)(0),Re=(0,r.Z)(nt,2),Ue=Re[0],$e=Re[1],Se=(0,a.useState)(0),Be=(0,r.Z)(Se,2),He=Be[0],Pe=Be[1],ge=(0,a.useState)(0),Ie=(0,r.Z)(ge,2),Ke=Ie[0],Le=Ie[1],Je=(0,a.useState)(0),G=(0,r.Z)(Je,2),j=G[0],o=G[1],R=(0,a.useState)([]),I=(0,r.Z)(R,2),s=I[0],u=I[1],p=(0,a.useState)([]),V=(0,r.Z)(p,2),K=V[0],oe=V[1],yt=(0,a.useState)(""),at=(0,r.Z)(yt,2),Xe=at[0],rt=at[1],mt=(0,a.useState)(""),it=(0,r.Z)(mt,2),Qe=it[0],ut=it[1],St=(0,a.useState)(""),st=(0,r.Z)(St,2),lt=st[0],gt=st[1],It=(0,a.useState)(),dt=(0,r.Z)(It,2),ot=dt[0],ct=dt[1],Zt=(0,a.useState)(),ft=(0,r.Z)(Zt,2),At=ft[0],ht=ft[1],Tt=(0,a.useState)([]),vt=(0,r.Z)(Tt,2),Et=vt[0],jt=vt[1];(0,a.useEffect)(function(){oe([n.values.storeId]),u([n.values.storeTypeId]);function A(){y.srdTypeList().then(function(l){var f=l.data;f.forEach(function(h){h.value=h.id,h.label=h.name}),De(f)}),n.values.storeTypeId!=""&&n.values.storeTypeId!=null?y.StoreList([n.values.storeTypeId]).then(function(l){var f=l.data;f.forEach(function(h){h.value=h.id,h.label=h.name}),de(f)}):y.srdList().then(function(l){var f=l.data;f.forEach(function(h){h.value=h.id,h.label=h.name}),de(f)})}A()},[]);var Dt=function(){var A=(0,i.Z)((0,v.Z)().mark(function l(f){return(0,v.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,y.sumFinance(f).then(function(Z){Z.data&&(Ce(Z.data.orderOriginalMoney),Me(Z.data.discountMoney),Fe(Z.data.orderRealMoney),Pe(Z.data.refundMoney),Le(Z.data.settlementMoney),gt(Z.data.splittingDate),o(Z.data.splittingMoney))});case 2:case"end":return B.stop()}},l)}));return function(f){return A.apply(this,arguments)}}(),Ct=[{title:"\u4E3B\u952E",dataIndex:"orderId",hideInTable:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInSearch:!0},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38\u8BA2\u5355",status:"Processing"},1:{text:"\u7ACB\u5373\u5403\u9762",status:"Error"},2:{text:"\u76F2\u76D2",status:"Error"},3:{text:"\u5176\u4ED6",status:"Error"},"-1":{text:"\u9000\u6B3E",status:"Error"}}},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney",renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",key:"discountMoney",renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",key:"orderRealMoney",renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",key:"businessPrice",renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",key:"refundMoney",renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",key:"settlementMoney",renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,f){var h=[(0,e.jsx)("a",{type:"primary",onClick:function(){ht(!0),y.setSettlementDetail(f,f.orderId,f.orderType).then(function(Z){jt(Z.data),ct(f)})},children:"\u8BE6\u60C5"},"primary")];return h}}];return(0,e.jsxs)(ue.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u8D26\u5355\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return n.onCancel()},maskClosable:!1,children:[(0,e.jsxs)(D.Z,{children:[(0,e.jsxs)(a.Suspense,{children:[(0,e.jsx)(re.Z,{children:(0,e.jsxs)(te.Z,{children:[(0,e.jsxs)(se.Z,{size:"middle",children:["\u5E97\u94FA\u5206\u7C7B:",(0,e.jsx)(g.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",label:"\u5E97\u94FA\u5206\u7C7B",defaultValue:n.values.storeTypeId!=null&&n.values.storeTypeId!=""?n.values.storeTypeId:[],name:"storeTypeId",style:{width:285},onChange:function(l){u(l),l.length>0?y.StoreList(l).then(function(f){var h=f.data;if(h.forEach(function(Z){Z.value=Z.id,Z.label=Z.name}),de(h),h.length==0)oe([]);else if(h.length){var B=[];h.forEach(function(Z){K.length>0&&K.forEach(function(ee){ee==Z.id&&B.push(Z.id)})}),B.length>0?oe(B):oe([])}K!=""&&H.current.reload()}):(oe([]),u([]),y.srdList().then(function(f){var h=f.data;h.forEach(function(B){B.value=B.id,B.label=B.name}),de(h),K!=""&&H.current.reload()}))},children:Ge.map(function(A){return(0,e.jsx)(Option,{value:A.id,children:A.name})})}),"\xA0 \xA0"]}),(0,e.jsxs)(se.Z,{size:"middle",children:["\u5E97\u94FA\u540D\u79F0:",(0,e.jsx)(g.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",label:"\u5E97\u94FA\u540D\u79F0",value:K,name:"storeId",style:{width:285},onChange:function(l){oe(l),H.current.reload()},onClear:function(l){oe(l)},children:Ye.map(function(A){return(0,e.jsx)(Option,{value:A.id,children:A.name})})})]})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(re.Z,{children:(0,e.jsxs)(te.Z,{children:["\u8BA2\u5355\u65E5\u671F:",(0,e.jsx)(se.Z,{size:"small",children:(0,e.jsx)(je,{defaultValue:[L()(n.values.createdAt,w),L()(n.values.endTime,w)],size:32,style:{left:15},onChange:function(l){l!=null?(rt(l[0].format("YYYY-MM-DD")),ut(l[1].format("YYYY-MM-DD"))):(rt(L()(new Date,w)),ut(L()(new Date,w))),H.current.reload()}})}),"\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0",(0,e.jsxs)(se.Z,{size:"middle",children:["\u9884\u8BA1\u5206\u8D26:",(0,e.jsx)(q.Z,{title:"",disabled:!1,value:"\u9884\u8BA1".concat(lt!=null?lt:L()(new Date,w),"\u5206\u8D26"),style:{float:"right",width:285}})]})]})}),(0,e.jsx)(re.Z,{children:(0,e.jsx)(te.Z,{children:(0,e.jsx)(c.Z,{title:"",bordered:!1,style:{width:"100%"},children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{float:"center"},children:(0,e.jsx)($.Z,{style:{float:"center"},title:"",value:j!=0?j.toFixed(2):j,prefix:"\xA5"})}),(0,e.jsxs)(se.Z,{size:"large",children:[(0,e.jsx)($.Z,{title:"\u6D41\u6C34\u91D1\u989D",value:we,style:{float:"left"},xl:18}),(0,e.jsx)($.Z,{title:"\u4F18\u60E0\u91D1\u989D",value:We,style:{float:"left"}}),(0,e.jsx)($.Z,{title:"\u987E\u5BA2\u5B9E\u4ED8",value:ze,style:{float:"left"}}),(0,e.jsx)($.Z,{title:"\u5E73\u53F0\u8D39\u7528",value:Ue,style:{float:"left"}}),(0,e.jsx)($.Z,{title:"\u9000\u6B3E\u91D1\u989D",value:He,style:{float:"left"}}),(0,e.jsx)($.Z,{title:"\u7ED3\u7B97\u91D1\u989D",value:Ke,style:{float:"left"}})]})]})})})})]}),(0,e.jsx)(a.Suspense,{children:(0,e.jsx)(re.Z,{children:(0,e.jsx)(te.Z,{span:24,children:(0,e.jsx)(P.ZP,{actionRef:H,rowKey:"id",search:{optionRender:!1,collapsed:!1},pagination:{showQuickJumper:!0},toolBarRender:!1,request:function(){var A=(0,i.Z)((0,v.Z)().mark(function l(f,h,B){var Z,ee;return(0,v.Z)().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(Z=[],ee=0,s!=""&&(f.storeTypeId=s),K!=""&&(f.storeId=K),Xe==null||Xe==""?f.createdAt=n.values.createdAt:f.createdAt=Xe,Qe==null||Qe==""?f.endTime=n.values.endTime:f.endTime=Qe,Dt(f),K==""){J.next=10;break}return J.next=10,y.finaceDeatal(f).then(function(xt){Z=xt.data.data,ee=xt.data.total});case 10:return J.abrupt("return",{data:Z,success:!0,total:ee});case 11:case"end":return J.stop()}},l)}));return function(l,f,h){return A.apply(this,arguments)}}(),summary:function(l){var f=0,h=0,B=0,Z=0,ee=0,Ze=0;return l.forEach(function(J){f+=J.orderOriginalMoney,h+=J.discountMoney,B+=J.orderRealMoney,ee+=J.refundMoney,Ze+=J.settlementMoney}),(0,e.jsxs)(P.ZP.Summary.Row,{children:[(0,e.jsx)(P.ZP.Summary.Cell,{children:"\u603B\u8BA1"}),(0,e.jsx)(P.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsx)(b,{type:"danger"})}),(0,e.jsx)(P.ZP.Summary.Cell,{children:(0,e.jsxs)(b,{children:[f!=0?f.toFixed(2):f,"\xA5"]})}),(0,e.jsx)(P.ZP.Summary.Cell,{children:(0,e.jsxs)(b,{children:[h!=0?h.toFixed(2):h,"\xA5"]})}),(0,e.jsx)(P.ZP.Summary.Cell,{children:(0,e.jsxs)(b,{children:[B!=0?B.toFixed(2):B,"\xA5"]})}),(0,e.jsx)(P.ZP.Summary.Cell,{children:(0,e.jsxs)(b,{children:[Z!=0?Z.toFixed(2):Z,"\xA5"]})}),(0,e.jsx)(P.ZP.Summary.Cell,{children:(0,e.jsxs)(b,{children:[ee!=0?ee.toFixed(2):ee,"\xA5"]})}),(0,e.jsx)(P.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsxs)(b,{children:[Ze!=0?Ze.toFixed(2):Ze,"\xA5"]})})]})},columns:Ct})})})})]}),ot&&Object.keys(ot).length?(0,e.jsx)(W,{onCancel:function(){ht(!0),ct({})},setsecondDetailVisible:At,values:Et}):null]})},Y=k,M=t(53667),le=t.n(M),et=t(96486),Te=function(){var n=(0,a.useState)([]),w=(0,r.Z)(n,2),H=w[0],b=w[1],Ee=(0,a.useState)([]),je=(0,r.Z)(Ee,2),Oe=je[0],fe=je[1],Ge=(0,a.useState)([]),De=(0,r.Z)(Ge,2),_=De[0],ae=De[1],Ye=(0,a.useState)(),de=(0,r.Z)(Ye,2),xe=de[0],ye=de[1],we=(0,a.useState)(),Ce=(0,r.Z)(we,2),Ve=Ce[0],me=Ce[1],We=(0,a.useState)(""),Me=(0,r.Z)(We,2),tt=Me[0],pe=Me[1],ze=(0,a.useState)(""),Fe=(0,r.Z)(ze,2),nt=Fe[0],Re=Fe[1],Ue=(0,a.useState)([]),$e=(0,r.Z)(Ue,2),Se=$e[0],Be=$e[1],He=(0,a.useState)([]),Pe=(0,r.Z)(He,2),ge=Pe[0],Ie=Pe[1],Ke=(0,a.useRef)();(0,a.useEffect)(function(){function G(){y.srdTypeList().then(function(o){var R=o.data;R.forEach(function(I){I.value=I.id,I.label=I.name}),b(R)})}function j(){y.srdList().then(function(o){var R=o.data;R.forEach(function(I){I.value=I.id,I.label=I.name}),fe(R)})}G(),j()},[]);function Le(G){var j=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date"},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(u){return"".concat(u,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",renderText:function(u){return"".concat(u,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",renderText:function(u){return"".concat(u,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",renderText:function(u){return"".concat(u,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",renderText:function(u){return"".concat(u,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(u){return"".concat(u,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(u,p){var V=[(0,e.jsx)("a",{type:"primary",onClick:function(){},children:"\u8BE6\u60C5"},"primary")];return V}}],o={},R=[];j.map(function(s,u){u<11&&R.push(s)}),o.fileName="\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",o.datas=[{sheetData:G.map(function(s){var u={};return j.forEach(function(p,V){V<11&&(V==4?s[p.dataIndex]==0?u[p.dataIndex]="\u6B63\u5E38\u8BA2\u5355":s[p.dataIndex]=="1"?u[p.dataIndex]="\u7ACB\u5373\u5403\u9762":s[p.dataIndex]=="2"?u[p.dataIndex]="\u76F2\u76D2":s[p.dataIndex]=="3"?u[p.dataIndex]="\u5176\u4ED6":s[p.dataIndex]=="-1"?u[p.dataIndex]="\u9000\u6B3E":s[p.dataIndex]=="-2"?u[p.dataIndex]="\u5408\u8BA1":u[p.dataIndex]="\u5176\u4ED6":u[p.dataIndex]=s[p.dataIndex])}),u}),sheetName:"\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",sheetFilter:R.map(function(s){return s.dataIndex}),sheetHeader:R.map(function(s){return s.title}),columnWidths:R.map(function(){return 10})}];var I=new(le())(o);I.saveExcel()}var Je=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(g.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",style:{width:"100%"},options:H,onChange:function(o){Ie(o),o.length>0?y.StoreList(o).then(function(R){var I=R.data;if(I.forEach(function(u){u.value=u.id,u.label=u.name}),fe(I),I.length==0)ae([]);else if(I.length){var s=[];I.forEach(function(u){_.length>0&&_.forEach(function(p){p==u.id&&s.push(u.id)})}),s.length>0?ae(s):ae([])}}):(Ie([]),ae([]),y.srdList().then(function(R){var I=R.data;I.forEach(function(s){s.value=s.id,s.label=s.name}),fe(I)}))}})}},{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(g.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:Oe,value:_,onChange:function(o){ae(o)},onClear:function(o){ae(o)}})}},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",hideInTable:!0,valueType:"dateRange",search:{transform:function(j){return{createdAt:j[0],endTime:j[1]}}}},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(j){return"".concat(j,"\xA5")},hideInSearch:!0},{title:"\u5206\u8D26\u91D1\u989D",dataIndex:"businessPrice",hideInSearch:!0,renderText:function(j){return"".concat(j,"\xA5")}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(j,o){var R=[(0,e.jsx)("a",{type:"primary",onClick:function(){me(!0),ye(o)},children:"\u67E5\u770B"},"primary"),(0,e.jsx)("a",{type:"primary",onClick:function(){o.storeTypeId=[o.storeTypeId]==""?null:[o.storeTypeId],o.storeId=[o.storeId],y.financeSummaryList(o).then(function(s){s.data&&Le(s.data)})},children:"\u4E0B\u8F7D"},"primary")];return R}}];return(0,e.jsxs)(O.ZP,{children:[(0,e.jsx)(P.ZP,{headerTitle:"\u8D22\u52A1\u8D26\u5355\u67E5\u8BE2",actionRef:Ke,search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){Se!=null&&Se!=""&&y.financeSummaryList(Se).then(function(o){Le(o.data)})},children:[(0,e.jsx)(X.Z,{})," \u4E0B\u8F7D"]},"create")]},columns:Je,request:function(){var G=(0,i.Z)((0,v.Z)().mark(function j(o,R,I){var s,u;return(0,v.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(s=[],u=0,ge!=null&&ge.length>0&&(o.storeTypeId=ge),o.createdAt!=null&&pe(o.createdAt),o.endTime!=null&&Re(o.endTime),_!=null&&_.length>0&&(o.storeId=_),Be(o),!(_!=null&&_.length>0)){V.next=10;break}return V.next=10,y.finaceList(o).then(function(K){s=K.data.data,u=K.data.total});case 10:return V.abrupt("return",{data:s,success:!0,total:u});case 11:case"end":return V.stop()}},j)}));return function(j,o,R){return G.apply(this,arguments)}}()}),xe&&Object.keys(xe).length?(0,e.jsx)(Y,{onCancel:function(){me(!0),ye({})},setfinanceDetailVisible:Ve,values:xe}):null]})},Ne=Te},7277:function(F,N,t){"use strict";t.d(N,{Z:function(){return q}});var v=t(22122),i=t(67294),m=t(57838),S=t(96159),x=t(96156),g=t(94184),r=t.n(g),X=t(53124),a=t(19586),O=t(11726),P=t.n(O),ie=function(d){var D=d.value,C=d.formatter,y=d.precision,e=d.decimalSeparator,T=d.groupSeparator,Q=T===void 0?"":T,E=d.prefixCls,W;if(typeof C=="function")W=C(D);else{var z=String(D),L=z.match(/^(-?)(\d*)(\.(\d+))?$/);if(!L||z==="-")W=z;else{var k=L[1],Y=L[2]||"0",M=L[4]||"";Y=Y.replace(/\B(?=(\d{3})+(?!\d))/g,Q),typeof y=="number"&&(M=P()(M,y,"0").slice(0,y>0?y:0)),M&&(M="".concat(e).concat(M)),W=[i.createElement("span",{key:"int",className:"".concat(E,"-content-value-int")},k,Y),M&&i.createElement("span",{key:"decimal",className:"".concat(E,"-content-value-decimal")},M)]}}return i.createElement("span",{className:"".concat(E,"-content-value")},W)},ue=ie,he=function(d){var D=d.prefixCls,C=d.className,y=d.style,e=d.valueStyle,T=d.value,Q=T===void 0?0:T,E=d.title,W=d.valueRender,z=d.prefix,L=d.suffix,k=d.loading,Y=k===void 0?!1:k,M=d.direction,le=d.onMouseEnter,et=d.onMouseLeave,Te=d.decimalSeparator,Ne=Te===void 0?".":Te,U=d.groupSeparator,n=U===void 0?",":U,w=i.createElement(ue,(0,v.Z)({decimalSeparator:Ne,groupSeparator:n},d,{value:Q})),H=r()(D,(0,x.Z)({},"".concat(D,"-rtl"),M==="rtl"),C);return i.createElement("div",{className:H,style:y,onMouseEnter:le,onMouseLeave:et},E&&i.createElement("div",{className:"".concat(D,"-title")},E),i.createElement(a.Z,{paragraph:!1,loading:Y,className:"".concat(D,"-skeleton")},i.createElement("div",{style:e,className:"".concat(D,"-content")},z&&i.createElement("span",{className:"".concat(D,"-content-prefix")},z),W?W(w):w,L&&i.createElement("span",{className:"".concat(D,"-content-suffix")},L))))},c=(0,X.PG)({prefixCls:"statistic"})(he),ce=c,$=t(28481),ve=t(32475),re=t.n(ve),Ae=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function te(ne,d){var D=ne,C=/\[[^\]]*]/g,y=(d.match(C)||[]).map(function(E){return E.slice(1,-1)}),e=d.replace(C,"[]"),T=Ae.reduce(function(E,W){var z=(0,$.Z)(W,2),L=z[0],k=z[1];if(E.includes(L)){var Y=Math.floor(D/k);return D-=Y*k,E.replace(new RegExp("".concat(L,"+"),"g"),function(M){var le=M.length;return re()(Y.toString(),le,"0")})}return E},e),Q=0;return T.replace(C,function(){var E=y[Q];return Q+=1,E})}function ke(ne,d){var D=d.format,C=D===void 0?"":D,y=new Date(ne).getTime(),e=Date.now(),T=Math.max(y-e,0);return te(T,C)}var se=1e3/30;function qe(ne){return new Date(ne).getTime()}var be=function(d){var D=d.value,C=d.format,y=C===void 0?"HH:mm:ss":C,e=d.onChange,T=d.onFinish,Q=(0,m.Z)(),E=i.useRef(null),W=function(){T==null||T(),E.current&&(clearInterval(E.current),E.current=null)},z=function(){var M=qe(D);M>=Date.now()&&(E.current=setInterval(function(){Q(),e==null||e(M-Date.now()),M<Date.now()&&W()},se))};i.useEffect(function(){return z(),function(){E.current&&(clearInterval(E.current),E.current=null)}},[D]);var L=function(M,le){return ke(M,(0,v.Z)((0,v.Z)({},le),{format:y}))},k=function(M){return(0,S.Tm)(M,{title:void 0})};return i.createElement(ce,(0,v.Z)({},d,{valueRender:k,formatter:L}))},_e=i.memo(be);ce.Countdown=_e;var q=ce},95300:function(F,N,t){"use strict";var v=t(38663),i=t.n(v),m=t(81903),S=t.n(m),x=t(18446)},48983:function(F,N,t){var v=t(40371),i=v("length");F.exports=i},18190:function(F){var N=9007199254740991,t=Math.floor;function v(i,m){var S="";if(!i||m<1||m>N)return S;do m%2&&(S+=i),m=t(m/2),m&&(i+=i);while(m);return S}F.exports=v},78302:function(F,N,t){var v=t(18190),i=t(80531),m=t(40180),S=t(62689),x=t(88016),g=t(83140),r=Math.ceil;function X(a,O){O=O===void 0?" ":i(O);var P=O.length;if(P<2)return P?v(O,a):O;var ie=v(O,r(a/x(O)));return S(O)?m(g(ie),0,a).join(""):ie.slice(0,a)}F.exports=X},88016:function(F,N,t){var v=t(48983),i=t(62689),m=t(21903);function S(x){return i(x)?m(x):v(x)}F.exports=S},21903:function(F){var N="\\ud800-\\udfff",t="\\u0300-\\u036f",v="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",m=t+v+i,S="\\ufe0e\\ufe0f",x="["+N+"]",g="["+m+"]",r="\\ud83c[\\udffb-\\udfff]",X="(?:"+g+"|"+r+")",a="[^"+N+"]",O="(?:\\ud83c[\\udde6-\\uddff]){2}",P="[\\ud800-\\udbff][\\udc00-\\udfff]",ie="\\u200d",ue=X+"?",he="["+S+"]?",c="(?:"+ie+"(?:"+[a,O,P].join("|")+")"+he+ue+")*",ce=he+ue+c,$="(?:"+[a+g+"?",g,O,P,x].join("|")+")",ve=RegExp(r+"(?="+r+")|"+$+ce,"g");function re(Ae){for(var te=ve.lastIndex=0;ve.test(Ae);)++te;return te}F.exports=re},11726:function(F,N,t){var v=t(78302),i=t(88016),m=t(40554),S=t(79833);function x(g,r,X){g=S(g),r=m(r);var a=r?i(g):0;return r&&a<r?g+v(r-a,X):g}F.exports=x},32475:function(F,N,t){var v=t(78302),i=t(88016),m=t(40554),S=t(79833);function x(g,r,X){g=S(g),r=m(r);var a=r?i(g):0;return r&&a<r?v(r-a,X)+g:g}F.exports=x},18601:function(F,N,t){var v=t(14841),i=1/0,m=17976931348623157e292;function S(x){if(!x)return x===0?x:0;if(x=v(x),x===i||x===-i){var g=x<0?-1:1;return g*m}return x===x?x:0}F.exports=S},40554:function(F,N,t){var v=t(18601);function i(m){var S=v(m),x=S%1;return S===S?x?S-x:S:0}F.exports=i}}]);