no message
This commit is contained in:
parent
ea91acf18a
commit
9693c689e6
8 changed files with 42 additions and 39 deletions
|
|
@ -265,7 +265,7 @@
|
|||
lazy-rules
|
||||
:borderless="!edit"
|
||||
:model-value="
|
||||
refCommandDate == null ? null : date2Thai(refCommandDate)
|
||||
refCommandDate == null ? null : date2Thai(refCommandDate as Date)
|
||||
"
|
||||
hide-bottom-space
|
||||
:label="`${'เอกสารอ้างอิง (ลงวันที่)'}`"
|
||||
|
|
@ -395,7 +395,7 @@ const detail = ref<string>();
|
|||
const reference = ref<string>();
|
||||
const minDate = ref<Date>();
|
||||
const refCommandNo = ref<string>();
|
||||
const refCommandDate = ref<Date | null>(new Date());
|
||||
const refCommandDate = ref<Date | null|string>(new Date());
|
||||
const myForm = ref<any>(); //form data input
|
||||
const edit = ref<boolean>(false); //เช็คการกดปุ่มแก้ไขใน dialog
|
||||
const modal = ref<boolean>(false); //modal add detail
|
||||
|
|
@ -681,7 +681,7 @@ const fetchData = async () => {
|
|||
reference: e.reference,
|
||||
refCommandNo: e.refCommandNo,
|
||||
refCommandDate:
|
||||
e.refCommandDate == null ? null : new Date(e.refCommandDate),
|
||||
e.refCommandDate == null ? '-' : new Date(e.refCommandDate),
|
||||
createdFullName: e.createdFullName,
|
||||
createdAt: new Date(e.createdAt),
|
||||
});
|
||||
|
|
@ -726,7 +726,7 @@ const getData = () => {
|
|||
detail.value = row.detail;
|
||||
reference.value = row.reference;
|
||||
refCommandNo.value = row.refCommandNo;
|
||||
refCommandDate.value = row.refCommandDate;
|
||||
refCommandDate.value = row.refCommandDate == '-' ? '':row.refCommandDate as Date;
|
||||
id.value = row.id;
|
||||
};
|
||||
|
||||
|
|
@ -792,7 +792,7 @@ const saveData = async () => {
|
|||
reference: reference.value,
|
||||
refCommandNo: refCommandNo.value,
|
||||
refCommandDate:
|
||||
refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
|
||||
refCommandDate.value == null ? null : dateToISO(refCommandDate.value as Date),
|
||||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
@ -821,7 +821,7 @@ const editData = async () => {
|
|||
reference: reference.value,
|
||||
refCommandNo: refCommandNo.value,
|
||||
refCommandDate:
|
||||
refCommandDate.value == null ? null : dateToISO(refCommandDate.value),
|
||||
refCommandDate.value == null ? null : dateToISO(refCommandDate.value as Date),
|
||||
})
|
||||
.then((res) => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
@ -904,13 +904,13 @@ const selectData = async (props: DataProps) => {
|
|||
detail.value = props.row.detail;
|
||||
reference.value = props.row.reference;
|
||||
refCommandNo.value = props.row.refCommandNo;
|
||||
refCommandDate.value = props.row.refCommandDate;
|
||||
refCommandDate.value = props.row.refCommandDate =='-' ? '':props.row.refCommandDate as Date;
|
||||
id.value = props.row.id;
|
||||
|
||||
inputDateStart.value = convertDateDisplay(dateStart.value);
|
||||
inputDateEnd.value = convertDateDisplay(dateEnd.value);
|
||||
inputRefCommandDate.value = refCommandDate.value
|
||||
? convertDateDisplay(refCommandDate.value)
|
||||
? convertDateDisplay(refCommandDate.value as Date)
|
||||
: "";
|
||||
await checkRowPage();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue