fix ทะเบียน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-19 10:09:09 +07:00
parent b0c67c3f01
commit 9f6c33ee54
2 changed files with 5 additions and 10 deletions

View file

@ -178,7 +178,7 @@ const baseColumns = ref<QTableColumn[]>([
field: "commandNo",
format(val, row) {
return row.commandNo && row.commandYear
? `${row.commandNo}/${row.commandYear}`
? `${row.commandNo}/${Number(row.commandYear) + 543}`
: "";
},
headerStyle: "font-size: 14px",
@ -929,7 +929,7 @@ onMounted(async () => {
:class="props.row.isEntry ? 'text-red' : ''"
>
<div
v-if="col.name == 'refCommandNo' && props.row.commandId"
v-if="col.name == 'commandNo' && props.row.commandId"
@click="col.value ? onRefCommand(props.row) : null"
:class="
col.value
@ -940,9 +940,6 @@ onMounted(async () => {
{{ col.value ? col.value : "-" }}
<q-tooltip v-if="col.value">ดูคำสั่ง</q-tooltip>
</div>
<div v-else-if="col.name == 'refCommandNo' && !props.row.commandId">
-
</div>
<div v-else-if="col.name == 'organization'" class="table_ellipsis">
{{ col.value ? col.value : "-" }}

View file

@ -211,7 +211,7 @@ const baseColumns = ref<QTableColumn[]>([
field: "commandNo",
format(val, row) {
return row.commandNo && row.commandYear
? `${row.commandNo}/${row.commandYear}`
? `${row.commandNo}/${Number(row.commandYear) + 543}`
: "";
},
headerStyle: "font-size: 14px",
@ -897,7 +897,7 @@ onMounted(async () => {
:class="props.row.isEntry ? 'text-red' : ''"
>
<div
v-if="col.name == 'refCommandNo' && props.row.commandId"
v-if="col.name == 'commandNo' && props.row.commandId"
@click="col.value ? onRefCommand(props.row) : null"
:class="
col.value
@ -908,9 +908,7 @@ onMounted(async () => {
{{ col.value ? col.value : "-" }}
<q-tooltip v-if="col.value">ดูคำสั่ง</q-tooltip>
</div>
<div v-else-if="col.name == 'refCommandNo' && !props.row.commandId">
-
</div>
<div v-else-if="col.name == 'organization'" class="table_ellipsis">
{{ col.value ? col.value : "-" }}
</div>