no message
This commit is contained in:
parent
ea91acf18a
commit
9693c689e6
8 changed files with 42 additions and 39 deletions
|
|
@ -207,7 +207,7 @@
|
|||
lazy-rules
|
||||
:borderless="!edit"
|
||||
:model-value="
|
||||
refCommandDate == null ? null : date2Thai(refCommandDate)
|
||||
refCommandDate == null ? null : date2Thai(refCommandDate as Date)
|
||||
"
|
||||
hide-bottom-space
|
||||
:label="`${'เอกสารอ้างอิง (ลงวันที่)'}`"
|
||||
|
|
@ -333,7 +333,7 @@ const date = ref<Date>(new Date());
|
|||
const detail = ref<string>();
|
||||
const reference = ref<string>();
|
||||
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
|
||||
|
|
@ -358,7 +358,7 @@ const filter = ref<string>(""); //search data table
|
|||
const visibleColumns = ref<String[]>([]);
|
||||
const inputDate = ref<string>("");
|
||||
const inputDateRefCommandDate = ref<string>(
|
||||
refCommandDate.value ? convertDateDisplay(refCommandDate.value) : ""
|
||||
refCommandDate.value ? convertDateDisplay(refCommandDate.value as Date) : ""
|
||||
);
|
||||
|
||||
const dayChecked = ref<boolean>(false);
|
||||
|
|
@ -567,6 +567,7 @@ const fetchData = async () => {
|
|||
.get(config.API.profileNopaidId(profileId.value))
|
||||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
console.log(data)
|
||||
rows.value = [];
|
||||
data.map((e: ResponseObject) => {
|
||||
rows.value.push({
|
||||
|
|
@ -574,9 +575,9 @@ const fetchData = async () => {
|
|||
date: new Date(e.date),
|
||||
detail: e.detail,
|
||||
reference: e.reference,
|
||||
refCommandNo: e.refCommandNo,
|
||||
refCommandNo: e.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),
|
||||
});
|
||||
|
|
@ -685,7 +686,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, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
@ -713,7 +714,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, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
@ -800,7 +801,7 @@ const selectData = async (props: DataProps) => {
|
|||
|
||||
inputDate.value = convertDateDisplay(date.value);
|
||||
inputDateRefCommandDate.value = refCommandDate.value
|
||||
? convertDateDisplay(refCommandDate.value)
|
||||
? convertDateDisplay(refCommandDate.value as Date)
|
||||
: "";
|
||||
await checkRowPage();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue