Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

2 rader
21 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8741,7975,1322,6353,104,3591,1278,6469,8920,8698,6653],{31651:function(vt,Te,a){"use strict";a.r(Te),a.d(Te,{default:function(){return nt}});var O=a(39428),de=a(3182),yt=a(57663),ke=a(71577),St=a(43358),Q=a(34041),c=a(2824),$e=a(90631),s=a(67294),He=a(78009),D=a(16894),gt=a(71194),De=a(50146),mt=a(58024),o=a(91894),It=a(95300),L=a(7277),Zt=a(13062),U=a(71230),jt=a(89032),X=a(15746),At=a(49111),V=a(19650),Tt=a(14965),Je=a(91774),Dt=a(47673),P=a(4107),Et=a(402),Ee=a(56256),Fe=a(21349),R=a(48971),Z={finaceList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-report",{method:"Post",data:t})},finaceDeatal:function(t){return(0,R.WY)("/kitchen/api/finance/finance-detail",{method:"Post",data:t})},sumFinance:function(t){return(0,R.WY)("\u200B\u200B/kitchen/api/finance/sum-finance",{method:"Post",data:t})},srdTypeList:function(t){return(0,R.WY)("/kitchen/api/storetype/list",{method:"Post",data:t})},srdList:function(t){return(0,R.WY)("/kitchen/api/store/list",{method:"Post",data:t})},financeSummaryList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-analysis",{method:"Post",data:t})},setSettlementDetail:function(t,E,M){return(0,R.WY)("/kitchen/api/finance/settlement-detail/".concat(E,"/").concat(M),{method:"Post",data:t})},StoreList:function(t){return(0,R.WY)("/kitchen/api/select/storelist",{method:"Post",data:t})}},e=a(85893),F={width:"33%",textAlign:"center",height:"20px"},Ce={width:"100%",textAlign:"center",height:"10px",marginTop:"1"},Ke=function(t){var E=(0,s.useRef)(),M=Ee.Z.Text;return(0,e.jsx)(De.Z,{width:800,height:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u7ED3\u7B97\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,e.jsxs)(Fe.Z,{children:[(0,e.jsx)(o.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)(L.Z,{style:{float:"center"},title:"\u7ED3\u7B97\u91D1\u989D",value:t.values.refund.settlementMoney,prefix:"\xA5"})})}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{title:"\u9000\u6B3E\u91D1\u989D",type:"inner",extra:t.values.refund.refundMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}):(0,e.jsxs)(o.Z,{title:"\u5546\u54C1\u603B\u4EF7",type:"inner",extra:t.values.refund.orderOriginalMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}),t.values.refund.refundOrderId==""&&t.values.refund.discountMoney!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:"\u4F18\u60E0\u652F\u51FA",extra:t.values.refund.discountMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.couponTypeValue==""||t.values.refund.couponTypeValue==null?"\u4F18\u60E0\u652F\u51FA":t.values.refund.couponTypeValue}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:"\xA5 ".concat(t.values.refund.discountMoney)})]}):null,t.values.refund.refundOrderId==""&&t.values.refund.businessPrice!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u8D39\u652F\u51FA":"\u5E73\u53F0\u9000\u6B3E",extra:t.values.refund.businessPrice,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u6280\u672F\u670D\u52A1\u8D39":"\u9000\u6B3E\u91D1\u989D"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:[t.values.refund.businessPrice,"\xA5"]})]}):null,(0,e.jsxs)(o.Z,{type:"inner",title:"\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderId}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderNumber}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.createdAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.completeTakeTime]})]}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{type:"inner",title:"\u9000\u6B3E\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderId]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderNumber]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundCreatedAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundTime]})]}):null]})})},Qe=Ke,Ue=a(30381),N=a.n(Ue),Xe=function(t){var E="YYYY-MM-DD",M=(0,s.useRef)(),m=Ee.Z.Text,q=P.Z.TextArea,_=Je.Z.RangePicker,oe=(0,s.useState)([]),Y=(0,c.Z)(oe,2),ce=Y[0],ee=Y[1],B=(0,s.useState)([]),b=(0,c.Z)(B,2),fe=b[0],G=b[1],W=(0,s.useState)(0),z=(0,c.Z)(W,2),he=z[0],te=z[1],xe=(0,s.useState)(0),k=(0,c.Z)(xe,2),ve=k[0],ne=k[1],Me=(0,s.useState)(0),ae=(0,c.Z)(Me,2),ye=ae[0],re=ae[1],Be=(0,s.useState)(0),ie=(0,c.Z)(Be,2),Se=ie[0],ge=ie[1],$=(0,s.useState)(0),ue=(0,c.Z)($,2),me=ue[0],le=ue[1],H=(0,s.useState)(0),J=(0,c.Z)(H,2),Ie=J[0],se=J[1],Ze=(0,s.useState)(0),I=(0,c.Z)(Ze,2),v=I[0],u=I[1],S=(0,s.useState)([]),f=(0,c.Z)(S,2),r=f[0],n=f[1],y=(0,s.useState)([]),j=(0,c.Z)(y,2),A=j[0],w=j[1],at=(0,s.useState)(""),pe=(0,c.Z)(at,2),je=pe[0],be=pe[1],rt=(0,s.useState)(""),Le=(0,c.Z)(rt,2),Ae=Le[0],Pe=Le[1],it=(0,s.useState)(""),Re=(0,c.Z)(it,2),Ge=Re[0],ut=Re[1],lt=(0,s.useState)(),we=(0,c.Z)(lt,2),Oe=we[0],Ye=we[1],st=(0,s.useState)(),Ve=(0,c.Z)(st,2),dt=Ve[0],Ne=Ve[1],ot=(0,s.useState)([]),We=(0,c.Z)(ot,2),ct=We[0],ft=We[1];(0,s.useEffect)(function(){w([t.values.storeId]),n([t.values.storeTypeId]);function x(){Z.srdTypeList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),ee(l)}),t.values.storeTypeId!=""&&t.values.storeTypeId!=null?Z.StoreList([t.values.storeTypeId]).then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)}):Z.srdList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)})}x()},[]);var ht=function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l){return(0,O.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,Z.sumFinance(l).then(function(h){h.data&&(te(h.data.orderOriginalMoney),ne(h.data.discountMoney),re(h.data.orderRealMoney),le(h.data.refundMoney),se(h.data.settlementMoney),ut(h.data.splittingDate),u(h.data.splittingMoney))});case 2:case"end":return g.stop()}},i)}));return function(l){return x.apply(this,arguments)}}(),xt=[{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(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",key:"discountMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",key:"orderRealMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",key:"businessPrice",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",key:"refundMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",key:"settlementMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,l){var d=[(0,e.jsx)("a",{type:"primary",onClick:function(){Ne(!0),Z.setSettlementDetail(l,l.orderId,l.orderType).then(function(h){ft(h.data),Ye(l)})},children:"\u8BE6\u60C5"},"primary")];return d}}];return(0,e.jsxs)(De.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u8D26\u5355\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:[(0,e.jsxs)(Fe.Z,{children:[(0,e.jsxs)(s.Suspense,{children:[(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:[(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u5206\u7C7B:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",label:"\u5E97\u94FA\u5206\u7C7B",defaultValue:t.values.storeTypeId!=null&&t.values.storeTypeId!=""?t.values.storeTypeId:[],name:"storeTypeId",style:{width:285},onChange:function(i){n(i),i.length>0?Z.StoreList(i).then(function(l){var d=l.data;if(d.forEach(function(h){h.value=h.id,h.label=h.name}),G(d),d.length==0)w([]);else if(d.length){var g=[];d.forEach(function(h){A.length>0&&A.forEach(function(p){p==h.id&&g.push(h.id)})}),g.length>0?w(g):w([])}A!=""&&M.current.reload()}):(w([]),n([]),Z.srdList().then(function(l){var d=l.data;d.forEach(function(g){g.value=g.id,g.label=g.name}),G(d),A!=""&&M.current.reload()}))},children:ce.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})}),"\xA0 \xA0"]}),(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u540D\u79F0:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",label:"\u5E97\u94FA\u540D\u79F0",value:A,name:"storeId",style:{width:285},onChange:function(i){w(i),M.current.reload()},onClear:function(i){w(i)},children:fe.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})})]})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:["\u8BA2\u5355\u65E5\u671F:",(0,e.jsx)(V.Z,{size:"small",children:(0,e.jsx)(_,{defaultValue:[N()(t.values.createdAt,E),N()(t.values.endTime,E)],size:32,style:{left:15},onChange:function(i){i!=null?(be(i[0].format("YYYY-MM-DD")),Pe(i[1].format("YYYY-MM-DD"))):(be(N()(new Date,E)),Pe(N()(new Date,E))),M.current.reload()}})}),"\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0",(0,e.jsxs)(V.Z,{size:"middle",children:["\u9884\u8BA1\u5206\u8D26:",(0,e.jsx)(P.Z,{title:"",disabled:!1,value:"\u9884\u8BA1".concat(Ge!=null?Ge:N()(new Date,E),"\u5206\u8D26"),style:{float:"right",width:285}})]})]})}),(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{children:(0,e.jsx)(o.Z,{title:"",bordered:!1,style:{width:"100%"},children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{float:"center"},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"",value:v!=0?v.toFixed(2):v,prefix:"\xA5"})}),(0,e.jsxs)(V.Z,{size:"large",children:[(0,e.jsx)(L.Z,{title:"\u6D41\u6C34\u91D1\u989D",value:he,style:{float:"left"},xl:18}),(0,e.jsx)(L.Z,{title:"\u4F18\u60E0\u91D1\u989D",value:ve,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u987E\u5BA2\u5B9E\u4ED8",value:ye,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u5E73\u53F0\u8D39\u7528",value:Se,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u9000\u6B3E\u91D1\u989D",value:me,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u7ED3\u7B97\u91D1\u989D",value:Ie,style:{float:"left"}})]})]})})})})]}),(0,e.jsx)(s.Suspense,{children:(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{span:24,children:(0,e.jsx)(D.ZP,{actionRef:M,rowKey:"id",search:{optionRender:!1,collapsed:!1},pagination:{showQuickJumper:!0},toolBarRender:!1,request:function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l,d,g){var h,p;return(0,O.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(h=[],p=0,r!=""&&(l.storeTypeId=r),A!=""&&(l.storeId=A),je==null||je==""?l.createdAt=t.values.createdAt:l.createdAt=je,Ae==null||Ae==""?l.endTime=t.values.endTime:l.endTime=Ae,ht(l),A==""){T.next=10;break}return T.next=10,Z.finaceDeatal(l).then(function(ze){h=ze.data.data,p=ze.data.total});case 10:return T.abrupt("return",{data:h,success:!0,total:p});case 11:case"end":return T.stop()}},i)}));return function(i,l,d){return x.apply(this,arguments)}}(),summary:function(i){var l=0,d=0,g=0,h=0,p=0,K=0;return i.forEach(function(T){l+=T.orderOriginalMoney,d+=T.discountMoney,g+=T.orderRealMoney,p+=T.refundMoney,K+=T.settlementMoney}),(0,e.jsxs)(D.ZP.Summary.Row,{children:[(0,e.jsx)(D.ZP.Summary.Cell,{children:"\u603B\u8BA1"}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsx)(m,{type:"danger"})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[l!=0?l.toFixed(2):l,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[d!=0?d.toFixed(2):d,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[g!=0?g.toFixed(2):g,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[h!=0?h.toFixed(2):h,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[p!=0?p.toFixed(2):p,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsxs)(m,{children:[K!=0?K.toFixed(2):K,"\xA5"]})})]})},columns:xt})})})})]}),Oe&&Object.keys(Oe).length?(0,e.jsx)(Qe,{onCancel:function(){Ne(!0),Ye({})},setsecondDetailVisible:dt,values:ct}):null]})},qe=Xe,_e=a(53667),et=a.n(_e),Ft=a(96486),tt=function(){var t=(0,s.useState)([]),E=(0,c.Z)(t,2),M=E[0],m=E[1],q=(0,s.useState)([]),_=(0,c.Z)(q,2),oe=_[0],Y=_[1],ce=(0,s.useState)([]),ee=(0,c.Z)(ce,2),B=ee[0],b=ee[1],fe=(0,s.useState)(),G=(0,c.Z)(fe,2),W=G[0],z=G[1],he=(0,s.useState)(),te=(0,c.Z)(he,2),xe=te[0],k=te[1],ve=(0,s.useState)(""),ne=(0,c.Z)(ve,2),Me=ne[0],ae=ne[1],ye=(0,s.useState)(""),re=(0,c.Z)(ye,2),Be=re[0],ie=re[1],Se=(0,s.useState)([]),ge=(0,c.Z)(Se,2),$=ge[0],ue=ge[1],me=(0,s.useState)([]),le=(0,c.Z)(me,2),H=le[0],J=le[1],Ie=(0,s.useRef)();(0,s.useEffect)(function(){function I(){Z.srdTypeList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),m(S)})}function v(){Z.srdList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),Y(S)})}I(),v()},[]);function se(I){var v=[{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(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,y){var j=[(0,e.jsx)("a",{type:"primary",onClick:function(){},children:"\u8BE6\u60C5"},"primary")];return j}}],u={},S=[];v.map(function(r,n){n<11&&S.push(r)}),u.fileName="\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",u.datas=[{sheetData:I.map(function(r){var n={};return v.forEach(function(y,j){j<11&&(j==4?r[y.dataIndex]==0?n[y.dataIndex]="\u6B63\u5E38\u8BA2\u5355":r[y.dataIndex]=="1"?n[y.dataIndex]="\u7ACB\u5373\u5403\u9762":r[y.dataIndex]=="2"?n[y.dataIndex]="\u76F2\u76D2":r[y.dataIndex]=="3"?n[y.dataIndex]="\u5176\u4ED6":r[y.dataIndex]=="-1"?n[y.dataIndex]="\u9000\u6B3E":r[y.dataIndex]=="-2"?n[y.dataIndex]="\u5408\u8BA1":n[y.dataIndex]="\u5176\u4ED6":n[y.dataIndex]=r[y.dataIndex])}),n}),sheetName:"\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",sheetFilter:S.map(function(r){return r.dataIndex}),sheetHeader:S.map(function(r){return r.title}),columnWidths:S.map(function(){return 10})}];var f=new(et())(u);f.saveExcel()}var Ze=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",style:{width:"100%"},options:M,onChange:function(u){J(u),u.length>0?Z.StoreList(u).then(function(S){var f=S.data;if(f.forEach(function(n){n.value=n.id,n.label=n.name}),Y(f),f.length==0)b([]);else if(f.length){var r=[];f.forEach(function(n){B.length>0&&B.forEach(function(y){y==n.id&&r.push(n.id)})}),r.length>0?b(r):b([])}}):(J([]),b([]),Z.srdList().then(function(S){var f=S.data;f.forEach(function(r){r.value=r.id,r.label=r.name}),Y(f)}))}})}},{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)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:oe,value:B,onChange:function(u){b(u)},onClear:function(u){b(u)}})}},{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(v){return{createdAt:v[0],endTime:v[1]}}}},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(v){return"".concat(v,"\xA5")},hideInSearch:!0},{title:"\u5206\u8D26\u91D1\u989D",dataIndex:"businessPrice",hideInSearch:!0,renderText:function(v){return"".concat(v,"\xA5")}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(v,u){var S=[(0,e.jsx)("a",{type:"primary",onClick:function(){k(!0),z(u)},children:"\u67E5\u770B"},"primary"),(0,e.jsx)("a",{type:"primary",onClick:function(){u.storeTypeId=[u.storeTypeId]==""?null:[u.storeTypeId],u.storeId=[u.storeId],Z.financeSummaryList(u).then(function(r){r.data&&se(r.data)})},children:"\u4E0B\u8F7D"},"primary")];return S}}];return(0,e.jsxs)(He.ZP,{children:[(0,e.jsx)(D.ZP,{headerTitle:"\u8D22\u52A1\u8D26\u5355\u67E5\u8BE2",actionRef:Ie,search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(ke.Z,{type:"primary",onClick:function(){$!=null&&$!=""&&Z.financeSummaryList($).then(function(u){se(u.data)})},children:[(0,e.jsx)($e.Z,{})," \u4E0B\u8F7D"]},"create")]},columns:Ze,request:function(){var I=(0,de.Z)((0,O.Z)().mark(function v(u,S,f){var r,n;return(0,O.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(r=[],n=0,H!=null&&H.length>0&&(u.storeTypeId=H),u.createdAt!=null&&ae(u.createdAt),u.endTime!=null&&ie(u.endTime),B!=null&&B.length>0&&(u.storeId=B),ue(u),!(B!=null&&B.length>0)){j.next=10;break}return j.next=10,Z.finaceList(u).then(function(A){r=A.data.data,n=A.data.total});case 10:return j.abrupt("return",{data:r,success:!0,total:n});case 11:case"end":return j.stop()}},v)}));return function(v,u,S){return I.apply(this,arguments)}}()}),W&&Object.keys(W).length?(0,e.jsx)(qe,{onCancel:function(){k(!0),z({})},setfinanceDetailVisible:xe,values:W}):null]})},nt=tt}}]);