|  | @@ -355,6 +355,7 @@ export default {
 | 
	
		
			
				|  |  |          this.$message({ type: 'error', message: '栏舍编号不能为空', duration: 2000 })
 | 
	
		
			
				|  |  |          return false
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | +	  // 现代牧业专用
 | 
	
		
			
				|  |  |        // if (this.table.temp.bcode.length > 8) {
 | 
	
		
			
				|  |  |        //   this.$message({ type: 'error', message: '栏舍编号请输入1-8位数字', duration: 2000 })
 | 
	
		
			
				|  |  |        //   return false
 | 
	
	
		
			
				|  | @@ -481,19 +482,15 @@ export default {
 | 
	
		
			
				|  |  |          return false
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        // 现代牧业专用
 | 
	
		
			
				|  |  | -      if (this.table.temp.bname == '' && this.table.temp.bcode == '') {
 | 
	
		
			
				|  |  | -        this.$message({ type: 'error', message: '栏舍名称/栏舍编号/牛舍类型/牛群不能为空', duration: 2000 })
 | 
	
		
			
				|  |  | -        return false
 | 
	
		
			
				|  |  | -      }else if (this.table.temp.bname == '') {
 | 
	
		
			
				|  |  | -        this.$message({ type: 'error', message: '栏舍名称不能为空', duration: 2000 })
 | 
	
		
			
				|  |  | -        return false
 | 
	
		
			
				|  |  | -      } else if (this.table.temp.bcode == '') {
 | 
	
		
			
				|  |  | -        this.$message({ type: 'error', message: '栏舍编号不能为空', duration: 2000 })
 | 
	
		
			
				|  |  | -        return false
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  | -      // if (this.table.temp.bcode.length > 8) {
 | 
	
		
			
				|  |  | -      //   this.$message({ type: 'error', message: '栏舍编号请输入1-8位数字', duration: 2000 })
 | 
	
		
			
				|  |  | -      //   return false
 | 
	
		
			
				|  |  | +      // if (this.table.temp.bname == '' && this.table.temp.bcode == '') {
 | 
	
		
			
				|  |  | +      //   this.$message({ type: 'error', message: '栏舍名称/栏舍编号/牛舍类型/牛群不能为空', duration: 2000 })
 | 
	
		
			
				|  |  | +      //   return false
 | 
	
		
			
				|  |  | +      // }else if (this.table.temp.bname == '') {
 | 
	
		
			
				|  |  | +      //   this.$message({ type: 'error', message: '栏舍名称不能为空', duration: 2000 })
 | 
	
		
			
				|  |  | +      //   return false
 | 
	
		
			
				|  |  | +      // } else if (this.table.temp.bcode == '') {
 | 
	
		
			
				|  |  | +      //   this.$message({ type: 'error', message: '栏舍编号不能为空', duration: 2000 })
 | 
	
		
			
				|  |  | +      //   return false
 | 
	
		
			
				|  |  |        // }
 | 
	
		
			
				|  |  |        if (this.table.temp.allowratio !== '') {
 | 
	
		
			
				|  |  |          console.log(this.table.temp.allowratio)
 |