|  |  | @ -9,8 +9,14 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-form-item> |  |  |  |             </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-col> |  |  |  |           </el-col> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="8"> |  |  |  |           <el-col :span="8"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item label="当前仓库:"> |  |  |  |             <el-form-item label="领用仓库:"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="filterQuery.targetInvCode" placeholder="请选择当前仓库" style="width: 100%;"> |  |  |  |               <el-select v-model="filterQuery.invCode" placeholder="请选择领用仓库" | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                          filterable | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                          clearable | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                          remote | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                          reserve-keyword | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                          :remote-method="finCurInv" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                          style="width: 100%;"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-option |  |  |  |                 <el-option | 
			
		
	
		
		
			
				
					
					|  |  |  |                   v-for="item in invList" |  |  |  |                   v-for="item in invList" | 
			
		
	
		
		
			
				
					
					|  |  |  |                   :key="item.code" |  |  |  |                   :key="item.code" | 
			
		
	
	
		
		
			
				
					|  |  | @ -89,7 +95,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="序号" type="index" width="60"></el-table-column> |  |  |  |         <el-table-column label="序号" type="index" width="60"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="领用单号" prop="billNo"></el-table-column> |  |  |  |         <el-table-column label="领用单号" prop="billNo"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="领用部门" prop="deptName"></el-table-column> |  |  |  |         <el-table-column label="领用部门" prop="deptName"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="当前仓库" prop="invName"></el-table-column> |  |  |  |         <el-table-column label="领用仓库" prop="invName"></el-table-column> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <!--<el-table-column label="往来信息" prop="targetInvName" show-overflow-tooltip="true"></el-table-column>--> |  |  |  |         <!--<el-table-column label="往来信息" prop="targetInvName" show-overflow-tooltip="true"></el-table-column>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="单据状态" prop="status"> |  |  |  |         <el-table-column label="单据状态" prop="status"> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <template slot-scope="scope"> |  |  |  |           <template slot-scope="scope"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -106,6 +112,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                        @click.native.stop="auditDialog(scope.row)" |  |  |  |                        @click.native.stop="auditDialog(scope.row)" | 
			
		
	
		
		
			
				
					
					|  |  |  |             >审核 |  |  |  |             >审核 | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-button> |  |  |  |             </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <el-button type="text" size="small" @click.native.stop="printOrder(scope.row)" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             >打印 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </template> |  |  |  |           </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-table-column> |  |  |  |         </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |       </el-table> |  |  |  |       </el-table> | 
			
		
	
	
		
		
			
				
					|  |  | @ -149,7 +158,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | </template> |  |  |  | </template> | 
			
		
	
		
		
			
				
					
					|  |  |  | <script> |  |  |  | <script> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getOrderDetail, getReceiveOrder} from "@/api/inout/receiveOrder"; |  |  |  | import {getOrderDetail, getReceiveOrder, printOrder} from "@/api/inout/receiveOrder"; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import auditDetail from "@/views/inout/receive/receiveAuditDetail" |  |  |  | import auditDetail from "@/views/inout/receive/receiveAuditDetail" | 
			
		
	
		
		
			
				
					
					|  |  |  | import {filterSubAll, findInvByUser} from "@/api/system/invSubWarehouse"; |  |  |  | import {filterSubAll, findInvByUser} from "@/api/system/invSubWarehouse"; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -244,7 +253,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         page: 1, |  |  |  |         page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |         limit: 10, |  |  |  |         limit: 10, | 
			
		
	
		
		
			
				
					
					|  |  |  |         corpName: null, |  |  |  |         corpName: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetInvCode: this.invCodebe, |  |  |  |         targetInvCode: null, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         type: 2, |  |  |  |         type: 2, | 
			
		
	
		
		
			
				
					
					|  |  |  |         editStatus: 2, |  |  |  |         editStatus: 2, | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
	
		
		
			
				
					|  |  | @ -272,8 +281,22 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery.orderBy = column.prop; |  |  |  |       this.filterQuery.orderBy = column.prop; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getList(); |  |  |  |       this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |     printOrder(row) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |       printOrder(row) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           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.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getList() { |  |  |  |     getList() { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.actDateRange != null) { |  |  |  |       if (this.actDateRange != null) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -338,7 +361,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     finCurInv() { |  |  |  |     finCurInv(keyWord) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery = { |  |  |  |       this.filterQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         billNo: "", |  |  |  |         billNo: "", | 
			
		
	
		
		
			
				
					
					|  |  |  |         thirdSysFk: "", |  |  |  |         thirdSysFk: "", | 
			
		
	
	
		
		
			
				
					|  |  | @ -349,23 +372,24 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         page: 1, |  |  |  |         page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |         limit: 10, |  |  |  |         limit: 10, | 
			
		
	
		
		
			
				
					
					|  |  |  |         corpName: null, |  |  |  |         corpName: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |         targetInvCode: this.invCodebe, |  |  |  |         targetInvCode: null, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         type: 2, |  |  |  |         type: 2, | 
			
		
	
		
		
			
				
					
					|  |  |  |         editStatus: 2, |  |  |  |         editStatus: 2, | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.invList = []; |  |  |  |       this.invList = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |       let query = { |  |  |  |       let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         filter: 3 |  |  |  |         filter: 3, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         name: keyWord, | 
			
		
	
		
		
			
				
					
					|  |  |  |       }; |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  |       findInvByUser(query) |  |  |  |       findInvByUser(query) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .then((response) => { |  |  |  |         .then((response) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.invList = response.data || []; |  |  |  |           this.invList = response.data || []; | 
			
		
	
		
		
			
				
					
					|  |  |  |           if (this.invList.length > 0) { |  |  |  |           // if (this.invList.length > 0) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.filterQuery.targetInvCode = this.invList[0].code |  |  |  |           //   this.filterQuery.targetInvCode = this.invList[0].code | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             this.invCodebe = this.filterQuery.targetInvCode |  |  |  |           //   this.invCodebe = this.filterQuery.targetInvCode | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           // } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.getList(); |  |  |  |           // this.getList(); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |         .catch(() => { |  |  |  |         .catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }); |  |  |  |         }); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |