kpi convertDateToAPI

This commit is contained in:
setthawutttty 2025-03-11 16:24:47 +07:00
parent 6720b04fdd
commit d97241a199

View file

@ -187,7 +187,11 @@ function onSubmit() {
? config.API.kpiPeriodById("12")
: config.API.kpiPeriod;
const method = isStatusEdit.value ? "put" : "post";
await http[method](url, formData);
await http[method](url, {
...formData,
startDate: formData.startDate,
endDate: formData.endDate,
});
await fetchList();
await success($q, "บันทึกข้อมูลสำเร็จ");
closeDialog();