fix convertDate command

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-14 09:39:04 +07:00
parent 5450a034b7
commit c91a08fc4d
4 changed files with 9 additions and 30 deletions

View file

@ -28,6 +28,7 @@ const {
dialogConfirm,
hideLoader,
date2Thai,
convertDateToAPI,
} = mixin;
const modal = defineModel<boolean>("modal", { required: true });
@ -145,8 +146,8 @@ function onSubmit() {
showLoader();
const body = {
commandTypeId: commandType.value,
commandAffectDate: commandAffectDate.value,
commandExcecuteDate: commandExcecuteDate.value,
commandAffectDate: convertDateToAPI(commandAffectDate.value),
commandExcecuteDate: convertDateToAPI(commandExcecuteDate.value),
commandYear: commandYear.value,
commandNo: commandNo.value,
persons: selected.value ? dataMapToSend.value : [],