PCB lista categorie

This commit is contained in:
Surya Paolo
2023-11-28 14:12:45 +01:00
parent b29caade62
commit 2314b07428
14 changed files with 216 additions and 78 deletions

View File

@@ -120,6 +120,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
workers: [],
storehouses: [],
departments: [],
categories: [],
sharewithus: [],
TIMER: null,
TIMEOUT: null,
@@ -300,6 +301,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
else if (table === 'resps') ris = state.resps
else if (table === 'workers') ris = state.workers
else if (table === 'departments') ris = state.departments
else if (table === 'categorys') ris = state.categories
else if (table === 'sharewithus') ris = state.sharewithus
else if (table === 'paymenttypes') ris = state.paymenttypes
else if (table === 'circuits') ris = circuitStore.listcircuits
@@ -1512,6 +1514,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
this.resps = (res.data.resps) ? [...res.data.resps] : []
this.workers = (res.data.workers) ? [...res.data.workers] : []
this.departments = (res.data.departments) ? [...res.data.departments] : []
this.categories = (res.data.categories) ? [...res.data.categories] : []
this.levels = (res.data.levels) ? [...res.data.levels] : []
this.skills = (res.data.skills) ? [...res.data.skills] : []
this.goods = (res.data.goods) ? [...res.data.goods] : []