diff --git a/src/components/shared/table/TableProductAndService.vue b/src/components/shared/table/TableProductAndService.vue index e209eade..d5273a49 100644 --- a/src/components/shared/table/TableProductAndService.vue +++ b/src/components/shared/table/TableProductAndService.vue @@ -45,6 +45,8 @@ type ExclusiveProps = { type: 'service' | 'product'; grid?: boolean; disabledWorkerId?: string[]; + disabledProductFields?: (typeof columnsProduct)[number]['name'][]; + disabledServiceFields?: (typeof columnsService)[number]['name'][]; rows: Product[]; }; @@ -76,7 +78,7 @@ const columnsProduct = [ label: 'productService.product.priceInformation', field: (v: Product) => v, }, -] satisfies QTableColumn[]; +] as const satisfies QTableColumn[]; const columnsService = [ { @@ -110,7 +112,7 @@ const columnsService = [ label: 'general.createdAt', field: (v: Service) => dateFormatJS({ date: v.createdAt }), }, -] satisfies QTableColumn[]; +] as const satisfies QTableColumn[]; const props = defineProps(); @@ -165,7 +167,18 @@ function selectedIndex(item: any) { :props="props" > @@ -209,7 +222,17 @@ function selectedIndex(item: any) { class="text-center" >