????
Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/ |
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/6808.12507ea6.chunk.js |
"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[5500,6808,7308],{10592:(e,t,n)=>{n.d(t,{zq:()=>s,Ty:()=>i,lG:()=>a});var l=n(7722);class o extends l.k{constructor(e){super("/Reports",e),this.getAll=e=>this.SearchAllAUTH(e,null,null,!0),this.addWithBatch=e=>this.InsertBatch("",e)}update(e,t){return this.edit(e,t)}}new class extends o{constructor(){super("/NhomDuAnDTOs")}};const i=new class extends o{constructor(){super("/ChiTietCongNos"),this.getDataCongNoTongHop=e=>this.GetAuthen("/GetCongNoTongHop?Nam="+e),this.GetCongNoVatLieuTheoDuAn=e=>this.PostAuthen("/GetCongNoVatLieuTheoDuAn",e),this.getDataChiTietCongNoCuaHang=(e,t,n)=>this.GetAuthen(`/ChiTietCongNoCuaHang?Nam=${e}&Thang=${t||0}&CuaHangId=${n}`),this.getDataCongNoDoiThueNgoai=e=>this.GetAuthen("/CongNoDoiThueNgoai?DotLuongId="+e),this.getDataTongHopCongNoCuaHang=e=>this.GetAuthen("/TongHopCongNoCuaHang?Nam="+e)}};const s=new class extends o{constructor(){super("/DuAnVatLieus"),this.getDataBangKeChiTiet=e=>this.PostAuthen("/BangKeChiTietVatLieu",e)}};const a=new class extends o{constructor(){super("/DuAns"),this.getKinhPhiCongTrinh=e=>this.GetAuthen(`/GetKinhPhiCongTrinh?DuAnId=${e}`),this.getLoiNhuan=e=>this.GetAuthen(`/ChotLaiAsync?key=${e}`)}}},10782:(e,t,n)=>{n.d(t,{A:()=>s});var l=n(82210),o=n(15517),i=n(6058);class s extends l.Component{render(){const{size:e,text:t}=this.props;let n=(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"text-center",children:(0,i.jsx)("i",{className:"far fa-folder-open"})}),(0,i.jsx)("span",{children:t||"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u"})]});return"sm"===e?(0,i.jsx)(a,{children:n}):(0,i.jsx)(r,{children:n})}}const a=o.Ay.div` height: 110px; display: flex; justify-content: center; align-items: center; width: 100%; span{ line-height: 1.2; display: block; opacity: 0.5; &:first-child{ font-size:2.5rem; } &:last-child{ font-size:1rem; } } `,r=o.Ay.div` height: 400px; display: flex; justify-content: center; align-items: center; width: 100%; span{ line-height: 1.2; display: block; opacity: 0.5; &:first-child{ font-size:3.5rem; } &:last-child{ font-size:1.5rem; } } `},19041:(e,t,n)=>{n.r(t),n.d(t,{ExportExcell:()=>f});var l=n(57816),o=n(61278),i=n(49211),s=n(76638),a=n(46808);const r={alignment:{horizontal:"center",vertical:"middle",wrapText:!0}},h={numFmt:"#,##0",font:{name:"Times New Roman",family:4,size:12,color:{argb:"FF000000"}},alignment:{vertical:"middle",wrapText:!0},fill:{type:"pattern",pattern:"none"}},d={alignment:{horizontal:"right",vertical:"middle",wrapText:!0}},c={top:{style:"thin",color:{argb:"FF808080"}},left:{style:"thin",color:{argb:"FF808080"}},bottom:{style:"thin",color:{argb:"FF808080"}},right:{style:"thin",color:{argb:"FF808080"}}},u={font:{bold:!0,size:12}},g={left:{style:"thin",color:{argb:"FF808080"}}},y={right:{style:"thin",color:{argb:"FF808080"}}},p={bottom:{style:"thin",color:{argb:"FF808080"}}},f=(e,t,n,f)=>{const m=e.find((e=>"CPK"===e.Code)),v=e.find((e=>"LT"===e.Code)),x=e.find((e=>"LTTN"===e.Code)),T=e.find((e=>"khac"===e.Code)),w=new i.A,C=w.addWorksheet("Kinh Phi Cong Trinh");C.renderArrayRowGroup([1,1],{style:h,rows:[[{value:"T\xc2N PH\xc1T TOTE & BUILDING",style:u,colspan:3}],[{value:"Lu\xf4n \u0111\u1ed3ng h\xe0nh - lu\xf4n s\u1ebb chia",colspan:3}]]}),C.renderArrayRowGroup([1,4],{rows:[[{value:"276/63 Ho\xe0ng V\u0103n Th\u1ee5",colspan:4,style:d}],[{value:"0256.3524.789 - 0919190081",style:d,colspan:4}],[{value:"tanphatcompany.com",colspan:4,style:d}]]}),C.renderArrayRowGroup([5,1],{rows:[[{value:"B\u1ea2NG T\u1ed4NG H\u1ee2P KINH PH\xcd C\xd4NG TR\xccNH",colspan:7,style:{...u,...r}}]]}),C.renderArrayRowGroup([7,1],{rows:[[{value:"Kh\xe1ch h\xe0ng:",colspan:3,style:{...u,border:c}}],[{value:`[ T\xean ] ${t.ThongTinCaNhan.HoVaTenDem}`,colspan:3,style:{border:{...g,...y}}}],[{value:`[ \u0110\u1ecba ch\u1ec9 ] ${null===t||void 0===t?void 0:t.DiaChi}`,colspan:3,style:{border:{...g,...y}}}],[{value:`[ S\u1ed1 \u0111i\u1ec7n tho\u1ea1i ] ${null===t||void 0===t?void 0:t.DienThoai}`,colspan:3,style:{border:{...g,...y,...p}}}]]}),C.renderArrayRowGroup([7,5],{rows:[[{value:"Tr\xedch d\u1eabn m\xf4 t\u1ea3 d\u1ef1 \xe1n",colspan:3,style:{...u,border:c}}],[{value:"",colspan:3,style:s.vw,rowspan:3}]]}),C.renderArrayRowGroup([12,1],{style:s.vw,rows:[[{value:"NG\xc0Y TH\xc1NG",style:r},{value:"N\u1ed8I DUNG CHI PH\xcd",style:r},{value:"\u0110VT",style:r},{value:"S\u1ed0 L\u01af\u1ee2NG",style:r},{value:"\u0110\u01a0N GI\xc1",style:d},{value:"TH\xc0NH TI\u1ec0N",style:d},{value:"GHI CH\xda",style:r}]]}),C.worksheet.getColumn(1).width=15,C.worksheet.getColumn(2).width=45;for(let l=3;l<=7;l++)C.worksheet.getColumn(l).width=15;let A=0;const N=(e,t)=>{let n=[],l=0;return"CPK"===t?Object.entries(e).forEach((e=>{let[t,i]=e;n.push([{value:"",style:r},{value:t},{value:"",style:r},{value:"",style:r},{value:"",style:r},{value:"",style:r},{value:""}]),n=[...n,...i.map(((e,t)=>(A+=e.TienThanhToan,l+=e.TienThanhToan,[{value:(0,a.getTimeKinhPhiCongTrinh)(e,t),style:r},{value:(0,a.getNoiDungKinhPhiCongTrinh)(e)},{value:e.DVT,style:r},{value:e.KhoiLuong&&0!==e.KhoiLuong?e.KhoiLuong:"",style:r},{value:e.DonGia&&0!==e.DonGia?(0,o.ZV)(e.DonGia):"",style:r},{value:(0,o.ZV)(e.TienThanhToan),style:r},{value:""}])))]})):e.forEach(((e,t)=>{A+=e.TienThanhToan,l+=e.TienThanhToan,n.push([{value:(0,a.getTimeKinhPhiCongTrinh)(e,t),style:r},{value:(0,a.getNoiDungKinhPhiCongTrinh)(e)},{value:e.DVT,style:r},{value:e.KhoiLuong&&0!==e.KhoiLuong?e.KhoiLuong:"",style:r},{value:e.DonGia&&0!==e.DonGia?(0,o.ZV)(e.DonGia):"",style:r},{value:(0,o.ZV)(e.TienThanhToan),style:r},{value:""}])})),n.push([{value:""},{value:""},{value:""},{value:""},{value:"T\u1ed5ng ti\u1ec1n",style:{font:{bold:!0,size:13},...r}},{value:(0,o.ZV)(l),style:r},{value:""}]),n},j=(e,t)=>{if(0===t)return 0;return Array.from(new Array(t).keys()).reduce(((t,n)=>t+e[n].children.length+2),1)-1},b=e=>Object.entries(e).reduce(((e,t)=>{let[n,l]=t;return e+=l.length+1}),0),G=()=>{let t=e.length;return e.forEach((e=>{"CPK"===e.Code?t+=b(e.khoanChis):(t+=e.khoanChis.length,e.khoanChis.forEach((e=>{e.children&&(t+=e.children.length+1)})))})),t||0};C.renderArrayRowGroup([13,1],{style:s.vw,rows:[[{value:m.Name,colspan:7,style:{font:{bold:!0,size:13}}}],...N(m.khoanChis,"CPK")]}),C.renderArrayRowGroup([14+b(m.khoanChis)+1,1],{style:s.vw,rows:[[{value:v.Name,colspan:7,style:{font:{bold:!0,size:13}}}],...N(v.khoanChis)]});const D=15+b(m.khoanChis)+1+v.khoanChis.length+1;C.renderArrayRowGroup([D,1],{style:s.vw,rows:[[{value:x.Name,colspan:7,style:{font:{bold:!0,size:13}}}]]}),x.khoanChis.forEach(((e,t,n)=>{C.renderArrayRowGroup([D+1+j(n,t),1],{style:s.vw,rows:[[{value:"",style:{}},{value:e.OrganName,colspan:6,style:{font:{bold:!0,size:12}}}],...N(e.children)]})}));C.renderArrayRowGroup([16+b(m.khoanChis)+v.khoanChis.length+1+(()=>{let e=0;return x.khoanChis.forEach((t=>{e=e+2+t.children.length})),e})()+1,1],{style:s.vw,rows:[[{value:T.Name,colspan:7,style:{font:{bold:!0,size:13}}}],...N(T.khoanChis)]}),C.renderArrayRowGroup([16+G(),1],{style:s.vw,rows:[[{value:""},{value:"T\u1ed4NG C\u1ed8NG",style:u},{value:""},{value:""},{value:""},{value:(0,o.ZV)(A),style:{...d,...u}},{value:""}]]}),C.renderArrayRowGroup([19+G(),1],{rows:[[{value:"Ghi ch\xfa",colspan:3,style:{...u,border:c}}],[{value:"",colspan:3,style:s.vw,rowspan:3}]]}),C.renderArrayRowGroup([26+G(),1],{rows:[[{value:""},{value:"Ch\u1eef k\xed kh\xe1ch h\xe0ng",style:{font:{bold:!0}}}]]}),C.renderArrayRowGroup([25+G(),5],{style:r,rows:[[{value:`Quy Nh\u01a1n, Ng\xe0y th\xe1ng n\u0103m ${(new Date).getFullYear()}`,colspan:3,style:{font:{size:9}}}],[{value:l.lg.About,colspan:3,style:u}],[{value:"Gi\xe1m \u0111\u1ed1c",colspan:3,style:{font:{bold:!0}}}]]}),w.download(`Kinh ph\xed d\u1ef1 \xe1n ${f}.xlsx`)}},25500:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});const l={}},29829:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(80028),o=(n(82210),n(6058));const i=function(e){let{occurrences:t=1,width:n,height:i=5}=e;return(0,o.jsx)("div",{children:Array.from(new Array(t).keys()).map((e=>(0,o.jsx)(l.A,{variant:"text",width:n||null,height:i},e)))})}},46808:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g,formatTime:()=>d,getNoiDungKinhPhiCongTrinh:()=>u,getTimeKinhPhiCongTrinh:()=>c});var l=n(82210),o=n(68480),i=n(87760),s=n(61278),a=n(10782),r=n(29829),h=(n(25500),n(6058));const d=e=>{const t=new Date(e).getDate(),n=new Date(e).getMonth()+1,l=new Date(e).getFullYear();return!t||n||l?t&&n&&!l?`${t}/${n}`:`${t}/${n}/${l}`:`${t}`},c=(e,t)=>{var n,l;return e.DMNhomKhoanChiId===i.mw?t+1:e.DMNhomKhoanChiId===i.JM?`${null!==(n=e.Thang)&&void 0!==n?n:""}/${null!==(l=e.Nam)&&void 0!==l?l:""}`:d(e.ThoiGian)},u=e=>{var t;let n=e.NoiDung;var l;return e.DMKhoanChiId===o.LUONG_THO_THUE_NGOAI_ID?`${null!==(l=e.GhiChu)&&void 0!==l?l:""}`:`${n} ${null!==(t=e.GhiChu)&&void 0!==t?t:""}`};const g=function(e){let{dataKinhPhi:t,isSkeleton:n}=e;return(0,h.jsx)("div",{className:"index-table-kinh-phi-cong-trinh",children:(0,h.jsx)("div",{className:"tableFixHead",children:(0,h.jsxs)("table",{children:[(0,h.jsx)("thead",{children:(0,h.jsxs)("tr",{style:{background:"#006FCA"},children:[(0,h.jsx)("th",{className:"th-table",style:{width:"10%"},children:"NG\xc0Y TH\xc1NG"}),(0,h.jsx)("th",{className:"th-table",style:{width:"40%"},children:"N\u1ed8I DUNG CHI PH\xcd"}),(0,h.jsx)("th",{className:"th-table",style:{width:"10%"},children:"\u0110VT"}),(0,h.jsx)("th",{className:"th-table",style:{width:"10%"},children:"S\u1ed0 L\u01af\u1ee2NG"}),(0,h.jsx)("th",{className:"th-table",style:{width:"10%"},children:"\u0110\u01a0N GI\xc1"}),(0,h.jsx)("th",{className:"th-table",style:{width:"10%"},children:"TH\xc0NH TI\u1ec0N"}),(0,h.jsx)("th",{className:"th-table",style:{width:"10%"},children:"GHI CH\xda"})]})}),(0,h.jsx)("tbody",{children:t.length>0?t.map(((e,t)=>(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)("tr",{children:(0,h.jsx)("td",{colSpan:7,style:{background:"rgb(255 244 112)",fontWeight:"700"},children:e.Name})}),"CPK"===e.Code?Object.entries(e.khoanChis).map((e=>{let[t,n]=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("tr",{children:(0,h.jsxs)("td",{colSpan:7,style:{background:"#ddd",fontWeight:"700",paddingLeft:30},children:["N\u0103m ",t]})}),n.map(((e,t)=>{var n;return null!==e&&void 0!==e&&null!==(n=e.children)&&void 0!==n&&n.length?(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)("tr",{children:(0,h.jsxs)("td",{colSpan:7,style:{background:"#ddd",fontWeight:"700",paddingLeft:30},children:["L\u01b0\u01a1ng th\u1ee3 ngo\xe0i: ",e.OrganName]})}),e.children.map(((e,t)=>(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{children:" "}),(0,h.jsx)("td",{children:e.GhiChu}),(0,h.jsx)("td",{children:" "}),(0,h.jsx)("td",{}),(0,h.jsx)("td",{children:" "}),(0,h.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,s.ZV)(e.TienThanhToan)," "]}),(0,h.jsx)("td",{})]}))),(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{colSpan:4}),(0,h.jsx)("td",{style:{fontWeight:"700"},children:"T\u1ed4NG TI\u1ec0N"}),(0,h.jsx)("td",{style:{textAlign:"end"},children:(0,s.ZV)(e.tongTien)}),(0,h.jsx)("td",{})]})]},t):(0,h.jsxs)("tr",{children:[(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",c(e,t)," "]}),(0,h.jsxs)("td",{children:[" ",u(e)," "]}),(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.DVT," "]}),(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.KhoiLuong&&0!==e.KhoiLuong?e.KhoiLuong:""," "]}),(0,h.jsxs)("td",{style:{textAlign:"end"},children:[" ",e.DonGia&&0!==e.DonGia?(0,s.ZV)(e.DonGia):""," "]}),(0,h.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,s.ZV)(e.TienThanhToan)," "]}),(0,h.jsx)("td",{})]})}))]})})):e.khoanChis.map(((e,t)=>{var n;return null!==e&&void 0!==e&&null!==(n=e.children)&&void 0!==n&&n.length?(0,h.jsxs)(l.Fragment,{children:[(0,h.jsx)("tr",{children:(0,h.jsxs)("td",{colSpan:7,style:{background:"#ddd",fontWeight:"700",paddingLeft:30},children:["L\u01b0\u01a1ng th\u1ee3 ngo\xe0i: ",e.OrganName]})}),e.children.map(((e,t)=>(0,h.jsxs)("tr",{children:[(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",c(e,t)," "]}),(0,h.jsx)("td",{children:e.GhiChu}),(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.DVT," "]}),(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.KhoiLuong&&0!==e.KhoiLuong?e.KhoiLuong:""," "]}),(0,h.jsxs)("td",{style:{textAlign:"end"},children:[" ",e.DonGia&&0!==e.DonGia?(0,s.ZV)(e.DonGia):""," "]}),(0,h.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,s.ZV)(e.TienThanhToan)," "]}),(0,h.jsx)("td",{})]}))),(0,h.jsxs)("tr",{children:[(0,h.jsx)("td",{colSpan:4}),(0,h.jsx)("td",{style:{fontWeight:"700"},children:"T\u1ed4NG TI\u1ec0N"}),(0,h.jsx)("td",{style:{textAlign:"end"},children:(0,s.ZV)(e.tongTien)}),(0,h.jsx)("td",{})]})]},t):(0,h.jsxs)("tr",{children:[(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",c(e,t)," "]}),(0,h.jsxs)("td",{children:[" ",u(e)," "]}),(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.DVT," "]}),(0,h.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.KhoiLuong&&0!==e.KhoiLuong?e.KhoiLuong:""," "]}),(0,h.jsxs)("td",{style:{textAlign:"end"},children:[" ",e.DonGia&&0!==e.DonGia?(0,s.ZV)(e.DonGia):""," "]}),(0,h.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,s.ZV)(e.TienThanhToan)," "]}),(0,h.jsx)("td",{})]})}))]},`${t}.dshfjasf`))):(0,h.jsx)("tr",{children:(0,h.jsx)("td",{colSpan:7,children:n?(0,h.jsx)(r.A,{occurrences:5,height:20}):(0,h.jsx)(a.A,{size:"sm"})})})})]})})})}},49211:(e,t,n)=>{n.d(t,{A:()=>v});var l=n(79837),o=n(21307),i=n(23683),s=n(91343),a=n(12020),r=n.n(a),h=n(76638);function d(e){if(!e)return"";if(--e<h.YI.length)return h.YI[e];const t=e%h.YI.length;return`${d(Math.floor(e/h.YI.length))}${h.YI[t]}`}function c(e){if("string"==typeof e)return e;if(Array.isArray(e)&&e.length>1){const[t,n,l,o]=e;return l&&o?d(n)+t+":"+d(l)+o:d(n)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var u=(0,s.A)("ws"),g=(0,s.A)("getCellValue"),y=(0,s.A)("renderRow"),p=(0,s.A)("renderGroup");class f{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,y,{writable:!0,value:(e,t)=>{let[n,l=1]=e;const{cells:o,style:s,height:a}=t;if(!o)return;const d=(0,i.A)(this,u)[u].getRow(n);o.forEach(((e,t)=>{const o=d.getCell(l+t);o.isMerged||(o.value=(0,i.A)(this,g)[g](e),o.style=r()({},h.eK,s,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,i.A)(this,u)[u].mergeCells(n,l+t,n+((null===e||void 0===e?void 0:e.rowspan)-1||0),l+t+((null===e||void 0===e?void 0:e.colspan)-1||0)))})),a&&((0,i.A)(this,u)[u].getRow(n).height=a)}}),Object.defineProperty(this,p,{writable:!0,value:(e,t)=>{let{keys:n,data:l,columns:o,style:s}=t;const a=null===n||void 0===n?void 0:n.shift(),d=o.find((e=>e.key===a));let{col:y,row:f}=(0,i.A)(this,u)[u].getCell(c(e)).fullAddress;if(a&&d){const e=Array.from(new Set(l.map(((e,t)=>"undefined"!==typeof d.render?d.render(e,t):e[a]))));for(let t of e){const e=(0,i.A)(this,u)[u].getCell(f,+y,f,+y+o.filter((e=>!e.group)).length);e.value=t||null,e.style=r()({},h.eK,s,{font:{bold:!0}}),(0,i.A)(this,u)[u].mergeCells(e.address),f=(0,i.A)(this,p)[p]([+f+1,+y],{keys:n,columns:o,data:l.filter((e=>e[a]===t))})}}else o.filter((e=>!e.group)).forEach(((e,t)=>{l="function"===typeof l?l():l,l.forEach(((n,l)=>{const o="undefined"!==typeof e.render?e.render(n,l):n[e.key];(0,i.A)(this,u)[u].getCell(+f+l,+y+t).value=(0,i.A)(this,g)[g](o),(0,i.A)(this,u)[u].getCell(+f+l,+y+t).style=r()({},h.eK,s,null===e||void 0===e?void 0:e.style,null===o||void 0===o?void 0:o.style)})),(0,i.A)(this,u)[u].getColumn(+y+t).width="number"===typeof e.width?e.width:10})),f+=l.length;return f}}),(0,i.A)(this,u)[u]=e,this}get worksheet(){return(0,i.A)(this,u)[u]}renderArrayRowGroup(e,t){let{rows:n,style:l}=t;const{col:o,row:s}=(0,i.A)(this,u)[u].getCell(c(e)).fullAddress;("function"===typeof n?n():n).forEach(((e,t)=>{e&&(0,i.A)(this,y)[y]([s+t,o],{r:s+t,c:o,style:r()({},l,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:n,data:l,header:o,totalRow:s,rowNum:a,headerStyle:h,cellStyle:d,onEndRow:g}=t;const{col:y,row:f}=(0,i.A)(this,u)[u].getCell(c(e)).fullAddress;n="function"===typeof n?n():n,a&&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:r()({},e.cellStyle)}))),style:h}]),this.renderArrayRowGroup(e,{rows:o,style:h});const m=n.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),v=(0,i.A)(this,p)[p]([+f+o.length,+y],{keys:m,data:l,columns:n,style:d});g&&g(v-1)}}class m extends l.Workbook{static create(){const e=new l.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 f(super.addWorksheet(e,t))}getWorksheet(e){return new f(super.getWorksheet(e))}}const v=m},57308:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});const l={}},68480:(e,t,n)=>{n.r(t),n.d(t,{LUONG_THO_THUE_NGOAI_ID:()=>g,default:()=>y});var l=n(82210),o=n(98991),i=n(46881),s=n(87760),a=n(61278),r=n(14658),h=n(10592),d=n(46808),c=(n(57308),n(19041)),u=n(6058);const g="94c2bee5-9865-4025-9a18-02008b31fddb";const y=function(e){const[t,n]=(0,l.useState)([]),[y,p]=(0,l.useState)(null),[f,m]=(0,l.useState)(""),[v,x]=(0,l.useState)(!1),[T,w]=(0,l.useState)([...s.kT]),[C,A]=(0,l.useState)(0),N=(0,l.useCallback)((()=>{const e="$filter=Status eq true",t="$select=Id,Name,DienThoai,DiaChi",l="$expand=ThongTinCaNhan($select=Id,HoVaTenDem)";r.Ap.getAll(`?${e}&${t}&${l}`).then((e=>{let{value:t}=e;n(t),p(t[0]),j(t[0].Id)}))}),[]),j=e=>{x(!0),h.lG.getKinhPhiCongTrinh(e).then((e=>{let{ResultObj:t}=e;const n=t.reduce(((e,t)=>e+t.TienThanhToan),0),l=t.sort(((e,t)=>new Date(e.ThoiGian)<new Date(t.ThoiGian)?-1:e-t)),o=[],i=l.filter((e=>e.DMNhomKhoanChiId===s.mw)),a=i.reduce(((e,t)=>{const n=new Date(t.ThoiGian).getFullYear();if(e[n]){const l=e[n].findIndex((e=>e.DMNhomKhoanChiId===s.mw&&e.DMKhoanChiId===t.DMKhoanChiId));l>-1?e[n][l].TienThanhToan=e[n][l].TienThanhToan+t.TienThanhToan:e[n].push({...t})}else e[n]=[{...t}];return e}),{});console.log(a),i.forEach((e=>{const t=o.findIndex((t=>t.DMNhomKhoanChiId===s.mw&&t.DMKhoanChiId===e.DMKhoanChiId));-1!==t?o[t].TienThanhToan+=e.TienThanhToan:o.unshift(e)}));const r=[...l],h=JSON.parse(JSON.stringify(s.kT));r.forEach((e=>{if(e.DMNhomKhoanChiId){const t=h.findIndex((t=>t.Id===e.DMNhomKhoanChiId));-1!==t&&h[t].khoanChis.push(e)}else{const t=h.findIndex((e=>"chiPhiKhac"===e.Id));-1!==t&&h[t].khoanChis.push(e)}}));const d=h.findIndex((e=>e.Id===s.mw));-1!==d&&(h[d].khoanChis=a);const c=function(e,t){return e.map((e=>e[t])).map(((e,t,n)=>n.indexOf(e)===t&&t)).filter((t=>e[t])).map((t=>e[t]))}(h.find((e=>"LTTN"===e.Code)).khoanChis,"OrganName"),u=[];c.forEach((e=>{let t={...e},n=h.find((e=>"LTTN"===e.Code)).khoanChis.filter((t=>t.OrganName===e.OrganName)),l=0;n.forEach((e=>l+=+e.TienThanhToan)),n.length&&(t.tongTien=l,t.children=n),u.push(t)})),h.find((e=>"LTTN"===e.Code)).khoanChis=u,w(h),A(n),x(!1)})).catch((()=>x(!1)))};return(0,l.useEffect)((()=>{N()}),[N]),(0,u.jsxs)("div",{className:"index-rp-du-an",children:[(0,u.jsxs)("div",{className:"header-cus",children:[(0,u.jsx)("div",{className:"header-cus__title",children:"B\xe1o c\xe1o Kinh ph\xed c\xf4ng tr\xecnh"}),(0,u.jsxs)("div",{className:"header-cus__selected",children:[(0,u.jsx)(o.Ay,{name:"nhomDuAn",options:t,menuPosition:"fixed",className:"cus-select",placeholder:"Ch\u1ecdn...",onChange:e=>(e=>{p(e),j(e.Id),m(e.Name)})(e),value:t.find((e=>e.Id===(null===y||void 0===y?void 0:y.Id)))||null,getOptionValue:e=>e,getOptionLabel:e=>e.Name}),(0,u.jsxs)(i.A,{color:"primary",style:{marginLeft:"10px"},onClick:()=>{(0,c.ExportExcell)(T,y,g,f)},children:[(0,u.jsx)("i",{style:{marginRight:"2px"},class:"fas fa-download"}),"Xu\u1ea5t b\xe1o c\xe1o"]})]})]}),(0,u.jsxs)("div",{className:"body-cus",children:[(0,u.jsx)(d.default,{dataKinhPhi:T,isSkeleton:v}),(0,u.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",marginTop:20},children:(0,u.jsxs)("div",{style:{fontSize:14,fontWeight:700},children:["T\u1ed5ng ti\u1ec1n: ",(0,a.vv)(C)]})})]})]})}},76638:(e,t,n)=>{n.d(t,{GN:()=>a,YI:()=>r,Zz:()=>c,eK:()=>i,eS:()=>u,fY:()=>h,li:()=>d,vw:()=>s});var l=n(12020),o=n.n(l);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 i={numFmt:"#,##0",font:{name:"Times New Roman",family:4,size:12,color:{argb:"FF000000"}},alignment:{vertical:"middle",wrapText:!0},fill:{type:"pattern",pattern:"none"}},s={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"}}}},a=o()({},{font:{bold:!0,size:12},alignment:{horizontal:"center",wrapText:!0}}),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",h={font:{bold:!0,size:10}},d={background:"#F2F2F2"},c={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 l=n(30226),o=n(35007),i=n(82210),s=n(30628),a=n(98910),r=n(86953),h=i.forwardRef((function(e,t){var n=e.animation,a=void 0===n?"pulse":n,r=e.classes,h=e.className,d=e.component,c=void 0===d?"span":d,u=e.height,g=e.variant,y=void 0===g?"text":g,p=e.width,f=(0,o.A)(e,["animation","classes","className","component","height","variant","width"]),m=Boolean(f.children);return i.createElement(c,(0,l.A)({ref:t,className:(0,s.A)(r.root,r[y],h,m&&[r.withChildren,!p&&r.fitContent,!u&&r.heightAuto],!1!==a&&r[a])},f,{style:(0,l.A)({width:p,height:u},f.style)}))}));const d=(0,r.A)((function(e){return{root:{display:"block",backgroundColor:(0,a.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"})(h)}}]); //# sourceMappingURL=6808.12507ea6.chunk.js.map