บรรจุ ทดลองงาน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-13 15:46:55 +07:00
parent a8fdca1138
commit 4cfcc2d018
21 changed files with 113 additions and 199 deletions

View file

@ -39,6 +39,7 @@ const {
dialogConfirm,
date2Thai,
onSearchDataTable,
convertDateToAPI,
} = mixin;
/** รับค่ามาจากหน้าหลัก */
@ -732,7 +733,9 @@ function onSubmitDate() {
dialogConfirm($q, () => {
showLoader();
http
.put(config.API.clearDate(rowId.value), { date: reportingDate.value })
.put(config.API.clearDate(rowId.value), {
date: convertDateToAPI(reportingDate.value),
})
.then(async () => {
await Promise.all([getTable(), props.statCard()]);
await success($q, "บันทึกข้อมูลสำเร็จ");