|
|
|
@ -316,14 +316,15 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
checkArea1(val) { |
|
|
|
|
console.log(this.formData.production) |
|
|
|
|
if (val == 1) { |
|
|
|
|
if (this.formData.plantingArea != '') { |
|
|
|
|
console.log(this.formData.plantingArea) |
|
|
|
|
if (this.formData.plantingArea != ''&&this.formData.plantingArea !=undefined) { |
|
|
|
|
this.formData.plantingArea = parseFloat(this.formData.plantingArea).toFixed(2); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (val == 2) { |
|
|
|
|
if (this.formData.production != '') { |
|
|
|
|
console.log(this.formData.production) |
|
|
|
|
if (this.formData.production != ''&&this.formData.production!=undefined) { |
|
|
|
|
this.formData.production = parseFloat(this.formData.production).toFixed(2); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|