step2 ถ้าไม่ได้กรอก เงิน บันทึกส่ง 0

This commit is contained in:
setthawutttty 2023-09-04 11:34:21 +07:00
parent 50a4a8d182
commit 101158d6a1
3 changed files with 19 additions and 12 deletions

View file

@ -80,7 +80,7 @@ const columns = ref<QTableProps["columns"]>([
align: "center",
label: "สถานะราชกิจจานุเบกษา",
sortable: true,
field: "institution",
field: "statusRoyal",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
sort: (a: string, b: string) =>
@ -110,8 +110,11 @@ const fetchData = async () => {
period_end: e.period_end == null ? null : date2Thai(new Date(e.period_end)),
period_isActive: e.period_isActive,
period_doc: e.period_doc,
period_status: e.period_status.result
})
);
console.log(rows.value)
})
.catch((e) => {
messageError($q, e);
@ -122,7 +125,7 @@ const fetchData = async () => {
};
const clickEdit = (col: any) => {
router.push(`/insignia/round-add/${col.id}`);
router.push(`/insignia/round-add/${col.period_id}`);
};
const clickDelete = (id: string) => {
@ -301,7 +304,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
<q-td key="period_end" :props="props" @click="clickEdit(props.row)">
{{ props.row.period_end }}
</q-td>
<q-td key="status" :props="props" @click="clickEdit(props.row)">
<q-td key="period_isActive" :props="props" @click="clickEdit(props.row)">
<q-icon
v-if="props.row.period_isActive == true"
name="mdi-close"