From d6f8c704b1cb22716d6f3ae445f396978f0be98d Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 18 Jun 2024 11:44:44 +0000 Subject: [PATCH] fix: type & i18n --- src/i18n/en-US/product-service.ts | 2 ++ src/i18n/th-th/product-service.ts | 3 ++- src/stores/product-service/types.ts | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/i18n/en-US/product-service.ts b/src/i18n/en-US/product-service.ts index aed90ddf..0632bab7 100644 --- a/src/i18n/en-US/product-service.ts +++ b/src/i18n/en-US/product-service.ts @@ -28,4 +28,6 @@ export default { serviceAddProduct: 'Add Product', processTime: 'Processing Time', day: 'Days', + + noField: 'No Field', }; diff --git a/src/i18n/th-th/product-service.ts b/src/i18n/th-th/product-service.ts index ad9663d1..b141f8b3 100644 --- a/src/i18n/th-th/product-service.ts +++ b/src/i18n/th-th/product-service.ts @@ -8,7 +8,6 @@ export default { productAndServiceTypeName: 'ชื่อรหัสประเภทสินค้าและบริการ', service: 'บริการ', - product: 'สินค้า', messageTooltipNoProduct: 'ยังไม่มีกลุ่มสินค้าและบริการ', @@ -29,4 +28,6 @@ export default { serviceAddProduct: 'เพิ่มสินค้า', processTime: 'ระยะเวลาดำเนินการ', day: 'วัน', + + noField: 'ยังไมมีฟิลด์', }; diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index 8a5aacf4..635c8597 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -43,12 +43,12 @@ export interface ServiceCreate { export interface Attributes { additional: { - fieldName: string; - type?: AdditionalType; + fieldName: string | null; + type: AdditionalType | null; }[]; } -type AdditionalType = 'string' | 'number' | 'boolean' | Date; +type AdditionalType = 'string' | 'number' | 'date' | 'array'; // Product export interface ServiceById {