You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
3.2 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ba6e5a5c"],{1:function(t,n){},2:function(t,n){},"29fa":function(t,n,a){"use strict";a.r(n);var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"box",staticStyle:{position:"relative"}},[a("div",{staticStyle:{position:"fixed",top:"20px",right:"20px"}},[a("el-button",{attrs:{icon:"el-icon-download",type:"warning",plain:""},on:{click:t.handleDownload}},[t._v("下载")])],1),a("div",{staticClass:"box-cent"},[a("div",{staticClass:"box-cent1"},[a("div",{staticClass:"div-pdf"},t._l(t.loadedPages,(function(n){return a("pdf",{key:n,attrs:{src:t.filePdfUrl,page:n}})})),1)])])])},i=[],o=(a("14d9"),a("858e")),r={name:"MeetingList",props:["pdfPath"],components:{pdf:o["a"]},data:function(){return{filePdfUrl:"",numPages:0,show:!1,loadedPages:[],currentPage:1,loadInterval:null,loadCount:5}},created:function(){this.filePdfUrl=this.pdfPath,this.getNumPages(this.filePdfUrl)},beforeDestroy:function(){this.loadInterval&&clearInterval(this.loadInterval)},methods:{handleDownload:function(){window.open(this.filePdfUrl)},getNumPages:function(t){var n=this;this.pdfSrc=t,this.pdfSrc=o["a"].createLoadingTask(this.pdfSrc),this.pdfSrc.promise.then((function(t){n.numPages=t.numPages,n.startLoadingPages()}))},startLoadingPages:function(){var t=this;this.loadInterval=setInterval((function(){if(t.currentPage<=t.numPages){for(var n=Math.min(t.currentPage+t.loadCount-1,t.numPages),a=t.currentPage;a<=n;a++)t.loadedPages.push(a);t.currentPage=n+1}else clearInterval(t.loadInterval)}),500)}},onLoad:function(){}},d=r,s=(a("3d68"),a("2877")),c=Object(s["a"])(d,e,i,!1,null,"61d9b5e2",null);n["default"]=c.exports},3:function(t,n){},"3d68":function(t,n,a){"use strict";a("ab98")},4:function(t,n){},5:function(t,n){},6:function(t,n){},"6c60":function(t,n,a){},"885f":function(t,n,a){"use strict";a.r(n);var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"container"},[t.pdfPath?a("div",[a("pdf",{attrs:{pdfPath:t.pdfPath}})],1):a("div",{staticClass:"zw"},[t._v("未查询到报告单")])])},i=[],o=a("c14f"),r=a("1da1"),d=a("b775");function s(t){return Object(d["a"])({url:"/reportPDF",method:"post",data:t})}var c=a("29fa"),l={components:{pdf:c["default"]},data:function(){return{loading:!1,qzUrl:"/cga/v2/api/admin/",pdfPath:null}},methods:{handleDownload:function(){this.pdfPath&&window.open(this.pdfPath)},getExportPdf:function(){var t=this;return Object(r["a"])(Object(o["a"])().m((function n(){return Object(o["a"])().w((function(n){while(1)switch(n.n){case 0:t.loading=!0,s({patientNo:t.$route.query.patient_no,emplCode:t.$route.query.empl_code}).then((function(n){t.loading=!1,t.pdfPath=null,n.data&&(t.$modal.msgSuccess("查询成功"),t.pdfPath=t.qzUrl+n.data)})).catch((function(n){t.loading=!1,t.$modal.msgError("查询失败")}));case 1:return n.a(2)}}),n)})))()}},created:function(){var t=176;localStorage.setItem("hospitalId",t),this.getExportPdf()}},u=l,f=(a("94d6"),a("2877")),p=Object(f["a"])(u,e,i,!1,null,"2c9dad04",null);n["default"]=p.exports},"94d6":function(t,n,a){"use strict";a("6c60")},ab98:function(t,n,a){}}]);