- Uscita PRIMA VERSIONE PiuCheBuono.app
This commit is contained in:
@@ -20,7 +20,7 @@ $heightBtn: 100%;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.evaso {
|
||||
.confermato {
|
||||
font-weight: bold;
|
||||
color: green;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ export default defineComponent({
|
||||
{
|
||||
name: 'items',
|
||||
required: true,
|
||||
label: 'Articoli',
|
||||
label: '',
|
||||
field: 'items',
|
||||
sortable: true
|
||||
},
|
||||
@@ -157,7 +157,6 @@ export default defineComponent({
|
||||
|
||||
function getOrdersCart(): IOrderCart[] | undefined {
|
||||
const hasGasordine: any = (cosa.value === shared_consts.PROD.TUTTI) ? undefined : (cosa.value === shared_consts.PROD.GAS)
|
||||
console.log('hasgas', hasGasordine)
|
||||
const ris = productStore.getOrdersCart(taborders.value, hasGasordine)
|
||||
|
||||
return ris
|
||||
@@ -180,8 +179,12 @@ export default defineComponent({
|
||||
totalPrice: orderscart.reduce((total: number, rec: any) => total + rec.totalPrice, 0),
|
||||
};
|
||||
|
||||
// Combine orders and totals
|
||||
const rowsWithTotals = [...orderscart, totals];
|
||||
let rowsWithTotals: any = [...orderscart];
|
||||
|
||||
if (tools.isManager()) {
|
||||
// Combine orders and totals
|
||||
rowsWithTotals.push(totals);
|
||||
}
|
||||
|
||||
return rowsWithTotals;
|
||||
} else {
|
||||
|
||||
@@ -210,9 +210,9 @@
|
||||
shared_consts.getStatusStr(props.row.status)
|
||||
}}</span>
|
||||
<br />
|
||||
<div v-if="props.row.evaso" class="ordstat">
|
||||
{{ tools.getstrDateTime(props.row.date_evaso) }}:
|
||||
<span class="ordstat evaso">{{ $t('ecomm.evaso') }}</span>
|
||||
<div v-if="props.row.confermato" class="ordstat">
|
||||
{{ tools.getstrDateTime(props.row.date_confermato) }}:
|
||||
<span class="ordstat confermato">{{ $t('ecomm.confermato') }}</span>
|
||||
</div>
|
||||
<div v-if="props.row.pagato" class="ordstat">
|
||||
{{ tools.getstrDateTime(props.row.date_pagato) }}:
|
||||
|
||||
Reference in New Issue
Block a user