Changes
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
"@fullcalendar/vue3": "^6.1.10",
|
||||
"@iconify/json": "^2.2.171",
|
||||
"@nuxt/content": "^2.9.0",
|
||||
"@nuxt/ui-pro": "^0.7.0",
|
||||
"@nuxt/ui-pro": "^1.0.0",
|
||||
"@nuxtjs/fontaine": "^0.4.1",
|
||||
"@nuxtjs/google-fonts": "^3.1.0",
|
||||
"@nuxtjs/strapi": "^1.9.3",
|
||||
|
||||
@@ -255,7 +255,7 @@ setupPage()
|
||||
label="Land"
|
||||
>
|
||||
<USelectMenu
|
||||
:options="['Deutschland','Niederlande','Belgien','Italien']"
|
||||
:options="['Deutschland','Niederlande','Belgien','Italien', 'Frankreich','Irland','USA','Spanien', 'Schweden']"
|
||||
v-model="itemInfo.infoData.country"
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
@@ -132,13 +132,6 @@ setupPage()
|
||||
v-model="itemInfo.name"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Hersteller:"
|
||||
>
|
||||
<UInput
|
||||
v-model="itemInfo.manufacturer"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Einheit:"
|
||||
>
|
||||
@@ -162,25 +155,22 @@ setupPage()
|
||||
multiple
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
<UFormGroup
|
||||
label="EAN:"
|
||||
label="Leistungskategorie:"
|
||||
>
|
||||
<UInput
|
||||
v-model="itemInfo.ean"
|
||||
/>
|
||||
<USelectMenu
|
||||
:options="dataStore.serviceCategories"
|
||||
option-attribute="name"
|
||||
value-attribute="id"
|
||||
></USelectMenu>
|
||||
</UFormGroup>
|
||||
|
||||
<UFormGroup
|
||||
label="Barcode:"
|
||||
label="Verkaufspreis:"
|
||||
>
|
||||
<UInput
|
||||
v-model="itemInfo.barcode"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Einkaufspreis:"
|
||||
>
|
||||
<UInput
|
||||
v-model="itemInfo.purchasePrice"
|
||||
v-model="itemInfo.sellingPrice"
|
||||
type="number"
|
||||
steps="0.01"
|
||||
>
|
||||
|
||||
@@ -172,7 +172,7 @@ setupPage()
|
||||
</InputGroup>
|
||||
|
||||
<DocumentList
|
||||
:documents="dataStore.getDocumentsByContractId(currentItem.id)"
|
||||
:documents="dataStore.getDocumentsByVehicleId(currentItem.id)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
8
spaces/pages/vendors/[mode]/[[id]].vue
vendored
8
spaces/pages/vendors/[mode]/[[id]].vue
vendored
@@ -161,6 +161,14 @@ setupPage()
|
||||
v-model="itemInfo.infoData.city"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Land"
|
||||
>
|
||||
<USelectMenu
|
||||
:options="['Deutschland','Niederlande','Belgien','Italien', 'Frankreich','Irland','USA','Spanien', 'Schweden']"
|
||||
v-model="itemInfo.infoData.country"
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
<UFormGroup
|
||||
label="Telefon:"
|
||||
|
||||
@@ -92,7 +92,12 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Inventarartikel",
|
||||
labelSingle: "Inventarartikel",
|
||||
redirect: true
|
||||
}
|
||||
},
|
||||
services: {
|
||||
label: "Leistungen",
|
||||
labelSingle: "Leistung",
|
||||
redirect: true
|
||||
},
|
||||
}
|
||||
|
||||
const documentTypesForCreation = ref({
|
||||
@@ -165,6 +170,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
const emailAccounts = ref([])
|
||||
const texttemplates =ref([])
|
||||
const services =ref([])
|
||||
const serviceCategories =ref([])
|
||||
|
||||
|
||||
const rights = ref({
|
||||
@@ -281,6 +287,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
await fetchEmailAccounts()
|
||||
await fetchTextTemplates()
|
||||
await fetchServices()
|
||||
await fetchServiceCategories()
|
||||
loaded.value = true
|
||||
}
|
||||
|
||||
@@ -324,6 +331,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
emailAccounts.value = []
|
||||
texttemplates.value = []
|
||||
services.value = []
|
||||
serviceCategories.value = []
|
||||
}
|
||||
|
||||
function hasRight (right) {
|
||||
@@ -607,6 +615,10 @@ export const useDataStore = defineStore('data', () => {
|
||||
services.value = (await supabase.from("services").select().eq('tenant', currentTenant.value)).data
|
||||
}
|
||||
|
||||
async function fetchServiceCategories() {
|
||||
serviceCategories.value = (await supabase.from("serviceCategories").select().eq('tenant', currentTenant.value)).data
|
||||
}
|
||||
|
||||
async function fetchDocuments () {
|
||||
let tempDocuments = (await supabase.from("documents").select().eq('tenant', currentTenant.value)).data
|
||||
|
||||
@@ -1053,6 +1065,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
emailAccounts,
|
||||
texttemplates,
|
||||
services,
|
||||
serviceCategories,
|
||||
documentTypesForCreation,
|
||||
|
||||
//Functions
|
||||
|
||||
Reference in New Issue
Block a user