????
Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/ |
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/4429.4e886750.chunk.js |
"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[1969,4429,6535],{3503:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(30226),o=n(35007),l=n(82210),a=n(13879),i=n(63923),s=n(22255),c=n(74232),d=n(99247),h=n(17739),u=n(40438);function g(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var l=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var i=n.split("(")[1].split(")")[0].split(",");l=parseInt(i[4],10),a=parseInt(i[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(l-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-l,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var p={enter:h.p0.enteringScreen,exit:h.p0.leavingScreen};const f=l.forwardRef((function(e,t){var n=e.children,h=e.direction,f=void 0===h?"down":h,m=e.in,y=e.onEnter,x=e.onEntered,v=e.onEntering,b=e.onExit,A=e.onExited,T=e.onExiting,C=e.style,j=e.timeout,w=void 0===j?p:j,N=e.TransitionComponent,k=void 0===N?s.Ay:N,S=(0,o.A)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),E=(0,d.A)(),z=l.useRef(null),B=l.useCallback((function(e){z.current=a.findDOMNode(e)}),[]),R=(0,c.A)(n.ref,B),I=(0,c.A)(R,t),Z=function(e){return function(t){e&&(void 0===t?e(z.current):e(z.current,t))}},$=Z((function(e,t){g(f,e),(0,u.q)(e),y&&y(e,t)})),D=Z((function(e,t){var n=(0,u.c)({timeout:w,style:C},{mode:"enter"});e.style.webkitTransition=E.transitions.create("-webkit-transform",(0,r.A)({},n,{easing:E.transitions.easing.easeOut})),e.style.transition=E.transitions.create("transform",(0,r.A)({},n,{easing:E.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",v&&v(e,t)})),P=Z(x),_=Z(T),K=Z((function(e){var t=(0,u.c)({timeout:w,style:C},{mode:"exit"});e.style.webkitTransition=E.transitions.create("-webkit-transform",(0,r.A)({},t,{easing:E.transitions.easing.sharp})),e.style.transition=E.transitions.create("transform",(0,r.A)({},t,{easing:E.transitions.easing.sharp})),g(f,e),b&&b(e)})),O=Z((function(e){e.style.webkitTransition="",e.style.transition="",A&&A(e)})),W=l.useCallback((function(){z.current&&g(f,z.current)}),[f]);return l.useEffect((function(){if(!m&&"down"!==f&&"right"!==f){var e=(0,i.A)((function(){z.current&&g(f,z.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[f,m]),l.useEffect((function(){m||W()}),[m,W]),l.createElement(k,(0,r.A)({nodeRef:z,onEnter:$,onEntered:P,onEntering:D,onExit:K,onExited:O,onExiting:_,appear:!0,in:m,timeout:w},S),(function(e,t){return l.cloneElement(n,(0,r.A)({ref:I,style:(0,r.A)({visibility:"exited"!==e||m?void 0:"hidden"},C,n.props.style)},t))}))}))},16651:(e,t,n)=>{n.r(t),n.d(t,{default:()=>u});n(54345);var r=n(82210),o=n(61278),l=n(35065),a=n(10782),i=n(14658),s=n(5338),c=n(6058);const d={NoCu:0,CungKy:0,TongTamUng:0,TruTamUng:0,NoLaiKiSau:0,ThanhTien:0,ThucNhan:0};function h(e){let{thang:t,nam:n,open:h,lstPhuCap:u}=e;const[g,p]=(0,r.useState)([]),[f,m]=(0,r.useState)(d),[y,x]=(0,r.useState)(null),v=(0,r.useCallback)((e=>{i.r2.postExtension("/GetJsonBangLuong",{Thang:t,Nam:n,DoiTuong:s._Enums_DoiTuongNumber.PhongBang,DuAnIds:[],OrganIds:[]}).then((e=>{p(e.ResultObj);const t={...d};e.ResultObj.forEach((e=>{e.Items.forEach((e=>{t.NoCu+=e.NoCu,t.CungKy+=e.CungKy,t.TongTamUng+=e.NoCu+e.CungKy,t.NoLaiKiSau+=e.NoCu+e.CungKy-e.TruTamUng,t.TruTamUng+=e.TruTamUng,t.ThanhTien+=e.ThanhTien,t.ThucNhan+=e.ThucNhan}))})),m(t);let n={};n=e.ResultObj.map((e=>e.Items.map((e=>e.PhuCaps)))).flat(3).filter((e=>!!e)).reduce(((e,t)=>{let n={...e};for(const[r,o]of Object.entries(t))n=n[r]?{...n,[r]:n[r]+o}:{...n,[r]:o};return n}),{}),x(n)})).catch((()=>{(0,l.a3)("Kh\xf4ng th\u1ec3 t\u1ea3i b\u1ea3ng l\u01b0\u01a1ng, vui l\xf2ng th\u1eed l\u1ea1i!")}))}),[n,t]),b=(0,r.useCallback)((e=>e.NoCu+e.CungKy-e.TruTamUng),[]);(0,r.useEffect)((()=>{h&&v()}),[h,v]);const A=(e,t)=>{let n="";return e.PhuCaps?(e.PhuCaps.forEach((e=>{for(const[r,o]of Object.entries(e))r===t.Id&&(n=o)})),n):n},T=(0,r.useCallback)(((e,t,n)=>{return(0,c.jsxs)("tr",{style:{height:"30px"},children:[(0,c.jsx)("td",{style:{textAlign:"center"},children:t+1}),(0,c.jsx)("td",{children:e.HoTen}),(0,c.jsx)("td",{style:{textAlign:"center"},children:(0,o.c_)(e.NoCu?e.NoCu:0)}),(0,c.jsx)("td",{style:{textAlign:"center"},children:(0,o.c_)(e.CungKy?e.CungKy:0)}),(0,c.jsx)("td",{style:{textAlign:"center"},children:(0,o.c_)((r=e,r.NoCu+r.CungKy))}),(0,c.jsx)("td",{style:{textAlign:"center"},children:e.TruTamUng?(0,o.c_)(e.TruTamUng):0}),(0,c.jsx)("td",{style:{textAlign:"center"},children:(0,o.c_)(b(e))}),(0,c.jsx)("td",{style:{textAlign:"center"},children:e.TNC?e.TNC:0}),(0,c.jsx)("td",{style:{textAlign:"center"},children:(0,o.c_)(e.DonGia?e.DonGia:0)}),(0,c.jsx)("td",{style:{textAlign:"center"},children:(0,o.c_)(e.ThanhTien?e.ThanhTien:0)}),u.map((t=>(0,c.jsx)("td",{style:{textAlign:"center"},children:(0,o.c_)(A(e,t))},t.Id))),(0,c.jsxs)("td",{style:{textAlign:"center",fontWeight:"700"},children:[" ",(0,o.c_)(e.ThucNhan?e.ThucNhan:0)]})]},`${n}.${t}`);var r}),[b,u]),C=r.useMemo((()=>(0,c.jsxs)(c.Fragment,{children:[g.length?g.map(((e,t)=>(0,c.jsxs)(r.Fragment,{children:[(0,c.jsx)("tr",{children:(0,c.jsx)("td",{colSpan:16,style:{background:"#f9ecce",fontWeight:"bold"},children:e.TenDoi})}),e.Items.map(((n,o)=>(0,c.jsx)(r.Fragment,{children:T(n,o,t,e)},n.BangLuongId)))]},e.DoiId))):(0,c.jsx)("tr",{children:(0,c.jsx)("td",{colSpan:16,children:(0,c.jsx)(a.A,{size:"sm"})})}),(0,c.jsxs)("tr",{style:{height:40},children:[(0,c.jsx)("td",{colSpan:2,style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:"T\u1ed5ng"}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(f.NoCu)}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(f.CungKy)}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(f.TongTamUng)}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(f.TruTamUng)}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(f.NoLaiKiSau)}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:" "}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:" "}),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(f.ThanhTien)}),u.map((e=>(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(y?y[e.Id]:0)},e.Id))),(0,c.jsx)("td",{style:{textAlign:"center",background:"#f9ecce",fontWeight:"bold"},children:(0,o.c_)(f.ThucNhan)})]})]})),[g,u,T,y,f]);return(0,c.jsx)("div",{className:"form-tao-bang-luong-nhan-vien",children:(0,c.jsx)("div",{children:(0,c.jsxs)("table",{children:[(0,c.jsx)("thead",{style:{height:"30px"},children:(0,c.jsxs)("tr",{style:{background:"#006FCA"},children:[(0,c.jsx)("th",{className:"th-table",style:{width:"2%",textAlign:"center"},children:"STT"}),(0,c.jsx)("th",{className:"th-table",style:{width:"13%"},children:"H\u1ecd v\xe0 t\xean"}),(0,c.jsx)("th",{className:"th-table",children:"N\u1ee3 c\u0169"}),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center",width:"13%"},children:"T\u1ea1m \u1ee9ng trong k\xec"}),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:"T\u1ed5ng t\u1ea1m \u1ee9ng"}),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:"Tr\u1eeb t\u1ea1m \u1ee9ng"}),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:"N\u1ee3 l\u1ea1i k\xec sau"}),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:"TNC"}),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:"\u0110\u01a1n gi\xe1"}),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:"Th\xe0nh ti\u1ec1n"}),u.map((e=>(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:e.Name},e.Id))),(0,c.jsx)("th",{className:"th-table",style:{textAlign:"center"},children:"Th\u1ef1c nh\u1eadn"})]})}),(0,c.jsx)("tbody",{children:C})]})})})}const u=(0,r.memo)(h)},23347:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(30226),o=n(35007),l=n(82210),a=n(30628),i=n(86953),s=n(57534),c=l.forwardRef((function(e,t){var n=e.classes,i=e.className,c=e.color,d=void 0===c?"inherit":c,h=e.component,u=void 0===h?"span":h,g=e.fontSize,p=void 0===g?"default":g,f=(0,o.A)(e,["classes","className","color","component","fontSize"]);return l.createElement(u,(0,r.A)({className:(0,a.A)("material-icons",n.root,i,"inherit"!==d&&n["color".concat((0,s.A)(d))],"default"!==p&&n["fontSize".concat((0,s.A)(p))]),"aria-hidden":!0,ref:t},f))}));c.muiName="Icon";const d=(0,i.A)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(c)},29829:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(80028),o=(n(82210),n(6058));const l=function(e){let{occurrences:t=1,width:n,height:l=5}=e;return(0,o.jsx)("div",{children:Array.from(new Array(t).keys()).map((e=>(0,o.jsx)(r.A,{variant:"text",width:n||null,height:l},e)))})}},31142:(e,t,n)=>{n.d(t,{A:()=>i});n(82210);var r=n(65591),o=n(80226),l=n(63899),a=n(6058);function i(e){const{renderCustom:t,renderButton:n,children:i,title:s,onClose:c,open:d,style:h,className:u}=e;return(0,a.jsxs)(r.A,{open:d,onClose:c,style:h,className:u,children:[(0,a.jsx)(o.A,{renderCustom:t,renderButton:n,title:s,onClose:c}),(0,a.jsx)(l.A,{children:i})]})}},33851:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(30226),o=n(92965),l=n(82210),a=n(71723),i=n.n(a),s=n(88323),c=n.n(s),d=n(5168),h=["className","cssModule","color","body","inverse","outline","tag","innerRef"],u={tag:d.Wx,inverse:i().bool,color:i().string,body:i().bool,outline:i().bool,className:i().string,cssModule:i().object,innerRef:i().oneOfType([i().object,i().string,i().func])},g=function(e){var t=e.className,n=e.cssModule,a=e.color,i=e.body,s=e.inverse,u=e.outline,g=e.tag,p=e.innerRef,f=(0,o.A)(e,h),m=(0,d.qO)(c()(t,"card",!!s&&"text-white",!!i&&"card-body",!!a&&(u?"border":"bg")+"-"+a),n);return l.createElement(g,(0,r.A)({},f,{className:m,ref:p}))};g.propTypes=u,g.defaultProps={tag:"div"};const p=g},34315:(e,t,n)=>{n.d(t,{E:()=>o.A,o:()=>r.A});var r=n(63232),o=n(31142)},34581:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(30226),o=n(35007),l=n(82210),a=n(30628),i=n(86953),s=n(57534),c=n(38423),d=l.forwardRef((function(e,t){var n=e.classes,i=e.className,d=e.color,h=void 0===d?"primary":d,u=e.position,g=void 0===u?"fixed":u,p=(0,o.A)(e,["classes","className","color","position"]);return l.createElement(c.A,(0,r.A)({square:!0,component:"header",elevation:4,className:(0,a.A)(n.root,n["position".concat((0,s.A)(g))],n["color".concat((0,s.A)(h))],i,"fixed"===g&&"mui-fixed"),ref:t},p))}));const h=(0,i.A)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(d)},46535:(e,t,n)=>{n.r(t),n.d(t,{exportExcelBangLuongPhongBan:()=>i});var r=n(61278),o=n(49211),l=n(76638);const a={font:{bold:!0,size:12}},i=(e,t,n,i)=>{(0,r.ox)();const s=[{value:"STT"},{value:"H\u1ecd v\xe0 t\xean"},{value:"N\u1ee3 c\u0169"},{value:"T\u1ea1m \u1ee9ng trong k\xec"},{value:"T\u1ed5ng t\u1ea1m \u1ee9ng"},{value:"Tr\u1eeb t\u1ea1m \u1ee9ng"},{value:"N\u1ee3 l\u1ea1i k\xec sau"},{value:"TNC"},{value:"\u0110\u01a1n gi\xe1"},{value:"Th\xe0nh ti\u1ec1n"}];for(let r=0;r<t.length;r++)s.push({value:t[r].Name});s.push({value:"Th\u1ef1c nh\u1eadn"});const c=new o.A,d=c.addWorksheet("Thanh To\xe1n L\u01b0\u01a1ng");d.renderArrayRowGroup([1,1],{style:l.fY,rows:[[{value:"C\xf4ng Ty TNHH X\xe2y d\u1ef1ng V\u1eadn t\u1ea3i T\xe2n Ph\xe1t",colspan:13}],[{value:"\u0110\u1ecba ch\u1ec9: 276/63 Ho\xe0ng V\u0103n Th\u1ee5 - Tp.Quy Nh\u01a1n - t\u1ec9nh B\xecnh \u0110\u1ecbnh S\u1ed1 phi\u1ebfu: ...................",colspan:13}],[{value:`\u0110T: 0256.3524.789 Ng\xe0y /${n}/${i}`,colspan:13}]]}),d.renderArrayRowGroup([5,1],{style:l.GN,rows:[[{value:`B\u1ea2NG THANH TO\xc1N L\u01af\u01a0NG TH\xc1NG ${n} N\u0102M ${i}`,colspan:11+t.length}]]}),d.renderArrayRowGroup([7,1],{style:{...l.vw,...l.li,verticalAlign:"middle",alignment:{horizontal:"center"},width:35},rows:[s]}),d.worksheet.getColumn(2).width=35;for(let r=3;r<=11+t.length;r++)d.worksheet.getColumn(r).width=13;const h=(e,t)=>{let n=0,r=0;return e&&0!==e&&(n=e),t&&0!==t&&(r=t),n+r},u=(e,t,n)=>{let r=0,o=0,l=0;return e&&0!==e&&(r=e),t&&0!==t&&(o=t),n&&0!==n&&(l=n),r+o-l};let g=0,p=0,f=0,m=0,y=0,x=0,v=0,b=0,A=0;const T=e=>{const n=[],o=[];return e.forEach(((e,o)=>{var a;if(g+=e.ThanhTien,p+=e.ThucNhan,f+=e.NoCu,m+=e.CungKy,v+=h(e.NoCu,e.CungKy),y+=e.TruTamUng,x+=u(e.NoCu,e.CungKy,e.TruTamUng),n.push([{value:o+1,style:l.Zz},{value:e.HoTen},{value:e.NoCu&&0!==e.NoCu?(0,r.ZV)(e.NoCu):"",style:l.Zz},{value:e.CungKy&&0!==e.CungKy?(0,r.ZV)(e.CungKy):"",style:l.Zz},{value:0!==h(e.NoCu,e.CungKy)?(0,r.ZV)(h(e.NoCu,e.CungKy)):"",style:l.Zz},{value:0!==e.TruTamUng?(0,r.ZV)(e.TruTamUng):"",style:l.Zz},{value:0!==u(e.NoCu,e.CungKy,e.TruTamUng)?(0,r.ZV)(u(e.NoCu,e.CungKy,e.TruTamUng)):"",style:l.Zz},{value:e.TNC.toString(),style:l.Zz},{value:(0,r.ZV)(e.DonGia),style:l.Zz},{value:(0,r.ZV)(e.ThanhTien),style:l.Zz}]),null!==e&&void 0!==e&&null!==(a=e.PhuCaps)&&void 0!==a&&a.length){let a=null;for(const t of null===e||void 0===e?void 0:e.PhuCaps)a={...a,...t};t.forEach((e=>{"94c2bee5-9865-4025-9a18-02008b31fddb"===e.Id&&(A+=a[e.Id]||0),"197aec10-e540-479b-876e-12eb492a81e0"===e.Id&&(b+=a[e.Id]||0),n[o].push({value:0!==a[e.Id]?(0,r.ZV)(a[e.Id]):"",style:l.Zz})}))}else t.forEach((e=>{n[o].push({value:""})}));n[o].push({value:e.ThucNhan&&0!==e.ThucNhan?(0,r.ZV)(e.ThucNhan):"",style:l.Zz})})),o.push([{value:""},{value:"T\u1ed4NG C\u1ed8NG",style:a},{value:(0,r.ZV)(f),style:{...l.Zz,...a}},{value:(0,r.ZV)(m),style:{...l.Zz,...a}},{value:(0,r.ZV)(v),style:{...l.Zz,...a}},{value:(0,r.ZV)(y),style:{...l.Zz,...a}},{value:(0,r.ZV)(x),style:{...l.Zz,...a}},{value:""},{value:""},{value:(0,r.ZV)(g),style:{...l.Zz,...a}}]),o[0].push({value:(0,r.ZV)(A),style:{...l.Zz,...a}}),o[0].push({value:(0,r.ZV)(b),style:{...l.Zz,...a}}),o[0].push({value:(0,r.ZV)(p),style:{...l.Zz,...a}}),n.concat(o)},C=(e,t)=>{if(0===t)return 0;return Array.from(new Array(t).keys()).reduce(((t,n)=>t+e[n].Items.length+1),1)-1};e.ResultObj.forEach(((e,n,r)=>{d.renderArrayRowGroup([8+C(r,n),1],{style:l.vw,rows:[[{value:"",style:{}},{value:e.TenDoi,colspan:10+t.length,style:{font:{bold:!0,size:12}}}],...T(e.Items)]})})),d.worksheet.getCell(2,8).fontSize=18,c.download(`BangLuongNVPhongBanThang${n}/${i}.xlsx`),(0,r.kW)()}},49211:(e,t,n)=>{n.d(t,{A:()=>x});var r=n(79837),o=n(21307),l=n(23683),a=n(91343),i=n(12020),s=n.n(i),c=n(76638);function d(e){if(!e)return"";if(--e<c.YI.length)return c.YI[e];const t=e%c.YI.length;return`${d(Math.floor(e/c.YI.length))}${c.YI[t]}`}function h(e){if("string"==typeof e)return e;if(Array.isArray(e)&&e.length>1){const[t,n,r,o]=e;return r&&o?d(n)+t+":"+d(r)+o:d(n)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var u=(0,a.A)("ws"),g=(0,a.A)("getCellValue"),p=(0,a.A)("renderRow"),f=(0,a.A)("renderGroup");class m{constructor(e){return Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:e=>"[object Object]"===Object.prototype.toString.call(e)&&Object.prototype.hasOwnProperty.call(e,"value")?e.value:e||null}),Object.defineProperty(this,p,{writable:!0,value:(e,t)=>{let[n,r=1]=e;const{cells:o,style:a,height:i}=t;if(!o)return;const d=(0,l.A)(this,u)[u].getRow(n);o.forEach(((e,t)=>{const o=d.getCell(r+t);o.isMerged||(o.value=(0,l.A)(this,g)[g](e),o.style=s()({},c.eK,a,null===e||void 0===e?void 0:e.style),((null===e||void 0===e?void 0:e.colspan)>1||(null===e||void 0===e?void 0:e.rowspan)>1)&&(0,l.A)(this,u)[u].mergeCells(n,r+t,n+((null===e||void 0===e?void 0:e.rowspan)-1||0),r+t+((null===e||void 0===e?void 0:e.colspan)-1||0)))})),i&&((0,l.A)(this,u)[u].getRow(n).height=i)}}),Object.defineProperty(this,f,{writable:!0,value:(e,t)=>{let{keys:n,data:r,columns:o,style:a}=t;const i=null===n||void 0===n?void 0:n.shift(),d=o.find((e=>e.key===i));let{col:p,row:m}=(0,l.A)(this,u)[u].getCell(h(e)).fullAddress;if(i&&d){const e=Array.from(new Set(r.map(((e,t)=>"undefined"!==typeof d.render?d.render(e,t):e[i]))));for(let t of e){const e=(0,l.A)(this,u)[u].getCell(m,+p,m,+p+o.filter((e=>!e.group)).length);e.value=t||null,e.style=s()({},c.eK,a,{font:{bold:!0}}),(0,l.A)(this,u)[u].mergeCells(e.address),m=(0,l.A)(this,f)[f]([+m+1,+p],{keys:n,columns:o,data:r.filter((e=>e[i]===t))})}}else o.filter((e=>!e.group)).forEach(((e,t)=>{r="function"===typeof r?r():r,r.forEach(((n,r)=>{const o="undefined"!==typeof e.render?e.render(n,r):n[e.key];(0,l.A)(this,u)[u].getCell(+m+r,+p+t).value=(0,l.A)(this,g)[g](o),(0,l.A)(this,u)[u].getCell(+m+r,+p+t).style=s()({},c.eK,a,null===e||void 0===e?void 0:e.style,null===o||void 0===o?void 0:o.style)})),(0,l.A)(this,u)[u].getColumn(+p+t).width="number"===typeof e.width?e.width:10})),m+=r.length;return m}}),(0,l.A)(this,u)[u]=e,this}get worksheet(){return(0,l.A)(this,u)[u]}renderArrayRowGroup(e,t){let{rows:n,style:r}=t;const{col:o,row:a}=(0,l.A)(this,u)[u].getCell(h(e)).fullAddress;("function"===typeof n?n():n).forEach(((e,t)=>{e&&(0,l.A)(this,p)[p]([a+t,o],{r:a+t,c:o,style:s()({},r,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:n,data:r,header:o,totalRow:a,rowNum:i,headerStyle:c,cellStyle:d,onEndRow:g}=t;const{col:p,row:m}=(0,l.A)(this,u)[u].getCell(h(e)).fullAddress;n="function"===typeof n?n():n,i&&n.unshift({name:"STT",render:(e,t)=>t+1,colStyle:{alignment:{horizontal:"center"}},width:5}),o||(o=[{cells:n.filter((e=>!e.group)).map((e=>({value:e.name,style:s()({},e.cellStyle)}))),style:c}]),this.renderArrayRowGroup(e,{rows:o,style:c});const y=n.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),x=(0,l.A)(this,f)[f]([+m+o.length,+p],{keys:y,data:r,columns:n,style:d});g&&g(x-1)}}class y extends r.Workbook{static create(){const e=new r.Workbook;return e.creator="GDT QLCB",e.lastModifiedBy="GDT QLCB",e.created=new Date,e.modified=new Date,e.lastPrinted=new Date,e}async download(e){const t=await this.xlsx.writeBuffer();(0,o.saveAs)(new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e)}addWorksheet(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Sheet1",t=arguments.length>1?arguments[1]:void 0;return new m(super.addWorksheet(e,t))}getWorksheet(e){return new m(super.getWorksheet(e))}}const x=y},54163:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(30226),o=n(35007),l=n(15685),a=n(82210),i=n(30628),s=n(86953),c=a.forwardRef((function(e,t){var n=e.classes,l=e.className,s=e.component,c=void 0===s?"div":s,d=e.disableGutters,h=void 0!==d&&d,u=e.variant,g=void 0===u?"regular":u,p=(0,o.A)(e,["classes","className","component","disableGutters","variant"]);return a.createElement(c,(0,r.A)({className:(0,i.A)(n.root,n[g],l,!h&&n.gutters),ref:t},p))}));const d=(0,s.A)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,l.A)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(c)},57011:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(30226),o=n(35007),l=n(82210),a=n(30628),i=n(86953),s=l.forwardRef((function(e,t){var n=e.disableSpacing,i=void 0!==n&&n,s=e.classes,c=e.className,d=(0,o.A)(e,["disableSpacing","classes","className"]);return l.createElement("div",(0,r.A)({className:(0,a.A)(s.root,c,!i&&s.spacing),ref:t},d))}));const c=(0,i.A)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(s)},59269:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(98774);function o(e){return(0,r.A)(e)}},59701:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(30226),o=n(92965),l=n(82210),a=n(71723),i=n.n(a),s=n(88323),c=n.n(s),d=n(5168),h=["className","cssModule","size","bordered","borderless","striped","dark","hover","responsive","tag","responsiveTag","innerRef"],u={className:i().string,cssModule:i().object,size:i().string,bordered:i().bool,borderless:i().bool,striped:i().bool,dark:i().bool,hover:i().bool,responsive:i().oneOfType([i().bool,i().string]),tag:d.Wx,responsiveTag:d.Wx,innerRef:i().oneOfType([i().func,i().string,i().object])},g=function(e){var t=e.className,n=e.cssModule,a=e.size,i=e.bordered,s=e.borderless,u=e.striped,g=e.dark,p=e.hover,f=e.responsive,m=e.tag,y=e.responsiveTag,x=e.innerRef,v=(0,o.A)(e,h),b=(0,d.qO)(c()(t,"table",!!a&&"table-"+a,!!i&&"table-bordered",!!s&&"table-borderless",!!u&&"table-striped",!!g&&"table-dark",!!p&&"table-hover"),n),A=l.createElement(m,(0,r.A)({},v,{ref:x,className:b}));if(f){var T=(0,d.qO)(!0===f?"table-responsive":"table-responsive-"+f,n);return l.createElement(y,{className:T},A)}return A};g.propTypes=u,g.defaultProps={tag:"table",responsiveTag:"div"};const p=g},61325:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(82210),o=(n(54345),n(59701)),l=n(46881),a=n(33851),i=n(4191),s=n(35065),c=n(27894),d=n(79209),h=n(34315),u=n(10782),g=n(14658),p=n(5338),f=n(33257),m=n(46535),y=n(29829),x=n(16651),v=n(6058);const b=function(e){const[t,n]=(0,r.useState)((new Date).getMonth()+1),[b,A]=(0,r.useState)((new Date).getFullYear()),[T,C]=(0,r.useState)([]),[j,w]=(0,r.useState)([]),[N,k]=(0,r.useState)(!1),[S,E]=(0,r.useState)([]),[z,B]=(0,r.useState)(!1),[R,I]=(0,r.useState)(!1),[Z,$]=(0,r.useState)(!1),D=(0,r.useCallback)((()=>{g.jC.getAllParam("?$filter=Status eq true").then((e=>E(e.value)))}),[]),P=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!t||!b)return(0,s.AB)("B\u1ea1n ch\u01b0a ch\u1ecdn th\u1eddi gian!");const n=`$filter=Thang eq ${t} and Nam eq ${b} and DuAnId eq null and IsComplete eq true and Organization/DoiTuong eq '${p._Enums_DoiTuong.PhongBang}'`;B(!0),g.r2.getAll(`?${n}`).then((e=>{let{value:t}=e;C(t),B(!1),I(!1)})).catch((()=>(B(!1),I(!0),3===e?(0,s.a3)("Ch\u01b0a th\u1ec3 t\u1ea3i \u0111\u01b0\u1ee3c b\u1ea3ng l\u01b0\u01a1ng. Vui l\xf2ng th\u1eed l\u1ea1i!"):P(e+1))))}),[b,t]),_=(0,r.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!t||!b)return(0,s.AB)("B\u1ea1n ch\u01b0a ch\u1ecdn th\u1eddi gian!");if(1===t)return;const n=`$filter=Thang gt ${t} and Nam eq ${b} and DuAnId eq null and IsComplete eq true and Organization/DoiTuong eq '${p._Enums_DoiTuong.NhanVien}'`;g.r2.getAll(`?${n}`).then((e=>{let{value:t}=e;return w(t)})).catch((()=>3===e?(0,s.a3)("L\u1ed7i...!"):_(e+1)))}),[b,t]);return(0,r.useEffect)((()=>{P(),D(),_()}),[D,P,_]),(0,v.jsxs)("div",{className:"index-bang-luong-nhan-vien",children:[(0,v.jsx)("div",{style:{display:"flex",paddingBottom:10},children:(0,v.jsx)("div",{style:{width:"10%",marginRight:"10px"},children:(0,v.jsx)(d.BR,{value:{year:b,month:t},valueType:"object",onChange:e=>(e=>{let{year:t,month:r}=e;n(r),A(t)})(e)})})}),(0,v.jsx)("div",{className:"tableFixHead",children:(0,v.jsxs)(o.A,{bordered:!0,hover:!0,size:"sm",children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{className:"header-table",children:[(0,v.jsx)("th",{style:{padding:"10px"},children:"B\u1ea3ng l\u01b0\u01a1ng"}),(0,v.jsx)("th",{style:{width:"30%",verticalAlign:"middle"},children:"Thao t\xe1c"})]})}),(0,v.jsx)("tbody",{children:z?(0,v.jsx)("tr",{children:(0,v.jsx)("td",{colSpan:2,children:(0,v.jsx)(y.A,{occurrences:5,height:20})})}):(0,v.jsx)(v.Fragment,{children:R?(0,v.jsx)("tr",{children:(0,v.jsx)("td",{colSpan:2,style:{textAlign:"center"},children:(0,v.jsx)(l.A,{color:"primary",onClick:P,children:"T\u1ea3i l\u1ea1i"})})}):(0,v.jsx)(v.Fragment,{children:T.length>0?(0,v.jsxs)("tr",{children:[(0,v.jsx)("td",{style:{verticalAlign:"middle"},children:`B\u1ea3ng l\u01b0\u01a1ng ph\xf2ng ban th\xe1ng ${t} n\u0103m ${b}`}),(0,v.jsx)("td",{style:{display:"flex"},children:(0,v.jsxs)("div",{style:{marginLeft:"7px",padding:"5px"},children:[(0,v.jsx)(c.a2,{style:{marginRight:"7px"},icon:"eye",onClick:()=>{$(!0)},children:" Xem "}),(0,v.jsx)(c.a2,{style:{marginRight:"7px"},icon:"download",onClick:async()=>{const e=await g.r2.postExtension("/GetJsonBangLuong",{Thang:t,Nam:b,DoiTuong:p._Enums_DoiTuongNumber.PhongBang,DuAnIds:[],OrganIds:[]});if(null===e||void 0===e||!e.IsSuccessed)return(0,s.a3)("Xu\u1ea5t b\u1ea3ng l\u01b0\u01a1ng th\u1ea5t b\u1ea1i. Vui l\xf2ng th\u1eed l\u1ea1i!");(0,m.exportExcelBangLuongPhongBan)(e,S,t,b)},children:" T\u1ea3i file "}),(0,v.jsx)(c.a2,{icon:"trash",style:{background:"red",border:0},onClick:()=>(0,s.A1)(`B\u1ea1n ch\u1eafc ch\u1eafn mu\u1ed1n x\xf3a b\u1ea3ng l\u01b0\u01a1ng th\xe1ng ${t} n\u0103m ${b}`).then((e=>{e&&e.isConfirmed&&g.r2.delete(t,b,p._Enums_DoiTuongNumber.PhongBang).then((()=>{P(),(0,s.nw)(`X\xf3a th\xe0nh c\xf4ng b\u1ea3ng l\u01b0\u01a1ng th\xe0nh ${t} n\u0103m ${b}`)}))})),children:" X\xf3a "})]})})]}):(0,v.jsx)("tr",{children:(0,v.jsxs)("td",{colSpan:3,style:{textAlign:"center"},children:[(0,v.jsx)(c.UN,{onClick:()=>{t?b?0!==T.length?(0,s.AB)(`B\u1ea3ng l\u01b0\u01a1ng th\xe1ng ${t} n\u0103m ${b} \u0111\xe3 \u0111\u01b0\u1ee3c t\u1ea1o!`):j.length>0&&1!==t?(0,s.AB)("Kh\xf4ng \u0111\u01b0\u1ee3c t\u1ea1o! \u0110\xe3 t\u1ed3n t\u1ea1i b\u1ea3ng l\u01b0\u01a1ng c\u1ee7a th\xe1ng sau."):k(!0):(0,s.AB)("Ch\u01b0a c\xf3 n\u0103m \u0111\u01b0\u1ee3c ch\u1ecdn!"):(0,s.AB)("Ch\u01b0a c\xf3 th\xe1ng \u0111\u01b0\u1ee3c ch\u1ecdn!")},children:"T\u1ea1o b\u1ea3ng l\u01b0\u01a1ng"}),(0,v.jsx)(u.A,{size:"sm"})]})})})})})]})}),N&&(0,v.jsx)(h.E,{style:{zIndex:1049},title:`B\u1ea3ng thanh to\xe1n l\u01b0\u01a1ng nh\xe2n vi\xean c\xf4ng ty th\xe1ng ${t} n\u0103m ${b}`,open:N,onClose:()=>{k(!1)},children:(0,v.jsx)(a.A,{children:(0,v.jsx)(i.A,{style:{padding:0},children:(0,v.jsx)(f.default,{thang:t,nam:b,open:N,lstPhuCap:S,reload:P,onCloseModal:()=>{k(!1)}})})})}),Z&&(0,v.jsx)(h.E,{style:{zIndex:1049},title:`B\u1ea3ng thanh to\xe1n l\u01b0\u01a1ng nh\xe2n vi\xean c\xf4ng ty th\xe1ng ${t} n\u0103m ${b}`,open:Z,onClose:()=>{$(!1)},children:(0,v.jsx)(a.A,{children:(0,v.jsx)(i.A,{style:{padding:0},children:(0,v.jsx)(x.default,{thang:t,nam:b,open:Z,lstPhuCap:S,onCloseModal:()=>{k(!1)}})})})})]})}},63232:(e,t,n)=>{n.d(t,{A:()=>m});n(82210);var r=n(86953),o=n(51959),l=n(71516),a=n(60803),i=n(34211),s=n(57011),c=n(75331),d=n(23347),h=n(36467),u=n(6058);const g=(0,r.A)((e=>({root:{margin:0,backgroundColor:"#006fca",color:"#FFF",padding:"6px 12px"},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500],padding:"0 6px"}})))((e=>{const{children:t,classes:n,onClose:r}=e;return(0,u.jsxs)(a.A,{disableTypography:!0,className:n.root,children:[(0,u.jsx)(h.A,{variant:"subtitle2",children:t}),r?(0,u.jsx)(c.A,{"aria-label":"close",className:n.closeButton,onClick:r,children:(0,u.jsx)(d.A,{children:"close"})}):null]})})),p=(0,r.A)((e=>({root:{padding:e.spacing(2)}})))(i.A),f=(0,r.A)((e=>({root:{margin:0,padding:e.spacing(1),marginLeft:0}})))(s.A);function m(e){const{title:t,open:n,children:r,renderFooter:a,handleClose:i,maxWidth:s}=e,c=(0,o.A)({root:{overflowY:"unset"}})();return(0,u.jsxs)(l.A,{scroll:"body",className:c.root,onClose:i,open:n,fullWidth:!0,maxWidth:s,children:[(0,u.jsx)(g,{onClose:i,children:t}),(0,u.jsx)(p,{dividers:!0,children:r}),a&&(0,u.jsxs)(f,{children:[a," "]})]})}m.defaultProps={open:!1}},63899:(e,t,n)=>{n.d(t,{A:()=>l});n(82210);var r=n(34211),o=n(6058);function l(e){return(0,o.jsx)(r.A,{style:{backgroundColor:"#eee",paddingTop:20},children:e.children})}},65591:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(82210),o=n(71516),l=n(3503),a=n(6058);const i=r.forwardRef(((e,t)=>(0,a.jsx)(l.A,{direction:"up",ref:t,...e})));function s(e){const{children:t,onClose:n,open:r,style:l,className:s}=e;return(0,a.jsx)(o.A,{className:s,style:l,disableEnforceFocus:!0,fullScreen:!0,open:r,onClose:n,TransitionComponent:i,children:t})}},76638:(e,t,n)=>{n.d(t,{GN:()=>i,YI:()=>s,Zz:()=>h,eK:()=>l,eS:()=>u,fY:()=>c,li:()=>d,vw:()=>a});var r=n(12020),o=n.n(r);Array.of(" kh\xf4ng "," m\u1ed9t "," hai "," ba "," b\u1ed1n "," n\u0103m "," s\xe1u "," b\u1ea3y "," t\xe1m "," ch\xedn "),Array.of(""," ngh\xecn"," tri\u1ec7u"," t\u1ef7"," ngh\xecn t\u1ef7"," tri\u1ec7u t\u1ef7");const l={numFmt:"#,##0",font:{name:"Times New Roman",family:4,size:12,color:{argb:"FF000000"}},alignment:{vertical:"middle",wrapText:!0},fill:{type:"pattern",pattern:"none"}},a={border:{top:{style:"thin",color:{argb:"FF808080"}},left:{style:"thin",color:{argb:"FF808080"}},bottom:{style:"thin",color:{argb:"FF808080"}},right:{style:"thin",color:{argb:"FF808080"}}}},i=o()({},{font:{bold:!0,size:12},alignment:{horizontal:"center",wrapText:!0}}),s="ABCDEFGHIJKLMNOPQRSTUVWXYZ",c={font:{bold:!0,size:10}},d={background:"#F2F2F2"},h={alignment:{horizontal:"center",vertical:"middle",wrapText:!0}},u={alignment:{horizontal:"right",vertical:"middle",wrapText:!0}}},80028:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(30226),o=n(35007),l=n(82210),a=n(30628),i=n(98910),s=n(86953),c=l.forwardRef((function(e,t){var n=e.animation,i=void 0===n?"pulse":n,s=e.classes,c=e.className,d=e.component,h=void 0===d?"span":d,u=e.height,g=e.variant,p=void 0===g?"text":g,f=e.width,m=(0,o.A)(e,["animation","classes","className","component","height","variant","width"]),y=Boolean(m.children);return l.createElement(h,(0,r.A)({ref:t,className:(0,a.A)(s.root,s[p],c,y&&[s.withChildren,!f&&s.fitContent,!u&&s.heightAuto],!1!==i&&s[i])},m,{style:(0,r.A)({width:f,height:u},m.style)}))}));const d=(0,s.A)((function(e){return{root:{display:"block",backgroundColor:(0,i.Rv)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(c)},80226:(e,t,n)=>{n.d(t,{A:()=>h});n(82210);var r=n(51959),o=n(59269),l=n(34581),a=n(54163),i=n(36467),s=n(54579),c=n(6058);const d=(0,r.A)((e=>(0,o.A)({appBar:{position:"relative",backgroundColor:"#006fca"},toolbar:{minHeight:40},title:{marginLeft:e.spacing(2),flex:1}})));function h(e){const t=d(),{renderCustom:n,renderButton:r,title:o,onClose:h}=e;return(0,c.jsx)(l.A,{className:t.appBar,children:(0,c.jsxs)(a.A,{className:t.toolbar,variant:"dense",children:[n,(0,c.jsx)(i.A,{variant:"h6",className:t.title,children:o}),r,(0,c.jsx)(s.A,{onClick:h,children:"\u0110\xf3ng"})]})})}},98774:(e,t,n)=>{function r(e){return e}n.d(t,{A:()=>r})}}]); //# sourceMappingURL=4429.4e886750.chunk.js.map