Merge branch 'devTee' into develop

This commit is contained in:
STW_TTTY\stwtt 2024-07-08 22:21:01 +07:00
commit b115e33232

View file

@ -421,18 +421,17 @@ function closePassaway() {
dialogPassaway.value = false;
}
async function clickSaveDeceased() {
const formData = new FormData();
formData.append("File", filePassaway.value);
formData.append("Number", deathCertificateNo.value);
formData.append("Date", dateToISO(dateDeath.value));
formData.append("Location", placeDeathCertificate.value);
formData.append("Reason", reasonDeath.value);
formData.append("ProfileId", profileId.value);
dialogConfirm($q, () => {
function clickSaveDeceased() {
dialogConfirm($q, async () => {
showLoader();
http
const formData = new FormData();
formData.append("File", filePassaway.value);
formData.append("Number", deathCertificateNo.value);
formData.append("Date", dateToISO(dateDeath.value));
formData.append("Location", placeDeathCertificate.value);
formData.append("Reason", reasonDeath.value);
formData.append("ProfileId", profileId.value);
await http
.post(config.API.listDeceased(), formData)
.then(() => {
success($q, "บันทึกข้อมูลสำเร็จ");
@ -740,7 +739,7 @@ onMounted(async () => {
<q-separator />
</q-card>
<!-- <q-card>
<!-- <q-card>
<div class="column" style="height: 120px">
<div class="col row items-center">
<div class="row col-12">