|  |  |  | @ -132,7 +132,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </el-tag> | 
			
		
	
		
			
				
					|  |  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="操作" width="200" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="操作" width="250" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |           <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
	
		
			
				
					|  |  |  | @ -142,6 +142,13 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             >打印 | 
			
		
	
		
			
				
					|  |  |  |  |             </el-button | 
			
		
	
		
			
				
					|  |  |  |  |             > | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
		
			
				
					|  |  |  |  |                 type="text" | 
			
		
	
		
			
				
					|  |  |  |  |                 size="small" | 
			
		
	
		
			
				
					|  |  |  |  |                 @click.native="printOrderDetailPDF(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |             >报表打印 | 
			
		
	
		
			
				
					|  |  |  |  |             </el-button | 
			
		
	
		
			
				
					|  |  |  |  |             > | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
		
			
				
					|  |  |  |  |               type="text" | 
			
		
	
		
			
				
					|  |  |  |  |               size="small" | 
			
		
	
	
		
			
				
					|  |  |  | @ -522,7 +529,11 @@ import {getCodeDetailList} from "@/api/inout/orderDetailCode"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getCodeList} from "@/api/inout/code"; | 
			
		
	
		
			
				
					|  |  |  |  | import AcceptOrder from "@/views/inout/DialogReviewOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import NewAcceptOrder from "@/views/inout/DialogNewReviewOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" | 
			
		
	
		
			
				
					|  |  |  |  | import { | 
			
		
	
		
			
				
					|  |  |  |  |   inspectionOrderPDFFromStatemenTemplateFile, | 
			
		
	
		
			
				
					|  |  |  |  |   inspectionOrderPDFFromTemplateFile, orderPDFFromStatemenTemplateFile, | 
			
		
	
		
			
				
					|  |  |  |  |   orderPDFFromTemplateFile | 
			
		
	
		
			
				
					|  |  |  |  | } from "@/api/itextpdf/orderPrint" | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; | 
			
		
	
		
			
				
					|  |  |  |  | import {previewImage} from '@/api/purchase/supCompany' | 
			
		
	
	
		
			
				
					|  |  |  | @ -984,6 +995,36 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         this.getCodeDetailList(); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     printOrderDetailPDF(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       let tQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |         labelId: 5, | 
			
		
	
		
			
				
					|  |  |  |  |         orderIdFk: row.billNo | 
			
		
	
		
			
				
					|  |  |  |  |       }; | 
			
		
	
		
			
				
					|  |  |  |  |       this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |       inspectionOrderPDFFromStatemenTemplateFile(tQuery).then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (response.code === 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           orderPDFFromStatemenTemplateFile(tQuery).then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |             //将pdf文件转换为url。 | 
			
		
	
		
			
				
					|  |  |  |  |             const binaryData = []; | 
			
		
	
		
			
				
					|  |  |  |  |             binaryData.push(response); | 
			
		
	
		
			
				
					|  |  |  |  |             //获取blob链接。 | 
			
		
	
		
			
				
					|  |  |  |  |             let url = window.URL.createObjectURL( | 
			
		
	
		
			
				
					|  |  |  |  |                 new Blob(binaryData, {type: "application/pdf"}) | 
			
		
	
		
			
				
					|  |  |  |  |             ); | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |             window.open(url);//打开新标签页,预览pdf。 | 
			
		
	
		
			
				
					|  |  |  |  |             this.getOrderQRCodeTextList(); | 
			
		
	
		
			
				
					|  |  |  |  |           }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |             this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |           }); | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.error(response.message); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     onCodeSubmit() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.codeQuery.page = 1; | 
			
		
	
		
			
				
					|  |  |  |  |       this.getCodeDetailList(); | 
			
		
	
	
		
			
				
					|  |  |  | 
 |