Files
logapi_nuxt/.output/server/chunks/build/index2-DnQNgtip.mjs
2025-09-10 11:05:34 +07:00

1066 lines
70 KiB
JavaScript

import { ref, reactive, withCtx, unref, createVNode, createTextVNode, withModifiers, isRef, openBlock, createBlock, Fragment, renderList, toDisplayString, useSSRContext } from 'vue';
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrInterpolate } from 'vue/server-renderer';
import { s as storeToRefs, h as VApp, i as VMain, g as VTextField, e as VBtn } from './server.mjs';
import { a as useDataKunjunganPasien } from './users-C6PO6aD7.mjs';
import { c as VContainer, V as VCard, d as VRow, e as VCol } from './VCard-BaBxGxNH.mjs';
import { V as VForm } from './VForm-C-FITV-x.mjs';
import { V as VDataTable } from './VDataTable-CPlx4hZ9.mjs';
import '../_/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:fs';
import 'node:url';
import '@iconify/utils';
import 'consola/core';
import '../routes/renderer.mjs';
import 'vue-bundle-renderer/runtime';
import 'devalue';
import '@unhead/ssr';
import 'unhead';
import '@unhead/shared';
import 'vue-router';
import '@iconify/vue';
const _sfc_main = {
__name: "index2",
__ssrInlineRender: true,
setup(__props) {
const search = ref("");
const today = /* @__PURE__ */ new Date();
const date = today.getFullYear() + "-" + (today.getMonth() + 1) + "-" + today.getDate();
console.log("DATE : ", date);
const headers = [
{
align: "start",
key: "name",
sortable: false
},
{ key: "tanggalmasukkunjungan", title: "Tanggal Masuk" },
{ key: "jammasukkunjungan", title: "Jam Masuk" },
{ key: "nomr", title: "Nomer Rekam Medik" },
{ key: "namalengkap", title: "Nama" },
{ key: "umur", title: "Umur" },
{ key: "jeniskelamin", title: "Jenis Kelamin" },
{ key: "namaruang", title: "Ruang" },
{ key: "namalengkapdokter", title: "Dpjp" }
];
const reqtanggalkunjungan = reactive({
tanggalawal: "2024-12-16",
tanggalakhir: date
});
const { dataKunjunganPasien } = storeToRefs(useDataKunjunganPasien());
const { loadDataKunjunganPasien } = useDataKunjunganPasien();
const get_data = async () => {
loadDataKunjunganPasien(reqtanggalkunjungan);
console.log("DATA", dataKunjunganPasien);
};
return (_ctx, _push, _parent, _attrs) => {
_push(`<div${ssrRenderAttrs(_attrs)}>`);
_push(ssrRenderComponent(VApp, null, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(ssrRenderComponent(VMain, null, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(VContainer, null, {
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
if (_push4) {
_push4(ssrRenderComponent(VCard, {
title: "List Kunjungan Pasien",
flat: ""
}, {
text: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(ssrRenderComponent(VRow, null, {
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
if (_push6) {
_push6(ssrRenderComponent(VCol, null, {
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
if (_push7) {
_push7(`<div class="border-thin"${_scopeId6}>`);
_push7(ssrRenderComponent(VForm, { onSubmit: get_data }, {
default: withCtx((_7, _push8, _parent8, _scopeId7) => {
if (_push8) {
_push8(ssrRenderComponent(VContainer, null, {
default: withCtx((_8, _push9, _parent9, _scopeId8) => {
if (_push9) {
_push9(ssrRenderComponent(VRow, null, {
default: withCtx((_9, _push10, _parent10, _scopeId9) => {
if (_push10) {
_push10(ssrRenderComponent(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx((_10, _push11, _parent11, _scopeId10) => {
if (_push11) {
_push11(ssrRenderComponent(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, _parent11, _scopeId10));
} else {
return [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
];
}
}),
_: 1
}, _parent10, _scopeId9));
_push10(ssrRenderComponent(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx((_10, _push11, _parent11, _scopeId10) => {
if (_push11) {
_push11(ssrRenderComponent(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, _parent11, _scopeId10));
} else {
return [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
];
}
}),
_: 1
}, _parent10, _scopeId9));
} else {
return [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
];
}
}),
_: 1
}, _parent9, _scopeId8));
_push9(ssrRenderComponent(VRow, null, null, _parent9, _scopeId8));
_push9(ssrRenderComponent(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx((_9, _push10, _parent10, _scopeId9) => {
if (_push10) {
_push10(` C A R I `);
} else {
return [
createTextVNode(" C A R I ")
];
}
}),
_: 1
}, _parent9, _scopeId8));
} else {
return [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
];
}
}),
_: 1
}, _parent8, _scopeId7));
} else {
return [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent7, _scopeId6));
_push7(`</div>`);
} else {
return [
createVNode("div", { class: "border-thin" }, [
createVNode(VForm, {
onSubmit: withModifiers(get_data, ["prevent"])
}, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
])
];
}
}),
_: 1
}, _parent6, _scopeId5));
} else {
return [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("div", { class: "border-thin" }, [
createVNode(VForm, {
onSubmit: withModifiers(get_data, ["prevent"])
}, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
])
]),
_: 1
})
];
}
}),
_: 1
}, _parent5, _scopeId4));
_push5(ssrRenderComponent(VRow, null, {
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
if (_push6) {
_push6(ssrRenderComponent(VTextField, {
modelValue: unref(search),
"onUpdate:modelValue": ($event) => isRef(search) ? search.value = $event : null,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1"
}, null, _parent6, _scopeId5));
} else {
return [
createVNode(VTextField, {
modelValue: unref(search),
"onUpdate:modelValue": ($event) => isRef(search) ? search.value = $event : null,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
];
}
}),
_: 1
}, _parent5, _scopeId4));
} else {
return [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("div", { class: "border-thin" }, [
createVNode(VForm, {
onSubmit: withModifiers(get_data, ["prevent"])
}, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(search),
"onUpdate:modelValue": ($event) => isRef(search) ? search.value = $event : null,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
];
}
}),
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(ssrRenderComponent(VDataTable, {
headers,
items: unref(dataKunjunganPasien),
search: unref(search),
"hide-default-header": ""
}, {
body: withCtx(({ items }, _push6, _parent6, _scopeId5) => {
if (_push6) {
_push6(`<tr${_scopeId5}><th${_scopeId5}>Tanggal Masuk</th><th${_scopeId5}>Jam Masuk</th><th${_scopeId5}>No Rm</th><th${_scopeId5}>Nama</th><th${_scopeId5}>Umur</th><th${_scopeId5}>Jenis Kelamin</th><th${_scopeId5}> Ruang </th><th${_scopeId5}> DPJP </th></tr><!--[-->`);
ssrRenderList(items, (item, index) => {
_push6(`<tr${_scopeId5}>`);
if (index === 0 || item.tanggalmasukkunjungan !== items[index - 1].tanggalmasukkunjungan) {
_push6(`<td${_scopeId5}>${ssrInterpolate(item.tanggalmasukkunjungan)}</td>`);
} else {
_push6(`<td${_scopeId5}></td>`);
}
_push6(`<td${_scopeId5}>${ssrInterpolate(item.jammasukkunjungan)}</td><td${_scopeId5}>${ssrInterpolate(item.nomr)}</td><td${_scopeId5}>${ssrInterpolate(item.namalengkap)}</td><td${_scopeId5}>${ssrInterpolate(item.umur)} Tahun</td><td${_scopeId5}>${ssrInterpolate(item.jeniskelamin)}</td><td${_scopeId5}>${ssrInterpolate(item.namaruang)}</td><td${_scopeId5}>${ssrInterpolate(item.namalengkapdokter)}</td></tr>`);
});
_push6(`<!--]-->`);
} else {
return [
createVNode("tr", null, [
createVNode("th", null, "Tanggal Masuk"),
createVNode("th", null, "Jam Masuk"),
createVNode("th", null, "No Rm"),
createVNode("th", null, "Nama"),
createVNode("th", null, "Umur"),
createVNode("th", null, "Jenis Kelamin"),
createVNode("th", null, " Ruang "),
createVNode("th", null, " DPJP ")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.tanggalmasukkunjungan !== items[index - 1].tanggalmasukkunjungan ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.tanggalmasukkunjungan), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.jammasukkunjungan), 1),
createVNode("td", null, toDisplayString(item.nomr), 1),
createVNode("td", null, toDisplayString(item.namalengkap), 1),
createVNode("td", null, toDisplayString(item.umur) + " Tahun", 1),
createVNode("td", null, toDisplayString(item.jeniskelamin), 1),
createVNode("td", null, toDisplayString(item.namaruang), 1),
createVNode("td", null, toDisplayString(item.namalengkapdokter), 1)
]);
}), 128))
];
}
}),
_: 1
}, _parent5, _scopeId4));
} else {
return [
createVNode(VDataTable, {
headers,
items: unref(dataKunjunganPasien),
search: unref(search),
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Tanggal Masuk"),
createVNode("th", null, "Jam Masuk"),
createVNode("th", null, "No Rm"),
createVNode("th", null, "Nama"),
createVNode("th", null, "Umur"),
createVNode("th", null, "Jenis Kelamin"),
createVNode("th", null, " Ruang "),
createVNode("th", null, " DPJP ")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.tanggalmasukkunjungan !== items[index - 1].tanggalmasukkunjungan ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.tanggalmasukkunjungan), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.jammasukkunjungan), 1),
createVNode("td", null, toDisplayString(item.nomr), 1),
createVNode("td", null, toDisplayString(item.namalengkap), 1),
createVNode("td", null, toDisplayString(item.umur) + " Tahun", 1),
createVNode("td", null, toDisplayString(item.jeniskelamin), 1),
createVNode("td", null, toDisplayString(item.namaruang), 1),
createVNode("td", null, toDisplayString(item.namalengkapdokter), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
];
}
}),
_: 1
}, _parent4, _scopeId3));
} else {
return [
createVNode(VCard, {
title: "List Kunjungan Pasien",
flat: ""
}, {
text: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("div", { class: "border-thin" }, [
createVNode(VForm, {
onSubmit: withModifiers(get_data, ["prevent"])
}, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(search),
"onUpdate:modelValue": ($event) => isRef(search) ? search.value = $event : null,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
default: withCtx(() => [
createVNode(VDataTable, {
headers,
items: unref(dataKunjunganPasien),
search: unref(search),
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Tanggal Masuk"),
createVNode("th", null, "Jam Masuk"),
createVNode("th", null, "No Rm"),
createVNode("th", null, "Nama"),
createVNode("th", null, "Umur"),
createVNode("th", null, "Jenis Kelamin"),
createVNode("th", null, " Ruang "),
createVNode("th", null, " DPJP ")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.tanggalmasukkunjungan !== items[index - 1].tanggalmasukkunjungan ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.tanggalmasukkunjungan), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.jammasukkunjungan), 1),
createVNode("td", null, toDisplayString(item.nomr), 1),
createVNode("td", null, toDisplayString(item.namalengkap), 1),
createVNode("td", null, toDisplayString(item.umur) + " Tahun", 1),
createVNode("td", null, toDisplayString(item.jeniskelamin), 1),
createVNode("td", null, toDisplayString(item.namaruang), 1),
createVNode("td", null, toDisplayString(item.namalengkapdokter), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
]),
_: 1
})
];
}
}),
_: 1
}, _parent3, _scopeId2));
} else {
return [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VCard, {
title: "List Kunjungan Pasien",
flat: ""
}, {
text: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("div", { class: "border-thin" }, [
createVNode(VForm, {
onSubmit: withModifiers(get_data, ["prevent"])
}, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(search),
"onUpdate:modelValue": ($event) => isRef(search) ? search.value = $event : null,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
default: withCtx(() => [
createVNode(VDataTable, {
headers,
items: unref(dataKunjunganPasien),
search: unref(search),
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Tanggal Masuk"),
createVNode("th", null, "Jam Masuk"),
createVNode("th", null, "No Rm"),
createVNode("th", null, "Nama"),
createVNode("th", null, "Umur"),
createVNode("th", null, "Jenis Kelamin"),
createVNode("th", null, " Ruang "),
createVNode("th", null, " DPJP ")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.tanggalmasukkunjungan !== items[index - 1].tanggalmasukkunjungan ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.tanggalmasukkunjungan), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.jammasukkunjungan), 1),
createVNode("td", null, toDisplayString(item.nomr), 1),
createVNode("td", null, toDisplayString(item.namalengkap), 1),
createVNode("td", null, toDisplayString(item.umur) + " Tahun", 1),
createVNode("td", null, toDisplayString(item.jeniskelamin), 1),
createVNode("td", null, toDisplayString(item.namaruang), 1),
createVNode("td", null, toDisplayString(item.namalengkapdokter), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent2, _scopeId));
} else {
return [
createVNode(VMain, null, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VCard, {
title: "List Kunjungan Pasien",
flat: ""
}, {
text: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, null, {
default: withCtx(() => [
createVNode("div", { class: "border-thin" }, [
createVNode(VForm, {
onSubmit: withModifiers(get_data, ["prevent"])
}, {
default: withCtx(() => [
createVNode(VContainer, null, {
default: withCtx(() => [
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalawal,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalawal = $event,
label: "Tanggal Awal",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
}),
createVNode(VCol, {
cols: "12",
md: "6"
}, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(reqtanggalkunjungan).tanggalakhir,
"onUpdate:modelValue": ($event) => unref(reqtanggalkunjungan).tanggalakhir = $event,
label: "Tanggal Akhir",
type: "date"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow),
createVNode(VBtn, {
class: "mb-5",
variant: "tonal",
type: "submit"
}, {
default: withCtx(() => [
createTextVNode(" C A R I ")
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
])
]),
_: 1
})
]),
_: 1
}),
createVNode(VRow, null, {
default: withCtx(() => [
createVNode(VTextField, {
modelValue: unref(search),
"onUpdate:modelValue": ($event) => isRef(search) ? search.value = $event : null,
label: "Search",
"prepend-inner-icon": "mdi-magnify",
variant: "outlined",
"hide-details": "",
"single-line": "",
class: "rounded elevation-1"
}, null, 8, ["modelValue", "onUpdate:modelValue"])
]),
_: 1
})
]),
default: withCtx(() => [
createVNode(VDataTable, {
headers,
items: unref(dataKunjunganPasien),
search: unref(search),
"hide-default-header": ""
}, {
body: withCtx(({ items }) => [
createVNode("tr", null, [
createVNode("th", null, "Tanggal Masuk"),
createVNode("th", null, "Jam Masuk"),
createVNode("th", null, "No Rm"),
createVNode("th", null, "Nama"),
createVNode("th", null, "Umur"),
createVNode("th", null, "Jenis Kelamin"),
createVNode("th", null, " Ruang "),
createVNode("th", null, " DPJP ")
]),
(openBlock(true), createBlock(Fragment, null, renderList(items, (item, index) => {
return openBlock(), createBlock("tr", { key: index }, [
index === 0 || item.tanggalmasukkunjungan !== items[index - 1].tanggalmasukkunjungan ? (openBlock(), createBlock("td", { key: 0 }, toDisplayString(item.tanggalmasukkunjungan), 1)) : (openBlock(), createBlock("td", { key: 1 })),
createVNode("td", null, toDisplayString(item.jammasukkunjungan), 1),
createVNode("td", null, toDisplayString(item.nomr), 1),
createVNode("td", null, toDisplayString(item.namalengkap), 1),
createVNode("td", null, toDisplayString(item.umur) + " Tahun", 1),
createVNode("td", null, toDisplayString(item.jeniskelamin), 1),
createVNode("td", null, toDisplayString(item.namaruang), 1),
createVNode("td", null, toDisplayString(item.namalengkapdokter), 1)
]);
}), 128))
]),
_: 1
}, 8, ["items", "search"])
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent));
_push(`</div>`);
};
}
};
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
const ssrContext = useSSRContext();
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/satu_rssa/kunjungan_pasien/index2.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export { _sfc_main as default };
//# sourceMappingURL=index2-DnQNgtip.mjs.map