Aggiornamento cataloghi...

This commit is contained in:
Surya Paolo
2025-04-11 18:49:42 +02:00
parent cea3bcfa0e
commit 3616e2ca0f
44 changed files with 593 additions and 206 deletions

View File

@@ -119,6 +119,7 @@ export default defineComponent({
async function loadProduct(id: string) {
// Carica il prodotto
console.log('loadProduct', id)
if (id) {
myproduct.value = await productStore.loadProductById(id)
@@ -192,7 +193,8 @@ export default defineComponent({
if (props.nameLinkTemplate) {
const linkIdTemplate = globalStore.getLinkIdTemplateByName(props.nameLinkTemplate)
optcatalogo.value.arrSchede[0].scheda.linkIdTemplate = linkIdTemplate
if (linkIdTemplate)
optcatalogo.value.arrSchede[0].scheda.linkIdTemplate = linkIdTemplate
} else {
optcatalogo.value.arrSchede[0].scheda.name = 'SEARCH_NEW'
}
@@ -265,6 +267,7 @@ export default defineComponent({
}
function updateproductmodif(element: IProduct) {
console.log('CSEARCHPRODUCT: updateproductmodif')
emit('updateproductmodif', element)
}

View File

@@ -23,6 +23,8 @@
:col="fieldsTable.getColByColumns(mycolumns, item.key)"
:label="item.value && item.value._id > 0 ? undefined : labelcombo(item)"
v-model:value="item.value"
v-model:arrvalue="item.arrvalue"
@update:arrvalue="updateproductmodif"
:addall="item.addall"
:addnone="item.addnone"
:focus="focus"
@@ -38,13 +40,17 @@
:filter="item.filter"
:filter_extra="item.filter_extra"
:useinput="item.useinput && item.type !== costanti.FieldType.select_by_server"
@clear="item.value = ''; myproduct = null; saveSearch()"
@clear="
item.value = '';
myproduct = null;
saveSearch();
"
>
</CMySelect>
</div>
<div
v-if="myproduct?._id"
v-if="myproduct?._id && optcatalogo.arrSchede?.length > 0"
class="row justify-center"
style="text-align: center"
>