- Finalmente risolto il calcolo e l'impaginazione del PDF, per WEb e per Stampa (300 dpi) !
- corretto altre cose sulla lista cataloghi.
This commit is contained in:
@@ -199,40 +199,6 @@ export default defineComponent({
|
||||
return lista && lista.value && lista.value._id ? lista.value._id : '';
|
||||
}
|
||||
|
||||
function populateDataWithlinkIdTemplate() {
|
||||
// console.log('populateDataWithlinkIdTemplate')
|
||||
|
||||
if (optcatalogo.value) {
|
||||
// LINK PAGINA
|
||||
if (optcatalogo.value.dimensioni_def.linkIdTemplate) {
|
||||
const reccatalog = globalStore.sovrascriviPaginaDefaultFromTemplate(optcatalogo.value.dimensioni_def.linkIdTemplate, optcatalogo.value.dimensioni_def);
|
||||
if (reccatalog) {
|
||||
optcatalogo.value.dimensioni_def.pagina = { ...reccatalog.dimensioni_def.pagina};
|
||||
}
|
||||
}
|
||||
|
||||
if (optcatalogo.value.print_linkIdTemplate) {
|
||||
const reccatalog = globalStore.sovrascriviAreadistampaFromTemplate(optcatalogo.value.print_linkIdTemplate, optcatalogo.value);
|
||||
if (reccatalog) {
|
||||
optcatalogo.value.areadistampa = { ...reccatalog.areadistampa};
|
||||
}
|
||||
}
|
||||
|
||||
// LINK SCHEDA
|
||||
for (const recscheda of optcatalogo.value.arrSchede!) {
|
||||
if (recscheda.scheda?.linkIdTemplate) {
|
||||
// ricopia da Template:
|
||||
const myscheda = globalStore.sovrascriviSchedaFromTemplate(recscheda.scheda?.linkIdTemplate, recscheda);
|
||||
if (myscheda) {
|
||||
recscheda.scheda = { ...myscheda };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// console.log(' FINE - populateDataWithlinkIdTemplate')
|
||||
}
|
||||
|
||||
function isProductLibro() {
|
||||
return props.table === 'products';
|
||||
}
|
||||
@@ -264,7 +230,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (props.nameLinkTemplate) {
|
||||
populateDataWithlinkIdTemplate();
|
||||
optcatalogo.value = productStore.populateDataWithlinkIdTemplate(optcatalogo.value);
|
||||
}
|
||||
|
||||
if (props.visu === shared_consts.VISU_SEARCHPROD_MODE.INSERT) {
|
||||
|
||||
Reference in New Issue
Block a user