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,
|
success,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
date2Thai,
|
date2Thai,
|
||||||
|
convertDatetimeToAPI,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const paramsId = ref<string>(route.params.id as string);
|
const paramsId = ref<string>(route.params.id as string);
|
||||||
|
|
@ -68,6 +70,8 @@ function onSubmit() {
|
||||||
routeName.value === "resignbyid" ? "resign" : "resign-employee";
|
routeName.value === "resignbyid" ? "resign" : "resign-employee";
|
||||||
const payload = {
|
const payload = {
|
||||||
...formData,
|
...formData,
|
||||||
|
activeDate: convertDateToAPI(formData.activeDate),
|
||||||
|
sendDate: convertDatetimeToAPI(formData.sendDate),
|
||||||
remark: formData.reasonResign === "OTHER" ? formData.remark : undefined,
|
remark: formData.reasonResign === "OTHER" ? formData.remark : undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue