fix ทะเบียนประวัติ
This commit is contained in:
parent
a31a388481
commit
078ff1840e
3 changed files with 11 additions and 11 deletions
|
|
@ -301,7 +301,7 @@ const historyColumns = ref<QTableProps["columns"]>([
|
|||
sortable: true,
|
||||
field: "endDate",
|
||||
format(val, row) {
|
||||
row.isDate
|
||||
return row.isDate
|
||||
? date2Thai(row.endDate)
|
||||
: new Date(row.endDate).getFullYear() + 543;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -677,7 +677,6 @@ onMounted(() => {
|
|||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<span class="text-weight-medium">{{ col.label }}</span>
|
||||
</q-th>
|
||||
<q-th auto-width />
|
||||
</q-tr>
|
||||
</template>
|
||||
<template v-slot:body="props" v-if="mode === 'table'">
|
||||
|
|
@ -685,7 +684,6 @@ onMounted(() => {
|
|||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<div>{{ col.value ? col.value : "-" }}</div>
|
||||
</q-td>
|
||||
<q-td auto-width> </q-td>
|
||||
</q-tr>
|
||||
</template>
|
||||
</d-table>
|
||||
|
|
|
|||
|
|
@ -497,6 +497,11 @@ function appointPost() {
|
|||
*/
|
||||
function clickPassaway() {
|
||||
dialogPassaway.value = true;
|
||||
filePassaway.value = null;
|
||||
deathCertificateNo.value = "";
|
||||
dateDeath.value = new Date();
|
||||
placeDeathCertificate.value = "";
|
||||
reasonDeath.value = "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1003,7 +1008,7 @@ onMounted(async () => {
|
|||
<q-separator />
|
||||
<q-card-section class="q-pa-md row q-col-gutter-sm">
|
||||
<q-file
|
||||
class="col-12 col-sm-6 col-md-5"
|
||||
class="col-12 col-sm-6 col-md-5 inputgreen"
|
||||
outlined
|
||||
dense
|
||||
v-model="filePassaway"
|
||||
|
|
@ -1018,7 +1023,7 @@ onMounted(async () => {
|
|||
</template>
|
||||
</q-file>
|
||||
<q-input
|
||||
class="col-12 col-sm-6 col-md-7"
|
||||
class="col-12 col-sm-6 col-md-7 inputgreen"
|
||||
dense
|
||||
outlined
|
||||
v-model="deathCertificateNo"
|
||||
|
|
@ -1026,7 +1031,7 @@ onMounted(async () => {
|
|||
/>
|
||||
|
||||
<datepicker
|
||||
class="col-12 col-sm-6 col-md-5"
|
||||
class="col-12 col-sm-6 col-md-5 inputgreen"
|
||||
menu-class-name="modalfix"
|
||||
v-model="dateDeath"
|
||||
:locale="'th'"
|
||||
|
|
@ -1064,14 +1069,14 @@ onMounted(async () => {
|
|||
</datepicker>
|
||||
|
||||
<q-input
|
||||
class="col-12 col-sm-6 col-md-7"
|
||||
class="col-12 col-sm-6 col-md-7 inputgreen"
|
||||
dense
|
||||
outlined
|
||||
v-model="placeDeathCertificate"
|
||||
label="สถานที่ออกใบมรณบัตร"
|
||||
/>
|
||||
<q-input
|
||||
class="col-12"
|
||||
class="col-12 inputgreen"
|
||||
dense
|
||||
outlined
|
||||
v-model="reasonDeath"
|
||||
|
|
@ -1083,11 +1088,8 @@ onMounted(async () => {
|
|||
<q-separator />
|
||||
<q-card-actions align="right">
|
||||
<q-btn
|
||||
unelevated
|
||||
label="บันทึก"
|
||||
dense
|
||||
color="public"
|
||||
class="q-px-md"
|
||||
@click="clickSaveDeceased"
|
||||
:disable="
|
||||
filePassaway === null ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue