- aggiornato scheda e rigenera lista
- corretto filtro sulla Collana
This commit is contained in:
@@ -5,12 +5,13 @@ import { i18n } from 'src/boot/i18n' // Importa l'istanza di i18n configurata in
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useQuasar } from 'quasar'
|
||||
import type { IDataPass, IProduct, IProductInfo, ISpecialField, IVariazione } from '@model';
|
||||
import type { ICatalog, IDataPass, IProduct, IProductInfo, ISpecialField, IVariazione } from '@model';
|
||||
import { tools } from '../store/Modules/tools'
|
||||
import { costanti } from '@costanti'
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
|
||||
import { useProducts } from '@store/Products'
|
||||
import { useCatalogStore } from '@store/CatalogStore'
|
||||
|
||||
const { t } = i18n.global;
|
||||
|
||||
@@ -203,6 +204,13 @@ export default function () {
|
||||
const myfield = key as keyof IVariazione
|
||||
productStore.products[idprod].arrvariazioni[0][myfield] = value
|
||||
}
|
||||
} else if (table === 'catalogs') {
|
||||
const catalogStore = useCatalogStore()
|
||||
const idcat = catalogStore.catalogs.findIndex((rec: ICatalog) => rec._id === id)
|
||||
if (idcat >= 0 && key) {
|
||||
const myfield = key as keyof ICatalog
|
||||
catalogStore.catalogs[idcat][myfield] = value
|
||||
}
|
||||
}
|
||||
|
||||
console.log('mydatatosave', mydatatosave)
|
||||
|
||||
Reference in New Issue
Block a user