From 627289c58d8d86c57c978156dc97d6f0d27ec43d Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 21 Jan 2025 13:22:40 +0100 Subject: [PATCH 1/2] feat: refs #7317 deleted warnings in fiscalData and dms --- src/components/common/VnDmsList.vue | 2 +- src/components/common/VnSelectWorker.vue | 4 ++-- src/pages/Supplier/Card/SupplierFiscalData.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/common/VnDmsList.vue b/src/components/common/VnDmsList.vue index a4eb26958..7b916edc4 100644 --- a/src/components/common/VnDmsList.vue +++ b/src/components/common/VnDmsList.vue @@ -102,7 +102,7 @@ const columns = computed(() => [ storage: 'dms', collection: null, resolution: null, - id: prop.row.file.split('.')[0], + id: parseInt(prop.row.file.split('.')[0]), token: token, class: 'rounded', ratio: 1, diff --git a/src/components/common/VnSelectWorker.vue b/src/components/common/VnSelectWorker.vue index 2762d6c02..ca252f022 100644 --- a/src/components/common/VnSelectWorker.vue +++ b/src/components/common/VnSelectWorker.vue @@ -10,8 +10,8 @@ const $props = defineProps({ default: false, }, hasInfo: { - type: Boolean, - default: false, + type: String, + default: '', }, modelValue: { type: [String, Number, Object], diff --git a/src/pages/Supplier/Card/SupplierFiscalData.vue b/src/pages/Supplier/Card/SupplierFiscalData.vue index 1d9f3ab94..e569eb236 100644 --- a/src/pages/Supplier/Card/SupplierFiscalData.vue +++ b/src/pages/Supplier/Card/SupplierFiscalData.vue @@ -94,7 +94,7 @@ function handleLocation(data, location) { Date: Tue, 21 Jan 2025 14:51:45 +0100 Subject: [PATCH 2/2] refactor: refs #7317 requested changes --- src/components/common/VnSelectWorker.vue | 8 ++++---- src/pages/Supplier/Card/SupplierBasicData.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/common/VnSelectWorker.vue b/src/components/common/VnSelectWorker.vue index ca252f022..8d60eb014 100644 --- a/src/components/common/VnSelectWorker.vue +++ b/src/components/common/VnSelectWorker.vue @@ -9,9 +9,9 @@ const $props = defineProps({ type: Boolean, default: false, }, - hasInfo: { + info: { type: String, - default: '', + default: undefined, }, modelValue: { type: [String, Number, Object], @@ -57,9 +57,9 @@ const url = computed(() => { -