|  | @@ -558,16 +558,18 @@ $(document).ready(() => {
 | 
	
		
			
				|  |  |          changesObj.loadChanges({bills: node, pos: data});
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |      posSpreadSetting.getColor = function (sheet, data, row, col, defaultColor) {
 | 
	
		
			
				|  |  | -        if (col.field === 'gxby') {
 | 
	
		
			
				|  |  | -            const def = thirdParty.gxby.find(function (x) {
 | 
	
		
			
				|  |  | -                return x.value === data.gxby_status;
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | -            if (def && def.color) return def.color;
 | 
	
		
			
				|  |  | -        } else if (col.field === 'dagl') {
 | 
	
		
			
				|  |  | -            const def = thirdParty.dagl.find(function (x) {
 | 
	
		
			
				|  |  | -                return x.value === data.dagl_status;
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | -            if (def && def.color) return def.color;
 | 
	
		
			
				|  |  | +        if (data) {
 | 
	
		
			
				|  |  | +            if (col.field === 'gxby') {
 | 
	
		
			
				|  |  | +                const def = thirdParty.gxby.find(function (x) {
 | 
	
		
			
				|  |  | +                    return x.value === data.gxby_status;
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +                if (def && def.color) return def.color;
 | 
	
		
			
				|  |  | +            } else if (col.field === 'dagl') {
 | 
	
		
			
				|  |  | +                const def = thirdParty.dagl.find(function (x) {
 | 
	
		
			
				|  |  | +                    return x.value === data.dagl_status;
 | 
	
		
			
				|  |  | +                });
 | 
	
		
			
				|  |  | +                if (def && def.color) return def.color;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return data && data.end_contract_qty > data.quantity ? '#f8d7da' : defaultColor;
 | 
	
		
			
				|  |  |      };
 |