text: (window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"+Awk":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("lwsE"),a=n.n(r),i=n("W8MJ"),o=n.n(i),l=n("rywy"),c=function(){function e(t){a()(this,e),this.uri=t}return o()(e,[{key:"list",value:function(e){return Object(l.a)({url:"/"+this.uri,method:"get",params:e})}},{key:"get",value:function(e){return Object(l.a)({url:"/"+this.uri+"/"+e,method:"get"})}},{key:"store",value:function(e){return Object(l.a)({url:"/"+this.uri,method:"post",data:e})}},{key:"update",value:function(e,t){return Object(l.a)({url:"/"+this.uri+"/"+e,method:"put",data:t})}},{key:"destroy",value:function(e){return Object(l.a)({url:"/"+this.uri+"/"+e,method:"delete"})}}]),e}()},"9zGX":function(e,t,n){"use strict";n.r(t);var r=n("o0o1"),a=n.n(r),i=n("yXPU"),o=n.n(i),l=n("+Awk"),c=new l.a("perfilEmpresa"),d=new l.a("embarques"),s=n("IyBY").default,p={data:function(){return{logoEmpresa:s,article:"",fullscreenLoading:!0,id:0,perfil_empresa_id:0,query:{page:1,limit:15,keyword:"",role:"",id:""},embarques:[],embarque:{cliente:{nombre_cliente:""}},perfil_empresa:[]}},created:function(){this.id=this.$route.params.id,this.perfil_empresa_id=this.$route.params.perfil_empresa_id},mounted:function(){this.fetchData()},methods:{fetchData:function(){var e=this;return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.getPerfilEmpresa(),e.query.id=e.id,t.next=4,d.list(e.query).then((function(t){e.embarques=t.data,e.embarque=t.data[0],setTimeout((function(){e.fullscreenLoading=!1,e.$nextTick((function(){window.print()}))}),3e3)}));case 4:case"end":return t.stop()}}),t)})))()},getPerfilEmpresa:function(){var e=this;return o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.query.perfil_empresa_id=e.perfil_empresa_id,t.next=3,c.list(e.query);case 3:n=t.sent,r=n.data,n.meta,console.log("PERFIL EMPRESA"),console.log(r),e.perfil_empresa=r[0];case 9:case"end":return t.stop()}}),t)})))()}}},u=(n("pISR"),n("KHd+")),f=Object(u.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.fullscreenLoading,expression:"fullscreenLoading",modifiers:{fullscreen:!0,lock:!0}}],staticClass:"main-article",attrs:{"element-loading-text":"Generando PDF"}},[n("div",{ref:"content",staticClass:"node-article-content"},[n("div",{attrs:{id:"page-wrap"}},[n("div",{attrs:{id:"identity"}},[n("div",{attrs:{id:"address"}},[n("br"),e._v(" "),e._m(0),e._v(" "),n("p",[e._v(e._s(e.perfil_empresa.nombre_representante)+" ")]),e._v(" "),n("p",[e._v(e._s(e.perfil_empresa.rfc))]),e._v(" "),n("p",[e._v(e._s(e.perfil_empresa.email))]),e._v(" "),n("textarea")]),e._v(" "),n("div",{attrs:{id:"logo"}},[n("img",{attrs:{id:"image",src:e.logoEmpresa,alt:"logo"}})])]),e._v(" "),n("div",{staticStyle:{clear:"both"}}),e._v(" "),n("div",{attrs:{id:"customer"}},[n("el-table",{ref:"tableList",staticStyle:{width:"100%","word-wrap":"break-word"},attrs:{data:e.embarques,border:"",fit:""}},[n("el-table-column",{attrs:{prop:"id",label:"Emb #",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"fecha_salida",label:"Fecha de Salida",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n                          "+e._s(e._f("moment")(t.row.fecha_salida,"YYYY-MMM-DD"))+"\n                  ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"cliente.nombre_cliente",label:"Cliente"}}),e._v(" "),n("el-table-column",{attrs:{prop:"cantidad_bultos",label:"Cant. de Bultos",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"compania_transporte",label:"Compañia de Transporte"}}),e._v(" "),n("el-table-column",{attrs:{prop:"nombre_chofer",label:"Nombre del Chofer"}})],1)],1),e._v(" "),n("div",{attrs:{id:"ordenes"}},[n("div",{attrs:{id:"header"}},[e._v("ORDENES")]),e._v(" "),n("el-row",[n("el-table",{ref:"tableList",staticStyle:{width:"100%","word-wrap":"break-word"},attrs:{data:e.embarque.proyectos_productos,fit:"",border:""}},[n("el-table-column",{attrs:{type:"index",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{prop:"numero_parte",label:"Número de Parte (Local)",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"producto.numero_parte_cliente",label:"Número de Parte (Cliente)",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"producto.item",label:"Item",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"producto.work_order",label:"Work Order",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{prop:"cantidad",label:"Cantidad",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("textarea",[e._v(e._s(t.row.cantidad))])]}}])})],1)],1)],1),e._v(" "),n("div",{staticStyle:{float:"left","margin-left":"32px"},attrs:{id:"terms"}},[n("h5"),n("textarea",[e._v("Recibió ("+e._s(e.embarque.nombre_chofer)+")")])]),e._v(" "),e._m(1)])])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticStyle:{"font-size":"14px"}},[t("b",[this._v("Hoja de Salida/ Packing List")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{float:"right","margin-right":"32px"},attrs:{id:"terms"}},[t("h5"),t("textarea",[this._v("Autorizó")])])}],!1,null,null,null);t.default=f.exports},CQit:function(e,t,n){(t=n("JPst")(!1)).push([e.i,"#elTable {\n  display: inline-block;\n  -webkit-box-sizing: border-box;\n  box-sizing: border-box;\n  position: relative;\n  vertical-align: middle;\n  padding-left: 10px;\n  padding-right: 10px;\n  width: 100%;\n}\n.el-table .cell {\n  word-break: break-word;\n}\n.el-table thead {\n  color: #000;\n}\n#customer .el-table {\n  font-size: 10px;\n}\n#customer .el-table .cell {\n  padding: 0px;\n  line-height: 12px;\n}\n.el-table--border {\n  border: 1px solid #dfe6ec;\n}\n.main-article {\n  margin: 0 auto;\n  display: block;\n  width: 740px;\n  background: #fff;\n}\n.article__heading {\n  position: relative;\n  padding: 0 0 20px;\n  overflow: hidden;\n}\n.article__heading__title {\n  display: block;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n  line-clamp: 2;\n  word-wrap: break-word;\n  overflow-wrap: break-word;\n  font-size: 32px;\n  line-height: 48px;\n  font-weight: 600;\n  color: #333;\n  overflow: hidden;\n}\n.node-article-content {\n  margin: 0 0 0;\n  font-size: 12px;\n  color: #333;\n  letter-spacing: 0.5px;\n  line-height: 28px;\n  margin-bottom: 30px;\n  font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;\n  /*\r\n\t CSS-Tricks Example\r\n\t by Chris Coyier\r\n\t http://css-tricks.com\r\n*/\n}\n.node-article-content:before {\n  display: table;\n  content: '';\n  clear: both;\n}\n.node-article-content:after {\n  display: table;\n  content: '';\n  clear: both;\n}\n.node-article-content > :last-child {\n  margin-bottom: 0;\n}\n.node-article-content * {\n  margin: 0;\n  padding: 0;\n}\n.node-article-content body {\n  font: 14px/1.4;\n}\n.node-article-content #page-wrap {\n  width: 100%;\n  margin: 0 auto;\n}\n.node-article-content textarea {\n  border: 0;\n  overflow: hidden;\n  resize: none;\n}\n.node-article-content textarea:hover, .node-article-content textarea:focus, .node-article-content #items td.total-value textarea:hover, .node-article-content #items td.total-value textarea:focus, .node-article-content .delete:hover {\n  background-color: #EEFF88;\n}\n.node-article-content #ordenes textarea {\n  text-align: center;\n  vertical-align: middle;\n}\n.node-article-content table td, .node-article-content table th {\n  padding: 5px;\n}\n.node-article-content #header {\n  height: 30px;\n  width: 100%;\n  margin: 0 0;\n  background: #fff;\n  text-align: center;\n  color: black;\n  font: bold 15px Helvetica, Sans-Serif;\n  -webkit-text-decoration: uppercase;\n          text-decoration: uppercase;\n  letter-spacing: 20px;\n  padding: 8px 0px;\n}\n.node-article-content #address {\n  width: 400px;\n  height: 150px;\n  float: right;\n  line-height: 12px;\n  text-align: right;\n  font-size: 8px;\n}\n.node-article-content #address textarea {\n  width: 50%;\n  text-align: right;\n}\n.node-article-content #customer {\n  margin: 0 0 20px 0;\n  overflow: hidden;\n}\n.node-article-content #meta {\n  margin-top: 1px;\n  width: 100%;\n}\n.node-article-content #image {\n  height: 150px;\n}\n.node-article-content #terms {\n  text-align: center;\n  margin-top: 20px;\n  width: 276px;\n  padding-top: 100px;\n}\n.node-article-content #terms h5 {\n  text-transform: uppercase;\n  font: 13px;\n  letter-spacing: 10px;\n  border-bottom: 1px solid black;\n  padding: 0 0 8px 0;\n  margin: 0 0 8px 0;\n}\n.node-article-content #terms textarea {\n  width: 100%;\n  text-align: center;\n}\n",""]),e.exports=t},IyBY:function(e,t,n){"use strict";n.r(t),t.default="/images/logo-dsi.jpeg?a01e32d530b7989185e2a33d0d713222"},W8MJ:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},aNFm:function(e,t,n){var r=n("CQit");"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n("aET+")(r,a);r.locals&&(e.exports=r.locals)},lwsE:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},pISR:function(e,t,n){"use strict";var r=n("aNFm");n.n(r).a}}]);