Merge pull request #1487 from Frappet/fix/disable_date

fix(placement): delete min-date
This commit is contained in:
Warunee Tamkoo 2025-10-17 15:56:40 +07:00 committed by GitHub
commit 97aa731d2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View file

@ -41,6 +41,7 @@ const {
date2Thai,
dialogMessageNotify,
onSearchDataTable,
convertDateToAPI,
} = mixin;
/** props*/
@ -508,7 +509,7 @@ function onSubmit() {
posLevelId: selectedPos.value[0].posLevelId, //
posLevelName: selectedPos.value[0].posLevelName, //
posExecutiveName: selectedPos.value[0].posExecutiveName, //
reportingDate: datePos.value,
reportingDate: convertDateToAPI(datePos.value),
posmasterId: dataPosMaster.id,
typeCommand: type.value,
positionExecutiveField: selectedPos.value[0].positionExecutiveField, //
@ -787,6 +788,7 @@ onMounted(async () => {
>
<div class="col-12">
<q-toolbar style="padding: 0px">
<!-- :min-date="datePos" -->
<datepicker
menu-class-name="modalfix"
v-model="datePos"
@ -795,7 +797,6 @@ onMounted(async () => {
borderless
:enableTimePicker="false"
week-start="0"
:min-date="datePos"
>
<template #year="{ year }">
{{ year + 543 }}

View file

@ -41,6 +41,7 @@ const {
date2Thai,
dialogMessageNotify,
onSearchDataTable,
convertDateToAPI,
} = mixin;
const route = useRoute();
@ -480,7 +481,7 @@ function onSubmit() {
posTypeName: selectedPos.value[0].posTypeName, //
posLevelId: selectedPos.value[0].posLevelId, //
posLevelName: selectedPos.value[0].posLevelName, //
reportingDate: datePos.value,
reportingDate: convertDateToAPI(datePos.value),
posmasterId: dataPosMaster.id,
typeCommand: type.value,
};
@ -755,6 +756,7 @@ onMounted(() => {
>
<div class="col-12">
<q-toolbar style="padding: 0px">
<!-- :min-date="datePos" -->
<datepicker
menu-class-name="modalfix"
v-model="datePos"
@ -763,7 +765,6 @@ onMounted(() => {
borderless
:enableTimePicker="false"
week-start="0"
:min-date="datePos"
>
<template #year="{ year }">
{{ year + 543 }}

View file

@ -481,6 +481,7 @@ onMounted(async () => {
>
<div class="col-12">
<q-toolbar style="padding: 0px">
<!-- :min-date="date" -->
<datepicker
menu-class-name="modalfix"
v-model="date"
@ -489,7 +490,6 @@ onMounted(async () => {
borderless
:enableTimePicker="false"
week-start="0"
:min-date="date"
>
<template #year="{ year }">
{{ year + 543 }}