????
Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/ |
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/2990.4dd2e007.chunk.js |
"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[2990],{49211:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(79837),l=n(21307),o=n(23683),a=n(91343),s=n(12020),i=n.n(s),u=n(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,n,r,l]=e;return r&&l?h(n)+t+":"+h(r)+l:h(n)+t}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}var c=(0,a.A)("ws"),v=(0,a.A)("getCellValue"),g=(0,a.A)("renderRow"),y=(0,a.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[n,r=1]=e;const{cells:l,style:a,height:s}=t;if(!l)return;const h=(0,o.A)(this,c)[c].getRow(n);l.forEach(((e,t)=>{const l=h.getCell(r+t);l.isMerged||(l.value=(0,o.A)(this,v)[v](e),l.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(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)))})),s&&((0,o.A)(this,c)[c].getRow(n).height=s)}}),Object.defineProperty(this,y,{writable:!0,value:(e,t)=>{let{keys:n,data:r,columns:l,style:a}=t;const s=null===n||void 0===n?void 0:n.shift(),h=l.find((e=>e.key===s));let{col:g,row:w}=(0,o.A)(this,c)[c].getCell(d(e)).fullAddress;if(s&&h){const e=Array.from(new Set(r.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(w,+g,w,+g+l.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),w=(0,o.A)(this,y)[y]([+w+1,+g],{keys:n,columns:l,data:r.filter((e=>e[s]===t))})}}else l.filter((e=>!e.group)).forEach(((e,t)=>{r="function"===typeof r?r():r,r.forEach(((n,r)=>{const l="undefined"!==typeof e.render?e.render(n,r):n[e.key];(0,o.A)(this,c)[c].getCell(+w+r,+g+t).value=(0,o.A)(this,v)[v](l),(0,o.A)(this,c)[c].getCell(+w+r,+g+t).style=i()({},u.eK,a,null===e||void 0===e?void 0:e.style,null===l||void 0===l?void 0:l.style)})),(0,o.A)(this,c)[c].getColumn(+g+t).width="number"===typeof e.width?e.width:10})),w+=r.length;return w}}),(0,o.A)(this,c)[c]=e,this}get worksheet(){return(0,o.A)(this,c)[c]}renderArrayRowGroup(e,t){let{rows:n,style:r}=t;const{col:l,row:a}=(0,o.A)(this,c)[c].getCell(d(e)).fullAddress;("function"===typeof n?n():n).forEach(((e,t)=>{e&&(0,o.A)(this,g)[g]([a+t,l],{r:a+t,c:l,style:i()({},r,e.style),cells:e.cells||e,height:e.height})}))}renderDataRowGroup(e,t){let{columns:n,data:r,header:l,totalRow:a,rowNum:s,headerStyle:u,cellStyle:h,onEndRow:v}=t;const{col:g,row:w}=(0,o.A)(this,c)[c].getCell(d(e)).fullAddress;n="function"===typeof n?n():n,s&&n.unshift({name:"STT",render:(e,t)=>t+1,colStyle:{alignment:{horizontal:"center"}},width:5}),l||(l=[{cells:n.filter((e=>!e.group)).map((e=>({value:e.name,style:i()({},e.cellStyle)}))),style:u}]),this.renderArrayRowGroup(e,{rows:l,style:u});const f=n.filter((e=>e.group)).sort(((e,t)=>+e.group-+t.group)).map((e=>e.key)),p=(0,o.A)(this,y)[y]([+w+l.length,+g],{keys:f,data:r,columns:n,style:h});v&&v(p-1)}}class f 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,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 w(super.addWorksheet(e,t))}getWorksheet(e){return new w(super.getWorksheet(e))}}const p=f},57373:(e,t,n)=>{n.d(t,{A:()=>v});var r=n(3887),l=n(12604),o=n(20072),a=n(4840),s=n(65994),i=n(5419),u=/(\w)\1*|''|'(''|[^'])+('|$)|./g,h=/^'([^]*?)'?$/,d=/''/g,c=/[a-zA-Z]/;function v(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e);if(!(0,a.A)(n))throw new RangeError("Invalid time value");var v=(0,o.A)(n),g=(0,s.A)(n,v),y=t.match(u);return y?y.map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return function(e){var t=e.match(h);if(!t)return e;return t[1].replace(d,"'")}(e);var n=l.A[t];if(n)return n(g,e);if(t.match(c))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join(""):""}},62990:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var r=n(76638),l=n(49211),o=n(57373),a=n(61278),s=n(35065);async function i(e,t){let{data:n,TenDoi:a,Nam:i}=e;const c=new l.A,v=c.addWorksheet("B\u1ea3ng t\u1ed5ng h\u1ee3p nh\xe2n c\xf4ng \u0111\u1ed9i thu\xea ngo\xe0i");v.worksheet.getColumn(1).width=30,v.worksheet.getColumn(2).width=20,v.worksheet.getColumn(3).width=20,v.worksheet.getColumn(4).width=35,v.worksheet.getColumn(5).width=20,v.worksheet.getColumn(6).width=20,v.renderArrayRowGroup([4,1],{style:{font:{bold:!0},alignment:{horizontal:"center"}},rows:[[{value:`B\u1ea3ng t\u1ed5ng h\u1ee3p nh\xe2n c\xf4ng ${a} - ${i}`.toUpperCase(),colspan:6}]]}),v.renderArrayRowGroup([5,2],{style:{font:{italic:!0},alignment:{horizontal:"center"}},rows:[[{colspan:"6",value:`B\xecnh \u0110\u1ecbnh, ${(0,o.A)(new Date,"'ng\xe0y 'dd' th\xe1ng 'MM' n\u0103m 'yyyy")}`}]]}),v.renderArrayRowGroup([6,1],{style:r.GN,rows:[[{rowspan:1,value:"T\xcaN V\u1eacT T\u01af"},{rowspan:1,value:"SL"},{rowspan:1,value:"L\xc0M TR\xd2N"},{rowspan:1,value:"\u0110\u01a0N GI\xc1"},{rowspan:1,value:"TH\xc0NH TI\u1ec0N"},{rowspan:1,value:"T\u1ea0M \u1ee8NG"}]]});const g=function(e){let t=[];if(e&&0!==e.length)return e.forEach((e=>{t=[...t,h({row:e}),...u(e.DuAns),...d({row:e})]})),t;(0,s.AB)("CH\u01afA C\xd3 D\u1eee LI\u1ec6U \u0110\u1ec2 XU\u1ea4T B\xc1O C\xc1O")}(n);g&&(v.renderArrayRowGroup([7,1],{style:r.vw,rows:g}),c.download(t))}const u=e=>{let t=[];return e.forEach(((e,n)=>{t.push([{value:e.OrganName,style:{...v}},{value:""},{value:""},{value:""},{value:""},{value:""}],...e.Items.map((e=>[{value:e.Name},{value:(0,a.ZV)(e.NgayCong),style:{...r.eS}},{value:(0,a.ZV)(e.LamTron),style:{...r.eS}},{value:(0,a.ZV)(e.DonGia),style:{...r.eS}},{value:(0,a.ZV)(e.ThanhTien),style:{...r.eS}},{value:""}])),[{value:"T\u1ed5ng",style:{...v,...r.Zz}},{value:(0,a.ZV)(e.TongNgayCong),style:{...v,...r.eS}},{value:(0,a.ZV)(e.TongLamTron),style:{...v,...r.eS}},{value:""},{value:(0,a.ZV)(e.ThanhTien),style:{...v,...r.eS}},{value:""}])})),t};function h(e){let{row:t}=e;return[{value:`\u0110\u1ee2T ${t.Dot}`,colspan:4,style:{...c,...r.Zz}},{value:""},{value:""},{value:""},{value:(0,a.ZV)(t.TongThanhTien),style:{...c,...r.eS}},{value:(0,a.ZV)(t.TongTamUng),style:{...c,...r.eS}}]}function d(e){let{row:t}=e;return[[{value:""},{value:""},{value:""},{value:"T\u1ed4NG T\u1ea4T C\u1ea2 D\u1ef0 \xc1N",style:{...c}},{value:(0,a.ZV)(t.TongThanhTien),style:{...c,...r.eS}},{value:""}],[{value:""},{value:""},{value:""},{value:"T\u1ed4NG T\u1ea0M \u1ee8NG",style:{...c}},{value:(0,a.ZV)(t.TongTamUng),style:{...c,...r.eS}},{value:""}]]}const c={font:{bold:!0,size:13}},v={font:{bold:!0,size:12}}},76638:(e,t,n)=>{n.d(t,{GN:()=>s,YI:()=>i,Zz:()=>d,eK:()=>o,eS:()=>c,fY:()=>u,li:()=>h,vw:()=>a});var r=n(12020),l=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 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=l()({},{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}}}}]); //# sourceMappingURL=2990.4dd2e007.chunk.js.map