From 7e1fced429c112973fe0c5ff8d2ad9b217f3da4a Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 30 Jan 2024 10:20:40 -0300 Subject: [PATCH] WIP --- src/components/EditPictureForm.vue | 82 +++++++++++++++++++ src/pages/Item/Card/ItemDescriptor.vue | 79 ++++++++++++++---- .../Supplier/Card/SupplierDescriptor.vue | 22 +++++ 3 files changed, 165 insertions(+), 18 deletions(-) create mode 100644 src/components/EditPictureForm.vue diff --git a/src/components/EditPictureForm.vue b/src/components/EditPictureForm.vue new file mode 100644 index 000000000..a1d994399 --- /dev/null +++ b/src/components/EditPictureForm.vue @@ -0,0 +1,82 @@ + + + + + +es: + Edit photo: Editar foto + Select from computer: Seleccionar desde ordenador + Import from external URL: Importar desde URL externa + diff --git a/src/pages/Item/Card/ItemDescriptor.vue b/src/pages/Item/Card/ItemDescriptor.vue index e5183779b..f30104303 100644 --- a/src/pages/Item/Card/ItemDescriptor.vue +++ b/src/pages/Item/Card/ItemDescriptor.vue @@ -9,6 +9,7 @@ import VnLv from 'src/components/ui/VnLv.vue'; import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; import VnConfirm from 'components/ui/VnConfirm.vue'; import RegularizeStockForm from 'components/RegularizeStockForm.vue'; +import EditPictureForm from 'components/EditPictureForm.vue'; import { useState } from 'src/composables/useState'; import useCardDescription from 'src/composables/useCardDescription'; @@ -43,6 +44,7 @@ const entityId = computed(() => { return $props.id || route.params.id; }); const regularizeStockFormDialog = ref(null); +const editPhotoFormDialog = ref(null); const item = ref(null); const available = ref(null); const visible = ref(null); @@ -122,6 +124,10 @@ const openRegularizeStockForm = () => { regularizeStockFormDialog.value.show(); }; +const openEditPhotoForm = () => { + editPhotoFormDialog.value.show(); +}; + const cloneItem = async () => { try { const { data } = await axios.post(`Items/${entityId.value}/clone`); @@ -181,30 +187,54 @@ const openCloneDialog = async () => { +