|  |  |  | @ -147,7 +147,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </el-tag> | 
			
		
	
		
			
				
					|  |  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="操作" width="120" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="操作" width="200" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |           <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
		
			
				
					|  |  |  |  |               type="text" | 
			
		
	
	
		
			
				
					|  |  |  | @ -156,7 +156,13 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             >打印 | 
			
		
	
		
			
				
					|  |  |  |  |             </el-button | 
			
		
	
		
			
				
					|  |  |  |  |             > | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
		
			
				
					|  |  |  |  |                 type="text" | 
			
		
	
		
			
				
					|  |  |  |  |                 size="small" | 
			
		
	
		
			
				
					|  |  |  |  |                 @click.native="printOrderDetailPDF(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |             >报表打印 | 
			
		
	
		
			
				
					|  |  |  |  |             </el-button | 
			
		
	
		
			
				
					|  |  |  |  |             > | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
		
			
				
					|  |  |  |  |               type="text" | 
			
		
	
		
			
				
					|  |  |  |  |               size="small" | 
			
		
	
	
		
			
				
					|  |  |  | @ -444,12 +450,20 @@ import {selectSysParamByKey} from "@/api/param/systemParamConfig"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getResultDetailList} from "@/api/inout/orderDetailResult"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getCodeDetailList} from "@/api/inout/orderDetailCode"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getCodeList} from "@/api/inout/code"; | 
			
		
	
		
			
				
					|  |  |  |  | import {inspectionOrderPDFFromTemplateFile, orderPDFFromTemplateFile} from "@/api/itextpdf/orderPrint" | 
			
		
	
		
			
				
					|  |  |  |  | import { | 
			
		
	
		
			
				
					|  |  |  |  |   inspectionOrderPDFFromStatemenTemplateFile, | 
			
		
	
		
			
				
					|  |  |  |  |   inspectionOrderPDFFromTemplateFile, orderPDFFromStatemenTemplateFile, | 
			
		
	
		
			
				
					|  |  |  |  |   orderPDFFromTemplateFile | 
			
		
	
		
			
				
					|  |  |  |  | } from "@/api/itextpdf/orderPrint" | 
			
		
	
		
			
				
					|  |  |  |  | import DialogcChangeNewOrder from "@/views/inout/DialogcChangeNewOrder"; | 
			
		
	
		
			
				
					|  |  |  |  | import ElImageViewer from "element-ui/packages/image/src/image-viewer"; | 
			
		
	
		
			
				
					|  |  |  |  | import DialogCheck from "@/views/inout/DialogCheck"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getBizDetailList} from "@/api/inout/orderDetailBiz"; | 
			
		
	
		
			
				
					|  |  |  |  | import {previewImage} from "@/api/purchase/supCompany"; | 
			
		
	
		
			
				
					|  |  |  |  | import { | 
			
		
	
		
			
				
					|  |  |  |  |   inspectionStockQRCodeTextPDFFromTemplateStatementFile, | 
			
		
	
		
			
				
					|  |  |  |  |   stockQRCodeTextPDFFromTemplateStatementFile | 
			
		
	
		
			
				
					|  |  |  |  | } from "@/api/itextpdf/itextpdf"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -928,6 +942,40 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     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; | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     onResultReset() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.resultQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |         orderId: null, | 
			
		
	
	
		
			
				
					|  |  |  | 
 |