|  | @ -90,7 +90,12 @@ class SocketUtils extends Vue {
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     getMessage(msg) {
 | 
	
		
			
				|  |  |         console.log(msg.data)
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             console.log("接收到消息:", msg.data)
 | 
	
		
			
				|  |  |         } catch (error) {
 | 
	
		
			
				|  |  |             
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         
 | 
	
		
			
				|  |  |         var msgobj = JSON.parse(msg.data)
 | 
	
		
			
				|  |  |         if (msgobj.type == 'ShipInfo') {
 | 
	
		
			
				|  |  |             if(!this.inOut){
 | 
	
	
		
			
				|  | @ -242,6 +247,11 @@ class SocketUtils extends Vue {
 | 
	
		
			
				|  |  |                 //发送消息时  重置重连定时器时间
 | 
	
		
			
				|  |  |                 // this.reconnectTimeout()
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             try {
 | 
	
		
			
				|  |  |                 console.log("发送消息:", JSON.stringify(obj))
 | 
	
		
			
				|  |  |             } catch (error) {
 | 
	
		
			
				|  |  |                 
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             
 | 
	
		
			
				|  |  |             this.socket.send(JSON.stringify(obj));
 | 
	
		
			
				|  |  |         }
 | 
	
	
		
			
				|  | @ -342,7 +352,7 @@ class SocketUtils extends Vue {
 | 
	
		
			
				|  |  |                 type:"text", text: (v.drugName||v.goodsName)+"\n",nLan:0,nOrgx:-1,nWidthTimes:0,nHeightTimes:0,FontType:0,nFontStyle:0
 | 
	
		
			
				|  |  |             })
 | 
	
		
			
				|  |  |             printcon.push({
 | 
	
		
			
				|  |  |                 type:"text", text: `数量:${v.quantity}${v.unit}\n规格:${v.specif}\n用法:${v.useWay||''}  ${v.useDose||''}${v.unit||''}  ${v.useRate||''}`,nLan:0,nOrgx:-1,nWidthTimes:0,nHeightTimes:0,FontType:0,nFontStyle:0
 | 
	
		
			
				|  |  |                 type:"text", text: `数量:${v.quantity}${v.quantityUnit}\n规格:${v.specif}\n用法:${v.useWay||''}  ${v.useDose||''}${v.unit||''}  ${v.useRate||''}`,nLan:0,nOrgx:-1,nWidthTimes:0,nHeightTimes:0,FontType:0,nFontStyle:0
 | 
	
		
			
				|  |  |             })
 | 
	
		
			
				|  |  |             printcon.push({type:"line"})
 | 
	
		
			
				|  |  |         })
 |