@nixweb/nixloc-ui 0.0.265 → 0.0.266

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixweb/nixloc-ui",
3
- "version": "0.0.265",
3
+ "version": "0.0.266",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -17,6 +17,25 @@ export default {
17
17
  d: Object,
18
18
  },
19
19
  methods: {
20
+ periodo(grupo, campo) {
21
+ var item = this.d.itensLocacao.find(item => item.grupo == grupo);
22
+ const campoMap = {
23
+ "dataEntrega": item.dataEntrega,
24
+ "horaEntrega": item.horaEntrega,
25
+ "dataInicio": item.dataInicio,
26
+ "horaInicio": item.horaInicio,
27
+ "dataFim": item.dataFim,
28
+ "horaFim": item.horaFim,
29
+ "dataRetirada": item.dataRetirada,
30
+ "horaRetirada": item.horaRetirada,
31
+ "ano": item.ano,
32
+ "mes": item.mes,
33
+ "dia": item.dia,
34
+ "hora": item.hora,
35
+ "minuto": item.minuto
36
+ };
37
+ return campoMap[campo];
38
+ },
20
39
  somaGrupo(grupo) {
21
40
  let sum = [];
22
41
  this.d.itensLocacao.forEach((item) => {
@@ -36,6 +55,7 @@ export default {
36
55
  var group = this.groupBy({ array: this.d.itensLocacao, key: "grupo" });
37
56
  return group;
38
57
  },
58
+
39
59
  },
40
60
  };
41
61
  </script>
@@ -29,6 +29,5 @@ export default {
29
29
  .content {
30
30
  width: 1024px;
31
31
  margin: auto;
32
- padding: 10px;
33
32
  }
34
33
  </style>