@@ -38,14 +38,15 @@ const machineType = computed(() => {
3838})
3939
4040const save = () => {
41+ console .log (formData .value .scratch )
4142 priceEstimatorStore .addLab ({
4243 name: formData .value .name ,
4344 subscription: formData .value .subscription ,
4445 machineType: formData .value .machineType ,
4546 machineSubscription: formData .value .machineSubscription ,
4647 archive: Number (formData .value .archive ),
4748 work: Number (formData .value .work ),
48- scratch: Number ( formData .value .scratch ) ,
49+ scratch: formData .value .scratch ,
4950 isDefault: true ,
5051 })
5152 emit (" close" )
@@ -85,15 +86,15 @@ onMounted(() => {
8586 </v-col >
8687
8788 <v-col cols =" 12" sm =" 6" >
88- <v-text-field v-model =" formData.archive" label =" Archive Storage (TB)" type =" number" variant =" outlined" min =" 0" placeholder =" 0.4 " ></v-text-field >
89+ <v-number-input v-model =" formData.archive" label =" Archive Storage (TB)" type =" number" variant =" outlined" : min =" 0" :step =" 0.1 " :precision = " 1 " ></v-number-input >
8990 </v-col >
9091
9192 <v-col cols =" 12" sm =" 6" >
92- <v-text-field v-model =" formData.work" label =" Work Storage (TB)" type =" number" variant =" outlined" min =" 0" placeholder =" 0.3 " ></v-text-field >
93+ <v-number-input v-model =" formData.work" label =" Work Storage (TB)" type =" number" variant =" outlined" : min =" 0" :step =" 0.1 " :precision = " 1 " ></v-number-input >
9394 </v-col >
9495
9596 <v-col cols =" 12" sm =" 6" >
96- <v-text-field v-model =" formData.scratch" label =" Scratch Storage (TB)" type =" number" variant =" outlined" min =" 0" placeholder =" 0.4 " ></v-text-field >
97+ <v-number-input v-model =" formData.scratch" label =" Scratch Storage (TB)" type =" number" variant =" outlined" : min =" 0" :step =" 0.1 " :precision = " 1 " ></v-number-input >
9798 </v-col >
9899 </v-row >
99100 </v-container >
0 commit comments