Flatten nested repos

This commit is contained in:
sas.fajri
2026-04-27 10:13:31 +07:00
parent 01c2963a43
commit 8347aef8f4
17935 changed files with 5015229 additions and 3 deletions

View File

@@ -0,0 +1,78 @@
<template>
<v-menu
v-model="menu2"
:close-on-content-click="false"
:nudge-right="40"
lazy
transition="scale-transition"
offset-y
full-width
max-width="290px"
min-width="290px"
>
<v-text-field
slot="activator"
v-model="computedDateFormatted"
:label=init_label
hint="DD-MM-YYYY format"
persistent-hint
readonly
solo
hide-details
class="ma-1"
></v-text-field>
<v-date-picker v-model="init_date" no-title @input="menu2 = false"></v-date-picker>
</v-menu>
</template>
<script>
module.exports = {
props : ['label', 'date', 'data'],
data () {
return {
init_date: this.date ? this.date : new Date().toISOString().substr(0, 10),
dateFormatted: this.formatDate(new Date().toISOString().substr(0, 10)),
menu1: false,
menu2: false,
init_label: this.label ? this.label : 'Date',
init_data: this.data ? this.data : ''
}
},
computed: {
computedDateFormatted () {
return this.formatDate(this.init_date)
}
},
watch: {
init_date (n, o) {
this.dateFormatted = this.formatDate(this.init_date)
this.$emit('change', {"old_date":o, "new_date":n, "data":this.init_data});
}
},
methods: {
formatDate (date) {
if (!date) return null
const [year, month, day] = date.split('-')
return `${day}-${month}-${year}`
},
parseDate (date) {
if (!date) return null
const [month, day, year] = date.split('/')
return `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`
},
emitChange (n, o) {
console.log("old:"+o)
console.log("new:"+n)
}
}
}
</script>

View File

@@ -0,0 +1,94 @@
<template>
<v-dialog
v-model="dialog"
width="1000px"
>
<v-card>
<v-card-title
class="headline grey lighten-2 pt-2 pb-2"
primary-title
>
Laporan
</v-card-title>
<v-card-text class="pt-2 pb-2">
<v-layout row wrap>
<v-flex xs12 mb-1 pb-1>
<h5 class="subheading">PENGIRIMAN HASIL</h5>
<v-divider class="mt-1"></v-divider>
</v-flex>
<template v-for="(dlv, n) in deliveries">
<v-flex xs2 v-bind:key="n">
<strong>{{ dlv.label }}</strong>
</v-flex>
<v-flex xs4>
{{ dlv.desc }}
</v-flex>
</template>
</v-layout>
<v-layout>
<v-flex xs12>
<v-divider class="mt-1 mb-1"></v-divider>
<object :data="rpt_url"
width="100%" height="512px"></object>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
@click="dialog = false"
flat
>
Tutup
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<style scoped>
</style>
<script>
module.exports = {
components : {
},
methods : {
},
computed : {
dialog: {
get() {
return this.$store.state.re_patient.print_dialog;
},
set(val) {
this.$store.commit('re_patient/update_print_dialog', val);
}
},
rpt_url () {
return this.$store.state.re_patient.rpt_url
},
deliveries () {
let x = this.$store.state.re_patient.selected_patient
if (x)
return x.delivery
return []
}
}
}
</script>

View File

@@ -0,0 +1,97 @@
<template>
<v-dialog
v-model="dialog"
max-width="500px"
persistent
>
<v-card>
<v-card-text>
<v-layout row wrap mb-2 v-show="info_req.note_fo != ''">
<v-flex xs12>
<h5 class="caption">Catatan FO</h5>
<h3 class="title font-weight-regular">{{info_req.note_fo}}</h3>
</v-flex>
</v-layout>
<v-layout row wrap mb-2 v-show="info_req.note_sampling != ''">
<v-flex xs12>
<h5 class="caption">Catatan Specimen</h5>
<h3 class="title font-weight-regular">{{info_req.note_sampling}}</h3>
</v-flex>
</v-layout>
<v-layout row wrap mb-2 v-show="info_req.req_fo.length > 0">
<v-flex xs12>
<h5 class="caption">Requirement FO</h5>
<h3 class="title font-weight-regular">{{info_req.req_fo.join(', ')}}</h3>
</v-flex>
</v-layout>
<v-layout row wrap mb-2 v-show="info_req.req_spec_col.length > 0">
<v-flex xs12>
<h5 class="caption">Requirement Specimen Collection</h5>
<h3 class="title font-weight-regular">{{info_req.req_spec_col.join(', ')}}</h3>
</v-flex>
</v-layout>
<v-layout row wrap mb-2 v-show="info_req.req_spec_ver.length > 0">
<v-flex xs12>
<h5 class="caption">Requirement Specimen Verification</h5>
<h3 class="title font-weight-regular">{{info_req.req_spec_ver.join(', ')}}</h3>
</v-flex>
</v-layout>
<v-layout row wrap mb-2 v-show="info_req.req_samp_ver.length > 0">
<v-flex xs12>
<h5 class="caption">Requirement Sample Verification</h5>
<h3 class="title font-weight-regular">{{info_req.req_samp_ver.join(', ')}}</h3>
</v-flex>
</v-layout>
<v-layout row wrap mb-2 v-show="info_req.req_pre_an.length > 0">
<v-flex xs12>
<h5 class="caption">Requirement Pre Analitik</h5>
<h3 class="title font-weight-regular">{{info_req.req_pre_an.join(', ')}}</h3>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" flat @click="dialog=!dialog">Tutup</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<style>
/* .v-overlay--active {
z-index: 1005 !important;
}
.v-dialog__content--active {
z-index: 1006 !important;
} */
</style>
<script>
module.exports = {
data () {
return {}
},
computed : {
dialog : {
get () { return this.$store.state.re_patient.dialog_req },
set (v) { this.$store.commit('re_patient/update_dialog_req', v) }
},
info_req () {
return this.$store.state.re_patient.info_req
}
},
methods : {
}
}
</script>

View File

@@ -0,0 +1,208 @@
<template>
<v-dialog
v-model="dialog"
persistent
max-width="800px"
transition="dialog-transition"
>
<v-layout class="fill-height" column>
<v-card class="grow" color="blue-grey lighten-2">
<v-card-title primary-title class="title white--text pb-2">
HISTORI PEMERIKSAAN
</v-card-title>
<v-card-text class="pt-2 pb-2">
<v-layout row wrap>
<v-flex xs2 v-for="(px, i) in pxs" :key="i" pr-1>
<v-btn :color="is_selected_tab(px) ? 'blue' : 'white'" :dark="is_selected_tab(px)" block @click="select_tab(px)">{{ px.date.substr(0,10) }}</v-btn>
</v-flex>
</v-layout>
<v-layout row wrap>
<v-flex xs12 v-for="(px, i) in pxs" :key="i" v-show="is_selected_tab(px)">
<v-card>
<v-card-text class="pt-1 pb-1 pl-1 pr-1">
<v-data-table
:headers="headers" :items="px.data"
:loading="isLoading"
hide-actions class="elevation-1 table-history"
>
<template slot="items" slot-scope="props">
<td class="text-xs-left pl-2 pr-2 pa-1 green--text" v-bind:class="is_selected(props.item)">
{{ props.item.px_name }}
</td>
<td class="text-xs-left pl-2 pr-2 pa-1" v-bind:class="is_selected(props.item)">
{{ props.item.result }}
</td>
<td class="text-xs-left pl-2 pr-2 pa-1" v-bind:class="is_selected(props.item)">
{{ props.item.flag }}
</td>
</template>
</v-data-table>
</v-card-text>
</v-card>
</v-flex>
</v-layout>
<!-- <v-expansion-panel>
<v-expansion-panel-content
v-for="(px, i) in pxs"
:key="i"
>
<template v-slot:header>
<div class="subheading">{{ px.date }}</div>
</template>
<v-card>
<v-card-text class="pt-1 pb-1">
<v-data-table
:headers="headers" :items="px.data"
:loading="isLoading"
hide-actions class="elevation-1 table-history"
>
<template slot="items" slot-scope="props">
<td class="text-xs-left pl-2 pr-2 pa-1 green--text" v-bind:class="is_selected(props.item)">
{{ props.item.px_name }}
</td>
<td class="text-xs-left pl-2 pr-2 pa-1" v-bind:class="is_selected(props.item)">
{{ props.item.result }}
</td>
<td class="text-xs-left pl-2 pr-2 pa-1" v-bind:class="is_selected(props.item)">
{{ props.item.flag }}
</td>
</template>
</v-data-table>
</v-card-text>
</v-card>
</v-expansion-panel-content>
</v-expansion-panel> -->
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="white" flat @click="dialog = false">Tutup</v-btn>
<!-- <v-btn color="blue darken-1" :dark="btn_save_enabled" @click="save" :disabled="!btn_save_enabled">Simpan</v-btn> -->
</v-card-actions>
</v-card>
</v-layout>
</v-dialog>
</template>
<style>
.table-history table td {
height: 40px !important
}
</style>
<script>
module.exports = {
data() {
return {
query: "",
items: [],
headers: [
{
text: "PEMERIKSAAN",
align: "left",
sortable: false,
width: "45%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "HASIL",
align: "left",
sortable: false,
value: "mr",
width: "35%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "FLAG",
align: "left",
sortable: false,
value: "mr",
width: "20%",
class: "pa-2 blue lighten-3 white--text"
}
],
isLoading: false
};
},
methods : {
oneMoment : function(d) {
return window.oneMoment(d)
},
select (item) {
// this.$store.commit('re_px/update_selected_rerun', item)
// this.$store.commit('re_px/update_dialog_rerun', false)
// let x = this.$store.state.re_px.pxs
// x[this.$store.state.re_px.selected_px_idx]['result'] = item.result
// this.$store.commit('re_px/update_pxs', {records:x})
},
is_selected (item) {
// let x = this.$store.state.re_patient.selected_patient
// if (!x)
// return ''
// if (x.T_OrderHeaderID == item.T_OrderHeaderID)
// return 'green lighten-4'
return ''
},
select_tab (px) {
this.selected_tab = px.id
},
is_selected_tab (px) {
if (px.id == this.selected_tab)
return true
return false
}
},
computed : {
pxs () {
return this.$store.state.re_history.pxs
},
dialog : {
get () { return this.$store.state.re_history.dialog_history },
set (v) { this.$store.commit('re_history/update_dialog_history', v) }
},
selected_tab : {
get () { return this.$store.state.re_history.selected_tab },
set (v) { this.$store.commit('re_history/update_selected_tab', v) }
}
},
mounted () {
// this.$store.dispatch('re_px/search_rerun')
},
watch : {
dialog (n, o) {
if (n && !o) {
this.$store.dispatch('re_history/history')
}
}
}
}
</script>

View File

@@ -0,0 +1,186 @@
<template>
<v-layout row wrap>
<v-flex xs12>
<v-card class="pa-2" v-show="!detail">
<v-layout row wrap>
<v-flex xs3>
<div class="caption font-weight-light">No Reg / Tanggal</div>
<div class="subheading">{{selected_patient.T_OrderHeaderLabNumber}} / {{order_date}}</div>
</v-flex>
<v-flex xs3>
<div class="caption font-weight-light">Nama / Jenis Kelamin</div>
<div class="subheading">{{selected_patient.M_PatientName}} / {{selected_patient.M_SexName}}</div>
</v-flex>
<v-flex xs3>
<div class="caption font-weight-light">DOB / Umur</div>
<div class="subheading">{{dob_date}} / {{age}}</div>
</v-flex>
<v-flex xs3>
<div class="caption font-weight-light">Pengirim</div>
<div class="subheading">{{selected_patient.doctor_sender_name}}&nbsp;</div>
</v-flex>
</v-layout>
<v-btn absolute dark top right
color="black" flat depressed
@click="detail=!detail"
class="btn-detail"
>
<v-icon>keyboard_arrow_up</v-icon>
</v-btn>
</v-card>
</v-flex>
<v-flex xs12>
<v-card class="pa-2" v-show="detail">
<v-layout row wrap>
<v-flex xs6>
<div class="caption font-weight-light">No Reg / Tanggal</div>
<div class="subheading">{{selected_patient.T_OrderHeaderLabNumber}} / {{order_date}}</div>
<div class="caption font-weight-light mt-2">Nama / Jenis Kelamin</div>
<div class="subheading">{{selected_patient.M_PatientName}} / {{selected_patient.M_SexName}}</div>
<div class="caption font-weight-light mt-2">DOB / Umur</div>
<div class="subheading">{{dob_date}} / {{age}}</div>
<div class="caption font-weight-light mt-2">Phone / Janji hasil</div>
<div class="subheading">{{selected_patient.M_PatientHP}} / {{selected_patient.order_promise?selected_patient.order_promise.join(', '):''}}</div>
</v-flex>
<v-flex xs6>
<div class="caption font-weight-light">Kel. Pelanggan</div>
<div class="subheading">{{selected_patient.M_CompanyName}} &nbsp;</div>
<div class="caption font-weight-light mt-2">Pengirim</div>
<div class="subheading">{{selected_patient.doctor_sender_name}}&nbsp;</div>
<div class="caption font-weight-light mt-2">Pengiriman Hasil</div>
<div class="subheading">{{selected_patient.deliveries?selected_patient.deliveries.join(", "):''}}&nbsp;</div>
<div class="caption font-weight-light mt-2">Format Hasil</div>
<div class="subheading">{{langs}}&nbsp;</div>
</v-flex>
</v-layout>
<v-layout row wrap v-show="false">
<v-flex xs4 pr-2>
<v-text-field
label="Catatan FO"
outline
readonly
hide-details
v-model="selected_patient.T_OrderHeaderFoNote"
></v-text-field>
</v-flex>
<v-flex xs4 pr-2>
<v-text-field
label="Catatan Sampling"
outline
readonly
hide-details
v-model="selected_patient.T_OrderHeaderSamplingNote"
></v-text-field>
</v-flex>
<v-flex xs4>
<v-text-field
label="Catatan Sample Handling"
outline
readonly
hide-details
v-model="selected_patient.T_OrderHeaderResultNote"
></v-text-field>
</v-flex>
</v-layout>
<v-btn absolute dark top right
color="black" flat depressed
@click="detail=!detail"
class="btn-detail"
>
<v-icon>keyboard_arrow_down</v-icon>
</v-btn>
</v-card>
</v-flex>
</v-layout>
</template>
<style scoped>
.btn-detail {
min-width: 0px !important;
height: auto;
padding: 0px;
top: 5px;
right: 5px;
}
</style>
<script>
module.exports =
{
data() {
return {
detail: false
}
},
computed : {
selected_patient () {
let x = this.$store.state.re_patient.selected_patient
if (x)
return x
return {}
},
order_date() {
let d = this.selected_patient.T_OrderHeaderDate
let e = ''
try {
e = d.substr(0,10).split('-').reverse().join('-')
} catch(e) { /*console.log(e.message)*/ }
return e
},
dob_date() {
let d = this.selected_patient.M_PatientDOB
let e = ''
try {
e = d.substr(0,10).split('-').reverse().join('-')
} catch(e) { /*console.log(e.message)*/ }
return e
},
age() {
let d = this.selected_patient.T_OrderHeaderM_PatientAge
let e = ''
try {
e = d.replace(/tahun/, 'th').replace(/bulan/, 'bl').replace(/hari/, 'hr')
} catch(e) { /*console.log(e.message)*/ }
return e
},
langs() {
let x = this.selected_patient
if (!x) return ''
let si_01 = x.T_OrderHeaderLangIsSI == 'Y' ? ' (SI)' : ''
let si_02 = x.T_OrderHeaderAddOnSecondLangIsSI == 'Y' ? ' (SI)' : ''
if (!x.SecondM_LangID) return x.M_LangName + si_01
return x.M_LangName + si_01 + ', ' + x.SecondM_LangName + si_02
}
},
methods : {
}
}
</script>

View File

@@ -0,0 +1,134 @@
<template>
<v-layout class="fill-height" column>
<v-card class="grow">
<!-- <v-subheader>
<h3 class="title">DAFTAR PASIEN</h3>
</v-subheader> -->
<hr style="border-top:0px solid #c8c8c8;" />
<v-data-table
:headers="headers" :items="patients"
:loading="isLoading"
hide-actions class="xelevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2 green--text" v-bind:class="is_selected(props.item)"
@click="select(props.item)">
{{ props.item.T_OrderHeaderLabNumber }}
</td>
<td class="text-xs-left pa-2" v-bind:class="is_selected(props.item)"
@click="select(props.item)">
{{ props.item.M_PatientName }}
</td>
</template>
</v-data-table>
<v-pagination
v-model="curr_patient_page"
:length="total_patient_page"
:total-visible="5"
@input="change_page"
></v-pagination>
</v-card>
</v-layout>
</template>
<style scoped>
.searchbox .v-input.v-text-field .v-input__slot{
min-height:60px;
}
.searchbox .v-btn {
min-height:60px;
}
table.v-table tbody td,table.v-table tbody th {
height: 40px;
}
table.v-table thead tr {
height: 40px;
}
</style>
<script>
module.exports = {
data() {
return {
query: "",
items: [],
headers: [
{
text: "NO LAB",
align: "left",
sortable: false,
value: "mr",
width: "30%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "NAMA",
align: "left",
sortable: false,
value: "mr",
width: "70%",
class: "pa-2 blue lighten-3 white--text"
}
],
isLoading: false
};
},
methods : {
oneMoment : function(d) {
return window.oneMoment(d)
},
select (item) {
this.$store.commit('re_patient/update_selected_patient', item)
this.$store.commit('re_px/update_id', item.T_OrderHeaderID)
this.$store.dispatch('re_px/search')
this.$store.dispatch('re_patient/info_req')
// this.$store.commit('ver_verification/update_selected_sent_sample', item)
},
is_selected (item) {
let x = this.$store.state.re_patient.selected_patient
if (!x)
return ''
if (x.T_OrderHeaderID == item.T_OrderHeaderID)
return 'green lighten-4'
return ''
},
change_page(x) {
this.curr_patient_page = x
this.$store.dispatch('re_patient/search')
}
},
computed : {
patients () {
return this.$store.state.re_patient.patients
},
total_patient () {
return this.$store.state.re_patient.total_patient
},
total_patient_page () {
return this.$store.state.re_patient.total_patient_page
},
curr_patient_page : {
get () { return this.$store.state.re_patient.curr_patient_page },
set (v) { this.$store.commit('re_patient/update_curr_patient_page', v) }
}
},
mounted () {
this.$store.dispatch('re_patient/search')
}
}
</script>

View File

@@ -0,0 +1,505 @@
<template>
<v-layout class="fill-height flex-card" column>
<v-card class="fill-height">
<!-- <v-subheader>
<h3 class="title">DAFTAR PASIEN</h3>
</v-subheader> -->
<hr style="border-top:0px solid #c8c8c8;" />
<v-data-table
:headers="headers" :items="pxs"
:loading="isLoading"
hide-actions class="xelevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pt-2 pb-2 pr-2 green--text" v-bind:class="[margin_left(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'N'" colspan="8">
{{ props.item.t_testname }}
</td>
<td class="text-xs-left pt-2 pb-2 pr-2 green--text" v-bind:class="[margin_left(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'Y'">
{{ props.item.t_testname }}
</td>
<td class="text-xs-left pa-2" v-bind:class="[is_selected(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'Y'" style="position: relative">
<!-- <v-textarea
label=""
solo
rows=1
hide-details
v-on:keyup="update_result(props.index, $event.target.value)"
:value="props.item.result"
flat
readonly
></v-textarea> -->
<span class="body-1">{{init_result(props.item)}}</span>
</td>
<td class="text-xs-left pa-2" v-bind:class="[is_selected(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'Y'">
{{ !init_blank(props.item) ? props.item.result_flag : "" }}
</td>
<td class="text-xs-left pa-2" v-bind:class="[is_selected(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'Y'">
{{ !init_blank(props.item) ? props.item.normal_note : "" }}
</td>
<!-- <td class="text-xs-left pa-2" v-bind:class="[is_selected(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'Y'">
{{ props.item.unit_name }}
</td> -->
<td class="text-xs-left pa-2" v-bind:class="[is_selected(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'Y'">
{{ !init_blank(props.item) ? props.item.methode_name : "" }}
</td>
<td class="text-xs-left pa-2" v-bind:class="[is_selected(props.item), validation_color(props.item)]"
@click="select(props.index, props.item)" v-if="props.item.is_result == 'Y'">
<!-- <v-textarea
label=""
solo
rows=1
hide-details
v-on:keyup="update_note(props.index, $event.target.value)"
:value="props.item.note"
flat
readonly
></v-textarea> -->
<span class="body-1">{{ !init_blank(props.item) ? props.item.note : ""}}</span>
</td>
<td class="text-xs-center pa-1" v-if="props.item.is_result == 'Y'" v-bind:class="[validation_color(props.item)]" @click="select(props.index, props.item)">
<div class="text-xs-center">
<div class="text-xs-center">
<!-- <v-checkbox v-show="props.item.T_OrderDetailVerification == 'Y'" label="__" :input-value="validation(props.item)" false-value="N" true-value="Y" @change="validation_change($event, props.index)" class="mt-1 mr-1 ml-0 mb-0 cb-auto-ver" hide-details
:disabled="props.item.validation_old=='Y'"
></v-checkbox> -->
<v-btn fab
:dark="props.item.validation_old != 'Y'"
:disabled="props.item.validation_old == 'Y'"
small color="red" class="ma-0 float-left"
@click="reject(props.item)"
v-show="props.item.verification == 'Y'"
>
<v-icon>clear</v-icon>
</v-btn>
<v-btn fab
dark
small :color="props.item.validation=='Y'?'green':'grey'" class="ml-1 ma-0 float-left"
@click="validation_y(props.index)"
v-show="props.item.verification == 'Y'">
<v-icon>done</v-icon>
</v-btn>
<!-- <v-btn fab
:dark="props.item.sample_handling_perfect == 'Y'"
:disabled="props.item.sample_handling_perfect != 'Y'"
small color="lighten-2" class="ma-0" v-bind:class="props.item.mr_state == 'N' ? 'red' : 'green'" @click="mr(props.item.id)">
MR
</v-btn> -->
</div>
</div>
</td>
<td class="text-xs-center pa-1" v-if="props.item.is_result == 'Y'" v-bind:class="[validation_color(props.item)]">
<div class="text-xs-center">
<div class="text-xs-center">
<!-- <v-checkbox label="" :input-value="validation(props.item)" value="Y" false-value="N" @change="validation_change($event, props.index)" class="mt-1 mr-1 ml-0 mb-0 cb-auto-ver"></v-checkbox> -->
<v-btn v-show="props.item.verification == 'Y'" fab
:dark="props.item.sample_handling_perfect == 'Y' && props.item.validation_old != 'Y'"
small :color="delta_color(props.item) + ' lighten-2'" class="ma-0" @click="select(props.index, props.item); mr(props.item.id)"
:disabled="props.item && props.item.validation_old == 'Y'">
MR
</v-btn>
<v-btn fab
v-show="props.item.verification == 'Y'"
:dark="props.item.sample_handling_perfect == 'Y' && props.item && props.item.validation_old != 'Y'"
small :color="delta_color_2(props.item)+' lighten-2'" class="ma-0 ml-1" @click="select(props.index, props.item); trend(props.item.id)"
:disabled="props.item && props.item.validation_old == 'Y'">
<v-icon>equalizer</v-icon>
</v-btn>
<v-btn fab
v-show="props.item.verification == 'Y'"
:dark="props.item.sample_handling_perfect == 'Y' && props.item && props.item.validation_old != 'Y'"
small :color="delta_color_2(props.item)+' lighten-2'" class="ma-0 ml-1" @click="select(props.index, props.item); delta(props.item.id)"
:disabled="props.item && props.item.validation_old == 'Y'">
<span class="icon-delta"></span>
</v-btn>
</div>
</div>
</td>
</template>
</v-data-table>
</v-card>
<one-process-re-rerun-result></one-process-re-rerun-result>
<one-process-re-history></one-process-re-history>
<v-snackbar
v-model="snackbar"
:timeout="5000"
bottom right
>
{{ save_text }}
<v-btn
color="pink"
flat
@click="snackbar = false"
>
Close
</v-btn>
</v-snackbar>
<v-snackbar
v-model="snackbar_err"
:timeout="5000"
bottom right
color="red"
>
{{ err_text }}
<v-btn
color="pink"
flat
@click="snackbar_err = false"
>
Close
</v-btn>
</v-snackbar>
<one-process-rv-dialog-trend></one-process-rv-dialog-trend>
<one-process-rv-dialog-unval></one-process-rv-dialog-unval>
</v-layout>
</template>
<style scoped>
.searchbox .v-input.v-text-field .v-input__slot{
min-height:60px;
}
.searchbox .v-btn {
min-height:60px;
}
table.v-table tbody td,table.v-table tbody th {
height: 40px;
}
table.v-table thead tr {
height: 40px;
}
.btn_rerun {
position: absolute;
top: 10px;
right: 2px
}
.flex-card {
min-height: -webkit-min-content;
display: flex;
}
.v-text-field.v-text-field--solo .v-input__control {
min-height: 40px;
}
.v-textarea.v-text-field--box.v-text-field--single-line .v-text-field__prefix, .v-textarea.v-text-field--box.v-text-field--single-line textarea, .v-textarea.v-text-field--enclosed.v-text-field--single-line .v-text-field__prefix, .v-textarea.v-text-field--enclosed.v-text-field--single-line textarea {
margin-top: 6px;
}
.v-btn--floating {
border-radius: 0%;
}
/* .cb-auto-ver {
float: left;
} */
.cb-auto-ver .v-icon {
font-size: 40px;
}
.cb-auto-ver label {
color: transparent;
}
.v-btn--floating.v-btn--small {
height: 30px;
width: 30px;
}
.v-input--selection-controls__ripple {
position: relative !important;
}
</style>
<script>
module.exports = {
components : {
'one-process-re-rerun-result': httpVueLoader('./oneProcessReRerunResult.vue'),
'one-process-re-history': httpVueLoader('./oneProcessReHistory.vue'),
'one-process-rv-dialog-trend': httpVueLoader('./oneProcessRvDialogTrend.vue'),
'one-process-rv-dialog-unval': httpVueLoader('./oneProcessRvDialogUnval.vue')
},
data() {
return {
query: "",
save_text: "Data berhasil dikonfirmasi.",
err_text: "Tidak ada data yang perlu dikonfirmasi !",
items: [],
headers: [
{
text: "NAMA PEMERIKSAAN",
align: "left",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "HASIL",
align: "left",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "FLAG",
align: "left",
sortable: false,
value: "mr",
width: "10%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "NILAI NORMAL",
align: "left",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
// {
// text: "UNIT",
// align: "left",
// sortable: false,
// value: "mr",
// width: "10%",
// class: "pa-2 blue lighten-3 white--text"
// },
{
text: "METODE",
align: "left",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "CATATAN",
align: "left",
sortable: false,
value: "mr",
width: "10%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "VALIDASI",
align: "left",
sortable: false,
value: "mr",
width: "8%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "MR",
align: "center",
sortable: false,
value: "mr",
width: "20%",
class: "pa-2 blue lighten-3 white--text"
}
],
isLoading: false
};
},
methods : {
oneMoment : function(d) {
return window.oneMoment(d)
},
select (idx, item) {
this.$store.commit('re_px/update_selected_px', item)
this.$store.commit('re_px/update_selected_px_idx', idx)
// this.$store.commit('ver_validation/update_selected_sent_sample', item)
},
is_selected (item) {
return ''
},
margin_left (item) {
if (item.level == 3 || item.level == 2)
return 'pl-5'
return 'pl-2'
},
rerun_me () {
this.$store.commit('re_px/update_dialog_rerun', true)
},
update_result(idx, result) {
let x = this.$store.state.re_px.pxs
x[idx]['result'] = result
this.$store.commit('re_px/update_pxs', {records:x})
},
update_note(idx, note) {
let x = this.$store.state.re_px.pxs
x[idx]['note'] = note
this.$store.commit('re_px/update_pxs', {records:x})
},
validation(i) {
if (i.validation == "N" || i.validation == "Y")
return i.validation
if (i.sample_handling_perfect != "Y")
return "N"
if (i.mr_state == "N")
return "N"
return "Y"
},
validation_y(idx) {
let x = this.$store.state.re_px.pxs
let e = x[idx].validation
x[idx].validation = e == 'Y' ? 'N' : 'Y'
this.$store.commit("re_px/update_pxs", {records:x})
},
mr(x) {
this.$store.dispatch('re_px/mr_state')
this.$store.commit('re_px/update_dialog_trend', true)
},
validation_color(i) {
if (i.validation_old == "Y")
return "green lighten-4"
return""
},
delta_color(x) {
if (x.sample_handling_perfect == "N")
return "grey"
if (x.mr_state == "N")
return "red"
return "green"
},
delta_color_2(x) {
if (x.sample_handling_perfect == "N")
return "grey"
if (x.delta_check == "N")
return "red"
return "green"
},
init_result(x) {
if (x.validation_old == "Y" || x.verification == "Y")
return x.result
if (x.sample_receive != 'Y')
return ""
if (x.sample_receive == 'Y' && !x.pre_analytic)
return ""
if (x.sample_receive == 'Y' && x.pre_analytic)
{
if (x.sample_worklist_receive == "Y")
return x.result
else
return ""
}
},
init_blank(x) {
if (x.validation_old == "Y" || x.verification == "Y")
return false
if (x.sample_receive == "Y" &&
x.sample_worklist_receive == "Y" &&
!!x.pre_analytic &&
x.result != "" &&
x.result != null) return false
return true
},
trend(x) {
this.$store.dispatch('re_px/trend_analysis');
// this.$store.commit('re_px/update_dialog_trend', true)
},
delta(x) {
this.$store.dispatch('re_px/delta_check')
this.$store.commit('re_px/update_dialog_trend', true)
},
reject(x) {
this.$store.commit('re_px/update_dialog_unval', true)
}
},
computed : {
pxs () {
return this.$store.state.re_px.pxs
},
icon_info () {
return window.BASE_URL + '/one-ui/apps/image/info.png'
},
snackbar : {
get () { return this.$store.state.re_px.snackbar },
set (v) { this.$store.commit('re_px/update_snackbar', v) }
},
snackbar_err : {
get () { return this.$store.state.re_px.snackbar_err },
set (v) { this.$store.commit('re_px/update_snackbar_err', v) }
}
},
mounted () {
// this.$store.dispatch('re_patient/search')
}
}
</script>

View File

@@ -0,0 +1,154 @@
<template>
<v-dialog
v-model="dialog"
persistent
max-width="500px"
transition="dialog-transition"
>
<v-layout class="fill-height" column>
<v-card class="grow">
<v-card-text>
<v-data-table
:headers="headers" :items="reruns"
:loading="isLoading"
hide-actions class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2 green--text" v-bind:class="is_selected(props.item)">
{{ props.item.date }}
</td>
<td class="text-xs-left pa-2" v-bind:class="is_selected(props.item)">
{{ props.item.instrument }}
</td>
<td class="text-xs-left pa-2" v-bind:class="is_selected(props.item)">
{{ props.item.result }}
</td>
<td class="text-xs-left pa-2" v-bind:class="is_selected(props.item)">
<v-btn flat icon color="green" @click="select(props.item)">
<v-icon>get_app</v-icon>
</v-btn>
</td>
</template>
</v-data-table>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="dialog = false">Tutup</v-btn>
<!-- <v-btn color="blue darken-1" :dark="btn_save_enabled" @click="save" :disabled="!btn_save_enabled">Simpan</v-btn> -->
</v-card-actions>
</v-card>
</v-layout>
</v-dialog>
</template>
<style scoped>
.searchbox .v-input.v-text-field .v-input__slot{
min-height:60px;
}
.searchbox .v-btn {
min-height:60px;
}
table.v-table tbody td,table.v-table tbody th {
height: 40px;
}
table.v-table thead tr {
height: 40px;
}
</style>
<script>
module.exports = {
data() {
return {
query: "",
items: [],
headers: [
{
text: "TANGGAL",
align: "left",
sortable: false,
value: "mr",
width: "20%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "ALAT",
align: "left",
sortable: false,
value: "mr",
width: "35%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "HASIL",
align: "left",
sortable: false,
value: "mr",
width: "40%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "",
align: "left",
sortable: false,
value: "mr",
width: "5%",
class: "pa-2 blue lighten-3 white--text"
}
],
isLoading: false
};
},
methods : {
oneMoment : function(d) {
return window.oneMoment(d)
},
select (item) {
this.$store.commit('re_px/update_selected_rerun', item)
this.$store.commit('re_px/update_dialog_rerun', false)
let x = this.$store.state.re_px.pxs
x[this.$store.state.re_px.selected_px_idx]['result'] = item.result
this.$store.commit('re_px/update_pxs', {records:x})
},
is_selected (item) {
// let x = this.$store.state.re_patient.selected_patient
// if (!x)
// return ''
// if (x.T_OrderHeaderID == item.T_OrderHeaderID)
// return 'green lighten-4'
return ''
}
},
computed : {
reruns () {
return this.$store.state.re_px.reruns
},
dialog : {
get () { return this.$store.state.re_px.dialog_rerun },
set (v) { this.$store.commit('re_px/update_dialog_rerun', v) }
}
},
mounted () {
// this.$store.dispatch('re_px/search_rerun')
}
}
</script>

View File

@@ -0,0 +1,302 @@
<template>
<v-card class="mb-1 pa-1">
<v-layout row>
<v-flex xs4>
<v-layout>
<one-date-picker
label="Tanggal"
:date="sdate"
data="0"
@change="changeDate"
></one-date-picker>
<!-- <v-text-field class="flex xs4 ma-1"
placeholder="No Lab"
single-line
solo
hide-details
v-model="nolab"
></v-text-field> -->
<v-text-field class="flex xs8 ma-1"
label=""
placeholder="No Reg / Nama"
single-line
solo
hide-details
v-model="search"
@keyup.native="keySearch"
></v-text-field>
</v-layout>
</v-flex>
<!-- <v-flex xs3 pt-1 pl-2>
<v-select
:items="groups"
v-model="selected_group"
item-text="group_name"
item-value="group_id"
label="Grup Pemeriksaan"
return-object
solo
hide-details
@change="searchs"
></v-select>
</v-flex> -->
<v-flex xs1>
<v-layout>
<v-btn class="btn-search one-btn-icon ma-1" color="success" @click="searchs" >
<span class="icon-search"><span>
</v-btn>
</v-layout>
</v-flex>
<v-flex xs7 class="text-xs-right">
<v-layout row wrap>
<v-flex xs2 class="text-xs-left">
<!-- <div class="mt-1">
<v-btn dark fab small color="success" class="ma-0 btn-legend">MR</v-btn>
<v-btn dark fab small color="red" class="ma-0 btn-legend">MR</v-btn>
Multi Rule</div> -->
<!-- <div class="mt-1">
<v-btn dark fab small color="success" class="ma-0 btn-legend">D</v-btn>
<v-btn dark fab small color="red" class="ma-0 btn-legend">D</v-btn>
Delta Check</div> -->
&nbsp;
</v-flex>
<v-flex xs10>
<!-- <img v-if="img_lang" :src="'../../../libs/image/' + img_lang_2(lang.code, lang.is_si)" height="36" style="float:left" alt="" class="mt-1" /> -->
<v-btn v-show="!info_req_perfect" class="btn-search one-btn-icon ma-1" color="red" @click="info" dark >
<v-icon>info</v-icon>
</v-btn>
<v-btn
color="blue-grey"
class="white--text ma-1"
@click="histories"
v-show="btn_history_show"
>
Histori
</v-btn>
<v-btn
color="orange"
class="white--text ma-1"
@click="printMe"
:disabled="!order_id || !contain_val"
:dark="order_id != 0 && contain_val"
>
Cetak
</v-btn>
<v-btn
color="blue"
class="white--text ma-1"
@click="save_result"
:disabled="!btn_validation_enable"
:dark="btn_validation_enable"
v-show="btn_validation_show"
>
Validasi
<v-icon right dark>save_alt</v-icon>
</v-btn>
<v-btn
color="red"
class="white--text ma-1"
@click="unvalidate"
dark
v-show="!btn_validation_show"
>
UnValidasi
<v-icon right dark>save_alt</v-icon>
</v-btn>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card>
</template>
<style scoped>
.btn-legend {
height: 25px;
width: 25px;
border-radius: 0%;
}
button {
height: 48px;
}
.btn-search {
font-size: 1.5em
}
</style>
<script>
module.exports = {
components : {
'one-date-picker' : httpVueLoader('./oneDatePicker.vue')
},
computed : {
nolab : {
get () { return this.$store.state.re_patient.nolab },
set (v) { this.$store.commit('re_patient/update_nolab', v) }
},
search : {
get () { return this.$store.state.re_patient.search },
set (v) { this.$store.commit('re_patient/update_search', v) }
},
groups () {
return this.$store.state.re_px.groups
},
selected_group : {
get () { return this.$store.state.re_px.selected_group },
set (v) { this.$store.commit('re_px/update_selected_group', v) }
},
order_id () {
return this.$store.state.re_px.order_id
},
contain_val () {
return this.$store.state.re_px.contain_val
},
lang () {
return {code:this.$store.state.re_patient.selected_patient.M_LangCode, is_si:this.$store.state.re_patient.selected_patient.is_si}
},
img_lang () {
if (this.lang.code == "ID")
return "flag-ina_48.png"
else if (this.lang.code == "EN")
return "flag-us_48.png"
},
sdate : {
get () { return this.$store.state.re_patient.s_date },
set (v) { this.$store.commit('re_patient/update_sdate', v) }
},
selected_patient () {
return this.$store.state.re_patient.selected_patient
},
btn_history_show () {
if (!this.selected_patient) return false
if (!this.selected_patient.is_history) return false
if (this.selected_patient.is_history == "N") return false
return true
},
info_req_perfect () {
let x = false
try {
x = this.$store.state.re_patient.info_req.is_perfect == 'Y';
} catch (error) {
}
return x
},
btn_validation_enable() {
let x = this.$store.state.re_px.pxs
// console.log(x)
let y = 0, n = 0
for(let i in x) {
// console.log(i+' : '+x[i].t_testname+' : '+x[i].is_result+' : '+x[i].validation+' : '+x[i].verification)
if (x[i].is_result == 'Y') {
n++
if (x[i].validation == 'Y')
{y++;}
}
}
// console.log("n:"+n+" y:"+y)
if (y < 1) return false
return true
},
btn_validation_show() {
let x = this.$store.state.re_px.pxs
let z = 0, n = 0
for(let i in x) {
if (x[i].is_result == 'Y') {
n++
if (x[i].validation_old == 'Y')
z++
}
}
if (z == n) return false
return true
}
},
methods : {
searchs() {
this.$store.dispatch('re_patient/search')
},
keySearch(e) {
if (e.which == 13) {
this.searchs()
}
},
save_result() {
this.$store.dispatch('re_px/confirm')
},
histories() {
this.$store.commit('re_history/update_dialog_history', true)
},
printMe() {
this.$store.commit('re_patient/update_rpt_url', this.$store.state.re_patient.selected_patient.T_OrderHeaderID)
this.$store.commit('re_patient/update_print_dialog', true)
this.$store.dispatch('re_px/print_count')
},
img_lang_2 (lang, si) {
if (lang == "ID" && si == "N")
return "inako.png"
if (lang == "ID" && si == "Y")
return "inasi.png"
if (lang == "EN" && si == "N")
return "engko.png"
if (lang == "EN" && si == "Y")
return "engsi.png"
},
changeDate(x) {
this.sdate = x.new_date
this.searchs()
},
note() {
this.$store.commit('re_patient/update_dialog_note', true)
},
info() {
this.$store.commit('re_patient/update_dialog_req', true)
},
unvalidate() {
this.$store.dispatch('re_px/unvalidate')
}
},
mounted () {
this.$store.dispatch('re_px/search_group')
}
}
</script>

View File

@@ -0,0 +1,61 @@
<template>
<div class="text-xs-center">
<v-dialog
v-model="dialog"
width="500"
>
<v-card>
<v-img
v-if="info_trend.image"
:src="info_trend.image"
></v-img>
<v-card-title
v-if="info_trend.title"
class="headline grey lighten-2"
primary-title
>
{{ info_trend.title }}
</v-card-title>
<v-card-text v-if="info_trend.note">
{{ info_trend.note }}
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
flat
@click="dialog = false"
>
I accept
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>
</template>
<script>
module.exports = {
data () {
return {
}
},
computed : {
dialog : {
get () { return this.$store.state.re_px.dialog_trend },
set (v) { this.$store.commit("re_px/update_dialog_trend", v) }
},
info_trend () { return this.$store.state.re_px.info_trend }
}
}
</script>

View File

@@ -0,0 +1,61 @@
<template>
<div class="text-xs-center">
<v-dialog
v-model="dialog"
width="500"
>
<v-card>
<v-img
v-if="info_trend.image"
:src="info_trend.image"
></v-img>
<v-card-title
v-if="info_trend.title"
class="headline grey lighten-2"
primary-title
>
{{ info_trend.title }}
</v-card-title>
<v-card-text v-if="info_trend.note">
{{ info_trend.note }}
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
flat
@click="dialog = false"
>
I accept
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>
</template>
<script>
module.exports = {
data () {
return {
}
},
computed : {
dialog : {
get () { return this.$store.state.re_px.dialog_trend },
set (v) { this.$store.commit("re_px/update_dialog_trend", v) }
},
info_trend () { return this.$store.state.re_px.info_trend }
}
}
</script>

View File

@@ -0,0 +1,82 @@
<template>
<div class="text-xs-center">
<v-dialog
v-model="dialog"
width="500"
>
<v-card>
<v-card-title
class="headline grey lighten-2"
primary-title
>
Tolak Pemeriksaan
</v-card-title>
<v-card-text>
<v-radio-group v-model="selected_unval_action">
<v-radio
v-for="(unval, n) in unval_actions"
v-bind:key="n"
:label="unval.label"
:value="unval.val"></v-radio>
</v-radio-group>
</v-card-text>
<v-card-actions>
<v-btn
color="primary"
flat
@click="dialog=!dialog"
>
Tutup
</v-btn>
<v-spacer></v-spacer>
<v-btn
color="primary"
@click="reject"
:disabled="!selected_unval_action"
:dark="!!selected_unval_action"
>
Tolak
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>
</template>
<script>
module.exports = {
data () {
return {
}
},
computed : {
dialog : {
get () { return this.$store.state.re_px.dialog_unval },
set (v) { this.$store.commit("re_px/update_dialog_unval", v) }
},
unval_actions () {
return this.$store.state.re_px.unval_actions
},
selected_unval_action : {
get () { return this.$store.state.re_px.selected_unval_action },
set (v) { this.$store.commit('re_px/update_selected_unval_action', v) }
}
},
methods : {
reject () {
this.$store.dispatch('re_px/reject')
this.dialog = false
}
}
}
</script>

View File

@@ -0,0 +1,46 @@
<template>
<div class="text-xs-center">
<v-dialog
v-model="dialog"
width="500"
>
<v-card>
<v-card-text>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-btn color="primary" flat @click="dialog = !dialog">Tutup</v-btn>
<v-spacer></v-spacer>
<v-btn
color="primary"
flat
@click="dialog = false"
>
Simpan
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>
</template>
<script>
module.exports = {
data () {
return {
}
},
computed : {
dialog : {
get () { return this.$store.state.re_verification.dialog_verification },
set (v) { this.$store.commit("re_verification/update_dialog_verification", v) }
}
}
}
</script>