From 15ac91b30fb8b0ac58e55632abef54dd70c16a91 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 10 Mar 2025 15:11:52 +0700 Subject: [PATCH] feat: add properties fields for worker status and work type in option.json --- public/option/option.json | 84 ++++++++++++++++++++++ src/components/dialog/DialogProperties.vue | 2 +- 2 files changed, 85 insertions(+), 1 deletion(-) diff --git a/public/option/option.json b/public/option/option.json index eb20dd0b..e7cf5118 100644 --- a/public/option/option.json +++ b/public/option/option.json @@ -1004,6 +1004,48 @@ "label": "Ministry of Labour", "value": "MOL" } + ], + + "propertiesField": [ + { + "label": "Worker status", + "value": "workerStatus", + "type": "array" + }, + { + "label": "Work type", + "value": "workType", + "type": "array" + }, + { + "label": "Hospital name / Medical entitlement", + "value": "hospitalNEntitlement", + "type": "string" + }, + { + "label": "Reference Number (Ref)", + "value": "refNo", + "type": "string" + }, + { + "label": "Work Status", + "value": "workStatus", + "type": "string" + }, + { + "label": "Contact channels", + "value": "contactChannel", + "type": "string" + }, + { "label": "Document Check", "value": "documentCheck", "type": "string" }, + { "label": "Duty", "value": "duty", "type": "string" }, + { "label": "Messenger", "value": "messenger", "type": "string" }, + { "label": "Form", "value": "designForm", "type": "string" }, + { + "label": "Remark", + "value": "remark", + "type": "string" + } ] }, @@ -2013,6 +2055,48 @@ "label": "กรมแรงงาน", "value": "MOL" } + ], + + "propertiesField": [ + { + "label": "สถานะคนงาน", + "value": "workerStatus", + "type": "array" + }, + { + "label": "ประเภทงาน", + "value": "workType", + "type": "array" + }, + { + "label": "ชื่อ รพ./สิทธิการรักษา", + "value": "hospitalNEntitlement", + "type": "string" + }, + { + "label": "เลขที่อ้างอิง (Ref)", + "value": "refNo", + "type": "string" + }, + { + "label": "สถานะงาน", + "value": "workStatus", + "type": "string" + }, + { + "label": "ช่องทางการติดต่อ", + "value": "contactChannel", + "type": "string" + }, + { "label": "ตรวจสอบเอกสาร", "value": "documentCheck", "type": "string" }, + { "label": "อากร", "value": "duty", "type": "string" }, + { "label": "พนักงานส่งเอกสาร", "value": "messenger", "type": "string" }, + { "label": "ออกแบบฟอร์ม", "value": "designForm", "type": "string" }, + { + "label": "หมายเหตุ", + "value": "remark", + "type": "string" + } ] } } diff --git a/src/components/dialog/DialogProperties.vue b/src/components/dialog/DialogProperties.vue index 1e33a7f5..20815564 100644 --- a/src/components/dialog/DialogProperties.vue +++ b/src/components/dialog/DialogProperties.vue @@ -262,7 +262,7 @@ function confirmDelete(items: unknown[], index: number) { } function assignTemp() { - propertiesOption.value = optionStore.globalOption?.servicePropertiesField; + propertiesOption.value = optionStore.globalOption?.propertiesField; tempStep.value = JSON.parse(JSON.stringify(dataStep.value)); tempWorkflowId.value = workflowId.value;