????

Your IP : 216.73.216.234


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

"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[2483],{10782:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(82210),a=l(15517),r=l(6058);class s extends n.Component{render(){const{size:e,text:t}=this.props;let l=(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"text-center",children:(0,r.jsx)("i",{className:"far fa-folder-open"})}),(0,r.jsx)("span",{children:t||"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u"})]});return"sm"===e?(0,r.jsx)(o,{children:l}):(0,r.jsx)(i,{children:l})}}const o=a.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=a.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:()=>p});var n=l(79837),a=l(21307),r=l(23683),s=l(91343),o=l(12020),i=l.n(o),h=l(76638);function u(e){if(!e)return"";if(--e<h.YI.length)return h.YI[e];const t=e%h.YI.length;return`${u(Math.floor(e/h.YI.length))}${h.YI[t]}`}function d(e){if("string"==typeof e)return e;if(Array.isArray(e)&&e.length>1){const[t,l,n,a]=e;return n&&a?u(l)+t+":"+u(n)+a:u(l)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var c=(0,s.A)("ws"),v=(0,s.A)("getCellValue"),g=(0,s.A)("renderRow"),y=(0,s.A)("renderGroup");class w{constructor(e){return Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:e=>"[object Object]"===Object.prototype.toString.call(e)&&Object.prototype.hasOwnProperty.call(e,"value")?e.value:e||null}),Object.defineProperty(this,g,{writable:!0,value:(e,t)=>{let[l,n=1]=e;const{cells:a,style:s,height:o}=t;if(!a)return;const u=(0,r.A)(this,c)[c].getRow(l);a.forEach(((e,t)=>{const a=u.getCell(n+t);a.isMerged||(a.value=(0,r.A)(this,v)[v](e),a.style=i()({},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,r.A)(this,c)[c].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)))})),o&&((0,r.A)(this,c)[c].getRow(l).height=o)}}),Object.defineProperty(this,y,{writable:!0,value:(e,t)=>{let{keys:l,data:n,columns:a,style:s}=t;const o=null===l||void 0===l?void 0:l.shift(),u=a.find((e=>e.key===o));let{col:g,row:w}=(0,r.A)(this,c)[c].getCell(d(e)).fullAddress;if(o&&u){const e=Array.from(new Set(n.map(((e,t)=>"undefined"!==typeof u.render?u.render(e,t):e[o]))));for(let t of e){const e=(0,r.A)(this,c)[c].getCell(w,+g,w,+g+a.filter((e=>!e.group)).length);e.value=t||null,e.style=i()({},h.eK,s,{font:{bold:!0}}),(0,r.A)(this,c)[c].mergeCells(e.address),w=(0,r.A)(this,y)[y]([+w+1,+g],{keys:l,columns:a,data:n.filter((e=>e[o]===t))})}}else a.filter((e=>!e.group)).forEach(((e,t)=>{n="function"===typeof n?n():n,n.forEach(((l,n)=>{const a="undefined"!==typeof e.render?e.render(l,n):l[e.key];(0,r.A)(this,c)[c].getCell(+w+n,+g+t).value=(0,r.A)(this,v)[v](a),(0,r.A)(this,c)[c].getCell(+w+n,+g+t).style=i()({},h.eK,s,null===e||void 0===e?void 0:e.style,null===a||void 0===a?void 0:a.style)})),(0,r.A)(this,c)[c].getColumn(+g+t).width="number"===typeof e.width?e.width:10})),w+=n.length;return w}}),(0,r.A)(this,c)[c]=e,this}get worksheet(){return(0,r.A)(this,c)[c]}renderArrayRowGroup(e,t){let{rows:l,style:n}=t;const{col:a,row:s}=(0,r.A)(this,c)[c].getCell(d(e)).fullAddress;("function"===typeof l?l():l).forEach(((e,t)=>{e&&(0,r.A)(this,g)[g]([s+t,a],{r:s+t,c:a,style:i()({},n,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:l,data:n,header:a,totalRow:s,rowNum:o,headerStyle:h,cellStyle:u,onEndRow:v}=t;const{col:g,row:w}=(0,r.A)(this,c)[c].getCell(d(e)).fullAddress;l="function"===typeof l?l():l,o&&l.unshift({name:"STT",render:(e,t)=>t+1,colStyle:{alignment:{horizontal:"center"}},width:5}),a||(a=[{cells:l.filter((e=>!e.group)).map((e=>({value:e.name,style:i()({},e.cellStyle)}))),style:h}]),this.renderArrayRowGroup(e,{rows:a,style:h});const f=l.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),p=(0,r.A)(this,y)[y]([+w+a.length,+g],{keys:f,data:n,columns:l,style:u});v&&v(p-1)}}class f 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,a.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 w(super.addWorksheet(e,t))}getWorksheet(e){return new w(super.getWorksheet(e))}}const p=f},76638:(e,t,l)=>{l.d(t,{GN:()=>o,YI:()=>i,Zz:()=>d,eK:()=>r,eS:()=>c,fY:()=>h,li:()=>u,vw:()=>s});var n=l(12020),a=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 r={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"}}}},o=a()({},{font:{bold:!0,size:12},alignment:{horizontal:"center",wrapText:!0}}),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",h={font:{bold:!0,size:10}},u={background:"#F2F2F2"},d={alignment:{horizontal:"center",vertical:"middle",wrapText:!0}},c={alignment:{horizontal:"right",vertical:"middle",wrapText:!0}}},80622:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o,formatTime:()=>s});l(82210);var n=l(61278),a=l(10782),r=(l(48766),l(6058));const s=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 o=function(e){let{dataKinhPhi:t}=e;return(0,r.jsx)("div",{className:"index-table-kinh-phi-cong-trinh",children:(0,r.jsx)("div",{className:"tableFixHead",children:(0,r.jsxs)("table",{children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{style:{background:"#006FCA"},children:[(0,r.jsx)("th",{className:"th-table",style:{width:"10%"},children:"NG\xc0Y TH\xc1NG"}),(0,r.jsx)("th",{className:"th-table",style:{width:"40%"},children:"N\u1ed8I DUNG CHI PH\xcd"}),(0,r.jsx)("th",{className:"th-table",style:{width:"10%"},children:"\u0110VT"}),(0,r.jsx)("th",{className:"th-table",style:{width:"10%"},children:"S\u1ed0 L\u01af\u1ee2NG"}),(0,r.jsx)("th",{className:"th-table",style:{width:"10%"},children:"\u0110\u01a0N GI\xc1"}),(0,r.jsx)("th",{className:"th-table",style:{width:"10%"},children:"TH\xc0NH TI\u1ec0N"}),(0,r.jsx)("th",{className:"th-table",style:{width:"10%"},children:"GHI CH\xda"})]})}),(0,r.jsx)("tbody",{children:t.length>0?t.map(((e,t)=>(0,r.jsxs)("tr",{children:[(0,r.jsxs)("td",{style:{textAlign:"center"},children:[" ",s(e.ThoiGian)," "]}),(0,r.jsxs)("td",{children:[" ",e.NoiDung," "]}),(0,r.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.DVT," "]}),(0,r.jsxs)("td",{style:{textAlign:"center"},children:[" ",e.KhoiLuong," "]}),(0,r.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,n.vv)(e.DonGia)," "]}),(0,r.jsxs)("td",{style:{textAlign:"end"},children:[" ",(0,n.vv)(e.ThanhTien)," "]}),(0,r.jsxs)("td",{children:[" ",e.GhiChu," "]})]},t))):(0,r.jsx)("tr",{children:(0,r.jsx)("td",{colSpan:7,children:(0,r.jsx)(a.A,{size:"sm"})})})})]})})})}},82483:(e,t,l)=>{l.r(t),l.d(t,{default:()=>i});var n=l(76638),a=l(49211),r=l(61278),s=l(80622),o=l(35065);async function i(e,t){let{data:l,TenCuaHang:s,CongNoCu:i,Nam:d}=e;const g=new a.A,y=g.addWorksheet("B\u1ea3ng k\xea chi ti\u1ebft c\xf4ng n\u1ee3");y.worksheet.getColumn(1).width=20,y.worksheet.getColumn(2).width=30,y.worksheet.getColumn(3).width=10,y.worksheet.getColumn(4).width=15,y.worksheet.getColumn(5).width=40,y.worksheet.getColumn(6).width=20,y.worksheet.getColumn(7).width=30,y.worksheet.getColumn(8).width=20,y.renderArrayRowGroup([4,1],{style:{font:{bold:!0},alignment:{horizontal:"center"}},rows:[[{value:`B\u1ea3ng k\xea chi ti\u1ebft c\xf4ng n\u1ee3 ${s}`.toUpperCase(),colspan:8}]]}),y.renderArrayRowGroup([6,1],{style:n.GN,rows:[[{rowspan:1,value:"Ng\xe0y"},{rowspan:1,value:"T\xcaN V\u1eacT T\u01af"},{rowspan:1,value:"\u0110VT"},{rowspan:1,value:"SL"},{rowspan:1,value:"\u0110\u01a0N GI\xc1"},{rowspan:1,value:"TH\xc0NH TI\u1ec0N"},{rowspan:1,value:"PH\xc2N B\u1ed4 C\xd4NG TR\xccNH"},{rowspan:1,value:"KH\u1edaP C\xd4NG N\u1ee2 C\u1eecA H\xc0NG"}]]});const w=function(e,t,l){let a=[];if(e&&0!==e.length)return e.forEach((e=>{a=[...a,u({row:e}),...h(e.DonHangs),...c({row:e,Nam:l})]})),a=[[{value:l-1,style:{...v,...n.Zz}},{value:"C\xd4NG N\u1ee2 C\u0168",style:{...v}},{value:""},{value:""},{value:""},{value:(0,r.ZV)(t),style:{...v,...n.eS}},{value:""},{value:""}],...a],a;(0,o.AB)("CH\u01afA C\xd3 D\u1eee LI\u1ec6U \u0110\u1ec2 XU\u1ea4T B\xc1O C\xc1O")}(l,i,d);w&&(y.renderArrayRowGroup([7,1],{style:n.vw,rows:w}),g.download(t))}const h=e=>{let t=[];return e.forEach(((e,l,a)=>{const o=0===l||a[l-1].NgayNhap!==e.NgayNhap?(0,s.formatTime)(e.NgayNhap):"",i=0===l||a[l-1].NgayNhap!==e.NgayNhap?e.GhiChu:"";t.push([{value:o},{value:e.MaDonHang},{value:""},{value:""},{value:""},{value:""},{value:""},{value:i}]),e.VatLieu.forEach(((e,l)=>{t.push([{value:""},{value:e.TenVatLieu},{value:e.\u0110VT},{value:(0,r.ZV)(e.SL,8),style:{...n.eS}},{value:(0,r.ZV)(e.DonGia),style:{...n.eS}},{value:(0,r.ZV)(e.ThanhTien),style:{...n.eS}},{value:e.CongTrinh},{value:""}])}))})),t};function u(e){let{row:t}=e;return[{value:`TH\xc1NG ${t.Thang}`,colspan:5,style:{...v,...n.Zz}},{value:""},{value:""},{value:""},{value:""},{value:(0,r.ZV)(t.ThanhTien),style:{...v,...n.eS}},{value:""},{value:""}]}const d=e=>{let t=[];return e.TraNo.forEach(((e,l)=>{t.push([{value:""},{value:""},{value:""},{value:""},{value:e.GhiChu},{value:(0,r.ZV)(e.SoTien),style:{...n.eS}},{value:""},{value:""}])})),t};function c(e){let{row:t,Nam:l}=e;return[[{value:""},{value:""},{value:""},{value:""},{value:t.ThangConLai?`C\xd2N TH\xc1NG ${t.ThangConLai}`:t.CongNoCu?"C\xd4NG N\u1ee2 C\u0168 "+(l-1):"",style:{...v}},{value:t.ThangConLai?(0,r.ZV)(t.ConLaiThang):t.CongNoCu?`${(0,r.ZV)(t.CongNoCu)}`:"",style:{...v,...n.eS}},{value:""},{value:""}],[{value:""},{value:""},{value:""},{value:""},{value:"T\u1ed4NG C\u1ed8NG",style:{...v}},{value:(0,r.ZV)(t.TongCong),style:{...v,...n.eS}},{value:""},{value:""}],...d(t),[{value:""},{value:""},{value:""},{value:""},{value:""},{value:""},{value:""},{value:""}],[{value:""},{value:""},{value:""},{value:""},{value:"C\xd2N L\u1ea0I",style:{...v}},{value:(0,r.ZV)(t.ConLai),style:{...v,...n.eS}},{value:""},{value:""}]]}const v={font:{bold:!0,size:13}}}}]);
//# sourceMappingURL=2483.97e512ef.chunk.js.map