Added MaterialComposition

Added Service Categorie Rendering
This commit is contained in:
2025-01-07 15:25:02 +01:00
parent 2c175ad1b2
commit 0baba63542
4 changed files with 166 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ import sellingPriceComposedWorker from "~/components/columnRenderings/sellingPri
import sellingPriceComposedTotal from "~/components/columnRenderings/sellingPriceComposedTotal.vue"
import startDate from "~/components/columnRenderings/startDate.vue"
import endDate from "~/components/columnRenderings/endDate.vue"
import serviceCategories from "~/components/columnRenderings/serviceCategories.vue"
import quantity from "~/components/helpRenderings/quantity.vue"
import {useZipCheck} from "~/composables/useZipCheck.js";
@@ -39,7 +40,6 @@ export const useDataStore = defineStore('data', () => {
const supabase = useSupabaseClient()
const profileStore = useProfileStore()
const user = useSupabaseUser()
const toast = useToast()
const router = useRouter()
@@ -1380,7 +1380,8 @@ export const useDataStore = defineStore('data', () => {
selectDataType: "servicecategories",
selectOptionAttribute: "name",
selectSearchAttributes: ['name'],
selectMultiple: true
selectMultiple: true,
component: serviceCategories
},
{
key: "sellingPriceComposed.worker",
@@ -1408,6 +1409,11 @@ export const useDataStore = defineStore('data', () => {
},
component: sellingPriceComposedMaterial
},
{
key: "materialComposing",
label: "Zusammensetzung Materialpreis",
inputType: "materialComposing",
},
{
key: "sellingPriceComposed.total",
label: "Verkaufspreis Gesamt pro Einheit",
@@ -2213,7 +2219,7 @@ export const useDataStore = defineStore('data', () => {
await generateHistoryItems(dataType, supabaseData[0])
if(!["statementallocations","absencerequests", "productcategories", "projecttypes", "checks", "profiles","services", "inventoryitems"].includes(dataType) ){
if(!["statementallocations","absencerequests", "productcategories", "servicecategories", "projecttypes", "checks", "profiles","services", "inventoryitems"].includes(dataType) ){
await eval( dataType + '.value.push(' + JSON.stringify(...supabaseData) + ')')
}