25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
9.9 KiB

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