Compare commits
4 Commits
adib/works
...
087bb1dc47
| Author | SHA1 | Date | |
|---|---|---|---|
| 087bb1dc47 | |||
| b5babbfeac | |||
| 1af1c13308 | |||
| e423fc3cca |
@@ -7,7 +7,7 @@
|
||||
</v-list-item>
|
||||
<!-- LEVEL 0 -->
|
||||
<template v-for="(lev_0, i) in level_0" :key="lev_0.id" >
|
||||
<v-list-item v-if="!level_1['p_' + lev_0.id] && lev_0.is_parent === 'N'" @click="goto(lev_0.url)" color="primary" rounded="lg" class="my-2">
|
||||
<v-list-item v-if="!level_1['p_' + lev_0.id] && lev_0.is_parent === 'N'" @click="goto(lev_0)" color="primary" rounded="lg" class="my-2">
|
||||
<v-list-item-title >{{ lev_0.name }}</v-list-item-title>
|
||||
</v-list-item>
|
||||
<v-list-group v-else :value="lev_0.name" >
|
||||
@@ -18,7 +18,7 @@
|
||||
</template>
|
||||
<!-- LEVEL 1 -->
|
||||
<template v-for="(lev_1, j) in level_1['p_' + lev_0.id]" :key="lev_1.id">
|
||||
<v-list-item v-if="!level_2['p_' + lev_1.id] && lev_1.is_parent === 'N'" @click="goto(lev_1.url)" color="primary" rounded="lg" class="{'primary--text': activeItem === lev_2.id}">
|
||||
<v-list-item v-if="!level_2['p_' + lev_1.id] && lev_1.is_parent === 'N'" @click="goto(lev_1)" color="primary" rounded="lg" class="{'primary--text': activeItem === lev_2.id}">
|
||||
<v-list-item-title><v-icon>mdi-circle-small</v-icon>{{ lev_1.name }}</v-list-item-title>
|
||||
</v-list-item>
|
||||
<v-list-group v-else :value="lev_1.state" v-show="level_2['p_' + lev_1.id]" sub-group no-action >
|
||||
@@ -29,7 +29,7 @@
|
||||
</template>
|
||||
<!-- LEVEL 2 -->
|
||||
<template v-for="(lev_2, k) in level_2['p_' + lev_1.id]" :key="lev_2.id">
|
||||
<v-list-item class="" @click="goto(lev_2.url)" color="primary" rounded="lg">
|
||||
<v-list-item class="" @click="goto(lev_2)" color="primary" rounded="lg">
|
||||
<v-list-item-title><v-icon>mdi-circle-small</v-icon>{{ lev_2.name }}</v-list-item-title>
|
||||
</v-list-item>
|
||||
</template>
|
||||
@@ -73,10 +73,19 @@ export default {
|
||||
this.$store.commit("system/update_drawer", val);
|
||||
},
|
||||
},
|
||||
active_menu: {
|
||||
get() {
|
||||
return this.$store.state.system.active_menu;
|
||||
},
|
||||
set(menu) {
|
||||
this.$store.commit("system/update_active_menu", menu);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goto(url) {
|
||||
console.log("menuju ke- ", url)
|
||||
goto(item) {
|
||||
console.log("menuju ke- ", item.url);
|
||||
this.active_menu = item;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -19,8 +19,7 @@ export default {
|
||||
"one-menu": MenuComponent,
|
||||
},
|
||||
mounted() {
|
||||
console.log("drawer");
|
||||
console.log(this.$store.state.system.drawer);
|
||||
// console.log(this.$store.state.system.drawer);
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
|
||||
50
globalcomponent/quick-menu.vue
Normal file
50
globalcomponent/quick-menu.vue
Normal file
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<div class="rounded-xl bg-primary-lighten mx-2 my-2">
|
||||
<v-container fluid style="overflow-x: auto; white-space: nowrap">
|
||||
<v-btn
|
||||
class="mr-2"
|
||||
size="small"
|
||||
:variant="active_menu.id === qmenu.id ? 'elevated' : 'outlined'"
|
||||
rounded="xl"
|
||||
color="primary-darken"
|
||||
v-for="qmenu in qmenus"
|
||||
@click="redirect(qmenu)"
|
||||
>
|
||||
{{ qmenu.name }}
|
||||
</v-btn>
|
||||
</v-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script type="module">
|
||||
export default {
|
||||
name: "QuickAccessComponent",
|
||||
mounted() {
|
||||
this.$store.dispatch('system/loadQuickMenu');
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
pressed: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
qmenus() {
|
||||
return this.$store.state.system.quick_menu;
|
||||
},
|
||||
active_menu: {
|
||||
get() {
|
||||
return this.$store.state.system.active_menu;
|
||||
},
|
||||
set(menu) {
|
||||
this.$store.commit("system/update_active_menu", menu);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
redirect(item) {
|
||||
this.active_menu = item;
|
||||
console.log("redirect url ", item.url);
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
@@ -8,7 +8,9 @@ const store = {
|
||||
menu_level_0: [],
|
||||
menu_level_1: [],
|
||||
menu_level_2: [],
|
||||
drawer: true,
|
||||
quick_menu: [],
|
||||
active_menu: {},
|
||||
drawer: false,
|
||||
bread_crumb: "",
|
||||
search_error_message: "",
|
||||
branch: {},
|
||||
@@ -44,6 +46,12 @@ const store = {
|
||||
update_drawer(state, payload) {
|
||||
state.drawer = payload;
|
||||
},
|
||||
update_quick_menu(state, data) {
|
||||
state.quick_menu = data;
|
||||
},
|
||||
update_active_menu(state, data) {
|
||||
state.active_menu = data;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async loadMenuData(context) {
|
||||
@@ -67,7 +75,6 @@ const store = {
|
||||
context.commit("update_search_error_message", resp.message)
|
||||
} else {
|
||||
context.commit("update_search_error_message", "")
|
||||
console.log("menu", resp.data.data.bread_crumb)
|
||||
context.commit("update_bread_crumb", resp.data.data.bread_crumb)
|
||||
context.commit("update_branch", resp.data.data.branch)
|
||||
context.commit("update_page_allowed", resp.data.is_page_allowed)
|
||||
@@ -77,6 +84,20 @@ const store = {
|
||||
console.error('Error loading menu data:', error);
|
||||
}
|
||||
},
|
||||
async loadQuickMenu(context) {
|
||||
try {
|
||||
let resp = await axios.get(URL);
|
||||
if (resp.data.status != "OK") {
|
||||
console.error('get api failed');
|
||||
} else {
|
||||
let item = resp.data.data;
|
||||
if (item[1])
|
||||
context.commit("update_quick_menu", item[1]['p_1'])
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error load quick menu data', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
export default store
|
||||
0
http_request/A01_registration.http
Normal file
0
http_request/A01_registration.http
Normal file
0
http_request/A02_listPasien.http
Normal file
0
http_request/A02_listPasien.http
Normal file
0
http_request/A03_statusPasien.http
Normal file
0
http_request/A03_statusPasien.http
Normal file
0
http_request/A04_serahTerimaHasilProses.http
Normal file
0
http_request/A04_serahTerimaHasilProses.http
Normal file
0
http_request/A05_penyerahanHasilPasien.http
Normal file
0
http_request/A05_penyerahanHasilPasien.http
Normal file
0
http_request/A07_labolatoriumSpecimenHandling.http
Normal file
0
http_request/A07_labolatoriumSpecimenHandling.http
Normal file
0
http_request/A08_labolatoriumWorklist.http
Normal file
0
http_request/A08_labolatoriumWorklist.http
Normal file
0
http_request/A09_labolatoriumResultEntry.http
Normal file
0
http_request/A09_labolatoriumResultEntry.http
Normal file
0
http_request/A11_labolatoriumResultValidation.http
Normal file
0
http_request/A11_labolatoriumResultValidation.http
Normal file
0
http_request/A12_labolatoriumSendToFo.http
Normal file
0
http_request/A12_labolatoriumSendToFo.http
Normal file
0
http_request/A13_radiodiagnostikPasienHandling.http
Normal file
0
http_request/A13_radiodiagnostikPasienHandling.http
Normal file
0
http_request/A15_radiodiagnostikImageHandling.http
Normal file
0
http_request/A15_radiodiagnostikImageHandling.http
Normal file
0
http_request/A18_elektromedisPasienHandling.http
Normal file
0
http_request/A18_elektromedisPasienHandling.http
Normal file
0
http_request/A20_elektromedisRecordHandling.http
Normal file
0
http_request/A20_elektromedisRecordHandling.http
Normal file
0
http_request/A21_elektromedisDokumentasiHasil.http
Normal file
0
http_request/A21_elektromedisDokumentasiHasil.http
Normal file
0
http_request/A22_elektromedisVerifikasiHasil.http
Normal file
0
http_request/A22_elektromedisVerifikasiHasil.http
Normal file
0
http_request/A23_fisikPasienHandling.http
Normal file
0
http_request/A23_fisikPasienHandling.http
Normal file
0
http_request/A24_fisikDokumentasiHasil.http
Normal file
0
http_request/A24_fisikDokumentasiHasil.http
Normal file
0
http_request/A26_report.http
Normal file
0
http_request/A26_report.http
Normal file
97
send-to-fo/components/filterfo.vue
Normal file
97
send-to-fo/components/filterfo.vue
Normal file
@@ -0,0 +1,97 @@
|
||||
<template>
|
||||
<v-card>
|
||||
<v-row class="pa-5">
|
||||
<v-col cols="8">
|
||||
<!-- Baris 1 -->
|
||||
<v-row>
|
||||
<!-- Input Search -->
|
||||
<v-col cols="3" class="">
|
||||
<v-menu v-model="menuDate" :close-on-content-click="false" transition="scale-transition" offset-y
|
||||
min-width="auto" max-width="290px">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-text-field :model-value="formatDate()" :label="$t('message.search.date')"
|
||||
prepend-inner-icon="mdi-calendar" hide-details readonly density="compact" variant="outlined"
|
||||
v-bind="props"></v-text-field>
|
||||
</template>
|
||||
<v-date-picker hide-header show-adjacent-months rounded="lg" color="primary" v-model="date"
|
||||
@update:modelValue="menuDate = false"></v-date-picker>
|
||||
</v-menu>
|
||||
<!-- <v-text-field :label="$t('message.search.date')" variant="outlined" density="compact" min-width="auto"
|
||||
hide-details single-line>
|
||||
</v-text-field> -->
|
||||
</v-col>
|
||||
<v-col cols="4" class="">
|
||||
<v-text-field :label="$t('message.search.noReg')" variant="outlined" density="compact" min-width="auto"
|
||||
hide-details single-line>
|
||||
</v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="4" class="">
|
||||
<v-autocomplete :label="$t('message.search.customerGroup')" variant="outlined" density="compact"
|
||||
hide-details menu-icon="mdi-chevron-down"
|
||||
:items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"></v-autocomplete>
|
||||
<!-- <v-text-field :label="$t('message.search.customerGroup')" variant="outlined" density="compact"
|
||||
min-width="auto" hide-details single-line>
|
||||
</v-text-field> -->
|
||||
</v-col>
|
||||
<v-col cols="1">
|
||||
<v-btn variant="flat" small style="height: 42px;" class="bg-primary rounded-lg">
|
||||
<v-icon size="x-large">mdi-magnify</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="4">
|
||||
<!-- Baris 2 -->
|
||||
<v-row>
|
||||
<!-- Input Search -->
|
||||
<v-spacer></v-spacer>
|
||||
<v-col cols="auto" class="">
|
||||
<v-btn density="default" size='large' color="primary" @click="send">{{ $t('message.send') }}</v-btn>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script type="module">
|
||||
export default {
|
||||
name: "FilterFo",
|
||||
data() {
|
||||
return {
|
||||
menuDate: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
date: {
|
||||
get() {
|
||||
return this.$store.state.sendtofo.date;
|
||||
},
|
||||
set(val) {
|
||||
console.log(val)
|
||||
this.$store.commit("sendtofo/setDate", val);
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
formatDate() {
|
||||
if (!this.date) return null;
|
||||
return moment(this.date).format("DD-MM-YYYY");
|
||||
},
|
||||
deFormatedDate(date) {
|
||||
if (!date) return null;
|
||||
|
||||
const [day, month, year] = date.split("-");
|
||||
return `${year}-${month.padStart(2, "0")}-${day.padStart(2, "0")}`;
|
||||
},
|
||||
send() {
|
||||
console.log("Send Button Clicked");
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
34
send-to-fo/components/main.vue
Normal file
34
send-to-fo/components/main.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template class="bg-primary-lighten">
|
||||
<v-app id="inspire">
|
||||
<one-navbar></one-navbar>
|
||||
<v-main class="bg-primary-lighten">
|
||||
<v-row class="ma-5">
|
||||
<v-col cols="12"><filter-fo></filter-fo></v-col>
|
||||
<v-col cols="4"><pasien-component></pasien-component></v-col>
|
||||
<v-col cols="8"><report-component></report-component></v-col>
|
||||
</v-row>
|
||||
</v-main>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<script type="module">
|
||||
import FilterFo from "./filterfo.vue";
|
||||
import PasienComponent from "./pasien.vue";
|
||||
import ReportComponent from "./report.vue";
|
||||
import NavbarComponent from "../../globalcomponent/one-navbar.vue";
|
||||
export default {
|
||||
name: "component2",
|
||||
components: {
|
||||
"filter-fo": FilterFo,
|
||||
"one-navbar": NavbarComponent,
|
||||
"pasien-component": PasienComponent,
|
||||
"report-component": ReportComponent,
|
||||
},
|
||||
computed: {
|
||||
},
|
||||
methods: {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
106
send-to-fo/components/pasien.vue
Normal file
106
send-to-fo/components/pasien.vue
Normal file
@@ -0,0 +1,106 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-container class="bg-white rounded-lg" fluid>
|
||||
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="xpatients"
|
||||
return-object
|
||||
hide-default-footer
|
||||
class="row-pointer"
|
||||
>
|
||||
<template v-slot:top>
|
||||
<v-toolbar flat class="bg-secondary-lighten rounded-lg">
|
||||
<v-toolbar-title class="text-black font-weight-bold">{{ $t('message.toolbalTitle') }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
</template>
|
||||
|
||||
<template v-slot:headers="{ columns }">
|
||||
<tr>
|
||||
<template v-for="column in columns" :key="column.key">
|
||||
<td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
|
||||
<span>{{ column.title }}</span>
|
||||
</td>
|
||||
</template>
|
||||
</tr>
|
||||
</template>
|
||||
<template v-slot:item="{ item }">
|
||||
<tr v-bind:class="{'bg-primary-lighten':isSelected(item)}" @click="selectMe(item)">
|
||||
<td>
|
||||
<div>
|
||||
<p class="mt-2 mb-2">{{ item.noreg }}</p>
|
||||
<p class="mb-2" >
|
||||
<v-chip label size="small">
|
||||
{{ item.orderdate }}
|
||||
</v-chip>
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<p>{{ item.name }}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.row-pointer >>> tbody tr :hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="module">
|
||||
export default {
|
||||
name: "ListPatient",
|
||||
data() {
|
||||
return {
|
||||
headers: [
|
||||
{
|
||||
align: 'start',
|
||||
key: 'name',
|
||||
sortable: false,
|
||||
width: "50%",
|
||||
title: this.$t('message.tableListPatient.noreg'),
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
align: 'start',
|
||||
key: 'name',
|
||||
sortable: false,
|
||||
width: "50%",
|
||||
title: this.$t('message.tableListPatient.name'),
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
xpatients() {
|
||||
return this.$store.state.sendtofo.patients
|
||||
},
|
||||
selected_patient: {
|
||||
get() {
|
||||
return this.$store.state.sendtofo.selected_patient
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sendtofo/setSelectedPatient", val)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isSelected(p) {
|
||||
return p.id == this.$store.state.sendtofo.selected_patient.id
|
||||
},
|
||||
selectMe(data) {
|
||||
this.$store.commit("sendtofo/setSelectedPatient", data)
|
||||
this.$store.commit("sendtofo/setSelectedDetail", data)
|
||||
}
|
||||
},
|
||||
wacth: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
74
send-to-fo/components/report.vue
Normal file
74
send-to-fo/components/report.vue
Normal file
@@ -0,0 +1,74 @@
|
||||
<template>
|
||||
<v-card>
|
||||
<v-row class="pa-5">
|
||||
<v-col cols="12">
|
||||
<v-row>
|
||||
<v-spacer></v-spacer>
|
||||
<v-col cols="auto" class="px-2">
|
||||
<v-btn variant="tonal" class="text-body-1" @click="selfService">{{
|
||||
$t('message.report.selfservice') }}</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="px-2">
|
||||
<v-btn variant="tonal" class="text-body-1" @click="patientAddress">{{
|
||||
$t('message.report.patientAddress') }}</v-btn>
|
||||
</v-col>
|
||||
<v-col cols="auto" class="px-2">
|
||||
<v-btn variant="tonal" class="text-body-1" @click="senderAddress">{{
|
||||
$t('message.report.senderAddress') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<v-card-text>
|
||||
<object style="overflow: hidden;" width="100%" :height="xheight" :data="xurl"></object>
|
||||
</v-card-text>
|
||||
<!-- <v-card-text> -->
|
||||
<!-- <object style="overflow: hidden;" width="100%" :height="xheight" :data="xurl"></object> -->
|
||||
<!-- <one-dialog-print :title="printtitle" :width="printwidth" :height="550" :status="openprintnote"
|
||||
:urlprint="urlprintnote" @close-dialog-print="openprintnote = false"></one-dialog-print> -->
|
||||
|
||||
<!-- </v-card-text> -->
|
||||
<!-- <v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
|
||||
<v-btn color="primary" flat onClick="window.location.reload();" @click="savetutup()">
|
||||
TUTUP
|
||||
</v-btn>
|
||||
</v-card-actions> -->
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ReportComponent",
|
||||
data() {
|
||||
return {
|
||||
xheight: 800,
|
||||
|
||||
printtitle: '',
|
||||
printwidth: '90%',
|
||||
urlprintnote: '',
|
||||
|
||||
xurl: "http://riau/birt/run?__report=report/one/rekap/executive_summary_mcu_001.rptdesign&__format=pdf&PID=12&username=Administrator"
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
selfService() {
|
||||
// Implementasi fungsi selfService
|
||||
console.log("Self Service button clicked");
|
||||
},
|
||||
patientAddress() {
|
||||
// Implementasi fungsi patientAddress
|
||||
console.log("Patient Address button clicked");
|
||||
},
|
||||
senderAddress() {
|
||||
// Implementasi fungsi senderAddress
|
||||
console.log("Sender Address button clicked");
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
125
send-to-fo/index.html
Normal file
125
send-to-fo/index.html
Normal file
@@ -0,0 +1,125 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>WESTONE</title>
|
||||
<!-- Vuetify CSS -->
|
||||
<link href="../css/vuetify.css" rel="stylesheet" />
|
||||
<!-- Local Stylesheet for Fonts -->
|
||||
<link rel="stylesheet" href="../css/styles.css" />
|
||||
<link href="../css/materialdesignicon.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<!-- Moment -->
|
||||
<script src="../libraries/moment.js"></script>
|
||||
<!-- Vue.js -->
|
||||
<!-- DEV -->
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
<!-- PROD -->
|
||||
<!-- <script src="../libraries/vue3.4.36.global.prod.js"></script> -->
|
||||
<!-- Vuex -->
|
||||
<script src="../libraries/vuex.js"></script>
|
||||
<!-- Vuetify -->
|
||||
<script src="../libraries/vuetify3.js"></script>
|
||||
<!-- vue-i18n -->
|
||||
<script src="../libraries/vue-i18n.global.js"></script>
|
||||
<!-- Axios -->
|
||||
<script src="../libraries/axios.js"></script>
|
||||
|
||||
<script src="../globalscript/theme.js"></script>
|
||||
<script src="../globalscript/global.js"></script>
|
||||
<!-- loader single file component -->
|
||||
<script src="../libraries/vue3-sfc-loader.js"></script>
|
||||
<script src="./language.js"></script>
|
||||
|
||||
<script type="module">
|
||||
const { loadModule } = window["vue3-sfc-loader"];
|
||||
|
||||
import system from "../globalstore/globalstore.js";
|
||||
import sendtofo from "./modules/sendtofo.js";
|
||||
|
||||
// if (one_token()) {
|
||||
// let usr = JSON.parse(localStorage.getItem("user"));
|
||||
// location.replace("/" + usr.M_UserGroupDashboard);
|
||||
// }
|
||||
const options = {
|
||||
moduleCache: {
|
||||
vue: Vue,
|
||||
},
|
||||
getFile(url) {
|
||||
return fetch(url).then((response) =>
|
||||
response.ok ? response.text() : Promise.reject(response)
|
||||
);
|
||||
},
|
||||
addStyle(textContent) {
|
||||
const style = document.createElement("style");
|
||||
style.textContent = textContent;
|
||||
const ref = document.head.getElementsByTagName("style")[0] || null;
|
||||
document.head.insertBefore(style, ref);
|
||||
},
|
||||
};
|
||||
// Locale messages
|
||||
const messages = CustomMessages;
|
||||
|
||||
// Get the browser's preferred language
|
||||
const browserLocale = navigator.language || navigator.languages[0];
|
||||
|
||||
// Initialize vue-i18n
|
||||
const i18n = VueI18n.createI18n({
|
||||
locale: browserLocale.startsWith("id") ? "id" : "en", // Set locale based on browser setting
|
||||
fallbackLocale: "en", // Set fallback locale
|
||||
messages, // Set locale messages
|
||||
});
|
||||
window.i18n = i18n;
|
||||
const store = Vuex.createStore({
|
||||
modules: {
|
||||
system: system,
|
||||
sendtofo: sendtofo,
|
||||
},
|
||||
});
|
||||
// Vue App
|
||||
const app = Vue.createApp({
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
bg_src: "",
|
||||
loading: false, // Initialize loading state
|
||||
};
|
||||
},
|
||||
|
||||
template: `
|
||||
<main-component></main-component>
|
||||
`,
|
||||
});
|
||||
|
||||
const vuetify = Vuetify.createVuetify({
|
||||
theme: {
|
||||
themes: CustomTheme,
|
||||
},
|
||||
});
|
||||
|
||||
app.use(store);
|
||||
app.use(vuetify);
|
||||
app.use(i18n);
|
||||
const components = {
|
||||
"main-component": "./components/main.vue",
|
||||
"filter-fo": "./components/filterfo.vue",
|
||||
};
|
||||
Promise.all(
|
||||
Object.entries(components).map(([name, path]) => {
|
||||
return loadModule(path, options).then((component) => {
|
||||
app.component(name, component);
|
||||
});
|
||||
})
|
||||
)
|
||||
.then(() => {
|
||||
app.mount("#app");
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Error loading components:", error);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
42
send-to-fo/language.js
Normal file
42
send-to-fo/language.js
Normal file
@@ -0,0 +1,42 @@
|
||||
var CustomMessages = {
|
||||
en: {
|
||||
message: {
|
||||
search:{
|
||||
date: "Tanggal",
|
||||
noReg: "No Reg / Nama",
|
||||
customerGroup: "Kel. Pelanggan",
|
||||
},
|
||||
toolbalTitle: "PASIEN",
|
||||
tableListPatient: {
|
||||
noreg: "NO. REG",
|
||||
name: "NAME",
|
||||
},
|
||||
report:{
|
||||
selfservice: "Ambil Sendiri",
|
||||
patientAddress: "Alamat Pasien",
|
||||
senderAddress: "Alamat Pengirim"
|
||||
},
|
||||
send:"Serahkan",
|
||||
},
|
||||
},
|
||||
id: {
|
||||
message: {
|
||||
search:{
|
||||
date: "Date",
|
||||
noReg: "No Reg / Name",
|
||||
customerGroup: "Customer Group",
|
||||
},
|
||||
toolbalTitle: "PASIEN",
|
||||
tableListPatient: {
|
||||
noreg: "NO. REG",
|
||||
name: "NAMA",
|
||||
},
|
||||
report:{
|
||||
selfservice: "SelfService",
|
||||
patientAddress: "Patient Address",
|
||||
senderAddress: "Sender Address",
|
||||
send: "Send",
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
55
send-to-fo/modules/sendtofo.js
Normal file
55
send-to-fo/modules/sendtofo.js
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
// const URL = "/westone-api/v1/system/auth";
|
||||
// const URL = "https://devcpone.aplikasi.web.id/westone-api/v1/system/auth/";
|
||||
|
||||
const store = {
|
||||
namespaced: true,
|
||||
state() {
|
||||
return {
|
||||
date: new Date(),
|
||||
patients: [
|
||||
{
|
||||
id: 1,
|
||||
name: "Tn. COCOBA",
|
||||
noreg: "055000035LA",
|
||||
orderdate: "01-08-2024 15:02"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Ny. LINA MARLINA",
|
||||
noreg: "055000034LA",
|
||||
orderdate: "01-08-2024 14:32"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "Ny. LINA MARLINA",
|
||||
noreg: "055000034LA",
|
||||
orderdate: "01-08-2024 14:32"
|
||||
},
|
||||
],
|
||||
selected_patient: {},
|
||||
};
|
||||
},
|
||||
mutations: {
|
||||
setDate(state, data) {
|
||||
state.date = data
|
||||
},
|
||||
setPatients(state, data) {
|
||||
state.patients = data
|
||||
},
|
||||
setSelectedPatient(state, data) {
|
||||
state.selected_patient = data
|
||||
},
|
||||
setDetails(state, data) {
|
||||
state.details = data
|
||||
},
|
||||
setSelectedDetail(state, data) {
|
||||
state.selected_detail = data
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
export default store
|
||||
116
status-patient/components/content.vue
Normal file
116
status-patient/components/content.vue
Normal file
@@ -0,0 +1,116 @@
|
||||
<template>
|
||||
<v-container fluid class="bg-white rounded-lg my-5">
|
||||
<div class="bg-secondary-lighten rounded-lg pa-5 mb-5">
|
||||
<v-row>
|
||||
<v-col cols="11">
|
||||
<h3>{{ $t('message.table.title') }}</h3>
|
||||
</v-col>
|
||||
<v-col cols="1" align="end">
|
||||
<h3>6</h3>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
hide-default-footer
|
||||
>
|
||||
<template v-slot:headers="{ columns }">
|
||||
<tr>
|
||||
<template v-for="column in columns" :key="column.key">
|
||||
<td :class="column.class" :style="{ width: column.width, textAlign: column.align }">
|
||||
<span>{{ column.title }}</span>
|
||||
</td>
|
||||
</template>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "contentcomp",
|
||||
components: {},
|
||||
mounted() {},
|
||||
data() {
|
||||
return {
|
||||
menu: false,
|
||||
visible: false,
|
||||
headers : [
|
||||
{
|
||||
title: this.$t('message.table.h_no'),
|
||||
align: "start",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "5%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_orderr'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "15%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_pasien'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "20%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_status'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "10%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_sample'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "10%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_proces'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "10%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_resver'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "10%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_resval'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "10%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
{
|
||||
title: this.$t('message.table.h_printt'),
|
||||
align: "center",
|
||||
sortable: false,
|
||||
key: "name",
|
||||
width: "10%",
|
||||
class: "font-weight-bold",
|
||||
},
|
||||
]
|
||||
};
|
||||
},
|
||||
}
|
||||
</script>
|
||||
114
status-patient/components/filter.vue
Normal file
114
status-patient/components/filter.vue
Normal file
@@ -0,0 +1,114 @@
|
||||
<template>
|
||||
<v-container fluid class="bg-white rounded-lg">
|
||||
<v-row>
|
||||
<v-col cols="2">
|
||||
<v-menu
|
||||
v-model="menu"
|
||||
:close-on-content-click="false"
|
||||
transition="scale-transition"
|
||||
offset-y
|
||||
min-width="auto"
|
||||
max-width="290px"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-text-field
|
||||
:model-value="formatDate()"
|
||||
:label="$t('message.filter.date')"
|
||||
prepend-inner-icon="mdi-calendar"
|
||||
hide-details
|
||||
readonly
|
||||
variant="outlined"
|
||||
v-bind="props"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<v-date-picker
|
||||
hide-header
|
||||
show-adjacent-months
|
||||
rounded="lg"
|
||||
color="primary"
|
||||
v-model="date"
|
||||
@update:modelValue="menu=false"
|
||||
></v-date-picker>
|
||||
</v-menu>
|
||||
</v-col>
|
||||
<v-col cols="2">
|
||||
<v-text-field
|
||||
:label="$t('message.filter.noreg')"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
append-inner-icon="mdi-magnify"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="2">
|
||||
<v-autocomplete
|
||||
:label="$t('message.filter.group')"
|
||||
variant="outlined"
|
||||
hide-details
|
||||
menu-icon="mdi-chevron-down"
|
||||
:items="temp_dropdown"
|
||||
></v-autocomplete>
|
||||
</v-col>
|
||||
<v-col cols="5"></v-col>
|
||||
<v-col cols="1">
|
||||
<div
|
||||
style="height: 100%; display: flex; align-items: center; justify-content: center;"
|
||||
class="rounded-lg bg-primary pa-2 h-100 pointer"
|
||||
>
|
||||
<iconify-icon
|
||||
style="font-size: 2rem;"
|
||||
icon="fluent:search-20-regular"
|
||||
></iconify-icon>
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "filtercomponent",
|
||||
components: {},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
menu: false,
|
||||
visible: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
date: {
|
||||
get() {
|
||||
return this.$store.state.stored.date;
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("setDate", val);
|
||||
}
|
||||
},
|
||||
temp_dropdown: {
|
||||
get() {
|
||||
return this.$store.state.stored.temp_dropdown;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
formatDate() {
|
||||
if (!this.date) return null;
|
||||
|
||||
return moment(this.date).format("DD-MM-YYYY");
|
||||
},
|
||||
deFormatedDate(date) {
|
||||
if (!date) return null;
|
||||
const [day, month, year] = date.split("-");
|
||||
return `${year}-${month.padStart(2, "0")}-${day.padStart(2, "0")}`;
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
42
status-patient/components/main.vue
Normal file
42
status-patient/components/main.vue
Normal file
@@ -0,0 +1,42 @@
|
||||
<template>
|
||||
<v-app id="inspire">
|
||||
<one-navbar></one-navbar>
|
||||
<v-main>
|
||||
<quick-menu></quick-menu>
|
||||
<div class="pa-5 bg-primary-lighten mx-2 rounded-xl" style="height: 100%;">
|
||||
<one-filter></one-filter>
|
||||
<one-content></one-content>
|
||||
</div>
|
||||
</v-main>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<script type="module">
|
||||
import NavbarComponent from "../../globalcomponent/one-navbar.vue";
|
||||
import QuickMenu from "../../globalcomponent/quick-menu.vue";
|
||||
import Content from "./content.vue";
|
||||
import Filter from "./filter.vue";
|
||||
export default {
|
||||
name: "Status Pasien",
|
||||
components: {
|
||||
"one-navbar": NavbarComponent,
|
||||
"quick-menu": QuickMenu,
|
||||
"one-content": Content,
|
||||
"one-filter": Filter,
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
125
status-patient/index.html
Normal file
125
status-patient/index.html
Normal file
@@ -0,0 +1,125 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Status Pasien</title>
|
||||
<!-- Vuetify CSS -->
|
||||
<link href="../css/vuetify.css" rel="stylesheet" />
|
||||
<!-- Local Stylesheet for Fonts -->
|
||||
<link rel="stylesheet" href="../css/styles.css" />
|
||||
<link href="../css/materialdesignicon.css" rel="stylesheet" />
|
||||
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<!-- Moment -->
|
||||
<script src="../libraries/moment.js"></script>
|
||||
<!-- Vue.js -->
|
||||
<!-- DEV -->
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
<!-- PROD -->
|
||||
<!-- <script src="../libraries/vue3.4.36.global.prod.js"></script> -->
|
||||
<!-- Vuex -->
|
||||
<script src="../libraries/vuex.js"></script>
|
||||
<!-- Vuetify -->
|
||||
<script src="../libraries/vuetify3.js"></script>
|
||||
<!-- vue-i18n -->
|
||||
<script src="../libraries/vue-i18n.global.js"></script>
|
||||
<!-- Axios -->
|
||||
<script src="../libraries/axios.js"></script>
|
||||
|
||||
<script src="../globalscript/theme.js"></script>
|
||||
<script src="../globalscript/global.js"></script>
|
||||
<!-- loader single file component -->
|
||||
<script src="../libraries/vue3-sfc-loader.js"></script>
|
||||
<script src="./language.js"></script>
|
||||
|
||||
<script type="module">
|
||||
const { loadModule } = window["vue3-sfc-loader"];
|
||||
import system from "../globalstore/globalstore.js";
|
||||
import stored from "./modules/store.js";
|
||||
|
||||
// if (one_token()) {
|
||||
// let usr = JSON.parse(localStorage.getItem("user"));
|
||||
// location.replace("/" + usr.M_UserGroupDashboard);
|
||||
// }
|
||||
|
||||
const options = {
|
||||
moduleCache: {
|
||||
vue: Vue,
|
||||
},
|
||||
getFile(url) {
|
||||
return fetch(url).then((response) =>
|
||||
response.ok ? response.text() : Promise.reject(response)
|
||||
);
|
||||
},
|
||||
addStyle(textContent) {
|
||||
const style = document.createElement("style");
|
||||
style.textContent = textContent;
|
||||
const ref = document.head.getElementsByTagName("style")[0] || null;
|
||||
document.head.insertBefore(style, ref);
|
||||
},
|
||||
};
|
||||
|
||||
const messages = CustomMessages;
|
||||
const browserLocale = navigator.language || navigator.languages[0];
|
||||
const i18n = VueI18n.createI18n({
|
||||
locale: browserLocale.startsWith("id") ? "id" : "en",
|
||||
fallbackLocale: "en",
|
||||
messages,
|
||||
});
|
||||
window.i18n = i18n;
|
||||
|
||||
moment.locale(browserLocale.startsWith("id") ? "id" : "en");
|
||||
const store = Vuex.createStore({
|
||||
modules: {
|
||||
system: system,
|
||||
stored: stored,
|
||||
},
|
||||
});
|
||||
|
||||
const app = Vue.createApp({
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
bg_src: "",
|
||||
loading: false,
|
||||
};
|
||||
},
|
||||
|
||||
template: `
|
||||
<main-component></main-component>
|
||||
`,
|
||||
});
|
||||
|
||||
const vuetify = Vuetify.createVuetify({
|
||||
theme: {
|
||||
themes: CustomTheme,
|
||||
},
|
||||
});
|
||||
|
||||
app.use(store);
|
||||
app.use(vuetify);
|
||||
app.use(i18n);
|
||||
|
||||
const components = {
|
||||
"main-component": "./components/main.vue",
|
||||
};
|
||||
|
||||
Promise.all(
|
||||
Object.entries(components).map(([name, path]) => {
|
||||
return loadModule(path, options).then((component) => {
|
||||
app.component(name, component);
|
||||
});
|
||||
})
|
||||
)
|
||||
.then(() => {
|
||||
app.mount("#app");
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Error loading components:", error);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
46
status-patient/language.js
Normal file
46
status-patient/language.js
Normal file
@@ -0,0 +1,46 @@
|
||||
var CustomMessages = {
|
||||
en: {
|
||||
message: {
|
||||
filter: {
|
||||
date: "Date",
|
||||
noreg: "No. Reg / Name",
|
||||
group: "Customer Group",
|
||||
},
|
||||
table: {
|
||||
title: "TOTAL PATIENTS",
|
||||
h_no: "NO",
|
||||
h_orderr: "ORDER/JANJI HASIL",
|
||||
h_pasien: "PATIENT",
|
||||
h_status: "STATUS ORDER",
|
||||
h_sample: "SAMP. COLLECT",
|
||||
h_proces: "PROCESS",
|
||||
h_resver: "RESULT VERIF",
|
||||
h_resval: "RESULT VALID",
|
||||
h_printt: "PRINT",
|
||||
},
|
||||
dobage: "Date of Birth and Age",
|
||||
},
|
||||
},
|
||||
id: {
|
||||
message: {
|
||||
filter: {
|
||||
date: "Tanggal",
|
||||
noreg: "No. Reg / Nama",
|
||||
group: "Kel. Pelanggan",
|
||||
},
|
||||
table: {
|
||||
title: "TOTAL PASIEN",
|
||||
h_no: "NO",
|
||||
h_orderr: "ORDER/JANJI HASIL",
|
||||
h_pasien: "PASIEN",
|
||||
h_status: "STATUS ORDER",
|
||||
h_sample: "SAMP. COLLECT",
|
||||
h_proces: "PROSES",
|
||||
h_resver: "RESULT VERIF",
|
||||
h_resval: "RESULT VALID",
|
||||
h_printt: "PRINT",
|
||||
},
|
||||
dobage: "Tanggal Lahir dan Umur",
|
||||
},
|
||||
},
|
||||
};
|
||||
95
status-patient/modules/store.js
Normal file
95
status-patient/modules/store.js
Normal file
@@ -0,0 +1,95 @@
|
||||
const store = {
|
||||
state() {
|
||||
return {
|
||||
date: new Date(),
|
||||
temp_dropdown: ["Lorem", "ipsum", "dolor", "sit", "amet"],
|
||||
data: [
|
||||
{
|
||||
"xno": 1,
|
||||
"xid": "132282",
|
||||
"order_date": "27-08-2024 19:32",
|
||||
"no_reg": "05600027LA",
|
||||
"patient_name": "Ny IMELDA JANICE",
|
||||
"company_name": "PASIEN KLINISI",
|
||||
"mou_name": "PASIEN UMUM 2021",
|
||||
"status_cito": "N",
|
||||
"order_promise": "28-08-2024 12:00",
|
||||
"details_order": [
|
||||
{
|
||||
"ids": "1626778,1626779",
|
||||
"group_name": "LAB",
|
||||
"group_id": "1",
|
||||
"flag_nonlab": "N",
|
||||
"status": "N"
|
||||
}
|
||||
],
|
||||
"details_sampling": [
|
||||
{
|
||||
"ids": "1626778,1626779",
|
||||
"group_name": "LAB",
|
||||
"group_id": "1",
|
||||
"flag_nonlab": "N",
|
||||
"status": "N"
|
||||
}
|
||||
],
|
||||
"details_verifications": [
|
||||
{
|
||||
"ids": "1626778,1626779",
|
||||
"group_name": "LAB",
|
||||
"group_id": "1",
|
||||
"flag_nonlab": "N",
|
||||
"status": "N"
|
||||
}
|
||||
],
|
||||
"details_process": [
|
||||
{
|
||||
"ids": "1626778,1626779",
|
||||
"group_name": "LAB",
|
||||
"group_id": "1",
|
||||
"flag_nonlab": "N",
|
||||
"status": "N"
|
||||
}
|
||||
],
|
||||
"details_result_verification": [
|
||||
{
|
||||
"ids": "1626778,1626779",
|
||||
"group_name": "LAB",
|
||||
"group_id": "1",
|
||||
"flag_nonlab": "N",
|
||||
"status": "N"
|
||||
}
|
||||
],
|
||||
"details_result_validation": [
|
||||
{
|
||||
"ids": "1626778,1626779",
|
||||
"group_name": "LAB",
|
||||
"group_id": "1",
|
||||
"flag_nonlab": "N",
|
||||
"status": "N"
|
||||
}
|
||||
],
|
||||
"details_print": [
|
||||
{
|
||||
"ids": "1626778,1626779",
|
||||
"group_name": "LAB",
|
||||
"group_id": "1",
|
||||
"flag_nonlab": "N",
|
||||
"status": "N"
|
||||
}
|
||||
],
|
||||
"no_reg_ext": "056G3C17LA"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
setDate(state, date) {
|
||||
state.date = date;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default store
|
||||
Reference in New Issue
Block a user