fix convertDate command
This commit is contained in:
parent
5450a034b7
commit
c91a08fc4d
4 changed files with 9 additions and 30 deletions
|
|
@ -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 : [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue