Merge pull request #1488 from Frappet/fix/formatDate

fix:convertDateToAPI
This commit is contained in:
Warunee Tamkoo 2025-10-21 21:22:44 +07:00 committed by GitHub
commit 8f53521403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 42 additions and 13 deletions

View file

@ -20,8 +20,14 @@ const $q = useQuasar();
const router = useRouter();
const route = useRoute();
const mixin = useCounterMixin();
const { messageError, success, showLoader, hideLoader, onSearchDataTable } =
mixin;
const {
messageError,
success,
showLoader,
hideLoader,
onSearchDataTable,
convertDateToAPI,
} = mixin;
const year = ref<string>("2566");
const round = ref<string>("1");
@ -341,7 +347,7 @@ async function onSubmitCandidates(date: Date) {
showLoader();
await http
.post(config.API.periodDisableToPlacement(importId.value), {
accountStartDate: date,
accountStartDate: convertDateToAPI(date),
})
.then(() => {
success($q, "นำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ");