diff --git a/src/components/common/VnDms.vue b/src/components/common/VnDms.vue index bee300f4e..de22e4857 100644 --- a/src/components/common/VnDms.vue +++ b/src/components/common/VnDms.vue @@ -35,6 +35,10 @@ const $props = defineProps({ type: String, default: null, }, + hasFile: { + type: Boolean, + default: false, + }, }); const warehouses = ref(); @@ -90,6 +94,7 @@ function defaultData() { if ($props.formInitialData) return (dms.value = $props.formInitialData); return addDefaultData({ reference: route.params.id, + hasFile: $props.hasFile, }); } diff --git a/src/components/common/VnDropdown.vue b/src/components/common/VnDropdown.vue new file mode 100644 index 000000000..1b3f2237b --- /dev/null +++ b/src/components/common/VnDropdown.vue @@ -0,0 +1,53 @@ + + + diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 2fd323543..ec72c799c 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -458,9 +458,7 @@ watch( }}: @@ -514,7 +512,7 @@ watch( {{ prop.nameI18n }}: {} }, + name: { type: String, default: undefined }, }); const descriptor = computed(() => descriptorStore.has($props.name)); diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 657b142cd..9b1ca2623 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -889,7 +889,7 @@ components: openCard: View openSummary: Summary viewSummary: Summary - cardDescriptor: + vnDescriptor: mainList: Main list summary: Summary moreOptions: More options diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index dd084f7c2..7dd614534 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -973,7 +973,7 @@ components: openCard: Ficha openSummary: Detalles viewSummary: Vista previa - cardDescriptor: + vnDescriptor: mainList: Listado principal summary: Resumen moreOptions: Más opciones diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index 5d06d5627..67d57004f 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -21,6 +21,7 @@ import CustomerDescriptorProxy from 'src/pages/Customer/Card/CustomerDescriptorP import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue'; import DepartmentDescriptorProxy from 'src/pages/Worker/Department/Card/DepartmentDescriptorProxy.vue'; import ClaimDescriptorMenu from './ClaimDescriptorMenu.vue'; +import VnDropdown from 'src/components/common/VnDropdown.vue'; const route = useRoute(); const router = useRouter(); @@ -36,7 +37,7 @@ const $props = defineProps({ }); const entityId = computed(() => $props.id || route.params.id); -const ClaimStates = ref([]); +const claimStates = ref([]); const claimDmsRef = ref(); const claimDms = ref([]); const multimediaDialog = ref(); @@ -173,7 +174,9 @@ function openDialog(dmsId) { } async function changeState(value) { - await axios.patch(`Claims/updateClaim/${entityId.value}`, { claimStateFk: value }); + await axios.patch(`Claims/updateClaim/${entityId.value}`, { + claimStateFk: value, + }); router.go(route.fullPath); } @@ -183,13 +186,18 @@ function claimUrl(section) {