From 1fd685760645199f82b2fcb2015c6b93ecff8630 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 25 Sep 2024 13:13:28 +0700 Subject: [PATCH 1/5] refactor(02): remove disable date --- src/components/02_personnel-management/FormPerson.vue | 2 -- src/layouts/DrawerComponent.vue | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/02_personnel-management/FormPerson.vue b/src/components/02_personnel-management/FormPerson.vue index 5cad99a2..39273984 100644 --- a/src/components/02_personnel-management/FormPerson.vue +++ b/src/components/02_personnel-management/FormPerson.vue @@ -404,7 +404,6 @@ watch( :id="`${prefixId}-input-citizen-issue`" :readonly="readonly" :label="$t('personnel.form.citizenIssue')" - :disabled-dates="disabledAfterToday" :rules="[ (val: string) => !!val || @@ -421,7 +420,6 @@ watch( :id="`${prefixId}-input-citizen-expire`" :readonly="readonly" :label="$t('personnel.form.citizenExpire')" - :disabled-dates="disabledAfterToday" /> { label: 'menu.quotation', icon: 'mdi-file-document', route: '/quotation', - disabled: false, + disabled: true, }, { label: 'menu.requestList', From 631198554f3bbfd6a58c5b21b97151df7c12499d Mon Sep 17 00:00:00 2001 From: puriphatt Date: Wed, 25 Sep 2024 13:14:51 +0700 Subject: [PATCH 2/5] fix: i18n --- src/i18n/tha/index.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/i18n/tha/index.ts b/src/i18n/tha/index.ts index 78df3170..b063e544 100644 --- a/src/i18n/tha/index.ts +++ b/src/i18n/tha/index.ts @@ -80,6 +80,11 @@ export default { totalVatIncluded: 'จำนวนเงินที่คำนวณภาษี', vat: 'ภาษีมูลค่าเพิ่ม {msg}', totalAmount: 'จำนวนเงินรวมทั้งสิ้น', + specify: 'ระบุ{msg}', + noSpecify: 'ไม่ระบุ{msg}', + noDataTable: 'ยังไม่มีข้อมูลแสดงในตารางนี้', + birthDate: 'วันเกิด', + amount: 'จำนวน {msg}', }, menu: { @@ -93,7 +98,7 @@ export default { userCaption: 'จัดการบุคลากรภายในองค์กร', customer: 'จัดการลูกค้า', - customerCaption: 'จัดารลูกค้าภายในองค์กร', + customerCaption: 'จัดการลูกค้าภายในองค์กร', product: 'สินค้าและบริการ', productCaption: 'สินค้าและบริการ', @@ -594,6 +599,7 @@ export default { newCustomer: 'ลูกค้าใหม่', employeeList: 'รายชื่อแรงงาน', employee: 'แรงงาน', + employeeName: 'ชื่อ-นามสกุล แรงงาน', workName: 'ชื่องาน', contactName: 'ชื่อผู้ติดต่อ', documentReceivePoint: 'จุดรับเอกสาร', @@ -610,6 +616,18 @@ export default { amount: 'จำนวนเงิน', payDueDate: 'วันที่กำหนดจ่าย', callDueDate: 'วันที่ครบกำหนดเรียก', + + processOn: 'วันที่ดำเนินการ {msg}', + productList: 'รายการสินค้า', + + foreignRefNo: 'เลขที่อ้างอิงคนต่างด้าว', + documentExpireDate: 'วันที่เอกสารหมดอายุ', + + pricePerUnit: 'ราคาต่อหน่วย', + sumPrice: 'ราคารวม', + tax: 'ภาษี', + calVat: 'คิดภาษี', + allProduct: 'รายการสินค้าทั้งหมด', type: { all: 'ทั้งหมด', fullAmountCash: 'เงินสดเต็มจำนวน', From 6d1afd610bcc9fd219025366f2cd25d29c17cfd0 Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 25 Sep 2024 13:15:49 +0700 Subject: [PATCH 3/5] refactor: add _ --- src/components/02_personnel-management/FormInformation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/02_personnel-management/FormInformation.vue b/src/components/02_personnel-management/FormInformation.vue index 3d6330dd..fc9067e1 100644 --- a/src/components/02_personnel-management/FormInformation.vue +++ b/src/components/02_personnel-management/FormInformation.vue @@ -206,7 +206,7 @@ watch( :rules="[ (val: string) => val.length > 2 || $t('form.error.required'), (val: string) => - (val.length > 0 && /^[a-zA-Z0-9]+$/.test(val)) || + (val.length > 0 && /^[a-zA-Z0-9\s_]+$/.test(val)) || $t('form.error.letterAndNumOnly'), ]" /> From 4058a7613a4a303b6d72aeb92462d555f25bc9f8 Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 25 Sep 2024 13:16:01 +0700 Subject: [PATCH 4/5] refactor: edit i18n --- src/i18n/eng/index.ts | 2 +- src/i18n/tha/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/eng/index.ts b/src/i18n/eng/index.ts index 49b3ba09..353e1b9c 100644 --- a/src/i18n/eng/index.ts +++ b/src/i18n/eng/index.ts @@ -187,7 +187,7 @@ export default { invalid: 'Invalid value.', invalidCustomeMessage: 'Invalid value. {msg}', letterOnly: 'Only letters are allowed', - letterAndNumOnly: 'Only letters and number are allowed', + letterAndNumOnly: 'Only _ letters and number are allowed', numOnly: 'Only number are allowed', requireLength: 'Please enter {msg} character', }, diff --git a/src/i18n/tha/index.ts b/src/i18n/tha/index.ts index b063e544..9f3618bf 100644 --- a/src/i18n/tha/index.ts +++ b/src/i18n/tha/index.ts @@ -191,7 +191,7 @@ export default { invalid: 'ข้อมูลไม่ถูกต้อง', invalidCustomeMessage: 'ข้อมูลไม่ถูกต้อง {msg}', letterOnly: 'โปรดใช้เฉพาะตัวอักษรภาษาอังกฤษเท่านั้น', - letterAndNumOnly: 'โปรดใช้เฉพาะตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น', + letterAndNumOnly: 'โปรดใช้เฉพาะ _ ตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น', numOnly: 'โปรดใช้เฉพาะตัวเลขเท่านั้น', requireLength: 'กรุณากรอกให้ครบ {msg} หลัก', }, From 630a667c64ff68e41fcecef3d84ab498cc4b3e21 Mon Sep 17 00:00:00 2001 From: Net Date: Wed, 25 Sep 2024 13:18:00 +0700 Subject: [PATCH 5/5] refactor: edit rules --- src/components/02_personnel-management/FormInformation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/02_personnel-management/FormInformation.vue b/src/components/02_personnel-management/FormInformation.vue index fc9067e1..1fd7c8b3 100644 --- a/src/components/02_personnel-management/FormInformation.vue +++ b/src/components/02_personnel-management/FormInformation.vue @@ -206,7 +206,7 @@ watch( :rules="[ (val: string) => val.length > 2 || $t('form.error.required'), (val: string) => - (val.length > 0 && /^[a-zA-Z0-9\s_]+$/.test(val)) || + (val.length > 0 && /^[a-zA-Z0-9_]+$/.test(val)) || $t('form.error.letterAndNumOnly'), ]" />