@freteclick/quasar-financial-ui 1.0.85 → 1.0.87
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 +17 -17
- package/src/components/common/Filters.vue +140 -140
- package/src/components/expense/FormExpense.vue +309 -309
- package/src/components/expense/TableExpenses.vue +305 -305
- package/src/components/invoice/client/ClientInvoiceDetails.vue +212 -212
- package/src/components/invoice/client/InvoiceSearching.vue +382 -382
- package/src/components/invoice/client/details/InvoiceInvoice.vue +248 -248
- package/src/components/invoice/client/details/InvoiceOrders.vue +327 -327
- package/src/components/invoice/expense/CreateExpense.vue +539 -539
- package/src/components/invoice/expense/DetailExpense.vue +393 -393
- package/src/components/invoice/pay/InvoiceDetails.vue +210 -210
- package/src/components/invoice/pay/InvoiceSearching.vue +388 -388
- package/src/components/invoice/pay/details/InvoiceInvoice.vue +47 -47
- package/src/components/invoice/pay/details/InvoiceOrders.vue +342 -342
- package/src/components/invoice/receive/InvoiceDetails.vue +280 -280
- package/src/components/invoice/receive/InvoiceSearching.vue +359 -359
- package/src/components/invoice/receive/details/InvoiceInvoice.vue +453 -371
- package/src/components/invoice/receive/details/InvoiceInvoiceBkp.vue +259 -259
- package/src/components/invoice/receive/details/InvoiceOrders.vue +369 -369
- package/src/i18n/en-us/index.js +8 -8
- package/src/i18n/index.js +5 -5
- package/src/i18n/pt-br/index.js +30 -30
- package/src/pages/Invoice/Client/Details.vue +23 -23
- package/src/pages/Invoice/Client/Index.vue +26 -26
- package/src/pages/Invoice/Pay/Details.vue +23 -23
- package/src/pages/Invoice/Pay/Index.vue +53 -53
- package/src/pages/Invoice/Receive/Details.vue +23 -23
- package/src/pages/Invoice/Receive/Index.vue +26 -26
- package/src/router/routes.js +32 -32
- package/src/store/modules/invoice/comission/actions.js +66 -66
- package/src/store/modules/invoice/comission/getters.js +6 -6
- package/src/store/modules/invoice/comission/index.js +19 -19
- package/src/store/modules/invoice/comission/mutation_types.js +7 -7
- package/src/store/modules/invoice/comission/mutations.js +42 -42
- package/src/store/modules/invoice/expense/actions.js +98 -98
- package/src/store/modules/invoice/expense/getters.js +1 -1
- package/src/store/modules/invoice/expense/index.js +12 -12
- package/src/store/modules/invoice/expense/mutations.js +3 -3
- package/src/store/modules/invoice/expense/state.js +5 -5
- package/src/store/modules/invoice/pay/actions.js +114 -114
- package/src/store/modules/invoice/pay/getters.js +6 -6
- package/src/store/modules/invoice/pay/index.js +19 -19
- package/src/store/modules/invoice/pay/mutation_types.js +7 -7
- package/src/store/modules/invoice/pay/mutations.js +42 -42
- package/src/store/modules/invoice/receive/actions.js +163 -152
- package/src/store/modules/invoice/receive/actionsBkp.js +77 -77
- package/src/store/modules/invoice/receive/getters.js +6 -6
- package/src/store/modules/invoice/receive/index.js +19 -19
- package/src/store/modules/invoice/receive/mutation_types.js +7 -7
- package/src/store/modules/invoice/receive/mutations.js +42 -42
- package/src/store/store-flag.d.ts +9 -9
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@freteclick/quasar-financial-ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"author": "FreteClick",
|
|
5
|
-
"description": "FreteClick financial Quasar UI Component",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"main": "src/index.js",
|
|
8
|
-
"scripts": {},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/Frete-Click/fclick-quasar-ui"
|
|
12
|
-
},
|
|
13
|
-
"bugs": "",
|
|
14
|
-
"homepage": "https://www.freteclick.com/devs/plugins",
|
|
15
|
-
"browserslist": [
|
|
16
|
-
"last 1 version, not dead, ie >= 11"
|
|
17
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"name": "@freteclick/quasar-financial-ui",
|
|
3
|
+
"version": "1.0.87",
|
|
4
|
+
"author": "FreteClick",
|
|
5
|
+
"description": "FreteClick financial Quasar UI Component",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "src/index.js",
|
|
8
|
+
"scripts": {},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/Frete-Click/fclick-quasar-ui"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "",
|
|
14
|
+
"homepage": "https://www.freteclick.com/devs/plugins",
|
|
15
|
+
"browserslist": [
|
|
16
|
+
"last 1 version, not dead, ie >= 11"
|
|
17
|
+
]
|
|
18
18
|
}
|
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-card class="row q-pa-md">
|
|
3
|
-
<div class="col-xs-12 q-pb-md text-h6">Faturas</div>
|
|
4
|
-
<div class="col-sm-6 col-xs-12 q-pa-md">
|
|
5
|
-
<q-input stack-label label="Buscar por" debounce="1000" v-model="filters.text" class="full-width" />
|
|
6
|
-
</div>
|
|
7
|
-
<div class="col-sm-6 col-xs-12 q-pa-md">
|
|
8
|
-
<q-select stack-label label="Status da fatura" v-model="filters.status" :options="statuses" class="full-width"
|
|
9
|
-
:loading="loadingStatuses">
|
|
10
|
-
<template v-slot:no-option>
|
|
11
|
-
<q-item>
|
|
12
|
-
<q-item-section class="text-grey"> Sem resultados </q-item-section>
|
|
13
|
-
</q-item>
|
|
14
|
-
</template>
|
|
15
|
-
</q-select>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-6">
|
|
18
|
-
<q-select stack-label label="Tipo de Fatura" v-model="filters.orderType" :options="orderType" class="full-width"
|
|
19
|
-
:loading="loadingOrderType">
|
|
20
|
-
<template v-slot:no-option>
|
|
21
|
-
<q-item>
|
|
22
|
-
<q-item-section class="text-grey"> Sem resultados </q-item-section>
|
|
23
|
-
</q-item>
|
|
24
|
-
</template>
|
|
25
|
-
</q-select>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="col-6">
|
|
28
|
-
<DataFilter :fromDate="filters.date.from" :toDate="filters.date.to" :showButton="false"
|
|
29
|
-
@dateChanged="dateChanged" />
|
|
30
|
-
</div>
|
|
31
|
-
</q-card>
|
|
32
|
-
</template>
|
|
33
|
-
<script>
|
|
34
|
-
import { mapActions, mapGetters } from "vuex";
|
|
35
|
-
import {
|
|
36
|
-
formatMoney,
|
|
37
|
-
formatDateYmdTodmY,
|
|
38
|
-
} from "@freteclick/quasar-common-ui/src/utils/formatter";
|
|
39
|
-
import DataFilter from "@freteclick/quasar-common-ui/src/components/common/DataFilter.vue";
|
|
40
|
-
import { date } from "quasar";
|
|
41
|
-
|
|
42
|
-
export default {
|
|
43
|
-
components: {
|
|
44
|
-
DataFilter,
|
|
45
|
-
},
|
|
46
|
-
props: {
|
|
47
|
-
filters: {
|
|
48
|
-
type: Object,
|
|
49
|
-
required: true,
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
created() {
|
|
54
|
-
this.requestStatuses();
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
data() {
|
|
58
|
-
let statuses = [{ label: "Selecione um status", value: -1 }];
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
statuses: statuses,
|
|
62
|
-
loadingStatuses: false,
|
|
63
|
-
loadingOrderType: false,
|
|
64
|
-
orderType: [
|
|
65
|
-
{
|
|
66
|
-
label: "Todos",
|
|
67
|
-
value: null,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
label: "Comissão",
|
|
71
|
-
value: "comission",
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
label: "Compra",
|
|
75
|
-
value: "purchase",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
label: "Royalties",
|
|
79
|
-
value: "royalties",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
label: "Venda",
|
|
83
|
-
value: "sale",
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
};
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
computed: {},
|
|
90
|
-
|
|
91
|
-
watch: {
|
|
92
|
-
"filters.text"() {
|
|
93
|
-
this.$emit("onRequest");
|
|
94
|
-
},
|
|
95
|
-
"filters.orderType"() {
|
|
96
|
-
this.$emit("onRequest");
|
|
97
|
-
},
|
|
98
|
-
"filters.status"() {
|
|
99
|
-
this.$emit("onRequest");
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
methods: {
|
|
104
|
-
...mapActions({
|
|
105
|
-
getStatuses: "receiveInvoice/getStatuses",
|
|
106
|
-
}),
|
|
107
|
-
|
|
108
|
-
requestStatuses() {
|
|
109
|
-
this.loadingStatuses = true;
|
|
110
|
-
this.getStatuses({
|
|
111
|
-
visibility: "public",
|
|
112
|
-
context: "invoice",
|
|
113
|
-
realStatus: ["open", "pending", "canceled", "closed"],
|
|
114
|
-
}).then((statuses) => {
|
|
115
|
-
if (statuses.length) {
|
|
116
|
-
let data = [];
|
|
117
|
-
|
|
118
|
-
data.push({
|
|
119
|
-
label: "Todos",
|
|
120
|
-
value: null,
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
for (let index in statuses) {
|
|
124
|
-
data.push({
|
|
125
|
-
label: this.$t(`invoice.statuses.${statuses[index].status}`),
|
|
126
|
-
value: statuses[index]["@id"].replace(/[^0-9]/g, ""),
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
this.statuses = data;
|
|
131
|
-
}
|
|
132
|
-
this.loadingStatuses = false;
|
|
133
|
-
});
|
|
134
|
-
},
|
|
135
|
-
dateChanged(item) {
|
|
136
|
-
this.filters.date = item;
|
|
137
|
-
this.$emit("onRequest");
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
};
|
|
1
|
+
<template>
|
|
2
|
+
<q-card class="row q-pa-md">
|
|
3
|
+
<div class="col-xs-12 q-pb-md text-h6">Faturas</div>
|
|
4
|
+
<div class="col-sm-6 col-xs-12 q-pa-md">
|
|
5
|
+
<q-input stack-label label="Buscar por" debounce="1000" v-model="filters.text" class="full-width" />
|
|
6
|
+
</div>
|
|
7
|
+
<div class="col-sm-6 col-xs-12 q-pa-md">
|
|
8
|
+
<q-select stack-label label="Status da fatura" v-model="filters.status" :options="statuses" class="full-width"
|
|
9
|
+
:loading="loadingStatuses">
|
|
10
|
+
<template v-slot:no-option>
|
|
11
|
+
<q-item>
|
|
12
|
+
<q-item-section class="text-grey"> Sem resultados </q-item-section>
|
|
13
|
+
</q-item>
|
|
14
|
+
</template>
|
|
15
|
+
</q-select>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-6">
|
|
18
|
+
<q-select stack-label label="Tipo de Fatura" v-model="filters.orderType" :options="orderType" class="full-width"
|
|
19
|
+
:loading="loadingOrderType">
|
|
20
|
+
<template v-slot:no-option>
|
|
21
|
+
<q-item>
|
|
22
|
+
<q-item-section class="text-grey"> Sem resultados </q-item-section>
|
|
23
|
+
</q-item>
|
|
24
|
+
</template>
|
|
25
|
+
</q-select>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col-6">
|
|
28
|
+
<DataFilter :fromDate="filters.date.from" :toDate="filters.date.to" :showButton="false"
|
|
29
|
+
@dateChanged="dateChanged" />
|
|
30
|
+
</div>
|
|
31
|
+
</q-card>
|
|
32
|
+
</template>
|
|
33
|
+
<script>
|
|
34
|
+
import { mapActions, mapGetters } from "vuex";
|
|
35
|
+
import {
|
|
36
|
+
formatMoney,
|
|
37
|
+
formatDateYmdTodmY,
|
|
38
|
+
} from "@freteclick/quasar-common-ui/src/utils/formatter";
|
|
39
|
+
import DataFilter from "@freteclick/quasar-common-ui/src/components/common/DataFilter.vue";
|
|
40
|
+
import { date } from "quasar";
|
|
41
|
+
|
|
42
|
+
export default {
|
|
43
|
+
components: {
|
|
44
|
+
DataFilter,
|
|
45
|
+
},
|
|
46
|
+
props: {
|
|
47
|
+
filters: {
|
|
48
|
+
type: Object,
|
|
49
|
+
required: true,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
created() {
|
|
54
|
+
this.requestStatuses();
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
data() {
|
|
58
|
+
let statuses = [{ label: "Selecione um status", value: -1 }];
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
statuses: statuses,
|
|
62
|
+
loadingStatuses: false,
|
|
63
|
+
loadingOrderType: false,
|
|
64
|
+
orderType: [
|
|
65
|
+
{
|
|
66
|
+
label: "Todos",
|
|
67
|
+
value: null,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "Comissão",
|
|
71
|
+
value: "comission",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "Compra",
|
|
75
|
+
value: "purchase",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "Royalties",
|
|
79
|
+
value: "royalties",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: "Venda",
|
|
83
|
+
value: "sale",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
computed: {},
|
|
90
|
+
|
|
91
|
+
watch: {
|
|
92
|
+
"filters.text"() {
|
|
93
|
+
this.$emit("onRequest");
|
|
94
|
+
},
|
|
95
|
+
"filters.orderType"() {
|
|
96
|
+
this.$emit("onRequest");
|
|
97
|
+
},
|
|
98
|
+
"filters.status"() {
|
|
99
|
+
this.$emit("onRequest");
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
methods: {
|
|
104
|
+
...mapActions({
|
|
105
|
+
getStatuses: "receiveInvoice/getStatuses",
|
|
106
|
+
}),
|
|
107
|
+
|
|
108
|
+
requestStatuses() {
|
|
109
|
+
this.loadingStatuses = true;
|
|
110
|
+
this.getStatuses({
|
|
111
|
+
visibility: "public",
|
|
112
|
+
context: "invoice",
|
|
113
|
+
realStatus: ["open", "pending", "canceled", "closed"],
|
|
114
|
+
}).then((statuses) => {
|
|
115
|
+
if (statuses.length) {
|
|
116
|
+
let data = [];
|
|
117
|
+
|
|
118
|
+
data.push({
|
|
119
|
+
label: "Todos",
|
|
120
|
+
value: null,
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
for (let index in statuses) {
|
|
124
|
+
data.push({
|
|
125
|
+
label: this.$t(`invoice.statuses.${statuses[index].status}`),
|
|
126
|
+
value: statuses[index]["@id"].replace(/[^0-9]/g, ""),
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
this.statuses = data;
|
|
131
|
+
}
|
|
132
|
+
this.loadingStatuses = false;
|
|
133
|
+
});
|
|
134
|
+
},
|
|
135
|
+
dateChanged(item) {
|
|
136
|
+
this.filters.date = item;
|
|
137
|
+
this.$emit("onRequest");
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
141
|
</script>
|