????
Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/ |
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/9798.87388585.chunk.js |
"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[622,628,3446,8247,8766,9599,9798],{10592:(e,t,l)=>{l.d(t,{zq:()=>r,Ty:()=>o,lG:()=>a});var n=l(7722);class s extends n.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 s{constructor(){super("/NhomDuAnDTOs")}};const o=new class extends s{constructor(){super("/ChiTietCongNos"),this.getDataCongNoTongHop=e=>this.GetAuthen("/GetCongNoTongHop?Nam="+e),this.GetCongNoVatLieuTheoDuAn=e=>this.PostAuthen("/GetCongNoVatLieuTheoDuAn",e),this.getDataChiTietCongNoCuaHang=(e,t,l)=>this.GetAuthen(`/ChiTietCongNoCuaHang?Nam=${e}&Thang=${t||0}&CuaHangId=${l}`),this.getDataCongNoDoiThueNgoai=e=>this.GetAuthen("/CongNoDoiThueNgoai?DotLuongId="+e),this.getDataTongHopCongNoCuaHang=e=>this.GetAuthen("/TongHopCongNoCuaHang?Nam="+e)}};const r=new class extends s{constructor(){super("/DuAnVatLieus"),this.getDataBangKeChiTiet=e=>this.PostAuthen("/BangKeChiTietVatLieu",e)}};const a=new class extends s{constructor(){super("/DuAns"),this.getKinhPhiCongTrinh=e=>this.GetAuthen(`/GetKinhPhiCongTrinh?DuAnId=${e}`),this.getLoiNhuan=e=>this.GetAuthen(`/ChotLaiAsync?key=${e}`)}}},10782:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(82210),s=l(15517),o=l(6058);class r extends n.Component{render(){const{size:e,text:t}=this.props;let l=(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"text-center",children:(0,o.jsx)("i",{className:"far fa-folder-open"})}),(0,o.jsx)("span",{children:t||"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u"})]});return"sm"===e?(0,o.jsx)(a,{children:l}):(0,o.jsx)(i,{children:l})}}const a=s.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; } } `,i=s.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; } } `},48766:(e,t,l)=>{l.r(t),l.d(t,{default:()=>n});const n={}},49211:(e,t,l)=>{l.d(t,{A:()=>f});var n=l(79837),s=l(21307),o=l(23683),r=l(91343),a=l(12020),i=l.n(a),h=l(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,l,n,s]=e;return n&&s?d(l)+t+":"+d(n)+s:d(l)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var u=(0,r.A)("ws"),g=(0,r.A)("getCellValue"),y=(0,r.A)("renderRow"),p=(0,r.A)("renderGroup");class v{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[l,n=1]=e;const{cells:s,style:r,height:a}=t;if(!s)return;const d=(0,o.A)(this,u)[u].getRow(l);s.forEach(((e,t)=>{const s=d.getCell(n+t);s.isMerged||(s.value=(0,o.A)(this,g)[g](e),s.style=i()({},h.eK,r,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,o.A)(this,u)[u].mergeCells(l,n+t,l+((null===e||void 0===e?void 0:e.rowspan)-1||0),n+t+((null===e||void 0===e?void 0:e.colspan)-1||0)))})),a&&((0,o.A)(this,u)[u].getRow(l).height=a)}}),Object.defineProperty(this,p,{writable:!0,value:(e,t)=>{let{keys:l,data:n,columns:s,style:r}=t;const a=null===l||void 0===l?void 0:l.shift(),d=s.find((e=>e.key===a));let{col:y,row:v}=(0,o.A)(this,u)[u].getCell(c(e)).fullAddress;if(a&&d){const e=Array.from(new Set(n.map(((e,t)=>"undefined"!==typeof d.render?d.render(e,t):e[a]))));for(let t of e){const e=(0,o.A)(this,u)[u].getCell(v,+y,v,+y+s.filter((e=>!e.group)).length);e.value=t||null,e.style=i()({},h.eK,r,{font:{bold:!0}}),(0,o.A)(this,u)[u].mergeCells(e.address),v=(0,o.A)(this,p)[p]([+v+1,+y],{keys:l,columns:s,data:n.filter((e=>e[a]===t))})}}else s.filter((e=>!e.group)).forEach(((e,t)=>{n="function"===typeof n?n():n,n.forEach(((l,n)=>{const s="undefined"!==typeof e.render?e.render(l,n):l[e.key];(0,o.A)(this,u)[u].getCell(+v+n,+y+t).value=(0,o.A)(this,g)[g](s),(0,o.A)(this,u)[u].getCell(+v+n,+y+t).style=i()({},h.eK,r,null===e||void 0===e?void 0:e.style,null===s||void 0===s?void 0:s.style)})),(0,o.A)(this,u)[u].getColumn(+y+t).width="number"===typeof e.width?e.width:10})),v+=n.length;return v}}),(0,o.A)(this,u)[u]=e,this}get worksheet(){return(0,o.A)(this,u)[u]}renderArrayRowGroup(e,t){let{rows:l,style:n}=t;const{col:s,row:r}=(0,o.A)(this,u)[u].getCell(c(e)).fullAddress;("function"===typeof l?l():l).forEach(((e,t)=>{e&&(0,o.A)(this,y)[y]([r+t,s],{r:r+t,c:s,style:i()({},n,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:l,data:n,header:s,totalRow:r,rowNum:a,headerStyle:h,cellStyle:d,onEndRow:g}=t;const{col:y,row:v}=(0,o.A)(this,u)[u].getCell(c(e)).fullAddress;l="function"===typeof l?l():l,a&&l.unshift({name:"STT",render:(e,t)=>t+1,colStyle:{alignment:{horizontal:"center"}},width:5}),s||(s=[{cells:l.filter((e=>!e.group)).map((e=>({value:e.name,style:i()({},e.cellStyle)}))),style:h}]),this.renderArrayRowGroup(e,{rows:s,style:h});const m=l.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),f=(0,o.A)(this,p)[p]([+v+s.length,+y],{keys:m,data:n,columns:l,style:d});g&&g(f-1)}}class m extends n.Workbook{static create(){const e=new n.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,s.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 v(super.addWorksheet(e,t))}getWorksheet(e){return new v(super.getWorksheet(e))}}const f=m},76638:(e,t,l)=>{l.d(t,{GN:()=>a,YI:()=>i,Zz:()=>c,eK:()=>o,eS:()=>u,fY:()=>h,li:()=>d,vw:()=>r});var n=l(12020),s=l.n(n);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 o={numFmt:"#,##0",font:{name:"Times New Roman",family:4,size:12,color:{argb:"FF000000"}},alignment:{vertical:"middle",wrapText:!0},fill:{type:"pattern",pattern:"none"}},r={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=s()({},{font:{bold:!0,size:12},alignment:{horizontal:"center",wrapText:!0}}),i="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}}},80622:(e,t,l)=>{l.r(t),l.d(t,{default:()=>a,formatTime:()=>r});l(82210);var n=l(61278),s=l(10782),o=(l(48766),l(6058));const r=e=>{const t=new Date(e).getDate(),l=new Date(e).getMonth()+1,n=new Date(e).getFullYear();return!t||l||n?t&&l&&!n?`${t}/${l}`:`${t}/${l}/${n}`:`${t}`};const a=function(e){let{dataKinhPhi:t}=e;return(0,o.jsx)("div",{className:"index-table-kinh-phi-cong-trinh",children:(0,o.jsx)("div",{className:"tableFixHead",children:(0,o.jsxs)("table",{children:[(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{style:{background:"#006FCA"},children:[(0,o.jsx)("th",{className:"th-table",style:{width:"10%"},children:"NG\xc0Y TH\xc1NG"}),(0,o.jsx)("th",{className:"th-table",style:{width:"40%"},children:"N\u1ed8I DUNG CHI PH\xcd"}),(0,o.jsx)("th",{className:"th-table",style:{width:"10%"},children:"\u0110VT"}),(0,o.jsx)("th",{className:"th-table",style:{width:"10%"},children:"S\u1ed0 L\u01af\u1ee2NG"}),(0,o.jsx)("th",{className:"th-table",style:{width:"10%"},children:"\u0110\u01a0N GI\xc1"}),(0,o.jsx)("th",{className:"th-table",style:{width:"10%"},children:"TH\xc0NH TI\u1ec0N"}),(0,o.jsx)("th",{className:"th-table",style:{width:"10%"},children:"GHI CH\xda"})]})}),(0,o.jsx)("tbody",{children:t.length>0?t.map(((e,t)=>(0,o.jsxs)("tr",{children:[(0,o.jsxs)("td",{style:{textAlign:"center"},children:[" ",r(e.ThoiGian)," "]}),(0,o.jsxs)("td",{children:[" ",e.NoiDung," "]}),(0,o.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.DVT," "]}),(0,o.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.KhoiLuong," "]}),(0,o.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,n.vv)(e.DonGia)," "]}),(0,o.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,n.vv)(e.ThanhTien)," "]}),(0,o.jsxs)("td",{children:[" ",e.GhiChu," "]})]},t))):(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:7,children:(0,o.jsx)(s.A,{size:"sm"})})})})]})})})}},83446:(e,t,l)=>{l.r(t),l.d(t,{default:()=>n});const n={}},89599:(e,t,l)=>{l.r(t),l.d(t,{ExportExcell:()=>v});var n=l(57816),s=l(61278),o=l(49211),r=l(76638),a=l(80622);const i={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"}}},v=(e,t)=>{const l=new o.A,v=l.addWorksheet("Kinh Phi Cong Trinh");v.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}]]}),v.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}]]}),v.renderArrayRowGroup([5,1],{rows:[[{value:"B\u1ea2NG T\u1ed4NG H\u1ee2P KINH PH\xcd C\xd4NG TR\xccNH",colspan:7,style:{...u,...i}}]]}),v.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}}}]]}),v.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:r.vw,rowspan:3}]]}),v.renderArrayRowGroup([12,1],{style:r.vw,rows:[[{value:"NG\xc0Y TH\xc1NG",style:i},{value:"N\u1ed8I DUNG CHI PH\xcd",style:i},{value:"\u0110VT",style:i},{value:"S\u1ed0 L\u01af\u1ee2NG",style:i},{value:"\u0110\u01a0N GI\xc1",style:i},{value:"TH\xc0NH TI\u1ec0N",style:i},{value:"GHI CH\xda",style:i}]]}),v.worksheet.getColumn(1).width=15,v.worksheet.getColumn(2).width=45;for(let n=3;n<=7;n++)v.worksheet.getColumn(n).width=15;v.renderArrayRowGroup([13,1],{style:r.vw,rows:(()=>{const t=[];let l=0;return e.forEach(((e,n)=>{l+=e.ThanhTien,t.push([{value:(0,a.formatTime)(e.ThoiGian),style:i},{value:e.NoiDung},{value:e.DVT,style:i},{value:e.KhoiLuong,style:i},{value:(0,s.ZV)(e.DonGia),style:i},{value:(0,s.ZV)(e.ThanhTien),style:i},{value:e.GhiChu}])})),t.push([{value:""},{value:"T\u1ed4NG C\u1ed8NG",style:u},{value:""},{value:""},{value:""},{value:(0,s.ZV)(l),style:d},{value:""}]),t})()}),v.renderArrayRowGroup([14+e.length+1,1],{rows:[[{value:"Ghi ch\xfa",colspan:3,style:{...u,border:c}}],[{value:"",colspan:3,style:r.vw,rowspan:3}]]}),v.renderArrayRowGroup([21+e.length,1],{rows:[[{value:""},{value:"Ch\u1eef k\xed kh\xe1ch h\xe0ng",style:{font:{bold:!0}}}]]}),v.renderArrayRowGroup([20+e.length,5],{style:i,rows:[[{value:`Quy Nh\u01a1n, Ng\xe0y th\xe1ng n\u0103m ${(new Date).getFullYear()}`,colspan:3,style:{font:{size:9}}}],[{value:n.lg.About,colspan:3,style:u}],[{value:"Gi\xe1m \u0111\u1ed1c",colspan:3,style:{font:{bold:!0}}}]]}),l.download("KinhPhiDuAn.xlsx")}},99798:(e,t,l)=>{l.r(t),l.d(t,{default:()=>c});var n=l(82210),s=l(98991),o=l(46881),r=l(14658),a=l(10592),i=l(80622),h=(l(83446),l(89599)),d=l(6058);const c=function(e){const[t,l]=(0,n.useState)([]),[c,u]=(0,n.useState)([]),[g,y]=(0,n.useState)(null),p=(0,n.useCallback)((()=>{const e="$filter=Status eq true",t="$select=Id,Name,DienThoai,DiaChi",n="$expand=ThongTinCaNhan($select=Id,HoVaTenDem)";r.Ap.getAll(`?${e}&${t}&${n}`).then((e=>{let{value:t}=e;l(t),y(t[0]),v(t[0].Id)}))}),[]),v=e=>{a.lG.getKinhPhiCongTrinh(e).then((e=>{let{ResultObj:t}=e;u(t.sort(((e,t)=>e.ThoiGian<t.ThoiGian?-1:e-t)))}))};return(0,n.useEffect)((()=>{p()}),[p]),(0,d.jsxs)("div",{className:"index-rp-du-an",children:[(0,d.jsxs)("div",{className:"header-cus",children:[(0,d.jsx)("div",{className:"header-cus__title",children:"B\xe1o c\xe1o Kinh ph\xed c\xf4ng tr\xecnh"}),(0,d.jsxs)("div",{className:"header-cus__selected",children:[(0,d.jsx)(s.Ay,{name:"nhomDuAn",options:t,menuPosition:"fixed",className:"cus-select",placeholder:"Ch\u1ecdn...",onChange:e=>(e=>{y(e),v(e.Id)})(e),value:t.find((e=>e.Id===(null===g||void 0===g?void 0:g.Id)))||null,getOptionValue:e=>e,getOptionLabel:e=>e.Name}),(0,d.jsxs)(o.A,{color:"primary",style:{marginLeft:"10px"},onClick:()=>{(0,h.ExportExcell)(c,g)},children:[(0,d.jsx)("i",{style:{marginRight:"2px"},className:"fas fa-download"}),"Xu\u1ea5t b\xe1o c\xe1o"]})]})]}),(0,d.jsx)("div",{className:"body-cus",children:(0,d.jsx)(i.default,{dataKinhPhi:c})})]})}}}]); //# sourceMappingURL=9798.87388585.chunk.js.map