update workflow

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-18 14:51:42 +07:00
parent 1eead8c579
commit 6bc00f9064
3 changed files with 13 additions and 6 deletions

View file

@ -34,7 +34,7 @@ const id = ref<string>(
const myform = ref<QForm | null>(null); //form
const tranferOrg = ref(""); //
const dateCommand = ref<Date>(new Date()); //
const dateLeave = ref<Date>(new Date()); //
const dateLeave = ref<Date | null>(null); //
const noteReason = ref(""); //
const modal = ref<boolean>(false); // dialog
@ -83,10 +83,14 @@ async function onSubmit() {
$q,
() => {
showLoader();
const formData = new FormData();
formData.append("Location", tranferOrg.value);
formData.append("SendDate", dateToISO(dateCommand.value));
formData.append("ActiveDate", dateToISO(dateLeave.value));
formData.append(
"ActiveDate",
dateLeave.value !== null ? dateToISO(dateLeave.value) : ""
);
formData.append("Reason", noteReason.value);
formData.append("file", files.value);