@freteclick/quasar-financial-ui 1.0.99 → 1.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
{{ props.row.transportadora }}
|
|
24
24
|
</q-td>
|
|
25
25
|
<q-td key="preco" :props="props">{{ props.cols[8].value }}</q-td>
|
|
26
|
+
<q-td key="precoReal" :props="props">{{ props.cols[9].value }}</q-td>
|
|
26
27
|
</q-tr>
|
|
27
28
|
</template>
|
|
28
29
|
</q-table>
|
|
@@ -44,6 +45,7 @@ const SETTINGS = {
|
|
|
44
45
|
'entrega',
|
|
45
46
|
'transportadora',
|
|
46
47
|
'preco',
|
|
48
|
+
'precoReal'
|
|
47
49
|
],
|
|
48
50
|
columns: [
|
|
49
51
|
{
|
|
@@ -124,6 +126,19 @@ const SETTINGS = {
|
|
|
124
126
|
},
|
|
125
127
|
label: 'Preço'
|
|
126
128
|
},
|
|
129
|
+
{
|
|
130
|
+
name: "precoReal",
|
|
131
|
+
field: "precoReal",
|
|
132
|
+
align: "left",
|
|
133
|
+
format: (val, row) => {
|
|
134
|
+
if (isNaN(val)) {
|
|
135
|
+
return val;
|
|
136
|
+
} else {
|
|
137
|
+
return formatMoney(val, "BRL", "pt-br");
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
label: "Preço Real",
|
|
141
|
+
},
|
|
127
142
|
],
|
|
128
143
|
};
|
|
129
144
|
|
|
@@ -233,6 +248,7 @@ export default {
|
|
|
233
248
|
'localEntrega': item.quote !== null ? `${item.quote.cityDestination.city} / ${item.quote.cityDestination.state.uf}` : '',
|
|
234
249
|
'transportadora': item.quote !== null ? item.quote.carrier.name : '',
|
|
235
250
|
'preco': item.price,
|
|
251
|
+
'precoReal': item.realPrice == null || item.realPrice == 0 ? "-----" : item.realPrice,
|
|
236
252
|
});
|
|
237
253
|
}
|
|
238
254
|
|
|
@@ -325,4 +341,4 @@ export default {
|
|
|
325
341
|
},
|
|
326
342
|
},
|
|
327
343
|
};
|
|
328
|
-
</script>
|
|
344
|
+
</script>
|