|  | @@ -2174,189 +2174,37 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 2班3班4班未锁
 | 
	
		
			
				|  |  |          if (row.isTwoWeight == false && row.isThreeWeight == false && row.isFourWeight == false) {
 | 
	
		
			
				|  |  | -          console.log('1231234')
 | 
	
		
			
				|  |  | -          row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          if (parseFloat(row.r2) == 0 && parseFloat(row.r3) == 0 && parseFloat(row.r4) == 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1)) / 3, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = row.w2
 | 
	
		
			
				|  |  | -            row.w4 = row.w2
 | 
	
		
			
				|  |  | -            row.r3 = row.r2
 | 
	
		
			
				|  |  | -            row.r4 = row.r2
 | 
	
		
			
				|  |  | -          } else if (parseFloat(row.r2) == 0 && parseFloat(row.r3) == 0 && parseFloat(row.r4) !== 0) {
 | 
	
		
			
				|  |  | -            row.w3 = formatNum(((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w4))) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = row.w3
 | 
	
		
			
				|  |  | -            row.r2 = row.r3
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(this.focusWRow.r4) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (parseFloat(row.r2) == 0 && parseFloat(row.r3) !== 0 && parseFloat(row.r4) == 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum(((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3))) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = row.w2
 | 
	
		
			
				|  |  | -            row.r4 = row.r2
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(this.focusWRow.r3) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (parseFloat(row.r2) !== 0 && parseFloat(row.r3) == 0 && parseFloat(row.r4) == 0) {
 | 
	
		
			
				|  |  | -            row.w3 = formatNum(((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w2))) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = row.w3
 | 
	
		
			
				|  |  | -            row.r4 = row.r3
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r2 == 0 && row.r3 !== 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            console.log(row.dailyWeight)
 | 
	
		
			
				|  |  | -            console.log(this.focusWRow.dailyWeight)
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(this.focusWRow.r3) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(this.focusWRow.r4) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r2 !== 0 && row.r3 == 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | -            row.w3 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w2) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(this.focusWRow.r4) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r2 !== 0 && row.r3 !== 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w2) - parseFloat(row.w3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow.dailyWeight) - parseFloat(row.w1)) * parseFloat(row.r3) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1)) * parseFloat(row.r3) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1)) * parseFloat(row.r4) / (parseFloat(this.focusWRow.r2) + parseFloat(this.focusWRow.r3) + parseFloat(this.focusWRow.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          if(isNaN(row.w1) || row.w1 == '' || row.w1 <= 0){
 | 
	
		
			
				|  |  | +            row.w1 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w2)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w2) || row.w2 == '' || row.w2 <= 0){
 | 
	
		
			
				|  |  |              row.w2 = 0
 | 
	
		
			
				|  |  | -            row.r2 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w3)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w3) || row.w3 == '' || row.w3 <= 0){
 | 
	
		
			
				|  |  |              row.w3 = 0
 | 
	
		
			
				|  |  | -            row.r3 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w4)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w4) || row.w4 == '' || row.w4 <= 0){
 | 
	
		
			
				|  |  |              row.w4 = 0
 | 
	
		
			
				|  |  | -            row.r4 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -          if (row.w2 <= 0) {
 | 
	
		
			
				|  |  | -            row.w2 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r1) || row.r1 == '' || row.r1 <= 0){
 | 
	
		
			
				|  |  | +            row.r1 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.r2) || row.r2 == '' || row.r2 <= 0){
 | 
	
		
			
				|  |  |              row.r2 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w3 <= 0) {
 | 
	
		
			
				|  |  | -            row.w3 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r3) || row.r3 == '' || row.r3 <= 0){
 | 
	
		
			
				|  |  |              row.r3 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w4 <= 0) {
 | 
	
		
			
				|  |  | -            row.w4 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r4) || row.r4 == '' || row.r4 <= 0){
 | 
	
		
			
				|  |  |              row.r4 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | +          let a = (1/ (parseFloat(row.r1) / 100) * parseFloat(row.w1)).toFixed(2)
 | 
	
		
			
				|  |  | +          let b = (a * parseFloat(row.sumr) / 100).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w2 = (a * (parseFloat(row.r2) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w3 = (a * (parseFloat(row.r3) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w4 = (a * (parseFloat(row.r4) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | +          row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        } else if (this.table.RWLength == 3) {
 | 
	
		
			
				|  |  |          // 三班
 | 
	
	
		
			
				|  | @@ -2792,187 +2640,38 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 1班3班4班未锁
 | 
	
		
			
				|  |  |          if (row.isOneWeight == false && row.isThreeWeight == false && row.isFourWeight == false) {
 | 
	
		
			
				|  |  | -          row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          if (row.r1 == 0 && row.r3 == 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2)) / 3, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = row.w1
 | 
	
		
			
				|  |  | -            row.r3 = row.r1
 | 
	
		
			
				|  |  | -            row.w4 = row.w1
 | 
	
		
			
				|  |  | -            row.r4 = row.r1
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r3 == 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2) - parseFloat(row.w4)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = row.w1
 | 
	
		
			
				|  |  | -            row.r3 = row.r1
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow2.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r4) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r3 !== 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2) - parseFloat(row.w3)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = row.w1
 | 
	
		
			
				|  |  | -            row.r4 = row.r1
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow2.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r3) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r3 == 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w3 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2) - parseFloat(row.w1)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = row.w3
 | 
	
		
			
				|  |  | -            row.r4 = row.r3
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow2.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if ((row.r1 !== 0 && row.r3 !== 0 && row.r4 == 0)) {
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2) - parseFloat(row.w1) - parseFloat(row.w3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow2.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r3) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if ((row.r1 !== 0 && row.r3 == 0 && row.r4 !== 0)) {
 | 
	
		
			
				|  |  | -            row.w3 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2) - parseFloat(row.w1) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow2.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r4) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if ((row.r1 == 0 && row.r3 !== 0 && row.r4 !== 0)) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2) - parseFloat(row.w3) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow2.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r3) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow2.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r4) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else {
 | 
	
		
			
				|  |  | -            console.log('wolaile')
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r3) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r3) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2)) * parseFloat(row.r4) / (parseFloat(this.focusWRow2.r1) + parseFloat(this.focusWRow2.r3) + parseFloat(this.focusWRow2.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w1)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w1) || row.w1 == '' || row.w1 <= 0){
 | 
	
		
			
				|  |  |              row.w1 = 0
 | 
	
		
			
				|  |  | -            row.r1 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w3)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w2) || row.w2 == '' || row.w2 <= 0){
 | 
	
		
			
				|  |  | +            row.w2 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.w3) || row.w3 == '' || row.w3 <= 0){
 | 
	
		
			
				|  |  |              row.w3 = 0
 | 
	
		
			
				|  |  | -            row.r3 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w4)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w4) || row.w4 == '' || row.w4 <= 0){
 | 
	
		
			
				|  |  |              row.w4 = 0
 | 
	
		
			
				|  |  | -            row.r4 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w1 <= 0) {
 | 
	
		
			
				|  |  | -            row.w1 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r1) || row.r1 == '' || row.r1 <= 0){
 | 
	
		
			
				|  |  |              row.r1 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w3 <= 0) {
 | 
	
		
			
				|  |  | -            row.w3 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r2) || row.r2 == '' || row.r2 <= 0){
 | 
	
		
			
				|  |  | +            row.r2 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.r3) || row.r3 == '' || row.r3 <= 0){
 | 
	
		
			
				|  |  |              row.r3 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w4 <= 0) {
 | 
	
		
			
				|  |  | -            row.w4 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r4) || row.r4 == '' || row.r4 <= 0){
 | 
	
		
			
				|  |  |              row.r4 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +          let a = (1/ (parseFloat(row.r2) / 100) * parseFloat(row.w2)).toFixed(2)
 | 
	
		
			
				|  |  | +          let b = (a * parseFloat(row.sumr) / 100).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w1 = (a * (parseFloat(row.r1) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w3 = (a * (parseFloat(row.r3) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w4 = (a * (parseFloat(row.r4) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | +          row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +       }
 | 
	
		
			
				|  |  |        } else if (this.table.RWLength == 3) {
 | 
	
		
			
				|  |  |          // 三班
 | 
	
		
			
				|  |  |          // 1班/3班锁定
 | 
	
	
		
			
				|  | @@ -3228,235 +2927,36 @@ export default {
 | 
	
		
			
				|  |  |              row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w2) - parseFloat(row.w3)) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w1)) {
 | 
	
		
			
				|  |  | -            row.w1 = 0
 | 
	
		
			
				|  |  | -            row.r1 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w4)) {
 | 
	
		
			
				|  |  | -            row.w4 = 0
 | 
	
		
			
				|  |  | -            row.r4 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -          if (row.w1 <= 0) {
 | 
	
		
			
				|  |  | -            row.w1 = 0
 | 
	
		
			
				|  |  | -            row.r1 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (row.w4 <= 0) {
 | 
	
		
			
				|  |  | -            row.w4 = 0
 | 
	
		
			
				|  |  | -            row.r4 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        // 1班锁定,2班4班未锁
 | 
	
		
			
				|  |  | -        if (row.isTwoWeight == false && row.isOneWeight == true && row.isFourWeight == false) {
 | 
	
		
			
				|  |  | -          row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          if (row.r2 == 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = row.w2
 | 
	
		
			
				|  |  | -            row.r4 = row.r2
 | 
	
		
			
				|  |  | -          } else if (row.r2 == 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r2 !== 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3) - parseFloat(row.w2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w2)) {
 | 
	
		
			
				|  |  | -            row.w2 = 0
 | 
	
		
			
				|  |  | -            row.r2 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w4)) {
 | 
	
		
			
				|  |  | -            row.w4 = 0
 | 
	
		
			
				|  |  | -            row.r4 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (row.w2 <= 0) {
 | 
	
		
			
				|  |  | -            row.w2 = 0
 | 
	
		
			
				|  |  | -            row.r2 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (row.w4 <= 0) {
 | 
	
		
			
				|  |  | -            row.w4 = 0
 | 
	
		
			
				|  |  | -            row.r4 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        // 4班锁定,2班1班未锁
 | 
	
		
			
				|  |  | -        if (row.isTwoWeight == false && row.isOneWeight == false && row.isFourWeight == true) {
 | 
	
		
			
				|  |  | -          row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          if (row.r1 == 0 && row.r2 == 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = row.w1
 | 
	
		
			
				|  |  | -            row.r2 = row.r1
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r2 !== 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4) - parseFloat(row.w2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r2 == 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4) - parseFloat(row.w1)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w1)) {
 | 
	
		
			
				|  |  | -            row.w1 = 0
 | 
	
		
			
				|  |  | -            row.r1 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w2)) {
 | 
	
		
			
				|  |  | -            row.w2 = 0
 | 
	
		
			
				|  |  | -            row.r2 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -          if (row.w2 <= 0) {
 | 
	
		
			
				|  |  | -            row.w2 = 0
 | 
	
		
			
				|  |  | -            row.r2 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (row.w1 <= 0) {
 | 
	
		
			
				|  |  | -            row.w1 = 0
 | 
	
		
			
				|  |  | -            row.r1 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        // 2班1班4班未锁
 | 
	
		
			
				|  |  | -        if (row.isTwoWeight == false && row.isOneWeight == false && row.isFourWeight == false) {
 | 
	
		
			
				|  |  | -          row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          if (row.r1 == 0 && row.r2 == 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3)) / 3, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = row.w1
 | 
	
		
			
				|  |  | -            row.r2 = row.r1
 | 
	
		
			
				|  |  | -            row.w4 = row.w1
 | 
	
		
			
				|  |  | -            row.r4 = row.r1
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r2 == 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = row.w1
 | 
	
		
			
				|  |  | -            row.r2 = row.r1
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow3.dailyWeight - row.w3) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r2 !== 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w2)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = row.w1
 | 
	
		
			
				|  |  | -            row.r4 = row.r1
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow3.dailyWeight - row.w3) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r2 == 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w1)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          if (isNaN(row.w1)) {
 | 
	
		
			
				|  |  | +            row.w1 = 0
 | 
	
		
			
				|  |  | +            row.r1 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if (isNaN(row.w4)) {
 | 
	
		
			
				|  |  | +            row.w4 = 0
 | 
	
		
			
				|  |  | +            row.r4 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +          if (row.w1 <= 0) {
 | 
	
		
			
				|  |  | +            row.w1 = 0
 | 
	
		
			
				|  |  | +            row.r1 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if (row.w4 <= 0) {
 | 
	
		
			
				|  |  | +            row.w4 = 0
 | 
	
		
			
				|  |  | +            row.r4 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        // 1班锁定,2班4班未锁
 | 
	
		
			
				|  |  | +        if (row.isTwoWeight == false && row.isOneWeight == true && row.isFourWeight == false) {
 | 
	
		
			
				|  |  | +          row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          if (row.r2 == 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | +            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.w4 = row.w2
 | 
	
		
			
				|  |  | +            row.r4 = row.r2
 | 
	
		
			
				|  |  | +          } else if (row.r2 == 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | +            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = row.w1
 | 
	
		
			
				|  |  | -            row.r4 = row.r1
 | 
	
		
			
				|  |  |              if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  |              if (row.w3 == '') { row.w3 = 0 }
 | 
	
	
		
			
				|  | @@ -3468,15 +2968,15 @@ export default {
 | 
	
		
			
				|  |  |              this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  |              row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w3)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +              row.w4 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  |              if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  |              if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r2 !== 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w1) - parseFloat(row.w2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          } else if (row.r2 !== 0 && row.r4 == 0) {
 | 
	
		
			
				|  |  | +            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3) - parseFloat(row.w2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 == '') { row.w2 = 0 }
 | 
	
	
		
			
				|  | @@ -3489,18 +2989,48 @@ export default {
 | 
	
		
			
				|  |  |              this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  |              row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w3)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow3.dailyWeight - row.w3) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +              row.w2 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |                row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  |              if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  |              if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r2 == 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w1) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  | +            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r2) / (parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.w4 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w1) - parseFloat(row.w3)) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if (isNaN(row.w2)) {
 | 
	
		
			
				|  |  | +            row.w2 = 0
 | 
	
		
			
				|  |  | +            row.r2 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if (isNaN(row.w4)) {
 | 
	
		
			
				|  |  | +            row.w4 = 0
 | 
	
		
			
				|  |  | +            row.r4 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if (row.w2 <= 0) {
 | 
	
		
			
				|  |  | +            row.w2 = 0
 | 
	
		
			
				|  |  | +            row.r2 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if (row.w4 <= 0) {
 | 
	
		
			
				|  |  | +            row.w4 = 0
 | 
	
		
			
				|  |  | +            row.r4 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        // 4班锁定,2班1班未锁
 | 
	
		
			
				|  |  | +        if (row.isTwoWeight == false && row.isOneWeight == false && row.isFourWeight == true) {
 | 
	
		
			
				|  |  | +          row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          if (row.r1 == 0 && row.r2 == 0) {
 | 
	
		
			
				|  |  | +            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.w2 = row.w1
 | 
	
		
			
				|  |  | +            row.r2 = row.r1
 | 
	
		
			
				|  |  | +          } else if (row.r1 == 0 && row.r2 !== 0) {
 | 
	
		
			
				|  |  | +            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4) - parseFloat(row.w2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  |              if (row.w3 == '') { row.w3 = 0 }
 | 
	
	
		
			
				|  | @@ -3512,18 +3042,16 @@ export default {
 | 
	
		
			
				|  |  |              this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  |              row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w3)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow3.dailyWeight - row.w3) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +              row.w2 = formatNum((parseFloat(this.focusWRow3.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  |              if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  |              if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r2 !== 0 && row.r4 !== 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w2) - parseFloat(row.w4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +          } else if (row.r1 !== 0 && row.r2 == 0) {
 | 
	
		
			
				|  |  | +            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4) - parseFloat(row.w1)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  |              if (row.w3 == '') { row.w3 = 0 }
 | 
	
	
		
			
				|  | @@ -3535,22 +3063,18 @@ export default {
 | 
	
		
			
				|  |  |              this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  |              row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow3.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow3.dailyWeight - row.w3) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w4 = formatNum((parseFloat(this.focusWRow3.dailyWeight - row.w3) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +              row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  |              if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  |              if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  |              if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  |            } else {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r4)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight - row.w3) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | +            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w3) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow3.r1) + parseFloat(row.r2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w4 = formatNum((parseFloat(row.dailyWeight - row.w3) * parseFloat(row.r4) / (parseFloat(this.focusWRow3.r1) + parseFloat(this.focusWRow3.r2) + parseFloat(this.focusWRow3.r4))), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            if (isNaN(row.w1)) {
 | 
	
		
			
				|  |  |              row.w1 = 0
 | 
	
	
		
			
				|  | @@ -3560,24 +3084,50 @@ export default {
 | 
	
		
			
				|  |  |              row.w2 = 0
 | 
	
		
			
				|  |  |              row.r2 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w4)) {
 | 
	
		
			
				|  |  | -            row.w4 = 0
 | 
	
		
			
				|  |  | -            row.r4 = 0
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +          if (row.w2 <= 0) {
 | 
	
		
			
				|  |  | +            row.w2 = 0
 | 
	
		
			
				|  |  | +            row.r2 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            if (row.w1 <= 0) {
 | 
	
		
			
				|  |  |              row.w1 = 0
 | 
	
		
			
				|  |  |              row.r1 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w2 <= 0) {
 | 
	
		
			
				|  |  | +          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        // 2班1班4班未锁
 | 
	
		
			
				|  |  | +        if (row.isTwoWeight == false && row.isOneWeight == false && row.isFourWeight == false) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w1) || row.w1 == '' || row.w1 <= 0){
 | 
	
		
			
				|  |  | +            row.w1 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.w2) || row.w2 == '' || row.w2 <= 0){
 | 
	
		
			
				|  |  |              row.w2 = 0
 | 
	
		
			
				|  |  | -            row.r2 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w4 <= 0) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w3) || row.w3 == '' || row.w3 <= 0){
 | 
	
		
			
				|  |  | +            row.w3 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.w4) || row.w4 == '' || row.w4 <= 0){
 | 
	
		
			
				|  |  |              row.w4 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.r1) || row.r1 == '' || row.r1 <= 0){
 | 
	
		
			
				|  |  | +            row.r1 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.r2) || row.r2 == '' || row.r2 <= 0){
 | 
	
		
			
				|  |  | +            row.r2 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.r3) || row.r3 == '' || row.r3 <= 0){
 | 
	
		
			
				|  |  | +            row.r3 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.r4) || row.r4 == '' || row.r4 <= 0){
 | 
	
		
			
				|  |  |              row.r4 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | +          let a = (1/ (parseFloat(row.r3) / 100) * parseFloat(row.w3)).toFixed(2)
 | 
	
		
			
				|  |  | +          let b = (a * parseFloat(row.sumr) / 100).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w2 = (a * (parseFloat(row.r2) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w1 = (a * (parseFloat(row.r1) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w4 = (a * (parseFloat(row.r4) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | +          row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        } else if (this.table.RWLength == 3) {
 | 
	
		
			
				|  |  |          // 三班
 | 
	
	
		
			
				|  | @@ -3992,192 +3542,37 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 2班3班1班未锁
 | 
	
		
			
				|  |  |          if (row.isOneWeight == false && row.isTwoWeight == false && row.isThreeWeight == false) {
 | 
	
		
			
				|  |  | -          row.r4 = formatNum(parseFloat(row.w4) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          if (row.r1 == 0 && row.r2 == 0 && row.r3 == 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4)) / 3, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = row.w1
 | 
	
		
			
				|  |  | -            row.r2 = row.r1
 | 
	
		
			
				|  |  | -            row.w3 = row.w1
 | 
	
		
			
				|  |  | -            row.r3 = row.r1
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r2 == 0 && row.r3 !== 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4) - parseFloat(row.w3)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = row.w1
 | 
	
		
			
				|  |  | -            row.r2 = row.r1
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            console.log(row.dailyWeight)
 | 
	
		
			
				|  |  | -            console.log(this.focusWRow4.dailyWeight)
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow4.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r3) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r2 !== 0 && row.r3 == 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4) - parseFloat(row.w2)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = row.w1
 | 
	
		
			
				|  |  | -            row.r3 = row.r1
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow4.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r2 == 0 && row.r3 == 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4) - parseFloat(row.w1)) / 2, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = row.w1
 | 
	
		
			
				|  |  | -            row.r3 = row.r1
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow4.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r2 !== 0 && row.r3 == 0) {
 | 
	
		
			
				|  |  | -            row.w3 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4) - parseFloat(row.w1) - parseFloat(row.w2)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow4.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 !== 0 && row.r2 == 0 && row.r3 !== 0) {
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4) - parseFloat(row.w1) - parseFloat(row.w3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow4.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w1 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r3) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -          } else if (row.r1 == 0 && row.r2 !== 0 && row.r3 !== 0) {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4) - parseFloat(row.w2) - parseFloat(row.w3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (row.w1 == '') { row.w1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 == '') { row.w2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 == '') { row.w3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 == '') { row.w4 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -            if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | -            row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            if (parseFloat(row.dailyWeight) > parseFloat(this.focusWRow4.dailyWeight)) {
 | 
	
		
			
				|  |  | -              row.w2 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.w3 = formatNum((parseFloat(this.focusWRow4.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r3) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -              if (row.w1 <= 0) { row.w1 = 0; row.r1 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w2 <= 0) { row.w2 = 0; row.r2 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w3 <= 0) { row.w3 = 0; row.r3 = 0 }
 | 
	
		
			
				|  |  | -              if (row.w4 <= 0) { row.w4 = 0; row.r4 = 0 }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          } else {
 | 
	
		
			
				|  |  | -            row.w1 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r1) / (parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r1 = formatNum(parseFloat(row.w1) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w2 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r2) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r2 = formatNum(parseFloat(row.w2) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.w3 = formatNum((parseFloat(row.dailyWeight) - parseFloat(row.w4)) * parseFloat(row.r3) / (parseFloat(this.focusWRow4.r1) + parseFloat(this.focusWRow4.r2) + parseFloat(this.focusWRow4.r3)), parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -            row.r3 = formatNum(parseFloat(row.w3) / parseFloat(row.feedweight) * 100, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w1)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w1) || row.w1 == '' || row.w1 <= 0){
 | 
	
		
			
				|  |  |              row.w1 = 0
 | 
	
		
			
				|  |  | -            row.r1 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w2)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w2) || row.w2 == '' || row.w2 <= 0){
 | 
	
		
			
				|  |  |              row.w2 = 0
 | 
	
		
			
				|  |  | -            row.r2 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (isNaN(row.w3)) {
 | 
	
		
			
				|  |  | +          if(isNaN(row.w3) || row.w3 == '' || row.w3 <= 0){
 | 
	
		
			
				|  |  |              row.w3 = 0
 | 
	
		
			
				|  |  | -            row.r3 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -          if (row.w1 <= 0) {
 | 
	
		
			
				|  |  | -            row.w1 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.w4) || row.w4 == '' || row.w4 <= 0){
 | 
	
		
			
				|  |  | +            row.w4 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          if(isNaN(row.r1) || row.r1 == '' || row.r1 <= 0){
 | 
	
		
			
				|  |  |              row.r1 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w2 <= 0) {
 | 
	
		
			
				|  |  | -            row.w2 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r2) || row.r2 == '' || row.r2 <= 0){
 | 
	
		
			
				|  |  |              row.r2 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          if (row.w3 <= 0) {
 | 
	
		
			
				|  |  | -            row.w3 = 0
 | 
	
		
			
				|  |  | +          if(isNaN(row.r3) || row.r3 == '' || row.r3 <= 0){
 | 
	
		
			
				|  |  |              row.r3 = 0
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          this.$set(row, 'sumr', formatNum(parseFloat(row.r1) + parseFloat(row.r2) + parseFloat(row.r3) + parseFloat(row.r4), parseInt(Cookies.get('decimal'))))
 | 
	
		
			
				|  |  | +          if(isNaN(row.r4) || row.r4 == '' || row.r4 <= 0){
 | 
	
		
			
				|  |  | +            row.r4 = 0
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          let a = (1/ (parseFloat(row.r4) / 100) * parseFloat(row.w4)).toFixed(2)
 | 
	
		
			
				|  |  | +          let b = (a * parseFloat(row.sumr) / 100).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w2 = (a * (parseFloat(row.r2) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w3 = (a * (parseFloat(row.r3) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          row.w1 = (a * (parseFloat(row.r1) / 100)).toFixed(2)
 | 
	
		
			
				|  |  | +          this.$set(row, 'dailyWeight', parseFloat(row.w1) + parseFloat(row.w2) + parseFloat(row.w3) + parseFloat(row.w4))
 | 
	
		
			
				|  |  | +          row.dailyWeight = formatNum(row.dailyWeight, parseInt(Cookies.get('decimal')))
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        if (row.w1 == '') { row.w1 = 0 }
 |