@freteclick/quasar-financial-ui 1.0.112 → 1.0.114
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 +1 -1
- package/src/components/common/Filters.vue +182 -28
- package/src/components/expense/FormExpense.vue +1 -1
- package/src/components/expense/TableExpenses.vue +2 -2
- package/src/components/invoice/client/InvoiceSearching.vue +3 -3
- package/src/components/invoice/client/details/InvoiceInvoice.vue +1 -1
- package/src/components/invoice/client/details/InvoiceOrders.vue +2 -2
- package/src/components/invoice/expense/CreateExpense.vue +520 -177
- package/src/components/invoice/expense/DetailExpense.vue +304 -39
- package/src/components/invoice/pay/InvoiceDetails.vue +327 -95
- package/src/components/invoice/pay/InvoiceSearching.vue +747 -147
- package/src/components/invoice/pay/details/InvoiceInvoice.vue +1 -1
- package/src/components/invoice/pay/details/InvoiceOrders.vue +3 -3
- package/src/components/invoice/receive/InvoiceSearching.vue +648 -93
- package/src/components/invoice/receive/details/InvoiceInvoice.vue +1 -1
- package/src/components/invoice/receive/details/InvoiceInvoiceBkp.vue +2 -2
- package/src/components/invoice/receive/details/InvoiceOrders.vue +4 -4
- package/src/pages/Invoice/Pay/Details.vue +18 -1
- package/src/pages/Invoice/Pay/Index.vue +149 -27
- package/src/pages/Invoice/Receive/Index.vue +15 -11
- package/src/store/modules/invoice/pay/actions.js +5 -4
- package/src/store/modules/invoice/pay/getters.js +2 -1
- package/src/store/modules/invoice/pay/index.js +1 -0
- package/src/store/modules/invoice/pay/mutation_types.js +2 -1
- package/src/store/modules/invoice/pay/mutations.js +5 -0
- package/src/store/modules/invoice/receive/actions.js +1 -0
- package/src/store/modules/invoice/receive/getters.js +2 -1
- package/src/store/modules/invoice/receive/index.js +1 -0
- package/src/store/modules/invoice/receive/mutation_types.js +2 -1
- package/src/store/modules/invoice/receive/mutations.js +5 -0
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<div style="height: 1200px">
|
|
35
35
|
<iframe :src="invoiceUrlSicred" name="BILLETINTER" id="billet_sicred" width="100%" height="100%"
|
|
36
36
|
frameBorder="0">
|
|
37
|
-
|
|
37
|
+
This browser does not support IFrame.
|
|
38
38
|
</iframe>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
window.addEventListener ('focus', this.loadItauDataOnFocus);
|
|
108
108
|
},
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
beforeUnmount() {
|
|
111
111
|
window.removeEventListener('focus', this.loadItauDataOnFocus);
|
|
112
112
|
},
|
|
113
113
|
|
|
@@ -257,4 +257,4 @@ export default {
|
|
|
257
257
|
},
|
|
258
258
|
},
|
|
259
259
|
};
|
|
260
|
-
</script>
|
|
260
|
+
</script>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<q-table
|
|
3
3
|
:loading="isLoading"
|
|
4
|
-
:
|
|
4
|
+
:rows="data"
|
|
5
5
|
:columns="settings.columns"
|
|
6
|
-
:pagination
|
|
6
|
+
v-model:pagination="pagination"
|
|
7
7
|
@request="onRequest"
|
|
8
8
|
row-key="@id"
|
|
9
9
|
:visible-columns="settings.visibleColumns"
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
beforeUnmount() {
|
|
211
211
|
this.reset();
|
|
212
212
|
},
|
|
213
213
|
|
|
@@ -367,4 +367,4 @@ export default {
|
|
|
367
367
|
},
|
|
368
368
|
},
|
|
369
369
|
};
|
|
370
|
-
</script>
|
|
370
|
+
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-page
|
|
2
|
+
<q-page class="finance-pay-detail-page">
|
|
3
3
|
<InvoiceDetails />
|
|
4
4
|
</q-page>
|
|
5
5
|
</template>
|
|
@@ -21,3 +21,20 @@ export default {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
</script>
|
|
24
|
+
|
|
25
|
+
<style lang="scss" scoped>
|
|
26
|
+
.finance-pay-detail-page {
|
|
27
|
+
width: 100%;
|
|
28
|
+
min-width: 0;
|
|
29
|
+
min-height: 100%;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
padding: clamp(20px, 3vw, 36px);
|
|
32
|
+
background: #f4f7fb;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (max-width: 600px) {
|
|
36
|
+
.finance-pay-detail-page {
|
|
37
|
+
padding: 16px 20px 24px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -1,40 +1,87 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-page
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<q-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
<q-page class="finance-pay-page">
|
|
3
|
+
<div class="finance-pay-page__content">
|
|
4
|
+
<PageHeader
|
|
5
|
+
title="Contas a pagar"
|
|
6
|
+
description="Organize despesas, acompanhe vencimentos e mantenha os pagamentos em dia."
|
|
7
|
+
>
|
|
8
|
+
<template #actions>
|
|
9
|
+
<template v-if="currentTab === 'expenses'">
|
|
10
|
+
<q-btn
|
|
11
|
+
outline
|
|
12
|
+
no-caps
|
|
13
|
+
rounded
|
|
14
|
+
color="white"
|
|
15
|
+
icon="tune"
|
|
16
|
+
label="Filtros"
|
|
17
|
+
@click="openInvoiceFilters"
|
|
18
|
+
/>
|
|
19
|
+
<q-btn
|
|
20
|
+
unelevated
|
|
21
|
+
no-caps
|
|
22
|
+
rounded
|
|
23
|
+
color="white"
|
|
24
|
+
text-color="primary"
|
|
25
|
+
icon="add"
|
|
26
|
+
label="Adicionar despesa"
|
|
27
|
+
@click="openExpenseDialog"
|
|
28
|
+
/>
|
|
29
|
+
</template>
|
|
30
|
+
<template v-else>
|
|
31
|
+
<q-btn
|
|
32
|
+
unelevated
|
|
33
|
+
no-caps
|
|
34
|
+
rounded
|
|
35
|
+
color="white"
|
|
36
|
+
text-color="primary"
|
|
37
|
+
icon="add"
|
|
38
|
+
label="Adicionar categoria"
|
|
39
|
+
@click="openCreateCategory"
|
|
40
|
+
/>
|
|
41
|
+
</template>
|
|
42
|
+
</template>
|
|
43
|
+
</PageHeader>
|
|
44
|
+
|
|
45
|
+
<div class="finance-pay-tabs-shell">
|
|
46
|
+
<q-tabs
|
|
47
|
+
v-model="currentTab"
|
|
48
|
+
align="left"
|
|
49
|
+
no-caps
|
|
50
|
+
inline-label
|
|
51
|
+
class="finance-pay-tabs"
|
|
52
|
+
>
|
|
53
|
+
<q-tab name="expenses" icon="receipt_long" :label="$t('Despesas')" />
|
|
54
|
+
<q-tab name="categories" icon="category" :label="$t('Categorias')" />
|
|
55
|
+
</q-tabs>
|
|
26
56
|
</div>
|
|
27
|
-
|
|
57
|
+
|
|
58
|
+
<q-tab-panels v-model="currentTab" class="finance-pay-panels">
|
|
59
|
+
<q-tab-panel name="expenses" class="q-pa-none">
|
|
60
|
+
<InvoiceSearching ref="invoiceSearch" />
|
|
61
|
+
</q-tab-panel>
|
|
62
|
+
|
|
63
|
+
<q-tab-panel name="categories" class="q-pa-none">
|
|
64
|
+
<TableCategories
|
|
65
|
+
ref="categoryTable"
|
|
66
|
+
:context="'expense'"
|
|
67
|
+
:api="api"
|
|
68
|
+
appearance="finance"
|
|
69
|
+
/>
|
|
70
|
+
</q-tab-panel>
|
|
71
|
+
</q-tab-panels>
|
|
72
|
+
</div>
|
|
28
73
|
</q-page>
|
|
29
74
|
</template>
|
|
30
75
|
|
|
31
76
|
<script>
|
|
32
77
|
import Api from '@freteclick/quasar-common-ui/src/utils/api';
|
|
78
|
+
import PageHeader from '@freteclick/quasar-common-ui/src/components/common/PageHeader.vue';
|
|
33
79
|
import InvoiceSearching from '../../../components/invoice/pay/InvoiceSearching.vue';
|
|
34
80
|
import TableCategories from '@freteclick/quasar-common-ui/src/components/categories/Table.vue';
|
|
35
81
|
|
|
36
82
|
export default {
|
|
37
83
|
components: {
|
|
84
|
+
PageHeader,
|
|
38
85
|
TableCategories,
|
|
39
86
|
InvoiceSearching,
|
|
40
87
|
},
|
|
@@ -46,8 +93,83 @@ export default {
|
|
|
46
93
|
}
|
|
47
94
|
},
|
|
48
95
|
|
|
49
|
-
|
|
50
|
-
|
|
96
|
+
methods: {
|
|
97
|
+
openInvoiceFilters() {
|
|
98
|
+
this.$refs.invoiceSearch?.openFiltersDrawer();
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
openExpenseDialog() {
|
|
102
|
+
this.$refs.invoiceSearch?.openExpenseDialog();
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
openCreateCategory() {
|
|
106
|
+
this.$refs.categoryTable?.openCreateCategory();
|
|
107
|
+
},
|
|
51
108
|
},
|
|
52
109
|
}
|
|
53
110
|
</script>
|
|
111
|
+
|
|
112
|
+
<style lang="scss" scoped>
|
|
113
|
+
.finance-pay-page {
|
|
114
|
+
width: 100%;
|
|
115
|
+
min-width: 0;
|
|
116
|
+
min-height: 100%;
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
padding: clamp(20px, 3vw, 36px);
|
|
119
|
+
background: #f4f7fb;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.finance-pay-page__content {
|
|
123
|
+
display: grid;
|
|
124
|
+
grid-template-columns: minmax(0, 1fr);
|
|
125
|
+
width: 100%;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
max-width: none;
|
|
128
|
+
gap: 20px;
|
|
129
|
+
margin: 0;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.finance-pay-tabs-shell {
|
|
133
|
+
min-width: 0;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
border: 1px solid #e5ebf3;
|
|
136
|
+
border-radius: 15px;
|
|
137
|
+
background: #fff;
|
|
138
|
+
box-shadow: 0 8px 24px rgba(26, 46, 70, 0.035);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.finance-pay-tabs {
|
|
142
|
+
min-height: 56px;
|
|
143
|
+
padding: 0 12px;
|
|
144
|
+
color: #687d93;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.finance-pay-tabs :deep(.q-tab--active) {
|
|
148
|
+
color: #245d9c;
|
|
149
|
+
font-weight: 700;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.finance-pay-tabs :deep(.q-tab__indicator) {
|
|
153
|
+
height: 3px;
|
|
154
|
+
border-radius: 3px 3px 0 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.finance-pay-panels {
|
|
158
|
+
min-width: 0;
|
|
159
|
+
background: transparent;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@media (max-width: 600px) {
|
|
163
|
+
.finance-pay-page {
|
|
164
|
+
padding: 16px 20px 24px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.finance-pay-page__content {
|
|
168
|
+
gap: 14px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.finance-pay-tabs {
|
|
172
|
+
padding: 0 4px;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
</style>
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-page
|
|
3
|
-
<
|
|
4
|
-
<div class="col-12">
|
|
5
|
-
<InvoiceSearching />
|
|
6
|
-
</div>
|
|
7
|
-
</div>
|
|
2
|
+
<q-page class="finance-receive-page">
|
|
3
|
+
<InvoiceSearching />
|
|
8
4
|
</q-page>
|
|
9
5
|
</template>
|
|
10
6
|
|
|
@@ -12,16 +8,24 @@
|
|
|
12
8
|
import InvoiceSearching from '../../../components/invoice/receive/InvoiceSearching.vue';
|
|
13
9
|
|
|
14
10
|
export default {
|
|
15
|
-
name
|
|
11
|
+
name: 'InvoiceReceiveIndexPage',
|
|
16
12
|
|
|
17
13
|
components: {
|
|
18
14
|
InvoiceSearching,
|
|
19
15
|
},
|
|
16
|
+
};
|
|
17
|
+
</script>
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
<style lang="scss" scoped>
|
|
20
|
+
.finance-receive-page {
|
|
21
|
+
min-height: 100%;
|
|
22
|
+
padding: clamp(18px, 3vw, 36px);
|
|
23
|
+
background: #f4f7fb;
|
|
24
|
+
}
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
@media (max-width: 600px) {
|
|
27
|
+
.finance-receive-page {
|
|
28
|
+
padding: 16px 12px 24px;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
|
-
</
|
|
31
|
+
</style>
|
|
@@ -15,6 +15,7 @@ export const getItems = ({ commit }, params = {}) => {
|
|
|
15
15
|
commit(types.SET_ITEMS, data['hydra:member']);
|
|
16
16
|
commit(types.SET_VIEW, data['hydra:view']);
|
|
17
17
|
commit(types.SET_TOTALITEMS, data['hydra:totalItems']);
|
|
18
|
+
commit(types.SET_TOTALAMOUNT, data.totalAmount);
|
|
18
19
|
|
|
19
20
|
return data['hydra:member'];
|
|
20
21
|
|
|
@@ -83,14 +84,14 @@ export const updateInvoiceDuedate = ({ commit }, { id, dueDate, params }) => {
|
|
|
83
84
|
});
|
|
84
85
|
};
|
|
85
86
|
|
|
86
|
-
export const deleteInvoiceOrder = ({ commit }, { invoiceId, orderId, params }) => {
|
|
87
|
+
export const deleteInvoiceOrder = ({ commit }, { invoiceId, orderId, params, priceSource = 'dacte' }) => {
|
|
87
88
|
let options = {
|
|
88
89
|
method: 'PUT',
|
|
89
|
-
body: JSON.stringify({ orderId }),
|
|
90
|
+
body: JSON.stringify({ orderId, priceSource }),
|
|
90
91
|
params: params
|
|
91
92
|
};
|
|
92
93
|
|
|
93
|
-
return fetch(`${invoiceId}/remove-order`, options)
|
|
94
|
+
return fetch(`${RESOURCE_ENDPOINT}/${invoiceId}/remove-order`, options)
|
|
94
95
|
.then(response => response.json())
|
|
95
96
|
.then(data => {
|
|
96
97
|
if (data.response) {
|
|
@@ -98,7 +99,7 @@ export const deleteInvoiceOrder = ({ commit }, { invoiceId, orderId, params }) =
|
|
|
98
99
|
throw Error(data.response.error);
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
return null;
|
|
102
|
+
return data.response ? data.response.data : null;
|
|
102
103
|
});
|
|
103
104
|
};
|
|
104
105
|
|
|
@@ -4,4 +4,5 @@ export const isLoading = state => state.isLoading;
|
|
|
4
4
|
export const violations = state => state.violations;
|
|
5
5
|
export const items = state => state.items;
|
|
6
6
|
export const view = state => state.view;
|
|
7
|
-
export const totalItems = state => state.totalItems;
|
|
7
|
+
export const totalItems = state => state.totalItems;
|
|
8
|
+
export const totalAmount = state => state.totalAmount;
|
|
@@ -4,5 +4,6 @@ export const SET_VIOLATIONS = 'SET_VIOLATIONS';
|
|
|
4
4
|
export const SET_ITEMS = 'SET_ITEMS';
|
|
5
5
|
export const SET_VIEW = 'SET_VIEW';
|
|
6
6
|
export const SET_TOTALITEMS = 'SET_TOTALITEMS';
|
|
7
|
+
export const SET_TOTALAMOUNT = 'SET_TOTALAMOUNT';
|
|
7
8
|
export const SET_RETRIEVED = 'SET_RETRIEVED';
|
|
8
|
-
export const RESET = 'RESET';
|
|
9
|
+
export const RESET = 'RESET';
|
|
@@ -29,6 +29,10 @@ export default {
|
|
|
29
29
|
Object.assign(state, { totalItems });
|
|
30
30
|
},
|
|
31
31
|
|
|
32
|
+
[types.SET_TOTALAMOUNT](state, totalAmount) {
|
|
33
|
+
Object.assign(state, { totalAmount });
|
|
34
|
+
},
|
|
35
|
+
|
|
32
36
|
[types.RESET](state) {
|
|
33
37
|
Object.assign(state, {
|
|
34
38
|
isLoading : false,
|
|
@@ -36,6 +40,7 @@ export default {
|
|
|
36
40
|
violations: null,
|
|
37
41
|
retrieved : null,
|
|
38
42
|
totalItems: null,
|
|
43
|
+
totalAmount: null,
|
|
39
44
|
items : [],
|
|
40
45
|
});
|
|
41
46
|
},
|
|
@@ -15,6 +15,7 @@ export const getItems = ({ commit }, params = {}) => {
|
|
|
15
15
|
commit(types.SET_ITEMS, data['hydra:member']);
|
|
16
16
|
commit(types.SET_VIEW, data['hydra:view']);
|
|
17
17
|
commit(types.SET_TOTALITEMS, data['hydra:totalItems']);
|
|
18
|
+
commit(types.SET_TOTALAMOUNT, data.totalAmount);
|
|
18
19
|
|
|
19
20
|
return data['hydra:member'];
|
|
20
21
|
|
|
@@ -4,4 +4,5 @@ export const isLoading = state => state.isLoading;
|
|
|
4
4
|
export const violations = state => state.violations;
|
|
5
5
|
export const items = state => state.items;
|
|
6
6
|
export const view = state => state.view;
|
|
7
|
-
export const totalItems = state => state.totalItems;
|
|
7
|
+
export const totalItems = state => state.totalItems;
|
|
8
|
+
export const totalAmount = state => state.totalAmount;
|
|
@@ -4,5 +4,6 @@ export const SET_VIOLATIONS = 'SET_VIOLATIONS';
|
|
|
4
4
|
export const SET_ITEMS = 'SET_ITEMS';
|
|
5
5
|
export const SET_VIEW = 'SET_VIEW';
|
|
6
6
|
export const SET_TOTALITEMS = 'SET_TOTALITEMS';
|
|
7
|
+
export const SET_TOTALAMOUNT = 'SET_TOTALAMOUNT';
|
|
7
8
|
export const SET_RETRIEVED = 'SET_RETRIEVED';
|
|
8
|
-
export const RESET = 'RESET';
|
|
9
|
+
export const RESET = 'RESET';
|
|
@@ -29,6 +29,10 @@ export default {
|
|
|
29
29
|
Object.assign(state, { totalItems });
|
|
30
30
|
},
|
|
31
31
|
|
|
32
|
+
[types.SET_TOTALAMOUNT](state, totalAmount) {
|
|
33
|
+
Object.assign(state, { totalAmount });
|
|
34
|
+
},
|
|
35
|
+
|
|
32
36
|
[types.RESET](state) {
|
|
33
37
|
Object.assign(state, {
|
|
34
38
|
isLoading : false,
|
|
@@ -36,6 +40,7 @@ export default {
|
|
|
36
40
|
violations: null,
|
|
37
41
|
retrieved : null,
|
|
38
42
|
totalItems: null,
|
|
43
|
+
totalAmount: null,
|
|
39
44
|
items : [],
|
|
40
45
|
});
|
|
41
46
|
},
|