- Modifiche a ProductInfo... Continua

This commit is contained in:
Surya Paolo
2025-08-29 23:34:37 +02:00
parent 5d8e38fea6
commit 4f4297ca21
77 changed files with 3830 additions and 1281 deletions

View File

@@ -97,7 +97,7 @@
:src="
myproduct.productInfo.imagefile
? tools.getFullFileNameByImageFile(
'productInfos',
'products',
myproduct.productInfo.imagefile
)
: myproduct.productInfo.image_link
@@ -901,8 +901,8 @@
<CModifTrafiletto
v-model="myproduct"
titolo="Sinossi"
table="productinfos"
mykey="descr_trafiletto_catalogo"
table="products"
mykey="productInfo.descr_trafiletto_catalogo"
:canModify="true"
:type="costanti.FieldType.editor_nohtml"
@updateproductmodif="updateproductmodif"

View File

@@ -377,8 +377,7 @@ export default defineComponent({
}
function getrealdirectory() {
if (props.directory == 'productinfos') return 'products';
else return props.directory;
return props.directory;
}
function getParamDir() {

View File

@@ -41,7 +41,7 @@
:src="
myproduct.productInfo.imagefile
? tools.getFullFileNameByImageFile(
'productInfos',
'products',
myproduct.productInfo.imagefile
)
: myproduct.productInfo.image_link
@@ -417,8 +417,8 @@
v-if="editOn"
title=""
:editOn="editOn"
table="productinfos"
:id="myproduct.productInfo._id"
table="products"
:id="myproduct._id"
:rec="myproduct.productInfo"
mykey="note"
debounce="1000"
@@ -450,8 +450,8 @@
v-if="editOn"
:editOn="editOn"
:title="t('products.imagefile')"
table="productinfos"
:id="myproduct.productInfo._id"
table="products"
:id="myproduct._id"
:rec="myproduct.productInfo"
mykey="imagefile"
debounce="1000"
@@ -1157,7 +1157,7 @@
:src="
myproduct.productInfo.imagefile
? tools.getFullFileNameByImageFile(
'productInfos',
'products',
myproduct.productInfo.imagefile
)
: myproduct.productInfo.image_link

View File

@@ -632,7 +632,7 @@ export default defineComponent({
case 'image':
return element.productInfo?.imagefile
? tools.getFullFileNameByImageFile(
'productInfos',
'products',
element.productInfo?.imagefile
)
: element.productInfo?.image_link;

View File

@@ -388,8 +388,8 @@
<CModifTrafiletto
v-model="selProd"
titolo="Sinossi"
table="productinfos"
mykey="descr_trafiletto_catalogo"
table="products"
mykey="productInfo.descr_trafiletto_catalogo"
:canModify="true"
:type="costanti.FieldType.editor_nohtml"
@updateproductmodif="updateproductmodif"

View File

@@ -81,8 +81,8 @@ export default defineComponent({
{
editOn: false,
label: 'Fatturati',
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
table: 'products',
id: myproduct.value._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'totFat',
debounce: '1000',
@@ -91,8 +91,8 @@ export default defineComponent({
{
editOn: false,
label: 'Fatturati ultimi 3 Mesi',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'fatLast3M',
debounce: '1000',
@@ -101,8 +101,8 @@ export default defineComponent({
{
editOn: false,
label: 'Fatturati ultimi 6 Mesi',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'fatLast6M',
debounce: '1000',
@@ -111,8 +111,8 @@ export default defineComponent({
{
editOn: false,
label: 'Fatturati ultimo Anno',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'fatLast1Y',
debounce: '1000',
@@ -121,8 +121,8 @@ export default defineComponent({
{
editOn: false,
label: 'Fatturati ultimi 2 Anni',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'fatLast2Y',
debounce: '1000',
@@ -131,8 +131,8 @@ export default defineComponent({
{
editOn: false,
label: 'Venduti',
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
table: 'products',
id: myproduct.value._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'totVen',
debounce: '1000',
@@ -141,8 +141,8 @@ export default defineComponent({
{
editOn: false,
label: 'Venduti Ultimi 3 Mesi',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'vLast3M',
debounce: '1000',
@@ -151,8 +151,8 @@ export default defineComponent({
{
editOn: false,
label: 'Venduti Ultimi 6 Mesi',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'vLast6M',
debounce: '1000',
@@ -161,8 +161,8 @@ export default defineComponent({
{
editOn: false,
label: 'Venduti Ultimo Anno',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'vLast1Y',
debounce: '1000',
@@ -171,8 +171,8 @@ export default defineComponent({
{
editOn: false,
label: 'Venduti Ultimi 2 Anni',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'vLast2Y',
debounce: '1000',
@@ -183,33 +183,14 @@ export default defineComponent({
/*{
editOn: false,
label: "Ranking 3 Mesi",
table: "productinfos",
id: myproduct.value.productInfo._id,
table: "products",
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: "rank3M",
debounce: "1000",
type: costanti.FieldType.number,
},
{
editOn: false,
label: "Ranking 6 Mesi",
table: "productinfos",
id: myproduct.value.productInfo._id,
rec: myproduct.value.productInfo,
mykey: "rank6M",
debounce: "1000",
type: costanti.FieldType.number,
},
{
editOn: false,
label: "Ranking 1 Anno",
table: "productinfos",
id: myproduct.value.productInfo._id,
rec: myproduct.value.productInfo,
mykey: "rank1Y",
debounce: "1000",
type: costanti.FieldType.number,
},*/
*/
];
return arrlist;
}
@@ -220,8 +201,8 @@ export default defineComponent({
editOn: true,
label: 'Descrizione Sinossi per Catalogo',
title: myproduct.value?.productInfo?.name,
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
table: 'products',
id: myproduct.value._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'descr_trafiletto_catalogo',
debounce: '1000',
@@ -233,8 +214,8 @@ export default defineComponent({
editOn: true,
label: 'Descrizione breve macro',
title: myproduct.value?.productInfo?.name,
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
table: 'products',
id: myproduct.value._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'descrizione_breve_macro',
maxlength: 650,
@@ -246,8 +227,8 @@ export default defineComponent({
{
editOn: true,
label: 'Descrizione Estesa',
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
table: 'products',
id: myproduct.value._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'descrizione_completa_macro',
maxlength: props.scheda?.testo_bottom?.maxlength
@@ -261,8 +242,8 @@ export default defineComponent({
{
editOn: true,
label: 'Link a gruppomacro.com',
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
table: 'products',
id: myproduct.value._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'link_macro',
debounce: '1000',
@@ -273,8 +254,8 @@ export default defineComponent({
{
editOn: true,
label: 'Imagefile',
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
table: 'products',
id: myproduct.value._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'imagefile',
debounce: '1000',
@@ -292,8 +273,8 @@ export default defineComponent({
{
editOn: true,
label: 'Titolo',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'name',
debounce: '1000',
@@ -314,8 +295,8 @@ export default defineComponent({
{
editOn: true,
label: 'SottoTitolo',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'sottotitolo',
debounce: '1000',
@@ -325,8 +306,8 @@ export default defineComponent({
{
editOn: false,
label: 'Pubblicazione',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'date_pub',
debounce: '1000',
@@ -347,8 +328,8 @@ export default defineComponent({
{
editOn: false,
label: 'Stato',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'idStatoProdotto',
debounce: '1000',
@@ -359,7 +340,7 @@ export default defineComponent({
{
editOn: true,
label: 'Argomento',
table: 'productinfos',
table: 'products',
id: myproduct.value.productInfo?._id,
rec: myproduct.value.productInfo,
mykey: 'idCatProds',
@@ -465,8 +446,8 @@ export default defineComponent({
{
editOn: false,
label: 'Aggiornato (da GM) il',
table: 'productinfos',
id: myproduct.value.productInfo._id,
table: 'products',
id: myproduct.value._id,
rec: myproduct.value.productInfo,
mykey: 'date_updated_fromGM',
debounce: '1000',

View File

@@ -333,10 +333,7 @@ export default defineComponent({
onMounted(created)
function getrealdirectory() {
if (props.directory == 'productinfos')
return 'products'
else
return props.directory
return props.directory
}
return {

View File

@@ -18,7 +18,7 @@
"
:src="
tools.getFullFileNameByImageFile(
'productInfos',
'products',
order.product.productInfo.imagefile
)
"