From 08e072100bcc7b55d7daaecee5cacb5a24e00490 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Tue, 13 Feb 2024 21:10:10 -0500 Subject: [PATCH] Solucion a comentarios 7 --- src/pages/Customer/Card/CustomerMandates.vue | 130 +++++++++++++++- .../Customer/Card/CustomerWebPayment.vue | 139 +++++++++++++++++- .../components/CustomerCheckIconTooltip.vue | 47 ++++++ .../components/CustomerCloseIconTooltip.vue | 48 ++++++ .../components/CustomerSamplesCreate.vue | 20 ++- 5 files changed, 373 insertions(+), 11 deletions(-) create mode 100644 src/pages/Customer/components/CustomerCheckIconTooltip.vue create mode 100644 src/pages/Customer/components/CustomerCloseIconTooltip.vue diff --git a/src/pages/Customer/Card/CustomerMandates.vue b/src/pages/Customer/Card/CustomerMandates.vue index 9d9634a16..889f2c6a2 100644 --- a/src/pages/Customer/Card/CustomerMandates.vue +++ b/src/pages/Customer/Card/CustomerMandates.vue @@ -1,11 +1,135 @@ + + +es: + Id: Id + Company: Empresa + Type: Tipo + Register date: Fecha alta + End date: Fecha baja + diff --git a/src/pages/Customer/Card/CustomerWebPayment.vue b/src/pages/Customer/Card/CustomerWebPayment.vue index 9d9634a16..5fd32f642 100644 --- a/src/pages/Customer/Card/CustomerWebPayment.vue +++ b/src/pages/Customer/Card/CustomerWebPayment.vue @@ -1,11 +1,144 @@ + + +es: + State: Estado + Id: Id + Date: Fecha + Amount: Importe + diff --git a/src/pages/Customer/components/CustomerCheckIconTooltip.vue b/src/pages/Customer/components/CustomerCheckIconTooltip.vue new file mode 100644 index 000000000..02d1b8e51 --- /dev/null +++ b/src/pages/Customer/components/CustomerCheckIconTooltip.vue @@ -0,0 +1,47 @@ + + + + + +es: + Confirm transaction: Transacción confirmada + diff --git a/src/pages/Customer/components/CustomerCloseIconTooltip.vue b/src/pages/Customer/components/CustomerCloseIconTooltip.vue new file mode 100644 index 000000000..b5a0687da --- /dev/null +++ b/src/pages/Customer/components/CustomerCloseIconTooltip.vue @@ -0,0 +1,48 @@ + + + + + +es: + Confirmed: Confirmada + diff --git a/src/pages/Customer/components/CustomerSamplesCreate.vue b/src/pages/Customer/components/CustomerSamplesCreate.vue index f6591ea5b..7eaa05cf2 100644 --- a/src/pages/Customer/components/CustomerSamplesCreate.vue +++ b/src/pages/Customer/components/CustomerSamplesCreate.vue @@ -27,7 +27,7 @@ const optionsEmailUsers = ref([]); const optionsClientsAddressess = ref([]); const optionsCompanies = ref([]); const optionsSamplesVisible = ref([]); -const sampleType = ref(0); +const sampleType = ref({ hasPreview: false }); const filterEmailUsers = { where: { userFk: user.value.id } }; const filterClientsAddresses = { @@ -55,7 +55,6 @@ const initialData = reactive({}); onBeforeMount(async () => { const { companyFk } = user.value; const { data } = await axios.get(`Clients/1/getCard`); - initialData.addressId = data.defaultAddressFk; initialData.clientFk = route.params.id; initialData.companyFk = companyFk; initialData.companyId = companyFk; @@ -68,6 +67,11 @@ const setEmailUser = (data) => { initialData.replyTo = data[0]?.email; }; +const setClientsAddresses = (data) => { + initialData.addressId = data[0].id; + optionsClientsAddressess.value = data; +}; + const setSampleType = (sampleId) => { sampleType.value = optionsSamplesVisible.value.find( (option) => option.id === sampleId @@ -130,7 +134,7 @@ const getPreview = async () => { { + @@ -270,7 +279,7 @@ const getPreview = async () => { v-close-popup /> { color="primary" />