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
9.9 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5003,7975,1322,1793,7005,3042,3721,607,8863,1587,4001],{1759:function(C){C.exports={"data-search-card":"data-search-card____3y2v","data-search-box":"data-search-box___18vv5","search-btn-item":"search-btn-item___1bmDV","table-page":"table-page___3xfjM","loading-card":"loading-card___dcQnu","data-search-item":"data-search-item___23DXw","data-search-input":"data-search-input___3WC5d","data-search-prefix":"data-search-prefix___Psc0s","data-search-sufixx":"data-search-sufixx___1MMan","data-search-btns":"data-search-btns___OgJ-7","download-btn":"download-btn___3uVYa"}},80638:function(){},3608:function(C,E,e){"use strict";e.r(E),e.d(E,{default:function(){return $}});var s=e(14781),f=e(36138),M=e(66456),T=e(15711),re=e(58024),A=e(91894),p=e(13062),H=e(71230),se=e(57663),Z=e(71577),J=e(89032),N=e(15746),t=e(62999),B=e(54680),h=e(93224),u=e(39428),n=e(34792),I=e(48086),_=e(3182),r=e(2824),O=e(20228),F=e(11382),ne=e(14965),G=e(91774),g=e(67294),W=e(78009),L=e(1759),l=e.n(L),X=e(11849),K=e(48971),U={getReportOrgsalesmargin:function(o){return(0,K.WY)("/kitchen/api/report/orgsalesmargin",{method:"Post",data:o})},gettree:function(o){return(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,X.Z)({},o)})}},k=e(30381),v=e.n(k),m=e(90631),a=e(85893),q=["children"],D=G.Z.RangePicker,w=function(){return(0,a.jsx)("div",{className:l()["loading-card"],children:(0,a.jsx)(F.Z,{size:"large"})})};function $(){var i=(0,g.useState)([]),o=(0,r.Z)(i,2),c=o[0],P=o[1],ee=(0,g.useState)(1),z=(0,r.Z)(ee,2),oe=z[0],le=z[1],ue=(0,g.useState)(10),te=(0,r.Z)(ue,2),ce=te[0],de=te[1],Y=(0,g.useState)(0),R=(0,r.Z)(Y,2),Q=R[0],fe=R[1],ae=(0,g.useState)(!1),V=(0,r.Z)(ae,2),Oe=V[0],ie=V[1],ye=(0,g.useState)([v()(v()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),v()(v()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ve=(0,r.Z)(ye,2),_e=ve[0],me=ve[1],Me=(0,g.useState)([]),Ee=(0,r.Z)(Me,2),ge=Ee[0],he=Ee[1],pe=(0,g.useState)([]),De=(0,r.Z)(pe,2),Ce=De[0],Ze=De[1],Re=(0,g.useState)([]),xe=(0,r.Z)(Re,2),Se=xe[0],je=xe[1],Ae=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(x){var d=Se.find(function(y){return y.key===x});return d?(0,a.jsx)("span",{children:d.title}):(0,a.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],Ie=function(x,d){le(x),de(d)},Pe=function(){var S=(0,_.Z)((0,u.Z)().mark(function x(){var d,y;return(0,u.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d={storeId:ge[0],begintime:_e[0],endtime:_e[1],current:oe,pageSize:ce},ie(!0),b.next=4,U.getReportOrgsalesmargin(d);case 4:y=b.sent,ie(!1),y.statusCode===200?P(y.data.data):I.default.error(y.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return b.stop()}},x)}));return function(){return S.apply(this,arguments)}}(),Le=function(){var S=(0,_.Z)((0,u.Z)().mark(function x(){var d;return(0,u.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return ie(!0),j.next=3,U.gettree({});case 3:d=j.sent,ie(!1),d.statusCode===200?(Ze(d.data),je(Be(d.data))):I.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return j.stop()}},x)}));return function(){return S.apply(this,arguments)}}(),Te=function(){he([]),me([v()(v()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),v()(v()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},Be=function S(x){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(y){var j=y.children,b=(0,h.Z)(y,q);d.push(b),j&&j.length>0&&S(j,d)}),d};return(0,g.useEffect)(function(){Pe(),Le()},[]),(0,a.jsxs)(W.ZP,{children:[Oe?(0,a.jsx)(w,{}):null,(0,a.jsx)(A.Z,{className:l()["data-search-card"],children:(0,a.jsxs)(H.Z,{gutter:20,justify:"start",children:[(0,a.jsxs)(N.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,a.jsx)("div",{className:l()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,a.jsx)(B.Z,{className:l()["data-search-sufixx"],value:ge,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Ce,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(x){return he(x)}})]}),(0,a.jsxs)(N.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,a.jsx)("div",{className:l()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,a.jsx)(D,{size:"middle",className:l()["data-search-sufixx"],value:_e,onChange:function(x,d){var y=[v()(v()(new Date(d[0])).format("YYYY-MM-DD 00:00:00")),v()(v()(new Date(d[1])).format("YYYY-MM-DD 23:59:59"))];me(y)}})]}),(0,a.jsxs)("div",{className:l()["data-search-btns"],children:[(0,a.jsx)(Z.Z,{className:l()["search-btn-item"],onClick:Te,children:"\u91CD\u7F6E"}),(0,a.jsx)(Z.Z,{className:l()["search-btn-item"],type:"primary",onClick:Pe,children:"\u67E5\u8BE2"})]})]})}),(0,a.jsxs)(A.Z,{className:l()["table-card"],children:[(0,a.jsx)("div",{className:l()["download-btn"],children:(0,a.jsx)(Z.Z,{type:"primary",icon:(0,a.jsx)(m.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,a.jsx)(T.Z,{dataSource:c,columns:Ae,pagination:!1}),(0,a.jsx)("div",{className:l()["table-page"],children:(0,a.jsx)(f.Z,{current:oe,pageSize:ce,total:Q,onChange:Ie})})]})]})}},15746:function(C,E,e){"use strict";var s=e(21584);E.Z=s.Z},89032:function(C,E,e){"use strict";var s=e(38663),f=e.n(s),M=e(6999)},99134:function(C,E,e){"use strict";var s=e(67294),f=(0,s.createContext)({});E.Z=f},21584:function(C,E,e){"use strict";var s=e(96156),f=e(22122),M=e(90484),T=e(94184),re=e.n(T),A=e(67294),p=e(53124),H=e(99134),se=function(t,B){var h={};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&B.indexOf(u)<0&&(h[u]=t[u]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,u=Object.getOwnPropertySymbols(t);n<u.length;n++)B.indexOf(u[n])<0&&Object.prototype.propertyIsEnumerable.call(t,u[n])&&(h[u[n]]=t[u[n]]);return h};function Z(t){return typeof t=="number"?"".concat(t," ").concat(t," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?"0 0 ".concat(t):t}var J=["xs","sm","md","lg","xl","xxl"],N=A.forwardRef(function(t,B){var h,u=A.useContext(p.E_),n=u.getPrefixCls,I=u.direction,_=A.useContext(H.Z),r=_.gutter,O=_.wrap,F=_.supportFlexGap,ne=t.prefixCls,G=t.span,g=t.order,W=t.offset,L=t.push,l=t.pull,X=t.className,K=t.children,U=t.flex,k=t.style,v=se(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",ne),a={};J.forEach(function(i){var o,c={},P=t[i];typeof P=="number"?c.span=P:(0,M.Z)(P)==="object"&&(c=P||{}),delete v[i],a=(0,f.Z)((0,f.Z)({},a),(o={},(0,s.Z)(o,"".concat(m,"-").concat(i,"-").concat(c.span),c.span!==void 0),(0,s.Z)(o,"".concat(m,"-").concat(i,"-order-").concat(c.order),c.order||c.order===0),(0,s.Z)(o,"".concat(m,"-").concat(i,"-offset-").concat(c.offset),c.offset||c.offset===0),(0,s.Z)(o,"".concat(m,"-").concat(i,"-push-").concat(c.push),c.push||c.push===0),(0,s.Z)(o,"".concat(m,"-").concat(i,"-pull-").concat(c.pull),c.pull||c.pull===0),(0,s.Z)(o,"".concat(m,"-rtl"),I==="rtl"),o))});var q=re()(m,(h={},(0,s.Z)(h,"".concat(m,"-").concat(G),G!==void 0),(0,s.Z)(h,"".concat(m,"-order-").concat(g),g),(0,s.Z)(h,"".concat(m,"-offset-").concat(W),W),(0,s.Z)(h,"".concat(m,"-push-").concat(L),L),(0,s.Z)(h,"".concat(m,"-pull-").concat(l),l),h),X,a),D={};if(r&&r[0]>0){var w=r[0]/2;D.paddingLeft=w,D.paddingRight=w}if(r&&r[1]>0&&!F){var $=r[1]/2;D.paddingTop=$,D.paddingBottom=$}return U&&(D.flex=Z(U),O===!1&&!D.minWidth&&(D.minWidth=0)),A.createElement("div",(0,f.Z)({},v,{style:(0,f.Z)((0,f.Z)({},D),k),className:q,ref:B}),K)});E.Z=N},92820:function(C,E,e){"use strict";var s=e(22122),f=e(96156),M=e(90484),T=e(28481),re=e(94184),A=e.n(re),p=e(67294),H=e(53124),se=e(98082),Z=e(24308),J=e(93355),N=e(99134),t=function(n,I){var _={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&I.indexOf(r)<0&&(_[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,r=Object.getOwnPropertySymbols(n);O<r.length;O++)I.indexOf(r[O])<0&&Object.prototype.propertyIsEnumerable.call(n,r[O])&&(_[r[O]]=n[r[O]]);return _},B=(0,J.b)("top","middle","bottom","stretch"),h=(0,J.b)("start","end","center","space-around","space-between","space-evenly"),u=p.forwardRef(function(n,I){var _,r=n.prefixCls,O=n.justify,F=n.align,ne=n.className,G=n.style,g=n.children,W=n.gutter,L=W===void 0?0:W,l=n.wrap,X=t(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),K=p.useContext(H.E_),U=K.getPrefixCls,k=K.direction,v=p.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),m=(0,T.Z)(v,2),a=m[0],q=m[1],D=(0,se.Z)(),w=p.useRef(L);p.useEffect(function(){var de=Z.ZP.subscribe(function(Y){var R=w.current||0;(!Array.isArray(R)&&(0,M.Z)(R)==="object"||Array.isArray(R)&&((0,M.Z)(R[0])==="object"||(0,M.Z)(R[1])==="object"))&&q(Y)});return function(){return Z.ZP.unsubscribe(de)}},[]);var $=function(){var Y=[void 0,void 0],R=Array.isArray(L)?L:[L,void 0];return R.forEach(function(Q,fe){if((0,M.Z)(Q)==="object")for(var ae=0;ae<Z.c4.length;ae++){var V=Z.c4[ae];if(a[V]&&Q[V]!==void 0){Y[fe]=Q[V];break}}else Y[fe]=Q}),Y},i=U("row",r),o=$(),c=A()(i,(_={},(0,f.Z)(_,"".concat(i,"-no-wrap"),l===!1),(0,f.Z)(_,"".concat(i,"-").concat(O),O),(0,f.Z)(_,"".concat(i,"-").concat(F),F),(0,f.Z)(_,"".concat(i,"-rtl"),k==="rtl"),_),ne),P={},ee=o[0]!=null&&o[0]>0?o[0]/-2:void 0,z=o[1]!=null&&o[1]>0?o[1]/-2:void 0;if(ee&&(P.marginLeft=ee,P.marginRight=ee),D){var oe=(0,T.Z)(o,2);P.rowGap=oe[1]}else z&&(P.marginTop=z,P.marginBottom=z);var le=(0,T.Z)(o,2),ue=le[0],te=le[1],ce=p.useMemo(function(){return{gutter:[ue,te],wrap:l,supportFlexGap:D}},[ue,te,l,D]);return p.createElement(N.Z.Provider,{value:ce},p.createElement("div",(0,s.Z)({},X,{className:c,style:(0,s.Z)((0,s.Z)({},P),G),ref:I}),g))});E.Z=u},6999:function(C,E,e){"use strict";var s=e(38663),f=e.n(s),M=e(80638),T=e.n(M)},71230:function(C,E,e){"use strict";var s=e(92820);E.Z=s.Z},13062:function(C,E,e){"use strict";var s=e(38663),f=e.n(s),M=e(6999)}}]);