ver 1.1.20:
- corretto campo foto che non compariva più. - sistemato i campi aggiuntivi e i richiesti. - migliorato la barra in alto di selezione. - aggiunto alcune icone.
This commit is contained in:
@@ -17,7 +17,7 @@ import { CBarCode } from '../CBarCode'
|
||||
import { func_tools, toolsext } from '@store/Modules/toolsext'
|
||||
|
||||
import {
|
||||
IBaseOrder, ICatalogo, IGasordine, IMyScheda, IOrder, IOrderCart,
|
||||
IBaseOrder, IOptCatalogo, IGasordine, IMyScheda, IOrder, IOrderCart,
|
||||
IProduct, IVariazione
|
||||
} from '@src/model'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
@@ -63,7 +63,7 @@ export default defineComponent({
|
||||
default: () => { }
|
||||
},
|
||||
modelValue: {
|
||||
type: Object as PropType<ICatalogo>,
|
||||
type: Object as PropType<IOptCatalogo>,
|
||||
required: true,
|
||||
},
|
||||
scheda: {
|
||||
@@ -100,7 +100,7 @@ export default defineComponent({
|
||||
const apriSchedaPDF = ref(false)
|
||||
|
||||
// Crea una copia locale reattiva di modelValue
|
||||
const optcatalogo = ref<ICatalogo>({ ...props.modelValue });
|
||||
const optcatalogo = ref<IOptCatalogo>({ ...props.modelValue });
|
||||
|
||||
// Watcher per sincronizzare le modifiche di modelValue
|
||||
watch(() => props.modelValue, (newVal) => {
|
||||
@@ -113,7 +113,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
// Metodo per aggiornare il valore del catalogo
|
||||
const updateCatalogo = (updatedCatalogo: ICatalogo) => {
|
||||
const updateCatalogo = (updatedCatalogo: IOptCatalogo) => {
|
||||
optcatalogo.value = updatedCatalogo; // Aggiorna la copia locale
|
||||
updateCatalogoPadre()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user