From 10e0d638f51c4553e8b89a5b27038da4d2c8266a Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:57:31 +0700 Subject: [PATCH] chore: format --- .../04_product-service/BasicInfoProduct.vue | 27 +++++++++---------- src/i18n/en-US/customer-main-page.ts | 2 +- src/i18n/en-US/index.ts | 5 ++-- src/i18n/th-th/index.ts | 3 ++- src/stores/branch/types.ts | 6 ++--- src/stores/employee/types.ts | 6 ++--- 6 files changed, 23 insertions(+), 26 deletions(-) diff --git a/src/components/04_product-service/BasicInfoProduct.vue b/src/components/04_product-service/BasicInfoProduct.vue index 1bf17d1a..1b911a26 100644 --- a/src/components/04_product-service/BasicInfoProduct.vue +++ b/src/components/04_product-service/BasicInfoProduct.vue @@ -33,14 +33,9 @@ onMounted(async () => { codeOption.value = option.tha.typeProduct; } - if(!!props.optionsBranch) { - - - - registeredBranchId.value = props.optionsBranch[0].id ; + if (!!props.optionsBranch) { + registeredBranchId.value = props.optionsBranch[0].id; } - - }); @@ -81,19 +76,21 @@ onMounted(async () => { map-options options-dense :label="$t('registeredBranch')" - class="col-3 " + class="col-3" option-label="name" option-value="id" v-model="registeredBranchId" :options="optionsBranch" :rules="[ - (val) => { - const roles = getRole() || []; - const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(role => roles.includes(role)); - return isSpecialRole || !!val || 'กรุณากรอกข้อมูล'; - } -]" -clearable + (val) => { + const roles = getRole() || []; + const isSpecialRole = ['admin', 'system', 'head_of_admin'].some( + (role) => roles.includes(role), + ); + return isSpecialRole || !!val || 'กรุณากรอกข้อมูล'; + }, + ]" + clearable />