|  |  |  | @ -343,7 +343,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     findCurWorkPlaces(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       let query = { | 
			
		
	
		
			
				
					|  |  |  |  |         workplaceCode: val, | 
			
		
	
		
			
				
					|  |  |  |  |         userId: this.userInfo.userId, | 
			
		
	
		
			
				
					|  |  |  |  |         userId: this.$store.getters.userId, | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 100, | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
	
		
			
				
					|  |  |  | @ -423,10 +423,59 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     getDMHotskeyValue(str) { | 
			
		
	
		
			
				
					|  |  |  |  |       if (str.includes("DMHotskey")) { | 
			
		
	
		
			
				
					|  |  |  |  |         try { | 
			
		
	
		
			
				
					|  |  |  |  |           const jsonObj = JSON.parse(str); | 
			
		
	
		
			
				
					|  |  |  |  |           if (jsonObj.hasOwnProperty("DMHotskey")) { | 
			
		
	
		
			
				
					|  |  |  |  |             const dmhotskey = jsonObj.DMHotskey; | 
			
		
	
		
			
				
					|  |  |  |  |             if (dmhotskey.hasOwnProperty("workPlace")) { | 
			
		
	
		
			
				
					|  |  |  |  |               this.scanCode = "" | 
			
		
	
		
			
				
					|  |  |  |  |               this.orderFormData.workPlaceCode = dmhotskey.workPlace | 
			
		
	
		
			
				
					|  |  |  |  |               return true | 
			
		
	
		
			
				
					|  |  |  |  |             } else if (dmhotskey.hasOwnProperty("fifoSplit")) { | 
			
		
	
		
			
				
					|  |  |  |  |               this.scanCode = "" | 
			
		
	
		
			
				
					|  |  |  |  |               this.orderFormData.fifoSplit = dmhotskey.fifoSplit; | 
			
		
	
		
			
				
					|  |  |  |  |               return true; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |           } | 
			
		
	
		
			
				
					|  |  |  |  |         } catch (error) { | 
			
		
	
		
			
				
					|  |  |  |  |           console.log("字符串不是有效的 JSON 格式"); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       return false; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     printCodeResult(data, isSuccess) { | 
			
		
	
		
			
				
					|  |  |  |  |       const resultParts = ["扫码解析结果:" + data.code]; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       if (data.udi) { | 
			
		
	
		
			
				
					|  |  |  |  |         resultParts.push("层级标识: " + data.udi); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if (data.batchNo) { | 
			
		
	
		
			
				
					|  |  |  |  |         resultParts.push("批次号: " + data.batchNo); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if (data.produceDate) { | 
			
		
	
		
			
				
					|  |  |  |  |         resultParts.push("生产日期: " + data.produceDate); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if (data.expireDate) { | 
			
		
	
		
			
				
					|  |  |  |  |         resultParts.push("失效日期: " + data.expireDate); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       if (data.serialNo) { | 
			
		
	
		
			
				
					|  |  |  |  |         resultParts.push("序列号: " + data.serialNo); | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.result = resultParts.join(" , "); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     getInputFocus(event) { | 
			
		
	
		
			
				
					|  |  |  |  |       event.currentTarget.select(); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     selectProductFunction() { | 
			
		
	
		
			
				
					|  |  |  |  |       if (this.$isBlank(this.orderFormData.workPlaceCode)) { | 
			
		
	
		
			
				
					|  |  |  |  |         this.$message.error("作业工位不能为空!") | 
			
		
	
		
			
				
					|  |  |  |  |         return; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectInvProductVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   filters: {}, | 
			
		
	
		
			
				
					|  |  |  |  |   mounted() { | 
			
		
	
	
		
			
				
					|  |  |  | @ -457,7 +506,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     this.$refs.inputRef.focus(); | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   created() { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     this.findCurWorkPlaces(); | 
			
		
	
		
			
				
					|  |  |  |  |     if (this.$route.query.billNo != null) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.orderFormData.billNo = this.$route.query.billNo | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  |  | @ -465,7 +514,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       this.corpOrderIdDisabled = true | 
			
		
	
		
			
				
					|  |  |  |  |       this.workplaceId = Number(this.$route.query.workplaceId); | 
			
		
	
		
			
				
					|  |  |  |  |       this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId); | 
			
		
	
		
			
				
					|  |  |  |  |       this.findCurWorkPlaces(this.formData.workPlaceCode); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
	
		
			
				
					|  |  |  | 
 |