Added Agriculture Module to Invoice Creation

This commit is contained in:
2024-11-13 19:13:45 +01:00
parent a246263424
commit 947fe710a3
3 changed files with 200 additions and 36 deletions

View File

@@ -81,7 +81,7 @@ const setupPage = async () => {
}
const cancelEditorCreate = () => {
if(itemInfo.value) {
if(itemInfo.value.id) {
router.push(`/vehicles/show/${itemInfo.value.id}`)
} else {
router.push(`/vehicles`)
@@ -207,6 +207,10 @@ setupPage()
<td>Tankvolumen:</td>
<td>{{itemInfo.tankSize !== 0 ? `${itemInfo.tankSize} L` : "Kein Tank verbaut"}}</td>
</tr>
<tr>
<td>Baujahr:</td>
<td>{{itemInfo.buildYear}}</td>
</tr>
</table>
</div>
@@ -316,6 +320,14 @@ setupPage()
</template>
</UInput>
</UFormGroup>
<UFormGroup
label="Baujahr:"
>
<UInput
v-model="itemInfo.buildYear"
type="number"
/>
</UFormGroup>
</UForm>
</template>