|  | @@ -560,10 +560,11 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  const newDecimalUp = parseInt(data.up);
 | 
	
		
			
				|  |  |                  const newDecimalTp = parseInt(data.tp);
 | 
	
		
			
				|  |  | -                if (newDecimalUp > 6 || newDecimalUp < 0) {
 | 
	
		
			
				|  |  | +                console.log(newDecimalUp, newDecimalTp);
 | 
	
		
			
				|  |  | +                if (ctx.app._.isNaN(newDecimalUp) || newDecimalUp > 6 || newDecimalUp < 0) {
 | 
	
		
			
				|  |  |                      throw '单价小数位数设置不能大于6或小于0';
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if (newDecimalTp > 6 || newDecimalTp < 0) {
 | 
	
		
			
				|  |  | +                if (ctx.app._.isNaN(newDecimalTp) || newDecimalTp > 6 || newDecimalTp < 0) {
 | 
	
		
			
				|  |  |                      throw '金额小数位数设置不能大于6或小于0';
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  if (ctx.material.decimal.up === newDecimalUp && ctx.material.decimal.tp === newDecimalTp) {
 |