????

Your IP : 216.73.216.152


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

"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[1124,6078],{49211:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(79837),o=n(21307),l=n(23683),a=n(91343),i=n(12020),s=n.n(i),u=n(76638);function c(e){if(!e)return"";if(--e<u.YI.length)return u.YI[e];const t=e%u.YI.length;return`${c(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,n,r,o]=e;return r&&o?c(n)+t+":"+c(r)+o:c(n)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var h=(0,a.A)("ws"),f=(0,a.A)("getCellValue"),g=(0,a.A)("renderRow"),p=(0,a.A)("renderGroup");class y{constructor(e){return Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,f,{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[n,r=1]=e;const{cells:o,style:a,height:i}=t;if(!o)return;const c=(0,l.A)(this,h)[h].getRow(n);o.forEach(((e,t)=>{const o=c.getCell(r+t);o.isMerged||(o.value=(0,l.A)(this,f)[f](e),o.style=s()({},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,l.A)(this,h)[h].mergeCells(n,r+t,n+((null===e||void 0===e?void 0:e.rowspan)-1||0),r+t+((null===e||void 0===e?void 0:e.colspan)-1||0)))})),i&&((0,l.A)(this,h)[h].getRow(n).height=i)}}),Object.defineProperty(this,p,{writable:!0,value:(e,t)=>{let{keys:n,data:r,columns:o,style:a}=t;const i=null===n||void 0===n?void 0:n.shift(),c=o.find((e=>e.key===i));let{col:g,row:y}=(0,l.A)(this,h)[h].getCell(d(e)).fullAddress;if(i&&c){const e=Array.from(new Set(r.map(((e,t)=>"undefined"!==typeof c.render?c.render(e,t):e[i]))));for(let t of e){const e=(0,l.A)(this,h)[h].getCell(y,+g,y,+g+o.filter((e=>!e.group)).length);e.value=t||null,e.style=s()({},u.eK,a,{font:{bold:!0}}),(0,l.A)(this,h)[h].mergeCells(e.address),y=(0,l.A)(this,p)[p]([+y+1,+g],{keys:n,columns:o,data:r.filter((e=>e[i]===t))})}}else o.filter((e=>!e.group)).forEach(((e,t)=>{r="function"===typeof r?r():r,r.forEach(((n,r)=>{const o="undefined"!==typeof e.render?e.render(n,r):n[e.key];(0,l.A)(this,h)[h].getCell(+y+r,+g+t).value=(0,l.A)(this,f)[f](o),(0,l.A)(this,h)[h].getCell(+y+r,+g+t).style=s()({},u.eK,a,null===e||void 0===e?void 0:e.style,null===o||void 0===o?void 0:o.style)})),(0,l.A)(this,h)[h].getColumn(+g+t).width="number"===typeof e.width?e.width:10})),y+=r.length;return y}}),(0,l.A)(this,h)[h]=e,this}get worksheet(){return(0,l.A)(this,h)[h]}renderArrayRowGroup(e,t){let{rows:n,style:r}=t;const{col:o,row:a}=(0,l.A)(this,h)[h].getCell(d(e)).fullAddress;("function"===typeof n?n():n).forEach(((e,t)=>{e&&(0,l.A)(this,g)[g]([a+t,o],{r:a+t,c:o,style:s()({},r,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:n,data:r,header:o,totalRow:a,rowNum:i,headerStyle:u,cellStyle:c,onEndRow:f}=t;const{col:g,row:y}=(0,l.A)(this,h)[h].getCell(d(e)).fullAddress;n="function"===typeof n?n():n,i&&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:s()({},e.cellStyle)}))),style:u}]),this.renderArrayRowGroup(e,{rows:o,style:u});const w=n.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),v=(0,l.A)(this,p)[p]([+y+o.length,+g],{keys:w,data:r,columns:n,style:c});f&&f(v-1)}}class w extends r.Workbook{static create(){const e=new r.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 y(super.addWorksheet(e,t))}getWorksheet(e){return new y(super.getWorksheet(e))}}const v=w},56078:(e,t,n)=>{function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return{style:{alignment:{horizontal:"center"}},rows:[[{value:"T\u1ec8NH \u1ee6Y B\xccNH \u0110\u1ecaNH",colspan:e}],[{value:"TR\u01af\u1edcNG CH\xcdNH TR\u1eca",colspan:e,style:{font:{bold:!0}}}]]}}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return{style:{alignment:{horizontal:"center"}},rows:[[{value:"C\u1ed8NG H\xd2A X\xc3 H\u1ed8I CH\u1ee6 NGH\u0128A VI\u1ec6T NAM",colspan:e,style:{font:{bold:!0}}}],[{value:"\u0110\u1ed9c l\u1eadp - T\u1ef1 do - H\u1ea1nh ph\xfac",colspan:e,style:{font:{bold:!0}}}],[{value:"-----***-----",colspan:e}]]}}function l(){return{style:{alignment:{horizontal:"center"},font:{bold:!0,underline:"single"}},rows:[[{value:"\u0110\u1ea2NG C\u1ed8NG S\u1ea2N VI\u1ec6T NAM",colspan:arguments.length>0&&void 0!==arguments[0]?arguments[0]:3}]]}}function a(e,t,n){if(!e)throw new Error("T\u1ed5ng s\u1ed1 c\u1ed9t c\u1ea7n merge cell ph\u1ea3i l\u1edbn h\u01a1n 0");return{style:{alignment:{horizontal:"center"}},rows:[[{value:t,colspan:e,style:{font:{bold:!0}}}],[{value:n,colspan:e,style:{font:{italic:!0}}}]]}}n.r(t),n.d(t,{ExportDonVi:()=>r,ExportInfo:()=>a,ExportParty:()=>l,ExportQuocHieu:()=>o})},57373:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(3887),o=n(12604),l=n(20072),a=n(4840),i=n(65994),s=n(5419),u=/(\w)\1*|''|'(''|[^'])+('|$)|./g,c=/^'([^]*?)'?$/,d=/''/g,h=/[a-zA-Z]/;function f(e,t){(0,s.A)(2,arguments);var n=(0,r.A)(e);if(!(0,a.A)(n))throw new RangeError("Invalid time value");var f=(0,l.A)(n),g=(0,i.A)(n,f),p=t.match(u);return p?p.map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return function(e){var t=e.match(c);if(!t)return e;return t[1].replace(d,"'")}(e);var n=o.A[t];if(n)return n(g,e);if(t.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join(""):""}},71124:(e,t,n)=>{n.r(t),n.d(t,{IntegerToRoman:()=>d,default:()=>u});var r=n(76638),o=n(49211),l=n(56078),a=n(57373),i=n(61278);const s={1:"00FF7300",2:"00e4ebcc",3:"00FFFFFF"};async function u(e,t){let{Nam:n,cuaHangs:i,data:s}=e;const u=new o.A,d=2+i.length+1,h=Array.from(Array(i.length+1).keys()).map((e=>e)),f=u.addWorksheet(`S\u1ed1 n\u1ee3 v\u1eadt li\u1ec7u t\u1eebng c\xf4ng tr\xecnh n\u0103m ${n}`);f.worksheet.getColumn(2).width=30,f.worksheet.getColumn(4).width=20,h.sort().forEach((e=>f.worksheet.getColumn(e+3).width=15)),f.renderArrayRowGroup([1,3],(0,l.ExportQuocHieu)(d-2)),f.renderArrayRowGroup([4,1],{style:{font:{bold:!0},alignment:{horizontal:"center"}},rows:[[{value:`S\u1ed4 N\u1ee2 V\u1eacT LI\u1ec6U T\u1eeaNG C\xd4NG TR\xccNH - ${n} `.toUpperCase(),colspan:d}]]}),f.renderArrayRowGroup([5,d-4],{style:{font:{italic:!0},alignment:{horizontal:"center"}},rows:[[{colspan:4,value:`B\xecnh \u0110\u1ecbnh, ${(0,a.A)(new Date,"'ng\xe0y 'dd' th\xe1ng 'MM' n\u0103m 'yyyy")}`}]]}),f.renderArrayRowGroup([6,1],function(e){let{cuaHangs:t}=e;const n=e=>t.map(((t,n)=>({rowspan:e,value:t.TenCuaHang})));return{style:r.GN,rows:[[{rowspan:1,value:"TT"},{rowspan:1,value:"T\xcaN C\xd4NG TR\xccNH"},...n(1),{rowspan:1,value:"T\u1ed4NG C\u1ed8NG"}]]}}({cuaHangs:i}));const g=function(e,t){let n=[];return e.forEach(((e,r)=>{n=[...n,c({row:e},t,!1,r)]})),n}(s,i);f.renderArrayRowGroup([7,1],{style:r.vw,rows:g}),u.download(t)}function c(e,t){let{row:n}=e,r=arguments.length>3?arguments[3]:void 0;const o={font:{bold:arguments.length>2&&void 0!==arguments[2]&&arguments[2],background:{argb:s[1]}}},l=r+1,a=n.CongNos.reduce(((e,t)=>e+t.SoTien),0);return[{value:l,style:{...o,alignment:{horizontal:"center"}}},{value:n.TenDuAn,style:o},...(e=>{let{CongNos:n,...r}=e;return t.map((e=>{const t=n.find((t=>t.CuaHangId===e.CuaHangId));return{value:(t?(0,i.ZV)(t.SoTien):null)||null}}))})(n),{value:a,style:o}]}function d(e){if("number"!==typeof e)return"";for(var t=String(+e).split(""),n=["","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"],r="",o=3;o--;)r=(n[+t.pop()+10*o]||"")+r;return Array(+t.join("")+1).join("M")+r}},76638:(e,t,n)=>{n.d(t,{GN:()=>i,YI:()=>s,Zz:()=>d,eK:()=>l,eS:()=>h,fY:()=>u,li:()=>c,vw:()=>a});var r=n(12020),o=n.n(r);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 l={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"}}}},i=o()({},{font:{bold:!0,size:12},alignment:{horizontal:"center",wrapText:!0}}),s="ABCDEFGHIJKLMNOPQRSTUVWXYZ",u={font:{bold:!0,size:10}},c={background:"#F2F2F2"},d={alignment:{horizontal:"center",vertical:"middle",wrapText:!0}},h={alignment:{horizontal:"right",vertical:"middle",wrapText:!0}}}}]);
//# sourceMappingURL=1124.20db92a3.chunk.js.map