@nixweb/nixloc-ui 0.0.279 → 0.0.281
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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
<template>
|
|
3
2
|
<div>
|
|
4
3
|
<div v-if="tasks.length > 0">
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
</div>
|
|
10
9
|
</div>
|
|
11
10
|
<div v-else>
|
|
12
|
-
Nenhum
|
|
11
|
+
Nenhum registro encontrado!
|
|
13
12
|
</div>
|
|
14
13
|
</div>
|
|
15
14
|
</template>
|
|
@@ -64,8 +63,8 @@ export default {
|
|
|
64
63
|
custom_popup_html: function (task) {
|
|
65
64
|
return `
|
|
66
65
|
<div class="details-container">
|
|
67
|
-
<p class="title-details">N
|
|
68
|
-
<p class="title-details">${task.customer}</p>
|
|
66
|
+
<p class="title-details">Nº: ${task.number}</p>
|
|
67
|
+
<p class="title-details">${task.customer ?? ""}</p>
|
|
69
68
|
<p class="title-details">Quantidade: ${task.name}</p>
|
|
70
69
|
<p class="title-details">${task.periodRentName}</p>
|
|
71
70
|
</div>
|
|
@@ -127,4 +126,3 @@ export default {
|
|
|
127
126
|
font-size: 14px;
|
|
128
127
|
}
|
|
129
128
|
</style>
|
|
130
|
-
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<download-excel
|
|
4
|
-
:
|
|
5
|
-
:data="data"
|
|
6
|
-
:before-finish="exportFinished"
|
|
7
|
-
worksheet="Planilha"
|
|
8
|
-
:name="`${fileName}.xls`"
|
|
9
|
-
>
|
|
3
|
+
<download-excel :fields="column" :data="data" :before-finish="exportFinished" worksheet="Planilha"
|
|
4
|
+
:name="`${fileName}.xls`">
|
|
10
5
|
<i class="fas fa-file-excel"></i>
|
|
11
6
|
</download-excel>
|
|
12
7
|
</div>
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
<SelectStatic classCss="select-search" fieldTarget="filter" :onlyQuery="true"
|
|
15
15
|
:initialValue="{ content: 'Contém', id: 'contains' }" v-model="search.filter" :showBorder="false"
|
|
16
16
|
:data="[
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
{ content: 'Contém', id: 'contains' },
|
|
18
|
+
{ content: 'Igual', id: 'equal' },
|
|
19
|
+
]" />
|
|
20
20
|
</div>
|
|
21
21
|
</b-col>
|
|
22
22
|
</b-row>
|
|
@@ -143,7 +143,9 @@ export default {
|
|
|
143
143
|
let isCustumerAddress = th.innerText.includes("t.enderecoCliente");
|
|
144
144
|
let isAddressRent = th.innerText.includes("t.saidaRetornoLocacao");
|
|
145
145
|
let isTeamRent = th.innerText.includes("t.equipeLocacao");
|
|
146
|
-
|
|
146
|
+
let isOrderService = th.innerText.includes("t.produtoOs");
|
|
147
|
+
let isPaymentOsCustomer = th.innerText.includes("t.pagamentoCliente");
|
|
148
|
+
let isPaymentOsSupplier = th.innerText.includes("t.pagamentoFornecedor");
|
|
147
149
|
|
|
148
150
|
if (isProduct) {
|
|
149
151
|
obj.vForSimple = "v-for='produto in d.itensLocacao'";
|
|
@@ -160,6 +162,15 @@ export default {
|
|
|
160
162
|
} else if (isTeamRent) {
|
|
161
163
|
obj.vForSimple = "v-for='equipe in d.equipeLocacao'";
|
|
162
164
|
config.push(obj);
|
|
165
|
+
} else if (isOrderService) {
|
|
166
|
+
obj.vForSimple = "v-for='produto in d.itensOs'";
|
|
167
|
+
config.push(obj);
|
|
168
|
+
} else if (isPaymentOsCustomer) {
|
|
169
|
+
obj.vForSimple = "v-for='pagamento in d.pagamentoOsCliente'";
|
|
170
|
+
config.push(obj);
|
|
171
|
+
} else if (isPaymentOsSupplier) {
|
|
172
|
+
obj.vForSimple = "v-for='pagamento in d.pagamentoOsFornecedor'";
|
|
173
|
+
config.push(obj);
|
|
163
174
|
} else if (isGrouped) {
|
|
164
175
|
obj.vForGrouped = "v-for='(itensLocacao, grupo) in produtoAgrupado'";
|
|
165
176
|
obj.vForSimple = "v-for='produto in itensLocacao'";
|
|
@@ -216,6 +227,9 @@ export default {
|
|
|
216
227
|
.replaceAll("t.enderecoCliente", "")
|
|
217
228
|
.replaceAll("t.saidaRetornoLocacao", "")
|
|
218
229
|
.replaceAll("t.equipeLocacao", "")
|
|
230
|
+
.replaceAll("t.produtoOs", "")
|
|
231
|
+
.replaceAll("t.pagamentoCliente", "")
|
|
232
|
+
.replaceAll("t.pagamentoFornecedor", "")
|
|
219
233
|
.replaceAll("<p> !important;</p>", "<p> </p>");
|
|
220
234
|
}
|
|
221
235
|
|
|
@@ -635,6 +649,7 @@ export default {
|
|
|
635
649
|
})
|
|
636
650
|
.then((response) => {
|
|
637
651
|
|
|
652
|
+
|
|
638
653
|
let blob = new Blob([response.data], { type: `application/${params.obj.fileType}` });
|
|
639
654
|
let url = window.URL.createObjectURL(blob);
|
|
640
655
|
|
|
@@ -775,6 +790,7 @@ export default {
|
|
|
775
790
|
headers: new Token().tokenHeaders(),
|
|
776
791
|
})
|
|
777
792
|
.then((response) => {
|
|
793
|
+
|
|
778
794
|
let blob = new Blob([response.data], { type: "application/pdf" }),
|
|
779
795
|
url = window.URL.createObjectURL(blob);
|
|
780
796
|
window.open(url);
|