@freteclick/quasar-financial-ui 1.0.99 → 1.0.101
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
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<q-btn outline dense
|
|
48
48
|
:to ="{ name: 'ClientInvoiceDetails', params: { id: props.row.id } }"
|
|
49
49
|
:label="props.cols[0].value"
|
|
50
|
-
:style="{color:props.row.color_status}"
|
|
50
|
+
:style="{color:props.row.color_status}"
|
|
51
51
|
class ="full-width"
|
|
52
52
|
/>
|
|
53
53
|
</q-td>
|
|
@@ -353,11 +353,21 @@ export default {
|
|
|
353
353
|
params['searchBy'] = this.filters.text;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
if (this.filters.status != null && this.filters.status.value != -1) {
|
|
357
|
-
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
|
|
356
|
+
// if (this.filters.status != null && this.filters.status.value != -1) {
|
|
357
|
+
// params['status'] = this.filters.status.value;
|
|
358
|
+
// }
|
|
359
|
+
// else {
|
|
360
|
+
// params['status.realStatus'] = ['open', 'pending'];
|
|
361
|
+
// }
|
|
362
|
+
|
|
363
|
+
if (this.filters.status != null) {
|
|
364
|
+
if (this.filters.status.value > 0) {
|
|
365
|
+
params["status"] = this.filters.status.value;
|
|
366
|
+
} else {
|
|
367
|
+
if (this.filters.status.value == -1) {
|
|
368
|
+
params["status.realStatus"] = ["open", "pending", "pay"];
|
|
369
|
+
}
|
|
370
|
+
}
|
|
361
371
|
}
|
|
362
372
|
|
|
363
373
|
if (this.filters.company != null) {
|
|
@@ -380,4 +390,4 @@ export default {
|
|
|
380
390
|
},
|
|
381
391
|
},
|
|
382
392
|
};
|
|
383
|
-
</script>
|
|
393
|
+
</script>
|
|
@@ -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': this.getRealPrice(item), //item.realPrice == null || item.realPrice == 0 ? "-----" :
|
|
236
252
|
});
|
|
237
253
|
}
|
|
238
254
|
|
|
@@ -261,6 +277,16 @@ export default {
|
|
|
261
277
|
getStatuses: 'purchasingOrder/getStatuses',
|
|
262
278
|
}),
|
|
263
279
|
|
|
280
|
+
getRealPrice(invoice) {
|
|
281
|
+
let price = 0;
|
|
282
|
+
invoice.invoice.forEach((element) => {
|
|
283
|
+
if (element.invoice.id == this.invoiceId) {
|
|
284
|
+
price = element.realPrice;
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
return price == invoice.price || price == 0 ? "-----" : price;
|
|
288
|
+
},
|
|
289
|
+
|
|
264
290
|
requestStatuses() {
|
|
265
291
|
this.loadingStatuses = true;
|
|
266
292
|
this.getStatuses({
|
|
@@ -325,4 +351,4 @@ export default {
|
|
|
325
351
|
},
|
|
326
352
|
},
|
|
327
353
|
};
|
|
328
|
-
</script>
|
|
354
|
+
</script>
|