fix convert Date
This commit is contained in:
parent
c60074c8fa
commit
f6ee9eb73e
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ const {
|
|||
success,
|
||||
dialogConfirm,
|
||||
date2Thai,
|
||||
convertDatetimeToAPI,
|
||||
convertDateToAPI,
|
||||
} = mixin;
|
||||
|
||||
const paramsId = ref<string>(route.params.id as string);
|
||||
|
|
@ -68,6 +70,8 @@ function onSubmit() {
|
|||
routeName.value === "resignbyid" ? "resign" : "resign-employee";
|
||||
const payload = {
|
||||
...formData,
|
||||
activeDate: convertDateToAPI(formData.activeDate),
|
||||
sendDate: convertDatetimeToAPI(formData.sendDate),
|
||||
remark: formData.reasonResign === "OTHER" ? formData.remark : undefined,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue