????
Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/ |
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/8483.c77bc90f.chunk.js |
"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[8483],{49211:(e,t,r)=>{r.d(t,{A:()=>v});var o=r(79837),l=r(21307),n=r(23683),s=r(91343),a=r(12020),i=r.n(a),u=r(76638);function d(e){if(!e)return"";if(--e<u.YI.length)return u.YI[e];const t=e%u.YI.length;return`${d(Math.floor(e/u.YI.length))}${u.YI[t]}`}function h(e){if("string"==typeof e)return e;if(Array.isArray(e)&&e.length>1){const[t,r,o,l]=e;return o&&l?d(r)+t+":"+d(o)+l:d(r)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var c=(0,s.A)("ws"),w=(0,s.A)("getCellValue"),y=(0,s.A)("renderRow"),p=(0,s.A)("renderGroup");class f{constructor(e){return Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,w,{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,o=1]=e;const{cells:l,style:s,height:a}=t;if(!l)return;const d=(0,n.A)(this,c)[c].getRow(r);l.forEach(((e,t)=>{const l=d.getCell(o+t);l.isMerged||(l.value=(0,n.A)(this,w)[w](e),l.style=i()({},u.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,n.A)(this,c)[c].mergeCells(r,o+t,r+((null===e||void 0===e?void 0:e.rowspan)-1||0),o+t+((null===e||void 0===e?void 0:e.colspan)-1||0)))})),a&&((0,n.A)(this,c)[c].getRow(r).height=a)}}),Object.defineProperty(this,p,{writable:!0,value:(e,t)=>{let{keys:r,data:o,columns:l,style:s}=t;const a=null===r||void 0===r?void 0:r.shift(),d=l.find((e=>e.key===a));let{col:y,row:f}=(0,n.A)(this,c)[c].getCell(h(e)).fullAddress;if(a&&d){const e=Array.from(new Set(o.map(((e,t)=>"undefined"!==typeof d.render?d.render(e,t):e[a]))));for(let t of e){const e=(0,n.A)(this,c)[c].getCell(f,+y,f,+y+l.filter((e=>!e.group)).length);e.value=t||null,e.style=i()({},u.eK,s,{font:{bold:!0}}),(0,n.A)(this,c)[c].mergeCells(e.address),f=(0,n.A)(this,p)[p]([+f+1,+y],{keys:r,columns:l,data:o.filter((e=>e[a]===t))})}}else l.filter((e=>!e.group)).forEach(((e,t)=>{o="function"===typeof o?o():o,o.forEach(((r,o)=>{const l="undefined"!==typeof e.render?e.render(r,o):r[e.key];(0,n.A)(this,c)[c].getCell(+f+o,+y+t).value=(0,n.A)(this,w)[w](l),(0,n.A)(this,c)[c].getCell(+f+o,+y+t).style=i()({},u.eK,s,null===e||void 0===e?void 0:e.style,null===l||void 0===l?void 0:l.style)})),(0,n.A)(this,c)[c].getColumn(+y+t).width="number"===typeof e.width?e.width:10})),f+=o.length;return f}}),(0,n.A)(this,c)[c]=e,this}get worksheet(){return(0,n.A)(this,c)[c]}renderArrayRowGroup(e,t){let{rows:r,style:o}=t;const{col:l,row:s}=(0,n.A)(this,c)[c].getCell(h(e)).fullAddress;("function"===typeof r?r():r).forEach(((e,t)=>{e&&(0,n.A)(this,y)[y]([s+t,l],{r:s+t,c:l,style:i()({},o,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:r,data:o,header:l,totalRow:s,rowNum:a,headerStyle:u,cellStyle:d,onEndRow:w}=t;const{col:y,row:f}=(0,n.A)(this,c)[c].getCell(h(e)).fullAddress;r="function"===typeof r?r():r,a&&r.unshift({name:"STT",render:(e,t)=>t+1,colStyle:{alignment:{horizontal:"center"}},width:5}),l||(l=[{cells:r.filter((e=>!e.group)).map((e=>({value:e.name,style:i()({},e.cellStyle)}))),style:u}]),this.renderArrayRowGroup(e,{rows:l,style:u});const g=r.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),v=(0,n.A)(this,p)[p]([+f+l.length,+y],{keys:g,data:o,columns:r,style:d});w&&w(v-1)}}class g extends o.Workbook{static create(){const e=new o.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,l.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=g},58483:(e,t,r)=>{r.r(t),r.d(t,{ExportKhoanChiSoQuy:()=>s,IntegerToRoman:()=>a});var o=r(76638),l=r(61278),n=r(49211);r(6058);const s=(e,t)=>{let{data:r,Nam:s,ConLai:a}=e;const i=new n.A,u=i.addWorksheet("S\u1ed4 C\xc1I");u.worksheet.getColumn(1).width=20,u.worksheet.getColumn(2).width=70,u.worksheet.getColumn(3).width=15,u.worksheet.getColumn(4).width=15,u.worksheet.getColumn(5).width=15,u.worksheet.getColumn(6).width=25,u.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:3}],[{value:"\u0110\u1ecba ch\u1ec9: 276/63 Ho\xe0ng V\u0103n Th\u1ee5 - Tp.Quy Nh\u01a1n - t\u1ec9nh B\xecnh \u0110\u1ecbnh ",colspan:3}],[{value:"\u0110T: 0256.3524.789 ",colspan:3}]]}),u.renderArrayRowGroup([5,1],{style:{font:{bold:!0},alignment:{horizontal:"center"}},rows:[[{value:`S\u1ed4 C\xc1I - ${s} `.toUpperCase(),colspan:3,rowspan:2},{value:""},{value:""},{value:"Ti\u1ec1n d\u01b0 s\u1ed5 qu\u1ef9: ",rowspan:2},{value:`${(0,l.ZV)(a)}`,rowspan:2}]]}),u.renderArrayRowGroup([7,1],{style:o.GN,rows:[[{rowspan:2,value:"NG\xc0Y, TH\xc1NG GHI S\u1ed4"},{rowspan:2,value:"DI\u1ec4N GI\u1ea2I"},{colspan:2,value:""},{value:""},{rowspan:2,value:"GHI CH\xda"}]]}),u.renderArrayRowGroup([8,3],{style:o.GN,rows:[[{value:"THU"},{value:"CHI"}]]});const d=(e,t)=>{if(0===t)return 0;return Array.from(new Array(t).keys()).reduce(((e,t)=>e+1),1)-1};r.map(((e,t,r)=>u.renderArrayRowGroup([9+d(0,t),1],{style:o.vw,rows:[[{value:(0,l.Yq)(e.ThoiGian),rowspan:e.rowSpan,style:{font:{bold:!0,size:12}}},{value:e.NoiDung},{value:e.Thu>0?(0,l.ZV)(e.Thu):"",style:{...o.eS}},{value:e.Chi>0?(0,l.ZV)(e.Chi):"",style:{...o.eS}},{value:e.Ton>0?(0,l.ZV)(e.Ton):"",style:{...o.eS}},{value:""}]]}))),i.download(t)};function a(e){if("number"!==typeof e)return"";for(var t=String(+e).split(""),r=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],o="",l=3;l--;)o=(r[+t.pop()+10*l]||"")+o;return Array(+t.join("")+1).join("M")+o}},76638:(e,t,r)=>{r.d(t,{GN:()=>a,YI:()=>i,Zz:()=>h,eK:()=>n,eS:()=>c,fY:()=>u,li:()=>d,vw:()=>s});var o=r(12020),l=r.n(o);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 n={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=l()({},{font:{bold:!0,size:12},alignment:{horizontal:"center",wrapText:!0}}),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",u={font:{bold:!0,size:10}},d={background:"#F2F2F2"},h={alignment:{horizontal:"center",vertical:"middle",wrapText:!0}},c={alignment:{horizontal:"right",vertical:"middle",wrapText:!0}}}}]); //# sourceMappingURL=8483.c77bc90f.chunk.js.map