????

Your IP : 216.73.216.152


Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/
Upload File :
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/5331.ac8450fe.chunk.js

"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[2568,5331],{55331:(e,s,r)=>{r.r(s),r.d(s,{default:()=>m});var n=r(82210),a=r(33851),t=r(85858),l=r(47117),d=r(4191),o=r(59701),i=r(14658),c=r(73747),h=r(75331),u=(r(72568),r(79209)),g=r(61278),b=r(6058);function m(e){let{IdDuAn:s}=e;const[r,m]=(0,n.useState)((new Date).getMonth()+1),[p,x]=(0,n.useState)((new Date).getFullYear()),[j,v]=(0,n.useState)(null),[f,N]=(0,n.useState)([]),T=(0,n.useCallback)((async()=>{let e={Thang:r,DuAnId:s,Top:10};const{ResultObj:n}=await i.r2.groupLuongTheoDoi(e);v(n),N(n)}),[s,r]);(0,n.useEffect)((()=>{s&&T()}),[s,T]);const w=(0,n.useMemo)((()=>(0,b.jsx)(b.Fragment,{children:f&&f.map(((e,s)=>(0,b.jsx)(n.Fragment,{children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{children:e.OrganName}),(0,b.jsx)("td",{style:{textAlign:"center"},children:e.Thang}),(0,b.jsx)("td",{style:{textAlign:"end"},children:(0,g.vv)(e.TongLuong)})]})})))})),[f]),y=(0,n.useCallback)((e=>{let{year:s,month:r}=e;m(r),x(s)}),[]);return(0,b.jsx)("div",{children:(0,b.jsxs)(a.A,{children:[(0,b.jsx)(t.A,{className:"headBangLuong",children:(0,b.jsxs)(l.A,{className:"rowHead align-items-center w-100 pl-3",children:[(0,b.jsx)("div",{className:"w-25",children:"Kho\u1ea3n chi"}),(0,b.jsxs)("div",{className:"w-75 d-flex justify-content-end",children:[(0,b.jsx)(u.BR,{placeholder:"Ch\u1ecdn th\xe1ng",value:{month:r,year:p},valueType:"object",onChange:e=>y(e)}),(0,b.jsx)(c.A,{className:"divSearch",style:{color:"white",width:260},placeholder:"T\xecm ki\u1ebfm",onChange:e=>(e=>{let s=(0,g.zS)(e.target.value).toLowerCase().trim();const r=j.reduce(((e,r)=>{const n=r.children&&r.children.filter((e=>(0,g.zS)(e.OrganName).toLowerCase().trim().includes(s)));return n&&n.length?e.push({...r,children:n}):(0,g.zS)(r.OrganName).toLowerCase().trim().includes(s)&&e.push({...r,OrganName:r.OrganName}),e}),[]);N(r)})(e)}),(0,b.jsx)(h.A,{type:"submit",disabled:!0,"aria-label":"search",size:"small",style:{color:"white"},children:(0,b.jsx)("i",{className:"fas fa-search"})})]})]})}),(0,b.jsx)(d.A,{style:{padding:0},children:(0,b.jsxs)(o.A,{className:"tableLuong",size:"sm",bordered:!0,striped:!0,children:[(0,b.jsxs)("thead",{children:[(0,b.jsx)("th",{children:"T\xean \u0111\u1ed9i"}),(0,b.jsx)("th",{children:"Th\xe1ng"}),(0,b.jsx)("th",{children:"T\u1ed5ng chi l\u01b0\u01a1ng"})]}),(0,b.jsx)("tbody",{children:w})]})})]})})}},59701:(e,s,r)=>{r.d(s,{A:()=>b});var n=r(30226),a=r(92965),t=r(82210),l=r(71723),d=r.n(l),o=r(88323),i=r.n(o),c=r(5168),h=["className","cssModule","size","bordered","borderless","striped","dark","hover","responsive","tag","responsiveTag","innerRef"],u={className:d().string,cssModule:d().object,size:d().string,bordered:d().bool,borderless:d().bool,striped:d().bool,dark:d().bool,hover:d().bool,responsive:d().oneOfType([d().bool,d().string]),tag:c.Wx,responsiveTag:c.Wx,innerRef:d().oneOfType([d().func,d().string,d().object])},g=function(e){var s=e.className,r=e.cssModule,l=e.size,d=e.bordered,o=e.borderless,u=e.striped,g=e.dark,b=e.hover,m=e.responsive,p=e.tag,x=e.responsiveTag,j=e.innerRef,v=(0,a.A)(e,h),f=(0,c.qO)(i()(s,"table",!!l&&"table-"+l,!!d&&"table-bordered",!!o&&"table-borderless",!!u&&"table-striped",!!g&&"table-dark",!!b&&"table-hover"),r),N=t.createElement(p,(0,n.A)({},v,{ref:j,className:f}));if(m){var T=(0,c.qO)(!0===m?"table-responsive":"table-responsive-"+m,r);return t.createElement(x,{className:T},N)}return N};g.propTypes=u,g.defaultProps={tag:"table",responsiveTag:"div"};const b=g},72568:(e,s,r)=>{r.r(s),r.d(s,{default:()=>n});const n={}}}]);
//# sourceMappingURL=5331.ac8450fe.chunk.js.map