- aggiornamento catalogo: lista titoli del catalogo
- scheda prodotto libro - migliorata tabella prodotto
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user