Initial import
This commit is contained in:
29
process/one-process-result-validation/api/re_history.js
Normal file
29
process/one-process-result-validation/api/re_history.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/resultvalidation/";
|
||||
|
||||
export async function search(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 're_px/search', {
|
||||
token: token,
|
||||
order_id: order_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
29
process/one-process-result-validation/api/re_patient.js
Normal file
29
process/one-process-result-validation/api/re_patient.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/resultvalidation/";
|
||||
|
||||
export async function search(token, nolab, search, page) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_patient/search', {
|
||||
token: token,
|
||||
nolab: nolab,
|
||||
search: search,
|
||||
page: page
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
95
process/one-process-result-validation/api/re_px.js
Normal file
95
process/one-process-result-validation/api/re_px.js
Normal file
@@ -0,0 +1,95 @@
|
||||
// API :
|
||||
// search bank
|
||||
// paramater : query , page , rowPerPage
|
||||
const URL =
|
||||
"/one-api/mockup/process/resultvalidation/";
|
||||
|
||||
export async function search(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_px/search', {
|
||||
token: token,
|
||||
order_id: order_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function confirm(token, datax) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/confirm', {
|
||||
token: token,
|
||||
data: datax
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function mr_state(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/mr_state', {
|
||||
token: token,
|
||||
order_id: order_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function print_count(token, order_id) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'rv_validation/print_count', {
|
||||
token: token,
|
||||
order_id: order_id
|
||||
});
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
<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 () {
|
||||
return this.$store.state.re_patient.selected_patient.delivery
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,158 @@
|
||||
<template>
|
||||
<v-dialog
|
||||
v-model="dialog"
|
||||
persistent
|
||||
max-width="500px"
|
||||
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-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">
|
||||
<template slot="items" slot-scope="props">
|
||||
<td class="text-xs-left pa-2 green--text" v-bind:class="is_selected(props.item)">
|
||||
{{ props.item.px_name }}
|
||||
</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)">
|
||||
{{ 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 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: "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 ''
|
||||
}
|
||||
},
|
||||
|
||||
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) }
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
// this.$store.dispatch('re_px/search_rerun')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,184 @@
|
||||
<template>
|
||||
<v-card class="pa-2">
|
||||
<v-layout row>
|
||||
<v-flex xs3>
|
||||
<v-layout row wrap pr-2>
|
||||
<v-flex xs7 pr-2>
|
||||
|
||||
<v-text-field
|
||||
label="Nomor Lab"
|
||||
v-model="selected_patient.T_OrderHeaderLabNumber"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs5>
|
||||
<v-text-field
|
||||
label="Tanggal"
|
||||
v-model="order_date"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="Nama"
|
||||
v-model="selected_patient.M_PatientName"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs3>
|
||||
<v-layout row wrap pl-2>
|
||||
<v-flex xs5 pr-2>
|
||||
<v-text-field
|
||||
label="DOB"
|
||||
v-model="dob_date"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs7 pl-2>
|
||||
<v-text-field
|
||||
label="Umur"
|
||||
v-model="age"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="Jenis Kelamin"
|
||||
v-model="selected_patient.M_SexName"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs3>
|
||||
<v-layout row wrap pl-2>
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="Dokter"
|
||||
v-model="selected_patient.doctor_pj_name"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="Company"
|
||||
v-model="selected_patient.M_CompanyName"
|
||||
readonly
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs3>
|
||||
<v-layout row wrap pl-2>
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="No HP"
|
||||
v-model="selected_patient.M_PatientHP"
|
||||
readonly
|
||||
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="Catatan Pasien"
|
||||
outline
|
||||
readonly
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
<v-layout row wrap>
|
||||
<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-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
computed : {
|
||||
selected_patient () {
|
||||
return this.$store.state.re_patient.selected_patient
|
||||
},
|
||||
|
||||
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
|
||||
}
|
||||
},
|
||||
|
||||
methods : {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,133 @@
|
||||
<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.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>
|
||||
@@ -0,0 +1,385 @@
|
||||
<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="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="7">
|
||||
{{ 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>
|
||||
</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'">
|
||||
|
||||
</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'">
|
||||
-
|
||||
</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'">
|
||||
-
|
||||
</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>
|
||||
</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 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.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 fab
|
||||
:dark="props.item.sample_handling_perfect == 'Y'"
|
||||
small :color="delta_color(props.item) + ' lighten-2'" class="ma-0" @click="select(props.index, props.item); mr(props.item.id)">
|
||||
MR
|
||||
</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>
|
||||
</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: 4px;
|
||||
right: 2px
|
||||
}
|
||||
|
||||
.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')
|
||||
},
|
||||
|
||||
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: "CATATAN",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "20%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "VALIDASI",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "5%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "MR",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "10%",
|
||||
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_change(e, idx) {
|
||||
|
||||
if (e == null) e = "N"
|
||||
let x = this.$store.state.re_px.pxs
|
||||
x[idx].validation = e
|
||||
|
||||
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"
|
||||
}
|
||||
},
|
||||
|
||||
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>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,177 @@
|
||||
<template>
|
||||
<v-card class="mb-1 pa-1">
|
||||
<v-layout row>
|
||||
<v-flex xs4>
|
||||
<v-layout>
|
||||
<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="Nama"
|
||||
single-line
|
||||
solo
|
||||
hide-details
|
||||
v-model="search"
|
||||
></v-text-field>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs3 pt-1 pl-2>
|
||||
<v-select
|
||||
:items="groups"
|
||||
v-model="selected_group"
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
label="Grup Pemeriksaan"
|
||||
return-object
|
||||
solo
|
||||
hide-details
|
||||
></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 xs4 class="text-xs-right">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs4 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> -->
|
||||
|
||||
</v-flex>
|
||||
<v-flex xs8>
|
||||
<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
|
||||
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"
|
||||
>
|
||||
Validasi
|
||||
<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 = {
|
||||
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"
|
||||
}
|
||||
},
|
||||
|
||||
methods : {
|
||||
searchs() {
|
||||
this.$store.dispatch('re_patient/search')
|
||||
},
|
||||
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -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>
|
||||
104
process/one-process-result-validation/index.php
Normal file
104
process/one-process-result-validation/index.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>One</title>
|
||||
<link rel="stylesheet" href="../../libs/vendor/css/google-fonts.css">
|
||||
<link rel="stylesheet" href="../../libs/vendor/css/vuetify.min.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div v-cloak id="app">
|
||||
<v-app id="smartApp" >
|
||||
<one-navbar></one-navbar>
|
||||
<v-content class="blue lighten-5" >
|
||||
<v-container fluid pt-2 pb-2 pl-1 pr-1>
|
||||
<v-layout column>
|
||||
<v-flex>
|
||||
|
||||
<one-process-re-search-box></one-process-re-search-box>
|
||||
|
||||
</v-flex>
|
||||
|
||||
<v-flex>
|
||||
<v-layout>
|
||||
<v-flex xs3 pr-1>
|
||||
<one-process-re-patient-list></one-process-re-patient-list>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs9 pl-1>
|
||||
<v-layout column>
|
||||
<v-flex xs12>
|
||||
<one-process-re-patient-detail></one-process-re-patient-detail>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12 pt-2>
|
||||
<one-process-re-px-list></one-process-re-px-list>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-flex>
|
||||
|
||||
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</v-content>
|
||||
<one-footer> </one-footer>
|
||||
<one-dialog-print></one-dialog-print>
|
||||
</v-app>
|
||||
</div>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="../../libs/vendor/axios.min.js"></script>
|
||||
<script src="../../libs/vendor/moment.min.js"></script>
|
||||
<script src="../../libs/vendor/moment-locale-id.js"></script>
|
||||
<script src="../../libs/vendor/vue.js"></script>
|
||||
<script src="../../libs/vendor/vuex.js"></script>
|
||||
<script src="../../libs/vendor/vuetify.js"></script>
|
||||
<script src="../../libs/vendor/httpVueLoader.js"></script>
|
||||
<script src="../../libs/one_global.js"></script>
|
||||
<!-- App Script -->
|
||||
<?php
|
||||
$ts = "?ts=" . Date("ymdhis");
|
||||
?>
|
||||
<script type="module">
|
||||
import { store } from './store.js<?php echo $ts ?>';
|
||||
//for testing
|
||||
window.store = store;
|
||||
new Vue({
|
||||
store,
|
||||
el: '#app',
|
||||
components: {
|
||||
'one-navbar': httpVueLoader('../../apps/components/oneNavbarComponent.vue'),
|
||||
'one-footer': httpVueLoader('../../apps/components/oneFooter.vue'),
|
||||
'one-process-re-search-box': httpVueLoader('./components/oneProcessReSearchBox.vue'),
|
||||
'one-process-re-patient-list': httpVueLoader('./components/oneProcessRePatientList.vue'),
|
||||
'one-process-re-patient-detail': httpVueLoader('./components/oneProcessRePatientDetail.vue'),
|
||||
'one-process-re-px-list': httpVueLoader('./components/oneProcessRePxList.vue'),
|
||||
'one-dialog-print': httpVueLoader('./components/oneDialogPrint.vue')
|
||||
},
|
||||
|
||||
computed : {
|
||||
tab_active () {
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
mounted () {
|
||||
// store.dispatch('receive_patient/search')
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
[v-cloak] {
|
||||
display: none
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
95
process/one-process-result-validation/modules/re_history.js
Normal file
95
process/one-process-result-validation/modules/re_history.js
Normal file
@@ -0,0 +1,95 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
import * as api from "../api/re_history.js"
|
||||
window.api = api
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
order_id:0,
|
||||
|
||||
search_status:0,
|
||||
search_error_message:'',
|
||||
search_dialog_is_active: false,
|
||||
|
||||
// HISTORY
|
||||
total_px: 0,
|
||||
pxs: [{
|
||||
date: '2019-07-07',
|
||||
data: [
|
||||
{px_name: 'Hematologi Rutin', is_result: 'N', result: '', flag: '', level:1},
|
||||
{px_name: 'Trombosit', is_result: 'Y', result: '300', flag: 'H', level:2},
|
||||
{px_name: 'Leukosit', is_result: 'Y', result: '100', flag: '', level:2},
|
||||
{px_name: 'Hemoglobin', is_result: 'Y', result: '105', flag: '', level:2} ]
|
||||
},
|
||||
{
|
||||
date: '2019-06-07',
|
||||
data: [
|
||||
{px_name: 'SGOT', is_result: 'Y', result: '230', flag: '', level:1},
|
||||
{px_name: 'SGPT', is_result: 'Y', result: '320', flag: 'H', level:1} ]
|
||||
}],
|
||||
selected_px: {},
|
||||
selected_px_idx: 0,
|
||||
|
||||
dialog_history: false
|
||||
},
|
||||
mutations: {
|
||||
update_search_dialog_is_active(state,status) {
|
||||
state.search_dialog_is_active = status
|
||||
},
|
||||
update_search_error_message(state,status) {
|
||||
state.search_error_message = status
|
||||
},
|
||||
|
||||
update_search_status(state,status) {
|
||||
state.search_status = status
|
||||
},
|
||||
|
||||
update_id(state, id) {
|
||||
state.order_id = id
|
||||
},
|
||||
|
||||
update_pxs(state, pxs) {
|
||||
state.pxs = pxs.records
|
||||
},
|
||||
|
||||
update_selected_px(state, px) {
|
||||
state.selected_px = px
|
||||
},
|
||||
|
||||
update_selected_px_idx(state, idx) {
|
||||
state.selected_px_idx = idx
|
||||
},
|
||||
|
||||
update_dialog_history(state, v) {
|
||||
state.dialog_history = v
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
// async search(context) {
|
||||
// context.commit("update_search_status", 1)
|
||||
// try {
|
||||
// let resp= await api.search(one_token(), context.state.order_id)
|
||||
|
||||
// if (resp.status != "OK") {
|
||||
|
||||
// context.commit("update_search_status", 3)
|
||||
// context.commit("update_search_error_message", resp.message)
|
||||
// } else {
|
||||
// context.commit("update_search_status",2)
|
||||
// context.commit("update_search_error_message","")
|
||||
|
||||
// let data = {
|
||||
// records : resp.data.records,
|
||||
// total: resp.data.total
|
||||
// }
|
||||
// context.commit("update_pxs", data)
|
||||
// }
|
||||
// } catch(e) {
|
||||
// context.commit("update_search_status",3)
|
||||
// context.commit("update_search_error_message",e.message )
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
146
process/one-process-result-validation/modules/re_patient.js
Normal file
146
process/one-process-result-validation/modules/re_patient.js
Normal file
@@ -0,0 +1,146 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
import * as api from "../api/re_patient.js"
|
||||
window.api = api
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
order_id:0,
|
||||
search: '',
|
||||
nolab: '',
|
||||
sdate: null,
|
||||
edate: null,
|
||||
|
||||
search_status:0,
|
||||
search_error_message:'',
|
||||
search_dialog_is_active: false,
|
||||
|
||||
patients: [],
|
||||
total_patient: 0,
|
||||
total_patient_page: 0,
|
||||
curr_patient_page: 1,
|
||||
selected_patient: { },
|
||||
|
||||
|
||||
// PX
|
||||
total_px: 0,
|
||||
pxs: [],
|
||||
|
||||
// Print
|
||||
print_dialog: false,
|
||||
rpt_url: ''
|
||||
},
|
||||
mutations: {
|
||||
update_search_dialog_is_active(state,status) {
|
||||
state.search_dialog_is_active = status
|
||||
},
|
||||
update_search_error_message(state,status) {
|
||||
state.search_error_message = status
|
||||
},
|
||||
|
||||
update_search(state,val) {
|
||||
state.search=val
|
||||
},
|
||||
|
||||
update_nolab(state, val) {
|
||||
state.nolab = val
|
||||
},
|
||||
|
||||
update_search_status(state,status) {
|
||||
state.search_status = status
|
||||
},
|
||||
|
||||
update_patients(state, data) {
|
||||
state.patients= data.records
|
||||
state.total_patient = data.total
|
||||
state.total_patient_page = data.total_page
|
||||
},
|
||||
|
||||
update_curr_patient_page(state, data) {
|
||||
state.curr_patient_page = data
|
||||
},
|
||||
|
||||
update_selected_patient(state,val) {
|
||||
state.selected_patient=val
|
||||
},
|
||||
|
||||
update_id(state, id) {
|
||||
state.order_id = id
|
||||
},
|
||||
|
||||
update_pxs(state, pxs) {
|
||||
state.pxs = pxs.records
|
||||
},
|
||||
|
||||
update_sdate(state, date) {
|
||||
state.sdate = date
|
||||
},
|
||||
|
||||
update_edate(state, date) {
|
||||
state.edate = date
|
||||
},
|
||||
|
||||
update_print_dialog(state, v) {
|
||||
state.print_dialog = v
|
||||
},
|
||||
|
||||
update_rpt_url(state, v) {
|
||||
let user = window.one_user()
|
||||
state.rpt_url = '/birt/run?__report=report/one/lab/rpt_test.rptdesign&__format=pdf&username='+user.M_UserUsername+'%20&PID='+v+'&ts='+Math.floor(Date.now() / 1000)
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async search(context) {
|
||||
context.commit("update_search_status", 1)
|
||||
try {
|
||||
let resp= await api.search(one_token(), context.state.nolab, context.state.search, context.state.curr_patient_page)
|
||||
|
||||
if (resp.status != "OK") {
|
||||
|
||||
context.commit("update_search_status", 3)
|
||||
context.commit("update_search_error_message", resp.message)
|
||||
} else {
|
||||
context.commit("update_search_status",2)
|
||||
context.commit("update_search_error_message","")
|
||||
let data = {
|
||||
records : resp.data.records,
|
||||
total: resp.data.total,
|
||||
total_page: resp.data.total_page
|
||||
}
|
||||
context.commit("update_patients", data)
|
||||
}
|
||||
} catch(e) {
|
||||
context.commit("update_search_status",3)
|
||||
context.commit("update_search_error_message",e.message )
|
||||
}
|
||||
},
|
||||
|
||||
// async search_px(context) {
|
||||
// context.commit("update_search_status", 1)
|
||||
// try {
|
||||
// let resp= await api.search_px(context.state.selected_worklist.T_WorklistID,
|
||||
// context.state.sdate,
|
||||
// context.state.edate)
|
||||
|
||||
// if (resp.status != "OK") {
|
||||
|
||||
// context.commit("update_search_status", 3)
|
||||
// context.commit("update_search_error_message", resp.message)
|
||||
// } else {
|
||||
// context.commit("update_search_status",2)
|
||||
// context.commit("update_search_error_message","")
|
||||
// let data = {
|
||||
// records : resp.data.records,
|
||||
// total: resp.data.total
|
||||
// }
|
||||
// context.commit("update_pxs", data)
|
||||
// }
|
||||
// } catch(e) {
|
||||
// context.commit("update_search_status",3)
|
||||
// context.commit("update_search_error_message",e.message )
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
217
process/one-process-result-validation/modules/re_px.js
Normal file
217
process/one-process-result-validation/modules/re_px.js
Normal file
@@ -0,0 +1,217 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
import * as api from "../api/re_px.js"
|
||||
window.api = api
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
order_id: 0,
|
||||
contain_val: false,
|
||||
|
||||
search_status:0,
|
||||
search_error_message:'',
|
||||
search_dialog_is_active: false,
|
||||
|
||||
// PX
|
||||
total_px: 0,
|
||||
pxs: [],
|
||||
selected_px: {},
|
||||
selected_px_idx: 0,
|
||||
|
||||
groups: [{id:'1', name:'DUMMY - KIMIA'}, {id:'2', name:'DUMMY - HEMATOLOGI'}],
|
||||
selected_group: {},
|
||||
|
||||
reruns: [{date:'2019-07-10 08:00', instrument:'COBAS', result:'56'}, {date:'2019-07-10 08:20', instrument:'COBAS', result:'68'}],
|
||||
selected_rerun: {},
|
||||
dialog_rerun: false,
|
||||
snackbar: false,
|
||||
snackbar_err: false,
|
||||
|
||||
dialog_trend: false,
|
||||
info_trend: {}
|
||||
},
|
||||
mutations: {
|
||||
update_search_dialog_is_active(state,status) {
|
||||
state.search_dialog_is_active = status
|
||||
},
|
||||
update_search_error_message(state,status) {
|
||||
state.search_error_message = status
|
||||
},
|
||||
|
||||
update_search_status(state,status) {
|
||||
state.search_status = status
|
||||
},
|
||||
|
||||
update_id(state, id) {
|
||||
state.order_id = id
|
||||
},
|
||||
|
||||
update_pxs(state, pxs) {
|
||||
state.pxs = pxs.records
|
||||
},
|
||||
|
||||
update_selected_px(state, px) {
|
||||
state.selected_px = px
|
||||
},
|
||||
|
||||
update_selected_px_idx(state, idx) {
|
||||
state.selected_px_idx = idx
|
||||
},
|
||||
|
||||
update_selected_group(state, group) {
|
||||
state.selected_group = group
|
||||
},
|
||||
|
||||
update_dialog_rerun(state, v) {
|
||||
state.dialog_rerun = v
|
||||
},
|
||||
|
||||
update_reruns(state, reruns) {
|
||||
state.reruns = reruns.records
|
||||
},
|
||||
|
||||
update_selected_rerun(state, rerun) {
|
||||
state.selected_rerun = rerun
|
||||
},
|
||||
|
||||
update_snackbar(state, v) {
|
||||
state.snackbar = v
|
||||
},
|
||||
|
||||
update_snackbar_err(state, v) {
|
||||
state.snackbar_err = v
|
||||
},
|
||||
|
||||
update_dialog_trend(state, v) {
|
||||
state.dialog_trend = v
|
||||
},
|
||||
|
||||
update_info_trend(state, v) {
|
||||
state.info_trend = v
|
||||
},
|
||||
|
||||
update_contain_val(state, v) {
|
||||
state.contain_val = v
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async search(context) {
|
||||
context.commit("update_search_status", 1)
|
||||
context.commit('update_contain_val', false)
|
||||
try {
|
||||
let resp= await api.search(one_token(), context.state.order_id)
|
||||
|
||||
if (resp.status != "OK") {
|
||||
|
||||
context.commit("update_search_status", 3)
|
||||
context.commit("update_search_error_message", resp.message)
|
||||
} else {
|
||||
context.commit("update_search_status",2)
|
||||
context.commit("update_search_error_message","")
|
||||
|
||||
let data = {
|
||||
records : resp.data.records,
|
||||
total: resp.data.total
|
||||
}
|
||||
|
||||
for (let i in data.records) {
|
||||
let x = data.records[i]
|
||||
if (x.validation == "X" && x.sample_handling_perfect == "Y") {
|
||||
if (x.mr_state == "Y")
|
||||
x.validation = "Y"
|
||||
else
|
||||
x.validation = "N"
|
||||
|
||||
data.records[i] = x
|
||||
}
|
||||
|
||||
if (x.validation_old == "Y")
|
||||
context.commit('update_contain_val', true)
|
||||
}
|
||||
|
||||
context.commit("update_pxs", data)
|
||||
}
|
||||
} catch(e) {
|
||||
context.commit("update_search_status",3)
|
||||
context.commit("update_search_error_message",e.message )
|
||||
}
|
||||
},
|
||||
|
||||
async confirm(context) {
|
||||
let data = []
|
||||
let x = context.state.pxs
|
||||
for (let i in x) {
|
||||
let y = x[i]
|
||||
if (y.validation != "X" && y.validation_old != y.validation)
|
||||
data.push({id:y.id, mr_state:y.mr_state, validation:y.validation, test_id:y.t_testid, test_name:y.t_testname})
|
||||
}
|
||||
|
||||
if (data.length < 1) {
|
||||
context.commit('update_snackbar_err', true)
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
let resp= await api.confirm(one_token(), JSON.stringify(data))
|
||||
|
||||
if (resp.status != "OK") {
|
||||
|
||||
context.commit("update_search_status", 3)
|
||||
context.commit("update_search_error_message", resp.message)
|
||||
} else {
|
||||
context.commit("update_search_status",2)
|
||||
context.commit("update_search_error_message","")
|
||||
|
||||
context.dispatch("search")
|
||||
context.commit("update_snackbar", true)
|
||||
}
|
||||
} catch(e) {
|
||||
context.commit("update_search_status",3)
|
||||
context.commit("update_search_error_message",e.message )
|
||||
}
|
||||
},
|
||||
|
||||
async mr_state(context) {
|
||||
context.commit("update_search_status", 1)
|
||||
try {
|
||||
let resp= await api.mr_state(one_token(), context.state.selected_px.id)
|
||||
|
||||
if (resp.status != "OK") {
|
||||
|
||||
context.commit("update_search_status", 3)
|
||||
context.commit("update_search_error_message", resp.message)
|
||||
} else {
|
||||
context.commit("update_search_status",2)
|
||||
context.commit("update_search_error_message","")
|
||||
|
||||
context.commit('update_info_trend', resp.data)
|
||||
context.commit('update_dialog_trend', true)
|
||||
}
|
||||
} catch(e) {
|
||||
context.commit("update_search_status",3)
|
||||
context.commit("update_search_error_message",e.message )
|
||||
}
|
||||
},
|
||||
|
||||
async print_count(context) {
|
||||
let order_id = context.state.order_id
|
||||
try {
|
||||
let resp= await api.print_count(one_token(), order_id)
|
||||
|
||||
if (resp.status != "OK") {
|
||||
|
||||
context.commit("update_search_status", 3)
|
||||
context.commit("update_search_error_message", resp.message)
|
||||
} else {
|
||||
context.commit("update_search_status",2)
|
||||
context.commit("update_search_error_message","")
|
||||
}
|
||||
} catch(e) {
|
||||
context.commit("update_search_status",3)
|
||||
context.commit("update_search_error_message",e.message )
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
32
process/one-process-result-validation/store.js
Normal file
32
process/one-process-result-validation/store.js
Normal file
@@ -0,0 +1,32 @@
|
||||
// State
|
||||
// data ...
|
||||
// Mutations
|
||||
//
|
||||
//
|
||||
// Actions
|
||||
import re_patient from "./modules/re_patient.js";
|
||||
import re_px from "./modules/re_px.js";
|
||||
import re_history from "./modules/re_history.js";
|
||||
import system from "../../apps/modules/system/system.js";
|
||||
|
||||
export const store = new Vuex.Store({
|
||||
state : {
|
||||
tab_active : '01',
|
||||
tabs : [
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
mutations : {
|
||||
change_tab(state, tab) {
|
||||
state.tab_active = tab;
|
||||
}
|
||||
},
|
||||
|
||||
modules : {
|
||||
re_patient: re_patient,
|
||||
re_px: re_px,
|
||||
re_history: re_history,
|
||||
system: system
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user