|  |  |  | @ -537,7 +537,7 @@ import InvoiceRegistrationDetermine from "@/views/inout/InvoiceRegistrationDeter | 
			
		
	
		
			
				
					|  |  |  |  | import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" | 
			
		
	
		
			
				
					|  |  |  |  | import {getDeptListByUser} from "@/api/auth/authDept"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; | 
			
		
	
		
			
				
					|  |  |  |  | import {previewImage} from '@/api/purchase/supCompany' | 
			
		
	
		
			
				
					|  |  |  |  | import {previewImage,previewFile} from '@/api/purchase/supCompany' | 
			
		
	
		
			
				
					|  |  |  |  | import ElImageViewer from "element-ui/packages/image/src/image-viewer"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -773,19 +773,40 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.showSearch = !this.showSearch; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     showImgViewer(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name="; | 
			
		
	
		
			
				
					|  |  |  |  |       this.certFileUrl = | 
			
		
	
		
			
				
					|  |  |  |  |         this.BASE_URL + | 
			
		
	
		
			
				
					|  |  |  |  |         "/udiwms/image/register/file/getImage?type=image2&name="+row.licenseUrl; | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgList = []; | 
			
		
	
		
			
				
					|  |  |  |  |       previewImage({imageUrl: row.licenseUrl, certFileUrl: this.certFileUrl}).then(response => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.imgList = response.data; | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgList.push(this.certFileUrl) | 
			
		
	
		
			
				
					|  |  |  |  |       let index = row.licenseUrl.lastIndexOf('.'); | 
			
		
	
		
			
				
					|  |  |  |  |       if(index===-1){ | 
			
		
	
		
			
				
					|  |  |  |  |         this.$message.error("文件名异常!") | 
			
		
	
		
			
				
					|  |  |  |  |         return false | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if(row.licenseUrl.substr(index+1)==='pdf'){ | 
			
		
	
		
			
				
					|  |  |  |  |         let pdf = "application/pdf" | 
			
		
	
		
			
				
					|  |  |  |  |         let binaryData = []; | 
			
		
	
		
			
				
					|  |  |  |  |         previewFile(this.certFileUrl).then(res=>{ | 
			
		
	
		
			
				
					|  |  |  |  |           binaryData.push(res); | 
			
		
	
		
			
				
					|  |  |  |  |           let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); | 
			
		
	
		
			
				
					|  |  |  |  |           window.open(URL); | 
			
		
	
		
			
				
					|  |  |  |  |         }) | 
			
		
	
		
			
				
					|  |  |  |  |         // window.open(this.imgList[0]) | 
			
		
	
		
			
				
					|  |  |  |  |         return false | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |         console.log(this.imgList) | 
			
		
	
		
			
				
					|  |  |  |  |       this.imgViewerVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |       // previewImage({ | 
			
		
	
		
			
				
					|  |  |  |  |       //   imageUrl: this.inputQuery.licenseUrl, | 
			
		
	
		
			
				
					|  |  |  |  |       //   certFileUrl: this.certFileUrl, | 
			
		
	
		
			
				
					|  |  |  |  |       // }).then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |       //   if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |       //   } | 
			
		
	
		
			
				
					|  |  |  |  |       //   console.log(this.imgList); | 
			
		
	
		
			
				
					|  |  |  |  |       // }); | 
			
		
	
		
			
				
					|  |  |  |  |       const m = (e) => { | 
			
		
	
		
			
				
					|  |  |  |  |         e.preventDefault() | 
			
		
	
		
			
				
					|  |  |  |  |         e.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       document.body.style.overflow = 'hidden'; | 
			
		
	
		
			
				
					|  |  |  |  |       document.body.style.overflow = "hidden"; | 
			
		
	
		
			
				
					|  |  |  |  |       document.addEventListener("touchmove", m, false); // 禁止页面滑动 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -1163,6 +1184,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |   } | 
			
		
	
		
			
				
					|  |  |  |  |   , | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  |     debugger | 
			
		
	
		
			
				
					|  |  |  |  |     let supId = this.$store.getters.customerId; | 
			
		
	
		
			
				
					|  |  |  |  |     if (supId == "110") { | 
			
		
	
		
			
				
					|  |  |  |  |       this.showSup = true; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |