fix: type & i18n

This commit is contained in:
puriphatt 2024-06-18 11:44:44 +00:00
parent a24a40f51a
commit d6f8c704b1
3 changed files with 7 additions and 4 deletions

View file

@ -28,4 +28,6 @@ export default {
serviceAddProduct: 'Add Product',
processTime: 'Processing Time',
day: 'Days',
noField: 'No Field',
};

View file

@ -8,7 +8,6 @@ export default {
productAndServiceTypeName: 'ชื่อรหัสประเภทสินค้าและบริการ',
service: 'บริการ',
product: 'สินค้า',
messageTooltipNoProduct: 'ยังไม่มีกลุ่มสินค้าและบริการ',
@ -29,4 +28,6 @@ export default {
serviceAddProduct: 'เพิ่มสินค้า',
processTime: 'ระยะเวลาดำเนินการ',
day: 'วัน',
noField: 'ยังไมมีฟิลด์',
};

View file

@ -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 {