|  |  |  | @ -171,7 +171,32 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="医保编码" prop="ybbm"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-table-column label="药品编码" prop="nameCode"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-table> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-row style="text-align: right;font-size: 12px;margin-top: 10px"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col span="24"> | 
			
		
	
		
			
				
					|  |  |  |  |               <div style="float: right"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <td> | 
			
		
	
		
			
				
					|  |  |  |  |                   <div style="background-color: red;width: 10px;height: 10px;"></div> | 
			
		
	
		
			
				
					|  |  |  |  |                 </td> | 
			
		
	
		
			
				
					|  |  |  |  |                 <td> | 
			
		
	
		
			
				
					|  |  |  |  |                   <span style="color:red"><pre>未扫码  </pre></span> | 
			
		
	
		
			
				
					|  |  |  |  |                 </td> | 
			
		
	
		
			
				
					|  |  |  |  |                 <td> | 
			
		
	
		
			
				
					|  |  |  |  |                   <div style="background-color: orange;width: 10px;height: 10px;"></div> | 
			
		
	
		
			
				
					|  |  |  |  |                 </td> | 
			
		
	
		
			
				
					|  |  |  |  |                 <td> | 
			
		
	
		
			
				
					|  |  |  |  |                   <span style="color:orange"><pre>部分扫码  </pre></span> | 
			
		
	
		
			
				
					|  |  |  |  |                 </td> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <td> | 
			
		
	
		
			
				
					|  |  |  |  |                   <div style="background-color: green;width: 10px;height: 10px;"></div> | 
			
		
	
		
			
				
					|  |  |  |  |                 </td> | 
			
		
	
		
			
				
					|  |  |  |  |                 <td> | 
			
		
	
		
			
				
					|  |  |  |  |                   <span style="color:green"><pre>已完全扫码</pre></span> | 
			
		
	
		
			
				
					|  |  |  |  |                 </td> | 
			
		
	
		
			
				
					|  |  |  |  |               </div> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-row> | 
			
		
	
		
			
				
					|  |  |  |  |           <pagination | 
			
		
	
		
			
				
					|  |  |  |  |             v-show="busDataTotal>0" | 
			
		
	
		
			
				
					|  |  |  |  |             :total="busDataTotal" | 
			
		
	
	
		
			
				
					|  |  |  | @ -979,23 +1004,23 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         rowBackground.color = '#F56C6C' | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       rowBackground.height = '38px' | 
			
		
	
		
			
				
					|  |  |  |  |       return rowBackground | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   rowStyleBiz({row, rowIndex}) { | 
			
		
	
		
			
				
					|  |  |  |  |     let rowBackground = {} | 
			
		
	
		
			
				
					|  |  |  |  |     const progress = row.scanActCount / row.count; | 
			
		
	
		
			
				
					|  |  |  |  |       return rowBackground; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     rowStyleBiz({row, rowIndex}) { | 
			
		
	
		
			
				
					|  |  |  |  |       let rowBackground = {} | 
			
		
	
		
			
				
					|  |  |  |  |       const progress = row.scanActCount / row.count; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     if (row.scanActCount == null || row.scanActCount == 0) { | 
			
		
	
		
			
				
					|  |  |  |  |       rowBackground.color = 'red'; // 进度小于50%为红色 | 
			
		
	
		
			
				
					|  |  |  |  |     } else if (progress < 1.0) { | 
			
		
	
		
			
				
					|  |  |  |  |       rowBackground.color = 'orange'; // 进度在50%到100%之间为橙色 | 
			
		
	
		
			
				
					|  |  |  |  |     } else { | 
			
		
	
		
			
				
					|  |  |  |  |       rowBackground.color = 'green'; // 进度达到或超过100%为绿色 | 
			
		
	
		
			
				
					|  |  |  |  |       if (row.scanActCount == null || row.scanActCount == 0) { | 
			
		
	
		
			
				
					|  |  |  |  |         rowBackground.color = 'red'; // 进度小于50%为红色 | 
			
		
	
		
			
				
					|  |  |  |  |       } else if (progress < 1.0) { | 
			
		
	
		
			
				
					|  |  |  |  |         rowBackground.color = 'orange'; // 进度在50%到100%之间为橙色 | 
			
		
	
		
			
				
					|  |  |  |  |       } else { | 
			
		
	
		
			
				
					|  |  |  |  |         rowBackground.color = 'green'; // 进度达到或超过100%为绿色 | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       rowBackground.height = '38px' | 
			
		
	
		
			
				
					|  |  |  |  |       return rowBackground | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     rowBackground.height = '38px' | 
			
		
	
		
			
				
					|  |  |  |  |     return rowBackground | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |   watch: { | 
			
		
	
		
			
				
					|  |  |  |  |     resetKey(newVal, oldVal) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.$refs.inputRef.focus() | 
			
		
	
	
		
			
				
					|  |  |  | 
 |