diff --git a/src/modules/04_registry/components/Coin.vue b/src/modules/04_registry/components/Coin.vue
index 96b5f8a5f..76a964ffa 100644
--- a/src/modules/04_registry/components/Coin.vue
+++ b/src/modules/04_registry/components/Coin.vue
@@ -28,7 +28,7 @@ a
>
{{
- props.row.isDate == "true"
+ props.row.isDate == true
? date2Thai(props.row.issueDate2)
: col.value + 543
}}
@@ -149,6 +149,7 @@ a
:model-value="issueDate + 543"
hide-bottom-space
:label="`${'วันที่ได้รับ'}`"
+ :readonly="!edit"
>
{
* กดบันทึกใน dialog
*/
const clickSave = async () => {
+ if (inputDateRef.value.length != 0 && inputDateRef.value.length != 10) {
+ dayCheckedRef.value = true;
+ return "";
+ }
myForm.value.validate().then(async (result: boolean) => {
if (result) {
if (modalEdit.value) {
@@ -918,8 +928,9 @@ const selectData = async (props: any) => {
id.value = props.row.id;
inputYear.value = props.row.issueDate + 543;
inputDate.value = convertDateDisplay(props.row.issueDate2);
- inputDateRef.value = convertDateDisplay(props.row.refCommandDate);
-
+ inputDateRef.value = props.row.refCommandDate
+ ? convertDateDisplay(props.row.refCommandDate)
+ : "";
await checkRowPage();
};