From bc507b7b4c92262c537c8dbe58dc702faeac2b1e Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Fri, 4 Apr 2025 09:47:37 +0700 Subject: [PATCH] refactor: add option type visa --- public/option/option.json | 46 +++++++++++++++++++ .../FormEmployeeVisa.vue | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/public/option/option.json b/public/option/option.json index 2d4991aa..7b9f975f 100644 --- a/public/option/option.json +++ b/public/option/option.json @@ -1,5 +1,28 @@ { "eng": { + "visaType": [ + { + "label": "Non-LA", + "value": "nla" + }, + { + "label": "Non-B", + "value": "nb" + }, + { + "label": "TV.60", + "value": "tv60" + }, + { + "label": "Non-TR", + "value": "ntr" + }, + { + "label": "TV.30", + "value": "tv30" + } + ], + "workerStatus": [ { "label": "Normal", @@ -1051,6 +1074,29 @@ }, "tha": { + "visaType": [ + { + "label": "Non-LA", + "value": "nla" + }, + { + "label": "Non-B", + "value": "nb" + }, + { + "label": "ผผ.60", + "value": "tv60" + }, + { + "label": "Non-TR", + "value": "ntr" + }, + { + "label": "ผผ.30", + "value": "tv30" + } + ], + "workerStatus": [ { "label": "ปกติ", diff --git a/src/components/03_customer-management/FormEmployeeVisa.vue b/src/components/03_customer-management/FormEmployeeVisa.vue index a441ae65..876c7a52 100644 --- a/src/components/03_customer-management/FormEmployeeVisa.vue +++ b/src/components/03_customer-management/FormEmployeeVisa.vue @@ -92,7 +92,7 @@ let workerTypeFilter: ( onMounted(() => { visaTypeFilter = selectFilterOptionRefMod( - ref(optionStore.globalOption?.nationality), + ref(optionStore.globalOption?.visaType), visaTypeOptions, 'label', );