Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

p__order__cost-of-sales.5db43660.async.js 12 KiB

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