From 74c36a28b2cd3952da40fc699c6ee345fc9c4afe Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 12 Jul 2024 13:05:46 +0200 Subject: [PATCH] fix: workerCreate form street field to be always upperCase --- src/pages/Worker/WorkerList.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/Worker/WorkerList.vue b/src/pages/Worker/WorkerList.vue index 3eca02c8f..27b4982ee 100644 --- a/src/pages/Worker/WorkerList.vue +++ b/src/pages/Worker/WorkerList.vue @@ -85,6 +85,15 @@ function handleLocation(data, location) { data.provinceFk = provinceFk; data.countryFk = countryFk; } + +function uppercaseStreetModel(data) { + return { + get: () => (data.street ? data.street.toUpperCase() : ''), + set: (value) => { + data.street = value.toUpperCase(); + }, + }; +}