From 4183dbb0ec4a82d3e4dc8e1c118a70c2c9281fb8 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:35:00 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=AA=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/03_customer-management/AboutComponent.vue | 5 +++++ src/components/03_customer-management/BasicInformation.vue | 5 +++++ .../03_customer-management/FormEmployeePassport.vue | 5 +---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/03_customer-management/AboutComponent.vue b/src/components/03_customer-management/AboutComponent.vue index 27772208..14566ce2 100644 --- a/src/components/03_customer-management/AboutComponent.vue +++ b/src/components/03_customer-management/AboutComponent.vue @@ -139,6 +139,11 @@ const branchNo = defineModel('branchNo'); class="col-6" :label="$t('taxNo')" v-model="taxNo" + :rules="[ + (val) => + (val && val.length === 13 && /[0-9]+/.test(val)) || + $t('formDialogInputTaxNoValidate'), + ]" /> {}); class="col-6" :label="$t('taxNo')" v-model="taxNo" + :rules="[ + (val) => + (val && val.length === 13 && /[0-9]+/.test(val)) || + $t('formDialogInputTaxNoValidate'), + ]" />