- aggiornamento catalogo: lista titoli del catalogo

- scheda prodotto libro
- migliorata tabella prodotto
This commit is contained in:
Surya Paolo
2025-04-04 18:15:14 +02:00
parent 79d1c5fe1d
commit 9cfc308d09
49 changed files with 1760 additions and 934 deletions

View File

@@ -13,14 +13,17 @@ import { CMyValueDb } from '../CMyValueDb'
import { CPrice } from '../CPrice'
import { CText } from '../CText'
import { CLabel } from '@src/components/CLabel'
import { CSchedaProdotto } from '@src/components/CSchedaProdotto'
import { CBarCode } from '../CBarCode'
import { CTableCupleLabelValue } from '../CTableCupleLabelValue'
import { func_tools, toolsext } from '@store/Modules/toolsext'
import type {
IOptCatalogo, IGasordine, IMyScheda, IOrder, IOrderCart,
IProduct, IVariazione
IProduct, IVariazione,
IRecFields
} from '@src/model';
import {
IBaseOrder
@@ -86,7 +89,7 @@ export default defineComponent({
},
components: {
CTitleBanner, CCardState, CCopyBtn, CMyValueDb, VuePdfApp, CPrice, CBarCode, CLabel,
CText, CViewTable
CText, CViewTable, CTableCupleLabelValue, CSchedaProdotto
},
setup(props, { emit }) {
const $q = useQuasar()
@@ -103,6 +106,9 @@ export default defineComponent({
const site = ref(globalStore.site)
const arrlistScheda = ref([])
const $router = useRouter()
const fullscreenImage = ref(<any>null)
@@ -132,6 +138,7 @@ export default defineComponent({
// updateCatalogoPadre()
}, { deep: false });
function updateCatalogoPadre() {
emit('update:modelValue', optcatalogo.value);
}
@@ -323,10 +330,14 @@ export default defineComponent({
}
async function updateproductmodif() {
// console.log('updateproductmodif')
async function updateproductmodif(element: any) {
console.log('CCATALOGOCARD: updateproductmodif')
try {
myproduct.value = await products.getProductById(props.id)
if (element?._id) {
myproduct.value = await products.getProductById(element?._id)
} else {
myproduct.value = await products.getProductById(props.id)
}
updateLabel()
} catch (e) {