{{ errorMessage }}
diff --git a/frontend/components/ui/pdf-printer.vue b/frontend/components/ui/pdf-printer.vue new file mode 100644 index 0000000..a78f78c --- /dev/null +++ b/frontend/components/ui/pdf-printer.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/frontend/composables/useApi.ts b/frontend/composables/useApi.ts index 0201280..f63ba1b 100644 --- a/frontend/composables/useApi.ts +++ b/frontend/composables/useApi.ts @@ -4,22 +4,72 @@ import { $fetch, FetchError } from 'ofetch' export type AnyObject = RecordIndicateur d’étapes
+
+
|
+
+
+
+ Nom de l'entreprise
+ + Adresse de l'entreprise + |
+
| Code fournisseur | +Date | +N° réception | +
|---|---|---|
| XXX | ++ {{ reception.receptionDate|date('d/m/Y') }} + | +86-BR-XXXX | +
| Code | +Désignation | +Qté livrée (kg) | +
|---|---|---|
| M | + +
+ MAÏS sec + +
+ {% set grossWeight = null %}
+ {% set tareWeight = null %}
+
+ {% for weight in reception.weights %}
+ {% if weight.type == 'gross' %}
+ {% set grossWeight = weight %}
+
+ Poids à plein : {{ grossWeight.weight }}kg (pesée n°{{ grossWeight.dsd }} {{ grossWeight.weighedAt|date('d/m/Y H:i:s') }}) + {% elseif weight.type == 'tare' %} + {% set tareWeight = weight %} +Poids à vide : {{ tareWeight.weight }}kg (pesée n°{{ tareWeight.dsd }} {{ tareWeight.weighedAt|date('d/m/Y H:i:s') }}) + {% endif %} + {% endfor %} + |
+
+ + {% if grossWeight and tareWeight %} + {{ grossWeight.weight - tareWeight.weight }} + {% else %} + 0 + {% endif %} + | +
| + | + | + |
+
+
+
+
|
+
+
+ Signature :
+ Ets Liot :
+ Transporteur :
+ |
+