| 
					
				 | 
			
			
				@@ -92,7 +92,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { commonMixin } from '@/utils/mixin' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { STable, VSelect } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import printModal from './printModal.vue' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { hdExportExcel } from '@/libs/exportExcel' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { printFun, exportExcel } from '@/libs/JGPrint.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { allocateBillDetailList, allocateBillDetail, allocateBillDetailCount, allocateBillDetailPrint, allocateBillDetailExcel } from '@/api/allocateBill' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'TransferOutDetail', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -193,7 +193,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleExcel () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const _this = this 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      hdExportExcel(allocateBillDetailExcel, { allocateSn: this.outBizSn || this.$route.params.sn }, '调拨明细', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      exportExcel(allocateBillDetailExcel, { allocateSn: this.outBizSn || this.$route.params.sn }, '调拨明细', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         _this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -207,35 +207,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const params = JSON.parse(JSON.stringify(objs)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       delete params.type 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       _this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      allocateBillDetailPrint(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        _this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (res.type == 'application/json') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          var reader = new FileReader() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          reader.addEventListener('loadend', function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            const obj = JSON.parse(reader.result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _this.$notification.error({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              message: '提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              description: obj.message 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          reader.readAsText(res) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.print(res, objs.isPreview) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    print (data, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (!data) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      const url = window.URL.createObjectURL(new Blob([data], { type: 'application/pdf' })) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      document.getElementById('print').innerHTML = '<iframe id="printftod" name="printftod" src="' + url + '" hidden></iframe>' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (type == '1') { //  预览 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        window.open(url) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } else if (type == '0') { //  打印 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        window.frames['printftod'].focus() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        window.frames['printftod'].print() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const taskName = this.nowType == 'dbPrint' ? '调拨' : '调拨分类' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      printFun(allocateBillDetailPrint, params, objs.isPreview ? 'preview' : 'print', taskName, () => { _this.spinning = false }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     pageInit () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$refs.table.refresh(true) 
			 |