From 0e79676f588a444b1e87a7e1e590da954267ab24 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 8 Mar 2024 09:02:49 -0300 Subject: [PATCH] Create manual invoice WIP --- src/components/CreateManualInvoiceForm.vue | 155 +++++++++++++++++++++ src/components/FormModelPopup.vue | 6 +- src/pages/InvoiceOut/InvoiceOutList.vue | 26 +++- 3 files changed, 183 insertions(+), 4 deletions(-) create mode 100644 src/components/CreateManualInvoiceForm.vue diff --git a/src/components/CreateManualInvoiceForm.vue b/src/components/CreateManualInvoiceForm.vue new file mode 100644 index 000000000..de5decaad --- /dev/null +++ b/src/components/CreateManualInvoiceForm.vue @@ -0,0 +1,155 @@ + + + + + +es: + Create manual invoice: Crear factura manual + Ticket: Ticket + Client: Cliente + Max date: Fecha límite + Serial: Serie + Area: Area + Reference: Referencia + Or: O + diff --git a/src/components/FormModelPopup.vue b/src/components/FormModelPopup.vue index 04322a3c8..cc22c77db 100644 --- a/src/components/FormModelPopup.vue +++ b/src/components/FormModelPopup.vue @@ -42,8 +42,8 @@ const { t } = useI18n(); const closeButton = ref(null); const isLoading = ref(false); -const onDataSaved = (dataSaved) => { - emit('onDataSaved', dataSaved); +const onDataSaved = (formData, requestResponse) => { + emit('onDataSaved', formData, requestResponse); closeForm(); }; @@ -59,7 +59,7 @@ const closeForm = () => { :default-actions="false" :url-create="urlCreate" :model="model" - @on-data-saved="onDataSaved($event)" + @on-data-saved="onDataSaved" > @@ -214,10 +235,13 @@ en: fileAllowed: Successful download of CSV file youCanSearchByInvoiceReference: You can search by invoice reference downloadPdf: Download PDF + createInvoice: Make invoice es: searchInvoice: Buscar factura emitida fileDenied: El navegador denegó la descarga de archivos... fileAllowed: Descarga exitosa de archivo CSV youCanSearchByInvoiceReference: Puedes buscar por referencia de la factura downloadPdf: Download PDF + createInvoice: Crear factura +