@ -128,7 +128,7 @@ export default {
plantingTime : undefined ,
plantingArea : undefined ,
harvestTime : undefined ,
production : undefined ,
production : 0 ,
blockArea : undefined ,
blockName : undefined ,
@ -326,11 +326,16 @@ export default {
}
} ,
checkArea1 ( val ) {
console . log ( this . formData . production )
if ( val == 1 ) {
this . formData . plantingArea = parseFloat ( this . formData . plantingArea ) . toFixed ( 2 ) ;
if ( this . formData . plantingArea != '' ) {
this . formData . plantingArea = parseFloat ( this . formData . plantingArea ) . toFixed ( 2 ) ;
}
}
if ( val == 2 ) {
this . formData . production = parseFloat ( this . formData . production ) . toFixed ( 2 ) ;
if ( this . formData . production != '' ) {
this . formData . production = parseFloat ( this . formData . production ) . toFixed ( 2 ) ;
}
}
} ,
goSearch ( ) {
@ -353,7 +358,7 @@ export default {
plantingTime : undefined ,
plantingArea : undefined ,
harvestTime : undefined ,
production : undefined ,
production : 0 ,
blockArea : undefined ,
blockName : undefined ,