aggiornamento...

This commit is contained in:
Surya Paolo
2023-12-17 19:19:04 +01:00
parent c71f4af370
commit 50d610b1b1
5 changed files with 195 additions and 92 deletions

View File

@@ -407,6 +407,50 @@ module.exports = {
CANCELLATI: { label: 'Cancellati', value: 10, icon: 'delete', color: 'text-red' }, //CANCELED
},
OrderStatusStr: [
{
label: 'Nessuno',
value: 0,
},
{
label: 'In Carrello',
value: 1,
},
{
label: 'Ordine in Lavorazione',
value: 2,
},
{
label: 'Ordine Confermato',
value: 3,
},
{
label: 'Pagato',
value: 4,
},
{
label: 'Consegnato',
value: 5,
},
{
label: 'Spedito',
value: 6,
},
{
label: 'Ricevuto',
value: 7,
},
{
label: 'Completato',
value: 8,
},
{
label: 'Cancellato',
value: 10,
},
],
OrderStatusView: {
CHECKOUT_SENT: 2,
ORDER_CONFIRMED: 3,
@@ -864,5 +908,9 @@ module.exports = {
return ''
},
getStatusStr(status) {
const trovatorec = this.OrderStatusStr.find((rec) => rec.value === status)
return (trovatorec) ? trovatorec.label : ''
},
};