diff --git a/src/modules/14_KPI/components/indicatorByPlan/IndicatorByPlan.vue b/src/modules/14_KPI/components/indicatorByPlan/IndicatorByPlan.vue index 11fda18d8..ba8d2222f 100644 --- a/src/modules/14_KPI/components/indicatorByPlan/IndicatorByPlan.vue +++ b/src/modules/14_KPI/components/indicatorByPlan/IndicatorByPlan.vue @@ -209,7 +209,7 @@ function onSubmit() { $q, async () => { const body = { - year: year.value == 0 ? null : year.value, + year: year.value == 0 ? null : year.value?.toString(), period: planData.period, includingName: planData.includingName, target: planData.target, diff --git a/src/modules/14_KPI/components/indicatorByRole/DetailView.vue b/src/modules/14_KPI/components/indicatorByRole/DetailView.vue index f869a39d2..fc8998cf7 100644 --- a/src/modules/14_KPI/components/indicatorByRole/DetailView.vue +++ b/src/modules/14_KPI/components/indicatorByRole/DetailView.vue @@ -125,7 +125,7 @@ function onSubmit() { : config.API.kpiRoleMainList; const body = { - year: form.year == 0 ? null:form.year, + year: form.year == 0 ? null:form.year.toString(), position: form.position, //ตำแหน่ง period: form.round, //รอบการประเมิน(เมษา->APR, ตุลา->OCT) includingName: form.includingName, //ชื่อตัวชี้วัด