????
Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/ |
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/9572.bd271dd0.chunk.js |
"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[9572],{49211:(e,t,r)=>{r.d(t,{A:()=>p});var l=r(79837),n=r(21307),o=r(23683),a=r(91343),s=r(12020),i=r.n(s),u=r(76638);function h(e){if(!e)return"";if(--e<u.YI.length)return u.YI[e];const t=e%u.YI.length;return`${h(Math.floor(e/u.YI.length))}${u.YI[t]}`}function d(e){if("string"==typeof e)return e;if(Array.isArray(e)&&e.length>1){const[t,r,l,n]=e;return l&&n?h(r)+t+":"+h(l)+n:h(r)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var c=(0,a.A)("ws"),g=(0,a.A)("getCellValue"),y=(0,a.A)("renderRow"),v=(0,a.A)("renderGroup");class f{constructor(e){return Object.defineProperty(this,c,{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[r,l=1]=e;const{cells:n,style:a,height:s}=t;if(!n)return;const h=(0,o.A)(this,c)[c].getRow(r);n.forEach(((e,t)=>{const n=h.getCell(l+t);n.isMerged||(n.value=(0,o.A)(this,g)[g](e),n.style=i()({},u.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,o.A)(this,c)[c].mergeCells(r,l+t,r+((null===e||void 0===e?void 0:e.rowspan)-1||0),l+t+((null===e||void 0===e?void 0:e.colspan)-1||0)))})),s&&((0,o.A)(this,c)[c].getRow(r).height=s)}}),Object.defineProperty(this,v,{writable:!0,value:(e,t)=>{let{keys:r,data:l,columns:n,style:a}=t;const s=null===r||void 0===r?void 0:r.shift(),h=n.find((e=>e.key===s));let{col:y,row:f}=(0,o.A)(this,c)[c].getCell(d(e)).fullAddress;if(s&&h){const e=Array.from(new Set(l.map(((e,t)=>"undefined"!==typeof h.render?h.render(e,t):e[s]))));for(let t of e){const e=(0,o.A)(this,c)[c].getCell(f,+y,f,+y+n.filter((e=>!e.group)).length);e.value=t||null,e.style=i()({},u.eK,a,{font:{bold:!0}}),(0,o.A)(this,c)[c].mergeCells(e.address),f=(0,o.A)(this,v)[v]([+f+1,+y],{keys:r,columns:n,data:l.filter((e=>e[s]===t))})}}else n.filter((e=>!e.group)).forEach(((e,t)=>{l="function"===typeof l?l():l,l.forEach(((r,l)=>{const n="undefined"!==typeof e.render?e.render(r,l):r[e.key];(0,o.A)(this,c)[c].getCell(+f+l,+y+t).value=(0,o.A)(this,g)[g](n),(0,o.A)(this,c)[c].getCell(+f+l,+y+t).style=i()({},u.eK,a,null===e||void 0===e?void 0:e.style,null===n||void 0===n?void 0:n.style)})),(0,o.A)(this,c)[c].getColumn(+y+t).width="number"===typeof e.width?e.width:10})),f+=l.length;return f}}),(0,o.A)(this,c)[c]=e,this}get worksheet(){return(0,o.A)(this,c)[c]}renderArrayRowGroup(e,t){let{rows:r,style:l}=t;const{col:n,row:a}=(0,o.A)(this,c)[c].getCell(d(e)).fullAddress;("function"===typeof r?r():r).forEach(((e,t)=>{e&&(0,o.A)(this,y)[y]([a+t,n],{r:a+t,c:n,style:i()({},l,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:r,data:l,header:n,totalRow:a,rowNum:s,headerStyle:u,cellStyle:h,onEndRow:g}=t;const{col:y,row:f}=(0,o.A)(this,c)[c].getCell(d(e)).fullAddress;r="function"===typeof r?r():r,s&&r.unshift({name:"STT",render:(e,t)=>t+1,colStyle:{alignment:{horizontal:"center"}},width:5}),n||(n=[{cells:r.filter((e=>!e.group)).map((e=>({value:e.name,style:i()({},e.cellStyle)}))),style:u}]),this.renderArrayRowGroup(e,{rows:n,style:u});const w=r.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),p=(0,o.A)(this,v)[v]([+f+n.length,+y],{keys:w,data:l,columns:r,style:h});g&&g(p-1)}}class w 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,n.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 p=w},76638:(e,t,r)=>{r.d(t,{GN:()=>s,YI:()=>i,Zz:()=>d,eK:()=>o,eS:()=>c,fY:()=>u,li:()=>h,vw:()=>a});var l=r(12020),n=r.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 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"}},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"}}}},s=n()({},{font:{bold:!0,size:12},alignment:{horizontal:"center",wrapText:!0}}),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",u={font:{bold:!0,size:10}},h={background:"#F2F2F2"},d={alignment:{horizontal:"center",vertical:"middle",wrapText:!0}},c={alignment:{horizontal:"right",vertical:"middle",wrapText:!0}}},99572:(e,t,r)=>{r.r(t),r.d(t,{exportBangLuongThueNgoai:()=>s});var l=r(61278),n=r(49211),o=r(76638);const a={alignment:{horizontal:"center",vertical:"middle",wrapText:!0}},s=(e,t,r)=>{const s=new n.A,i=s.addWorksheet("Bang Luong Thue Ngoai"),u=[{value:"STT"},{value:"H\u1ecd v\xe0 t\xean"},{value:"N\u1ee3 c\u0169"},{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"},{value:"Th\u1ef1c nh\u1eadn"}];i.renderArrayRowGroup([1,1],{style:o.fY,rows:[[{value:"C\xf4ng Ty TNHH X\xe2y d\u1ef1ng V\u1eadn t\u1ea3i T\xe2n Ph\xe1t",colspan:8}],[{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:8}],[{value:`\u0110T: 0256.3524.789 Ng\xe0y /${r}/${t}`,colspan:13}]]}),i.renderArrayRowGroup([5,1],{style:o.GN,rows:[[{value:`B\u1ea2NG THANH TO\xc1N L\u01af\u01a0NG \u0110\u1ed8I THU\xca NGO\xc0I TH\xc1NG ${r} N\u0102M ${t}`,colspan:8}]]}),i.renderArrayRowGroup([7,1],{style:{...o.vw,...o.li,verticalAlign:"middle",alignment:{horizontal:"center"},width:35},rows:[u]}),i.worksheet.getColumn(2).width=35;for(let l=3;l<=11;l++)i.worksheet.getColumn(l).width=17;const h=e=>{const t=[];return e.forEach(((e,r)=>{t.push([{value:r+1,style:a},{value:e.OrganName},{value:e.TruTamUng+e.ConNo>0?e.TruTamUng+e.ConNo:""},{value:e.TruTamUng>0?(0,l.vv)(e.TruTamUng):"",style:a},{value:e.ConNo>0?(0,l.vv)(e.ConNo):"",style:a},{value:e.TNC.toString(),style:a},{value:e.DonGia>0?(0,l.vv)(e.DonGia):0,style:a},{value:e.TongLuong>0?(0,l.vv)(e.TongLuong):"",style:a},{value:e.ThucNhan,style:a}])})),t},d=(e,t)=>{if(0===t)return 0;return Array.from(new Array(t).keys()).reduce(((t,r)=>t+e[r].Items.length+1),1)-1};e.forEach(((e,t,r)=>{i.renderArrayRowGroup([8+d(r,t),1],{style:o.vw,rows:[[{value:"",style:{}},{value:e.TenDuAn,colspan:7,style:{font:{bold:!0,size:12}}}],...h(e.Items,e.DuAnId)]})})),s.download(`BangLuongThang${r}/${t}.xlsx`)}}}]); //# sourceMappingURL=9572.bd271dd0.chunk.js.map