subcatprod

This commit is contained in:
Surya Paolo
2024-01-12 13:03:07 +01:00
parent ee064854a7
commit 89e8575aae
12 changed files with 97 additions and 1 deletions

View File

@@ -426,6 +426,20 @@ export const colTableCatProd = [
AddCol(DeleteRec),
AddCol(DuplicateRec),
]
export const colTableSubCatProd = [
AddCol({ name: 'name', label_trans: 'categories.name' }),
AddCol({
name: 'idCatProd',
label_trans: 'products.category',
fieldtype: costanti.FieldType.select,
jointable: 'catprods',
}),
AddCol({ name: 'img', label_trans: 'categories.img' }),
AddCol({ name: 'icon', label_trans: 'categories.icon' }),
AddCol({ name: 'color', label_trans: 'categories.color' }),
AddCol(DeleteRec),
AddCol(DuplicateRec),
]
export const colTableStorehouse = [
AddCol({ name: 'name', label_trans: 'store.name' }),

View File

@@ -39,6 +39,7 @@ function getRecordProductInfoEmpty(): IProductInfo {
description: '',
department: '',
catprods: [],
subcatprods: [],
color: '',
size: '',
weight: 0,
@@ -101,6 +102,7 @@ export const useProducts = defineStore('Products', {
cart: { items: [], totalPrice: 0, totalQty: 0, userId: '' },
orders: [],
catprods: [],
subcatprods: [],
productInfos: [],
}),

View File

@@ -123,6 +123,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
scontisticas: [],
providers: [],
catprods: [],
subcatprods: [],
gasordines: [],
departments: [],
categories: [],