prework x

This commit is contained in:
mahdahar 2025-12-01 06:32:22 +07:00
parent c69043cfbf
commit e8849e20d0
2 changed files with 19 additions and 1 deletions

View File

@ -3,6 +3,13 @@
<div class="modal-box w-2/3 max-w-5xl">
<p class='text-right'><button class="btn btn-xs btn-neutral" @click="closeSampleDialog()">X</button></p>
<div class="table">
<table>
<tr>
<td>Patient Name </td> <td x-text="':'+item.PatName"></td>
</tr>
</table>
</div>
</div>
</dialog>

View File

@ -209,7 +209,10 @@
return data;
},
// sample dialog
/*
sample dialog
*/
item : [],
isDialogSampleOpen : false,
openSampleDialog (accessnumber) {
@ -220,6 +223,14 @@
this.isDialogSampleOpen = false;
},
fetchItem(accessnumber){
this.item = [];
fetch(`${BASEURL}/api/request/${accessnumber}`, { method: 'GET', headers: {'Content-Type': 'application/json'}})
.then(res => res.json()).then(data => {
this.item = data.data ?? [];
});
},
}));
});