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

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

@ -36,6 +36,7 @@ const {
messageError,
dialogMessageNotify,
dialogConfirm,
convertDateToAPI,
} = useCounterMixin();
/**props*/
@ -233,7 +234,7 @@ async function onClickSubmit() {
posTypeName: selectedPos.value[0].posTypeName, //
posLevelId: selectedPos.value[0].posLevelId, //
posLevelName: selectedPos.value[0].posLevelName, //
reportingDate: datePos.value,
reportingDate: convertDateToAPI(datePos.value),
posmasterId: dataPosMaster.id,
};

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, "บันทึกข้อมูลสำเร็จ");