PageSourceSearch

https://siadeg.com.pe/assets/printRutaOC-CR2CnS9v.js

js siadeg.com.pe collected 2026-10-07 22:53:19 UTC 3,386 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jspdf-B_2VEtCs.js","assets/base64-js-M0VIu83K.js","assets/@aws-sdk-B1iEKHEo.js","assets/tslib-CaAMb0zI.js","assets/@babel-BanGtE2-.js","assets/fflate-BO5HMHBV.js"])))=>i.map(i=>d[i]);
2import{_ as v}from"./@aws-sdk-B1iEKHEo.js";import{b as c}from"./baseURL-FDj6yqPB.js";import{v as P}from"./version-D23ed1lR.js";import{toast as x}from"./vue-sonner-2P7A3iV7.js";import"./jspdf-autotable-BhduZ7SR.js";import{l as m}from"./loadImage-Dc-lFjpj.js";import{f as h}from"./date-fns-DD-6qAlM.js";import"./tslib-CaAMb0zI.js";import"./@vue-DqykUxBZ.js";import"./base64-js-M0VIu83K.js";import"./jspdf-B_2VEtCs.js";import"./@babel-BanGtE2-.js";import"./fflate-BO5HMHBV.js";const A=async(o,l)=>{const{jsPDF:f}=await v(async()=>{const{jsPDF:e}=await import("./jspdf-B_2VEtCs.js").then(_=>_.j);return{jsPDF:e}},__vite__mapDeps([0,1,2,3,4,5]));if(l.length===0)return x.error("No hay datos para imprimir");let g=h(new Date(l[0]?.Fecha),"dd/MM/yyyy");const[p,u]=await Promise.all([m(`${c()}clientes/cli_${o.CodEmpresa}/CLI_${o.CodEmpresa}Lg.jpg?21`),m(`${c()}clientes/Borde_Titulo.jpg?21`)]),t=new f({orientation:"p",unit:"mm",format:"a4",putOnlyUsedFonts:!0,floatPrecision:16});let y=[{content:l[0]?.Nro_Orden,styles:{halign:"left",cellWidth:20}},{content:g,styles:{halign:"left",cellWidth:20}},l[0]?.proveedor],C=["Nro. NEA","Fecha","Almacén","Recibido por:"],r=[];l.forEach(e=>{r.push([e?.nro_nea,h(new Date(e?.fecha_nea),"dd/MM/yyyy"),e?.almacen,e?.recibido_por])});let i={startY:0,margin:{right:10,left:15},columnStyles:{0:{halign:"left",cellWidth:20},1:{halign:"left",cellWidth:20},2:{halign:"left"},3:{halign:"left"}},styles:{fontSize:6,cellWidth:"auto",halign:"left",valign:"middle",cellPadding:1,lineWidth:.1,lineColor:[0,0,0],minCellHeight:5,minCellWidth:5}},a={startY:0,margin:{right:10,left:30},columnStyles:{0:{halign:"left",cellWidth:20},1:{halign:"left",cellWidth:20},2:{halign:"left"},3:{halign:"left"}},styles:{fontSize:6,cellWidth:"auto",halign:"left",valign:"middle",cellPadding:1,lineWidth:.1,lineColor:[0,0,0],minCellHeight:5,minCellWidth:5}};i.margin.left=10,i.startY=35,t.autoTable({head:[y],body:[],...i});let b=t.previousAutoTable.finalY;a.startY=b,t.autoTable({head:[C],body:r,...a,didParseCell:function(e){e.row.index===0&&e.section==="head"?e.cell.styles.fillColor="#3DB8EE":e.row.index===1&&e.section==="head"&&(e.cell.styles.fillColor="#009BDE",e.cell.styles.textColor="#FFFFFF")}});var s=t.internal.getNumberOfPages();for(let e=1;e<=s;e++)t.setPage(e),t.addImage(p,"jpg",10,5,18,15),t.setFontSize(10),t.setTextColor(0,0,139),t.setFont(void 0,"bold"),t.text(o.RazonSocial,32,10),t.setFont(void 0,"normal"),t.setFontSize(8),t.text(`Prov. ${o.Provincia} - ${o.Departamento}`,32,14),t.text(`RUC: ${o.RUCPrivado}`,32,18),t.setTextColor(112,2,2),t.setFontSize(4),t.setFont(void 0,"italic"),t.text(P,184,6),t.setFontSize(8),t.setFont(void 0,"normal"),t.setTextColor(112,2,2),t.text(`Página ${e} de ${s}`,184,20),t.addImage(u,"jpg",62,19,90,10),t.setFontSize(14),t.setFont(void 0,"bold"),t.setTextColor(0,0,0),t.text(`SEGUIMIENTO DE: ${l[0]?.Nro_Orden} `,66,25);const F=/Mobile|Android/.test(navigator.userAgent),d=await new Promise(e=>{e(t.output("blob"))}),n=document.createElement("a");F?(n.href=URL.createObjectURL(d),n.download="RUTA_OC.pdf",n.click()):window.open(URL.createObjectURL(d))};export{A as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.