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"> <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> <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> </div>
</dialog> </dialog>

View File

@ -209,7 +209,10 @@
return data; return data;
}, },
// sample dialog /*
sample dialog
*/
item : [],
isDialogSampleOpen : false, isDialogSampleOpen : false,
openSampleDialog (accessnumber) { openSampleDialog (accessnumber) {
@ -220,6 +223,14 @@
this.isDialogSampleOpen = false; 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 ?? [];
});
},
})); }));
}); });