Flatten nested repos
This commit is contained in:
@@ -0,0 +1,528 @@
|
||||
<template>
|
||||
<v-layout class="fill-height" column>
|
||||
<v-dialog v-model="dialogsuccess" persistent max-width="290">
|
||||
<v-card>
|
||||
<v-card-title color="success" class="headline">Berhasil !</v-card-title>
|
||||
<v-card-text>
|
||||
{{msgsuccess}}
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="green darken-1" flat @click="closeDialogSuccess">OK</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
<v-card class="mb-2 pa-2 searchbox">
|
||||
<v-layout align-center row>
|
||||
<v-flex xs3>
|
||||
<v-text-field class="ma-1"
|
||||
style="font-size:14px"
|
||||
label="No Reg / Nama"
|
||||
outline
|
||||
v-model="nolab"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs6>
|
||||
<v-select class="ma-1 mini-select" :items="filter_sampletype"
|
||||
item-text="name"
|
||||
return-object
|
||||
style="font-size:14px"
|
||||
v-model="selected_filter_sampletype"
|
||||
label="Specimen" outline hide-details></v-select>
|
||||
</v-flex>
|
||||
<v-flex xs1>
|
||||
<span @click="searchPatient" class="icon-medium-fill-base white--text success iconsearch-search"></span>
|
||||
</v-flex>
|
||||
<v-flex v-if="btn_hide === false" class="text-xs-right" xs2>
|
||||
<span title="Terima" @click="receive" class="icon-medium-fill-base xs1 white--text warning"><v-icon large dark>move_to_inbox</v-icon></span>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
<v-card >
|
||||
<v-layout align-center row>
|
||||
<v-flex xs12 pl-2 style="max-height:610px;overflow-y:scroll" pr-2 pt-2 pb-2>
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="patients"
|
||||
:loading="isLoading"
|
||||
hide-actions
|
||||
class="elevation-1">
|
||||
<template v-slot:headers="props">
|
||||
<tr>
|
||||
<th class= "text-xs-left blue-grey white--text">
|
||||
<v-checkbox style="padding-top:0;margin-top:0"
|
||||
hide-details
|
||||
color="white"
|
||||
:indeterminate="indeterminatex"
|
||||
@change="changeCbxAll(bar_chx_all)"
|
||||
v-model="bar_chx_all"
|
||||
></v-checkbox>
|
||||
</th>
|
||||
<th
|
||||
v-for="header in props.headers"
|
||||
:key="header.text"
|
||||
:class="header.class"
|
||||
:width="header.width"
|
||||
>
|
||||
{{ header.text }}
|
||||
</th>
|
||||
</tr>
|
||||
</template>
|
||||
|
||||
<template v-slot:items="props">
|
||||
<td style="width:15px" class="text-xs-left" v-bind:class="{'amber':props.item.iscito === 'Y'}">
|
||||
<v-checkbox style="padding-top:0;margin-top:0"
|
||||
color="blue-grey"
|
||||
hide-details
|
||||
v-model="props.item.chex"
|
||||
@change="checkTop()"
|
||||
></v-checkbox>
|
||||
</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">{{ props.item.order_date }}</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">
|
||||
<p class="mb-0 font-weight-black">
|
||||
{{ props.item.T_OrderHeaderLabNumber }}
|
||||
</p>
|
||||
<p style="color:#800000" class="mb-0 font-weight-bold caption">{{props.item.T_OrderHeaderLabNumberExt}}</p>
|
||||
</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">{{ props.item.patient_fullname}}</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">
|
||||
<p class="mb-0">{{ props.item.T_SampleTypeName}}</p>
|
||||
<p class="mb-0 mono font-weight-black">{{ props.item.T_BarcodeLabBarcode}}</p>
|
||||
</td>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
<one-dialog-info :status="opendialoginfo" :msg="msginfo" @close-dialog-info="closeDialogInfo()"></one-dialog-info>
|
||||
<one-dialog-alert :status="openalertconfirmation" :msg="msgalertconfirmation" @forget-dialog-alert="forgetAlertConfirmation()" @close-dialog-alert="closeAlertConfirmation()"></one-dialog-alert>
|
||||
</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 = {
|
||||
components : {
|
||||
'one-dialog-info':httpVueLoader('../../common/oneDialogInfo.vue'),
|
||||
'one-dialog-alert':httpVueLoader('../../common/oneDialogAlert.vue'),
|
||||
'one-x-check':httpVueLoader('../../common/onexcheck.vue')
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch("samplesend/getstationstatus",{
|
||||
nolab:this.nolab,
|
||||
sampletypeid:0,
|
||||
lastid: -1
|
||||
})
|
||||
},
|
||||
methods : {
|
||||
isSelected(p) {
|
||||
return p.T_BarcodeLabID == this.$store.state.samplesend.selected_patient.T_BarcodeLabID
|
||||
},
|
||||
searchPatient() {
|
||||
this.$store.dispatch("samplesend/search",{
|
||||
nolab:this.nolab,
|
||||
sampletypeid: this.selected_filter_sampletype.id,
|
||||
lastid: -1
|
||||
})
|
||||
},
|
||||
selectMe(pat) {
|
||||
if(this.$store.state.samplesend.no_save == 0 ){
|
||||
var patients = this.$store.state.samplesend.patients
|
||||
this.$store.commit("samplesend/update_selected_patient",pat)
|
||||
var idx = _.findIndex(patients, function(o) { return o.T_BarcodeLabID == pat.T_BarcodeLabID })
|
||||
this.$store.commit("samplesend/update_last_id",idx)
|
||||
}else{
|
||||
this.$store.commit("samplesend/update_open_alert_confirmation",true)
|
||||
}
|
||||
|
||||
},
|
||||
closeAlertConfirmation(){
|
||||
this.$store.commit("samplesend/update_open_alert_confirmation",false)
|
||||
},
|
||||
forgetAlertConfirmation(){
|
||||
this.$store.commit("samplesend/update_no_save",0)
|
||||
this.$store.commit("samplesend/update_open_alert_confirmation",false)
|
||||
},
|
||||
updateAlert_success(val){
|
||||
this.$store.commit("samplesend/update_alert_success",val)
|
||||
},
|
||||
setNewPatient(){
|
||||
//this.$store.commit("samplesend/update_selected_Patient",{})
|
||||
|
||||
},
|
||||
opendialog_doctor(value){
|
||||
//console.log(value)
|
||||
var trx = this.$store.state.samplesend.patients
|
||||
var idx = _.findIndex(trx, function(o) { return o.T_BarcodeLabBarcode == value.T_BarcodeLabBarcode })
|
||||
if(value.status === 'V' && value.requirement_status === 'Y'){
|
||||
|
||||
}
|
||||
else{
|
||||
this.$store.commit("samplesend/update_selected_patient",value)
|
||||
trx[idx].requirement_status = 'N'
|
||||
//console.log(trx[idx].requirements)
|
||||
this.$store.commit("samplesend/update_requirements", trx[idx].requirements)
|
||||
this.$store.commit("samplesend/update_dialog_doctor", true)
|
||||
}
|
||||
},
|
||||
checkReq(val,idx){
|
||||
var xrequirements = this.requirements
|
||||
if(xrequirements[idx].status === 'D'){
|
||||
xrequirements[idx].chex = val
|
||||
this.$store.commit("samplesend/update_requirements",xrequirements)
|
||||
}
|
||||
},
|
||||
saveRequirement(){
|
||||
var sampletypes = this.$store.state.samplesend.patients
|
||||
var selected_sample = this.$store.state.samplesend.selected_patient
|
||||
var idx = _.findIndex(sampletypes, function(o) {
|
||||
return o.T_BarcodeLabID == selected_sample.T_BarcodeLabID
|
||||
})
|
||||
if(sampletypes[idx].status === 'D'){
|
||||
sampletypes[idx].requirements = this.$store.state.samplesend.requirements
|
||||
}
|
||||
this.$store.commit("samplesend/update_dialog_doctor",false)
|
||||
},
|
||||
confirmRequirement(value){
|
||||
var sampletypes = this.$store.state.samplesend.patients
|
||||
var idx = _.findIndex(sampletypes, function(o) {
|
||||
return o.T_BarcodeLabID == value.T_BarcodeLabID
|
||||
})
|
||||
if(value.status === 'D'){
|
||||
sampletypes[idx].requirement_status = 'Y'
|
||||
this.$store.commit("samplesend/update_patients",sampletypes)
|
||||
|
||||
sampletypes[idx].requirements.forEach((el)=>{el.chex = "N"})
|
||||
}
|
||||
},
|
||||
verify(value){
|
||||
console.log(value)
|
||||
var goaction = true
|
||||
if(value.requirement_status === 'N'){
|
||||
var req_check = _.filter(value.requirements, function(o) { return o.chex === 'Y' })
|
||||
if(req_check.length === 0){
|
||||
goaction = false
|
||||
}
|
||||
}
|
||||
if(value.status === 'D' && value.requirement_status !== 'X' && goaction){
|
||||
console.log("in verify")
|
||||
this.$store.commit("samplesend/update_act",'verify')
|
||||
this.$store.commit("samplesend/update_selected_patient",value)
|
||||
this.closeDialogAction()
|
||||
}
|
||||
else{
|
||||
//console.log('oeey')
|
||||
if(value.status === 'D'){
|
||||
this.$store.commit("samplesend/update_msg_info","Mobil batmen ngeluarin api, ada requirement mohon dilengkapi")
|
||||
this.$store.commit("samplesend/update_open_dialog_info",true)
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
receive(){
|
||||
this.$store.commit("samplesend/update_act",'receive')
|
||||
this.closeDialogAction()
|
||||
|
||||
},
|
||||
reject(){
|
||||
this.$store.commit("samplesend/update_act",'reject')
|
||||
this.closeDialogAction()
|
||||
|
||||
},
|
||||
cancel(){
|
||||
this.$store.commit("samplesend/update_act",'cancel')
|
||||
this.closeDialogAction()
|
||||
|
||||
},
|
||||
closeDialogAction(){
|
||||
console.log("closedialogaction")
|
||||
this.btn_hide = true
|
||||
var act = this.$store.state.samplesend.act
|
||||
var trx = this.$store.state.samplesend.selected_patient
|
||||
if(trx.length > 0){
|
||||
this.$store.dispatch("samplesend/doaction",{
|
||||
act:act,
|
||||
sample:trx,
|
||||
nolab:this.nolab,
|
||||
stationid: this.xselectedstation.id,
|
||||
statusid: this.xselectedstatus.id,
|
||||
lastid: -1
|
||||
})
|
||||
}
|
||||
else{
|
||||
this.btn_hide = false
|
||||
this.$store.commit("samplesend/update_msg_info","Tong kosong nyaring bunyinya, centang masih kosong tak ada gunanya<br/>Pilih salah satu biar ada aksi, jangan malah bengong lakukan saja")
|
||||
this.$store.commit("samplesend/update_open_dialog_info",true)
|
||||
}
|
||||
|
||||
},
|
||||
closeDialogSuccess(){
|
||||
let arrPatient = this.$store.state.samplesend.patients
|
||||
var idx = _.findIndex(arrPatient, item => item.M_PatientID === this.$store.state.samplesend.last_id)
|
||||
console.log(idx)
|
||||
var xcur_page = 1
|
||||
// if(idx !== -1)
|
||||
// xcur_page = this.$store.state.samplesend.current_page
|
||||
|
||||
this.$store.dispatch("samplesend/search",{
|
||||
name:this.name,
|
||||
nolab:this.nolab,
|
||||
stationid: this.xselectedstation.id,
|
||||
statusid: this.xselectedstatus.id,
|
||||
// current_page:xcur_page,
|
||||
lastid: idx
|
||||
})
|
||||
|
||||
this.$store.commit("samplesend/update_dialog_success",false)
|
||||
},
|
||||
closeDialogInfo(){
|
||||
this.$store.commit("samplesend/update_open_dialog_info",false)
|
||||
},
|
||||
checkTop(){
|
||||
var barcodes = this.patients
|
||||
var selected = _.filter(barcodes, function(o) { return o.chex; })
|
||||
this.bar_chx_all = false
|
||||
this.indeterminatex = false
|
||||
if(selected.length > 0 && barcodes.length === selected.length){
|
||||
this.bar_chx_all = true
|
||||
this.indeterminatex = false
|
||||
}
|
||||
if(selected.length > 0 && barcodes.length > selected.length){
|
||||
this.bar_chx_all = false
|
||||
this.indeterminatex = true
|
||||
}
|
||||
this.$store.commit("samplesend/update_selected_patient",selected)
|
||||
console.log(selected)
|
||||
},
|
||||
changeCbxAll(value){
|
||||
var arr = this.patients
|
||||
this.indeterminatex = false
|
||||
arr.forEach((el)=>{el.chex = value})
|
||||
var selected = _.filter(arr, function(o) { return o.chex; })
|
||||
this.$store.commit("samplesend/update_selected_patient",selected)
|
||||
},
|
||||
changeFilter(e){
|
||||
if(e.key == 'Tab') {
|
||||
////////this.searchPatient()
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
filter_sampletype(){
|
||||
return this.$store.state.samplesend.filter_sampletype
|
||||
},
|
||||
selected_filter_sampletype: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.selected_filter_sampletype
|
||||
},
|
||||
set(val) {
|
||||
//console.log("adsda")
|
||||
this.$store.commit("samplesend/update_selected_filter_sampletype",val)
|
||||
//this.searchPatient()
|
||||
}
|
||||
},
|
||||
bar_chx_all: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.bar_chx_all
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_bar_chx_all",val)
|
||||
}
|
||||
},
|
||||
indeterminatex: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.indeterminatex
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_indeterminatex",val)
|
||||
}
|
||||
},
|
||||
btn_hide: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.btn_hide
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_btn_hide",val)
|
||||
}
|
||||
},
|
||||
dialogsuccess: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.dialog_success
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_dialog_success",val)
|
||||
}
|
||||
},
|
||||
msgsuccess(){
|
||||
return this.$store.state.samplesend.msg_success
|
||||
},
|
||||
snackbar: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.alert_success
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_alert_success",val)
|
||||
}
|
||||
},
|
||||
isLoading() {
|
||||
return this.$store.state.samplesend.search_status == 1
|
||||
},
|
||||
xstations() {
|
||||
return this.$store.state.samplesend.stations
|
||||
},
|
||||
xselectedstation: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.selected_station
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_selected_station",val)
|
||||
this.searchPatient()
|
||||
}
|
||||
},
|
||||
xstatuses() {
|
||||
return this.$store.state.samplesend.statuses
|
||||
},
|
||||
xselectedstatus: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.selected_status
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_selected_status",val)
|
||||
////////this.searchPatient()
|
||||
}
|
||||
},
|
||||
patients() {
|
||||
return this.$store.state.samplesend.patients
|
||||
},
|
||||
openalertconfirmation: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.open_alert_confirmation
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_open_alert_confirmation",val)
|
||||
}
|
||||
},
|
||||
curr_page: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.current_page
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_current_page",val)
|
||||
this.$store.dispatch("samplesend/search",{
|
||||
name:this.name,
|
||||
nolab:this.nolab,
|
||||
stationid: this.xselectedstation.id,
|
||||
statusid: this.xselectedstatus.id,
|
||||
current_page:val,
|
||||
lastid: idx
|
||||
})
|
||||
}
|
||||
},
|
||||
xtotal_page: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.total_page
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_total_page",val)
|
||||
}
|
||||
},
|
||||
opendialoginfo: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.open_dialog_info
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_open_dialog_info",false)
|
||||
}
|
||||
},
|
||||
msginfo(){
|
||||
return this.$store.state.samplesend.msg_info
|
||||
},
|
||||
name: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.name
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_name",val)
|
||||
}
|
||||
},
|
||||
nolab: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.nolab
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_nolab",val)
|
||||
//////////this.searchPatient()
|
||||
}
|
||||
},
|
||||
requirements: {
|
||||
get() {
|
||||
return this.$store.state.samplesend.requirements
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplesend/update_requirements",val)
|
||||
}
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
msgalertconfirmation:"Perubahan yang telah dilakukan belum disimpan dong !",
|
||||
items: [],
|
||||
on:false,
|
||||
page:1,
|
||||
headers: [
|
||||
{
|
||||
text: "TGL. TRANSAKSI",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "10%",
|
||||
class: "text-xs-left pa-2 blue-grey white--text"
|
||||
},
|
||||
{
|
||||
text: "NO REG",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "25%",
|
||||
class: "text-xs-left pa-2 blue-grey white--text"
|
||||
},
|
||||
{
|
||||
text: "NAMA",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "name",
|
||||
width: "45%",
|
||||
class: "text-xs-left pa-2 blue-grey white--text"
|
||||
},
|
||||
{
|
||||
text: "BARCODE",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
value: "lab",
|
||||
width: "25%",
|
||||
class: "text-xs-left pa-2 blue-grey white--text"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,329 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-dialog v-model="xdialogaction" persistent max-width="350">
|
||||
<v-card>
|
||||
<v-card-title color="warning" class="headline">Konfirmasi</v-card-title>
|
||||
<v-card-text v-html="xmsgaction">
|
||||
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="primary darken-1" flat @click="closeDialogAction()">OK</v-btn>
|
||||
<v-btn color="error darken-1" flat @click="xdialogaction = false">Tutup</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
|
||||
<v-layout wrap>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-card color="light-blue">
|
||||
<v-layout align-center justify-center row shrink fill-height>
|
||||
<v-flex xs2>
|
||||
|
||||
<v-img
|
||||
:src="xselected_patient.M_PatientPhotoThumb"
|
||||
:lazy-src="xselected_patient.M_PatientPhotoThumb"
|
||||
aspect-ratio="1"
|
||||
width="100%"
|
||||
class="light-blue"
|
||||
contain
|
||||
>
|
||||
|
||||
</v-flex>
|
||||
<v-flex xs10>
|
||||
<v-card tile flat elevation="1">
|
||||
<v-layout pt-1 pl-2 pb-1 pr-2 row>
|
||||
<v-flex>
|
||||
<v-subheader style="color:black;height:auto;padding:0px">
|
||||
<h3 style="font-size:x-large" class="font-weight-bold">{{ xselected_patient.T_OrderHeaderLabNumber }}</h3>
|
||||
|
||||
<v-flex text-md-right>
|
||||
<span @click="callPatient()" v-if="xselected_patient.statusid === '0' || xselected_patient.statusid === '2'" style="font-size:24px;" class="icon-medium-fill-base-small xs1 white--text info"><v-icon dark>volume_up</v-icon></span>
|
||||
<span @click="skip()" v-if="xselected_patient.statusid === '1' || xselected_patient.statusid === '3'" style="font-size:24px;" class="icon-medium-fill-base-small xs1 white--text black"><v-icon dark>fast_rewind</v-icon></span>
|
||||
<span @click="processNow(xselected_patient.statusid)" v-if="xselected_patient.statusid === '1'" v-bind:class="{ 'warning':xselected_patient.statusid === '1','grey':xselected_patient.statusid !== '1' }" style="font-size:24px;" class="icon-medium-fill-base-small xs1 white--text"><v-icon dark>loop</v-icon></span>
|
||||
|
||||
</v-flex>
|
||||
</v-subheader>
|
||||
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout pl-2 pr-2 row>
|
||||
<v-flex xs4>
|
||||
<v-layout column>
|
||||
<v-flex pt-1>
|
||||
<v-text-field
|
||||
v-model=" xselected_patient.M_PatientNoReg"
|
||||
label="PID"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
<v-flex xs8 pl-2>
|
||||
<v-layout column>
|
||||
<v-flex pt-1 >
|
||||
<v-layout row>
|
||||
<v-flex xs4>
|
||||
<v-text-field
|
||||
v-model="xselected_patient.patient_dob"
|
||||
label="Tanggal lahir"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs8 pl-1>
|
||||
<v-text-field
|
||||
v-model=" xselected_patient.T_OrderHeaderM_PatientAge"
|
||||
label="Umur"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout pb-2 pt-1 pl-2 pr-2 row>
|
||||
<v-flex xs8>
|
||||
<v-text-field
|
||||
v-model=" xselected_patient.patient_fullname"
|
||||
label="Nama"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs4 pl-1>
|
||||
<v-text-field
|
||||
v-model="xselected_patient.M_PatientHP"
|
||||
label="HP"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
|
||||
</v-layout>
|
||||
|
||||
|
||||
<!--<v-card v-if="xselected_patient">
|
||||
<v-layout row>
|
||||
<v-flex xs12 pa-2>
|
||||
<v-layout align-center row>
|
||||
<v-flex xs2>
|
||||
<v-card>
|
||||
<v-img
|
||||
:src="xselected_patient.M_PatientPhotoThumb"
|
||||
aspect-ratio="1"
|
||||
class="grey lighten-2 elevation-2"
|
||||
>
|
||||
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
<v-flex xs10 pl-2 pt-1>
|
||||
<v-card>
|
||||
<v-layout pa-2 row>
|
||||
<v-flex>
|
||||
<v-subheader style="color:black;height:auto;padding:0px">
|
||||
<h3 style="font-size:x-large" class="font-weight-bold">{{ xselected_patient.T_OrderHeaderLabNumber }}</h3>
|
||||
|
||||
<v-flex text-md-right>
|
||||
<span @click="callPatient()" v-if="xselected_patient.statusid === '0' || xselected_patient.statusid === '2'" style="font-size:24px;" class="icon-medium-fill-base-small xs1 white--text info"><v-icon dark>volume_up</v-icon></span>
|
||||
<span @click="skip()" v-if="xselected_patient.statusid === '1' || xselected_patient.statusid === '3'" style="font-size:24px;" class="icon-medium-fill-base-small xs1 white--text black"><v-icon dark>fast_rewind</v-icon></span>
|
||||
<span @click="processNow(xselected_patient.statusid)" v-if="xselected_patient.statusid === '1'" v-bind:class="{ 'warning':xselected_patient.statusid === '1','grey':xselected_patient.statusid !== '1' }" style="font-size:24px;" class="icon-medium-fill-base-small xs1 white--text"><v-icon dark>loop</v-icon></span>
|
||||
|
||||
</v-flex>
|
||||
</v-subheader>
|
||||
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout pa-2 row wrap>
|
||||
<v-flex xs4>
|
||||
<v-layout column>
|
||||
<v-flex pt-1>
|
||||
<v-text-field
|
||||
v-model=" xselected_patient.M_PatientNoReg"
|
||||
label="PID"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
<v-flex pt-1 >
|
||||
<v-text-field
|
||||
v-model=" xselected_patient.patient_fullname"
|
||||
label="Nama"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs8 pl-2>
|
||||
<v-layout column>
|
||||
<v-flex pt-1 >
|
||||
<v-layout row>
|
||||
<v-flex xs4>
|
||||
<v-text-field
|
||||
v-model="xselected_patient.patient_dob"
|
||||
label="Tanggal lahir"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs8 pl-1>
|
||||
<v-text-field
|
||||
v-model=" xselected_patient.T_OrderHeaderM_PatientAge"
|
||||
label="Umur"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
|
||||
<v-flex pt-1>
|
||||
<v-text-field
|
||||
v-model="xselected_patient.M_PatientHP"
|
||||
label="HP"
|
||||
readonly
|
||||
hide-details
|
||||
>
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
data: () => ({
|
||||
|
||||
}),
|
||||
computed: {
|
||||
xselected_patient:{
|
||||
get() {
|
||||
return this.$store.state.samplecall.selected_patient
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_selected_patient",val)
|
||||
}
|
||||
},
|
||||
xdialogaction:{
|
||||
get() {
|
||||
return this.$store.state.samplecall.dialog_action
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_dialog_action",val)
|
||||
}
|
||||
},
|
||||
xmsgaction:{
|
||||
get() {
|
||||
return this.$store.state.samplecall.msg_action
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_msg_action",val)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods : {
|
||||
closeDialogAction(){
|
||||
var act = this.$store.state.samplecall.act
|
||||
var sample = this.$store.state.samplecall.selected_sampletype
|
||||
var status = 1
|
||||
if(act === 'process'){
|
||||
status = 3
|
||||
}
|
||||
if(act === 'skip'){
|
||||
status = 2
|
||||
}
|
||||
if(act === 'samplingprocess'){
|
||||
status = 3
|
||||
}
|
||||
if(act === 'samplingdone'){
|
||||
status = 4
|
||||
}
|
||||
var patient = this.$store.state.samplecall.selected_patient
|
||||
var lastid = this.$store.state.samplecall.last_id
|
||||
this.$store.dispatch("samplecall/doaction",{
|
||||
act:act,
|
||||
id:patient.T_OrderHeaderID,
|
||||
name:this.name,
|
||||
nolab:this.nolab,
|
||||
stationid: patient.T_SampleStationID,
|
||||
statusid:this.$store.state.samplecall.selected_status.id,
|
||||
statusnextid : status,
|
||||
sample:sample,
|
||||
lastid:lastid,
|
||||
staff:this.$store.state.samplecall.staff
|
||||
})
|
||||
|
||||
},
|
||||
callPatient(){
|
||||
//var patient = this.$store.state.samplecall.selected_patient
|
||||
//var msg = "Anda yakin akan melakukan panggilan kepada pasien "+patient.patient_fullname+" ? "
|
||||
//this.$store.commit("samplecall/update_msg_action",msg)
|
||||
this.$store.commit("samplecall/update_act",'call')
|
||||
this.closeDialogAction()
|
||||
//this.$store.commit("samplecall/update_dialog_action",true)
|
||||
},
|
||||
processNow(value){
|
||||
if(value === '1'){
|
||||
//var patient = this.$store.state.samplecall.selected_patient
|
||||
//var msg = "Anda yakin akan merubah status <span style='color:ff5252;font-weight:bold'>PROCESS</span> untuk pasien "+patient.patient_fullname+" ? "
|
||||
//this.$store.commit("samplecall/update_msg_action",msg)
|
||||
this.$store.commit("samplecall/update_act",'process')
|
||||
this.closeDialogAction()
|
||||
//this.$store.commit("samplecall/update_dialog_action",true)
|
||||
}
|
||||
|
||||
},
|
||||
skip(){
|
||||
//var patient = this.$store.state.samplecall.selected_patient
|
||||
//var msg = "Anda yakin akan merubah status <span style='color:ff5252;font-weight:bold'>SKIP</span> untuk pasien "+patient.patient_fullname+" ? "
|
||||
//this.$store.commit("samplecall/update_msg_action",msg)
|
||||
this.$store.commit("samplecall/update_act",'skip')
|
||||
this.closeDialogAction()
|
||||
//this.$store.commit("samplecall/update_dialog_action",true)
|
||||
},
|
||||
patient_photo(){
|
||||
var photo = "https://www.sgm-inc.com/wp-content/uploads/2014/06/no-profile-male-img.gif"
|
||||
if(this.xselected_patient.M_PatientPhoto){
|
||||
photo = this.xselected_patient.M_PatientPhoto
|
||||
}
|
||||
console.log(photo)
|
||||
return photo
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,883 @@
|
||||
<template>
|
||||
<v-layout class="fill-height" column>
|
||||
<v-dialog
|
||||
v-model="dialognoterequirement"
|
||||
width="40%"
|
||||
>
|
||||
<v-card>
|
||||
<v-card-title
|
||||
class="headline white--text error"
|
||||
primary-title
|
||||
>
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<v-layout v-if="notes.fo_note !== ''" mb-2 row>
|
||||
<v-flex mb-2 xs3>
|
||||
<span style="color: #0f80db" class="mono name">FO</span>
|
||||
</v-flex>
|
||||
<v-flex xs9>
|
||||
<v-layout row>
|
||||
<v-flex mb-1 xs12>
|
||||
<code style="box-shadow: none !important;color: #0f80db !important;background-color: #a8cfee6b !important;">{{notes.fo_note_user}}</code>
|
||||
<div class="v-markdown">
|
||||
<p style="margin-top:2px;margin-bottom:0">{{notes.fo_note}}</p>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout v-if="notes.fo_ver_note !== ''" mb-2 row>
|
||||
<v-flex mb-2 xs3>
|
||||
<span style="color: #0f80db" class="mono name">FO Verifikasi</span>
|
||||
</v-flex>
|
||||
<v-flex xs9>
|
||||
<v-layout row>
|
||||
<v-flex mb-1 xs12>
|
||||
<code style="box-shadow: none !important;color: #0f80db !important;background-color: #a8cfee6b !important;">{{notes.fo_ver_note_user}}</code>
|
||||
<div class="v-markdown">
|
||||
<p style="margin-top:2px;margin-bottom:0">{{notes.fo_ver_note}}</p>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout v-if="notes.sampling_note !== ''" mb-2 row>
|
||||
<v-flex mb-2 xs3>
|
||||
<span style="color: #0f80db" class="mono name">Sampling</span>
|
||||
</v-flex>
|
||||
<v-flex xs9>
|
||||
<v-layout row>
|
||||
<v-flex mb-1 xs12>
|
||||
<code style="box-shadow: none !important;color: #0f80db !important;background-color: #a8cfee6b !important;">{{notes.sampling_note_user}}</code>
|
||||
<div class="v-markdown">
|
||||
<p style="margin-top:2px;margin-bottom:0">{{notes.sampling_note}}</p>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout v-if="xnoterequirement.length > 0" mb-2 row>
|
||||
<v-flex mb-2 xs3>
|
||||
<span style="color: #c0341d" class="mono name">Requirement </span>
|
||||
</v-flex>
|
||||
<v-flex xs9>
|
||||
<v-layout v-for="notereq in xnoterequirement" row>
|
||||
<v-flex mb-1 xs12>
|
||||
<code style="box-shadow: none !important;color: #c0341d !important;background-color: #fbe5e1 !important;">{{notereq.position}}</code>
|
||||
<div class="v-markdown">
|
||||
<p style="margin-top:2px;margin-bottom:0">{{notereq.requirements}}</p>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-card-text>
|
||||
|
||||
<v-divider></v-divider>
|
||||
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
color="grey"
|
||||
dark
|
||||
flat
|
||||
text
|
||||
@click="dialognoterequirement = false"
|
||||
>
|
||||
Tutup
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogsuccess" persistent max-width="290">
|
||||
<v-card>
|
||||
<v-card-title color="success" class="headline">Berhasil !</v-card-title>
|
||||
<v-card-text>
|
||||
{{msgsuccess}}
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="green darken-1" flat @click="closeDialogSuccess">OK</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogrequirement" persistent max-width="45%">
|
||||
<v-card>
|
||||
<v-card-title color="success" class="headline">Pilih yang tidak terpenuhi</v-card-title>
|
||||
<v-card-text>
|
||||
<v-layout wrap>
|
||||
<v-flex v-for="(req,idx) in requirements" :key="req.id" xs6>
|
||||
<one-x-check
|
||||
:xdatalabel="req.name"
|
||||
:xdatacbx="req.chex"
|
||||
@update-data-cbx="(val) =>checkReq(val,idx)"
|
||||
></one-x-check>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="grey darken-1" flat @click="dialogrequirement = false">Tutup</v-btn>
|
||||
<v-btn
|
||||
color="green"
|
||||
dark
|
||||
flat
|
||||
text
|
||||
@click="doHandling()"
|
||||
>
|
||||
Simpan
|
||||
</v-btn>
|
||||
<!--<v-btn color="green darken-1" flat @click="saveRequirement()">Simpan</v-btn>-->
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<v-card class="mb-2 pa-2 searchbox">
|
||||
<v-layout align-center row>
|
||||
<v-flex xs4>
|
||||
<v-text-field class="ma-1"
|
||||
style="font-size:14px"
|
||||
label="No Reg / Nama"
|
||||
outline
|
||||
v-model="nolab"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs4>
|
||||
<v-select class="ma-1 mini-select" :items="filter_sampletype"
|
||||
item-text="name"
|
||||
return-object
|
||||
style="font-size:14px"
|
||||
v-model="selected_filter_sampletype"
|
||||
label="Specimen" outline hide-details></v-select>
|
||||
</v-flex>
|
||||
<v-flex xs1>
|
||||
<span @click="searchPatient" class="icon-medium-fill-base white--text success iconsearch-search"></span>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-card>
|
||||
<v-card >
|
||||
<v-layout row>
|
||||
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="patients"
|
||||
:loading="isLoading"
|
||||
hide-actions
|
||||
class="elevation-1 fixed_header">
|
||||
<template v-slot:headers="props">
|
||||
<tr>
|
||||
<th
|
||||
v-for="header in props.headers"
|
||||
:key="header.text"
|
||||
:class="header.class"
|
||||
:width="header.width"
|
||||
>
|
||||
{{ header.text }}
|
||||
</th>
|
||||
</tr>
|
||||
</template>
|
||||
|
||||
<template v-slot:items="props">
|
||||
<td style="width:12%" class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item),'amber':props.item.iscito === 'Y'}" @click="selectMe(props.item)">
|
||||
{{props.item.order_date}}
|
||||
</td>
|
||||
<td style="width:15%" class="text-xs-center pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">
|
||||
<p class="mb-0 font-weight-black">
|
||||
{{ props.item.T_OrderHeaderLabNumber }}
|
||||
<v-icon @click="openNoteRequirements(props.item)" v-if="props.item.sampling_note !== '' || props.item.fo_ver_note !== '' || props.item.fo_note !== '' || props.item.fo_ver_status_req === 'N' || props.item.fo_reg_status_req === 'N' || props.item.sampling_status_req === 'N'" color="error">info</v-icon>
|
||||
</p>
|
||||
<p style="color:#800000" class="mb-0 font-weight-bold caption">{{props.item.T_OrderHeaderLabNumberExt}}</p>
|
||||
</td>
|
||||
<td style="width:25%" class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item),'amber':props.item.iscito === 'Y'}" @click="selectMe(props.item)">
|
||||
<p class="mb-0">{{ props.item.patient_fullname}}</p>
|
||||
<p title="petugas verifikasi" class="mb-0"><kbd>{{ props.item.verification_user}}</kbd></p>
|
||||
<p title="waktu verifikasi" class="mb-0"><kbd>{{ props.item.verification_time}}</kbd></p>
|
||||
</td>
|
||||
<td style="width:20%" class="text-xs-center pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">
|
||||
<p class="mb-0">{{ props.item.T_SampleTypeName}}</p>
|
||||
<p class="mb-0 mono font-weight-black">{{ props.item.T_BarcodeLabBarcode}}</p>
|
||||
</td>
|
||||
<td style="width:15%" class="text-xs-center pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">
|
||||
<p v-if="props.item.status === 'X'" class="mb-0">
|
||||
<span title="balikin ah" @click="reject(props.item)" class="icon-medium-fill-base-small xs1 white--text black ml-1"><v-icon dark>cancel</v-icon></span>
|
||||
<span title="lanjut yuk" @click="xprocess(props.item)" class="icon-medium-fill-base-small xs1 white--text teal ml-1"><v-icon dark>input</v-icon></span>
|
||||
</p>
|
||||
<p v-if="props.item.flag_hold === 'Y' && props.item.status === 'X'" title="waktu matang ya, mohon ditunggu" class="mt-1 mb-0 caption mono font-weight-bold"><kbd class="teal">* {{props.item.ready_time}} *</kbd></p>
|
||||
</td>
|
||||
<td style="width:15%" class="text-xs-center pa-2" v-bind:class="{'amber':props.item.iscito === 'Y'}">
|
||||
<div>
|
||||
<span title="dipilih dong requirementnya" v-if="props.item.status === 'N'" @click="openDialogRequirement(props.item)" v-bind:class="{ 'white': props.item.requirement_status === 'X', 'error': props.item.requirement_status === 'N' }" class="icon-medium-fill-base-small white"><v-icon :dark="props.item.requirement_status === 'N'">close</v-icon></span>
|
||||
<span title="ayo lanjut" v-if="props.item.status === 'N'" @click="handling(props.item)" v-bind:class="{ 'white': props.item.requirement_status === 'X', 'success': props.item.requirement_status === 'Y' }" class="icon-medium-fill-base-small white"><v-icon :dark="props.item.requirement_status === 'Y'">check</v-icon></span>
|
||||
</div>
|
||||
</td>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
<one-dialog-info :status="opendialoginfo" :msg="msginfo" @close-dialog-info="closeDialogInfo()"></one-dialog-info>
|
||||
<one-dialog-alert :status="openalertconfirmation" :msg="msgalertconfirmation" @forget-dialog-alert="forgetAlertConfirmation()" @close-dialog-alert="closeAlertConfirmation()"></one-dialog-alert>
|
||||
</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;
|
||||
}
|
||||
|
||||
|
||||
table, td, th {
|
||||
border: .5px solid rgba(0,0,0,.12);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
table.v-table tbody td,table.v-table tbody th {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
table.v-table thead tr {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.fixed_header tbody {
|
||||
display: block;
|
||||
max-height: 630px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.fixed_header thead,
|
||||
tbody tr {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
components : {
|
||||
'one-dialog-info':httpVueLoader('../../common/oneDialogInfo.vue'),
|
||||
'one-dialog-alert':httpVueLoader('../../common/oneDialogAlert.vue'),
|
||||
'one-x-check':httpVueLoader('../../common/onexcheck.vue')
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch("samplecall/getstationstatus",{
|
||||
nolab:this.nolab,
|
||||
sampletypeid: 0,
|
||||
lastid: -1
|
||||
})
|
||||
//this.xinterval()
|
||||
},
|
||||
methods : {
|
||||
isSelected(p) {
|
||||
if(p.iscito === 'Y')
|
||||
return false
|
||||
else
|
||||
return false //p.T_OrderHeaderID == this.$store.state.samplecall.selected_patient.T_OrderHeaderID
|
||||
},
|
||||
searchPatient() {
|
||||
this.$store.dispatch("samplecall/search",{
|
||||
nolab:this.nolab,
|
||||
sampletypeid: this.selected_filter_sampletype.id,
|
||||
lastid: -1
|
||||
})
|
||||
},
|
||||
selectMe(pat) {
|
||||
if(this.$store.state.samplecall.no_save == 0 ){
|
||||
var patients = this.$store.state.samplecall.patients
|
||||
this.$store.commit("samplecall/update_selected_patient",pat)
|
||||
var idx = _.findIndex(patients, function(o) { return o.T_BarcodeLabID == pat.T_BarcodeLabID })
|
||||
this.$store.commit("samplecall/update_last_id",idx)
|
||||
}else{
|
||||
this.$store.commit("samplecall/update_open_alert_confirmation",true)
|
||||
}
|
||||
|
||||
},
|
||||
closeAlertConfirmation(){
|
||||
this.$store.commit("samplecall/update_open_alert_confirmation",false)
|
||||
},
|
||||
forgetAlertConfirmation(){
|
||||
this.$store.commit("samplecall/update_no_save",0)
|
||||
this.$store.commit("samplecall/update_open_alert_confirmation",false)
|
||||
},
|
||||
updateAlert_success(val){
|
||||
this.$store.commit("samplecall/update_alert_success",val)
|
||||
},
|
||||
setNewPatient(){
|
||||
//this.$store.commit("samplecall/update_selected_Patient",{})
|
||||
|
||||
},
|
||||
openDialogRequirement(value){
|
||||
//console.log(value)
|
||||
var trx = this.$store.state.samplecall.patients
|
||||
this.$store.commit("samplecall/update_selected_sampletype",value)
|
||||
var idx = _.findIndex(trx, function(o) { return o.T_BarcodeLabBarcode == value.T_BarcodeLabBarcode })
|
||||
if(value.status === 'Y' && value.requirement_status === 'Y'){
|
||||
|
||||
}
|
||||
else{
|
||||
this.$store.commit("samplecall/update_selected_patient",value)
|
||||
trx[idx].requirement_status = 'N'
|
||||
//console.log(trx[idx].requirements)
|
||||
this.$store.commit("samplecall/update_requirements", trx[idx].requirements)
|
||||
this.$store.commit("samplecall/update_dialog_requirement", true)
|
||||
}
|
||||
},
|
||||
checkReq(val,idx){
|
||||
var xrequirements = this.requirements
|
||||
if(xrequirements[idx].status === 'N'){
|
||||
xrequirements[idx].chex = val
|
||||
this.$store.commit("samplecall/update_requirements",xrequirements)
|
||||
}
|
||||
},
|
||||
saveRequirement(){
|
||||
var sampletypes = this.$store.state.samplecall.patients
|
||||
var selected_sample = this.$store.state.samplecall.selected_patient
|
||||
var idx = _.findIndex(sampletypes, function(o) {
|
||||
return o.T_BarcodeLabID == selected_sample.T_BarcodeLabID
|
||||
})
|
||||
if(sampletypes[idx].status === 'N'){
|
||||
sampletypes[idx].requirements = this.$store.state.samplecall.requirements
|
||||
}
|
||||
this.$store.commit("samplecall/update_dialog_requirement",false)
|
||||
},
|
||||
confirmRequirement(value){
|
||||
var sampletypes = this.$store.state.samplecall.patients
|
||||
var idx = _.findIndex(sampletypes, function(o) {
|
||||
return o.T_BarcodeLabID == value.T_BarcodeLabID
|
||||
})
|
||||
if(value.status === 'N'){
|
||||
sampletypes[idx].requirement_status = 'Y'
|
||||
this.$store.commit("samplecall/update_patients",sampletypes)
|
||||
|
||||
sampletypes[idx].requirements.forEach((el)=>{el.chex = "N"})
|
||||
}
|
||||
},
|
||||
verify(value){
|
||||
console.log(value)
|
||||
var goaction = true
|
||||
if(value.requirement_status === 'N'){
|
||||
var req_check = _.filter(value.requirements, function(o) { return o.chex === 'Y' })
|
||||
if(req_check.length === 0){
|
||||
goaction = false
|
||||
}
|
||||
}
|
||||
if(value.status === 'N' && value.requirement_status !== 'X' && goaction){
|
||||
console.log("in verify")
|
||||
this.$store.commit("samplecall/update_act",'verify')
|
||||
this.$store.commit("samplecall/update_selected_patient",value)
|
||||
this.closeDialogAction()
|
||||
}
|
||||
else{
|
||||
//console.log('oeey')
|
||||
if(value.status === 'N'){
|
||||
this.$store.commit("samplecall/update_msg_info","Mobil batmen ngeluarin api, ada requirement mohon dilengkapi")
|
||||
this.$store.commit("samplecall/update_open_dialog_info",true)
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
removeDoctor(value){
|
||||
//this.selected_patient = value
|
||||
let arrPatient = this.$store.state.samplecall.patients
|
||||
var idx = _.findIndex(arrPatient, item => item.T_SamplingSoID === value.T_SamplingSoID)
|
||||
arrPatient[idx]['chex'] = true
|
||||
this.$store.commit("samplecall/update_patients",arrPatient)
|
||||
var selected = _.filter(arrPatient, function(o) { return o.chex; })
|
||||
this.$store.commit("samplecall/update_selected_patient",selected)
|
||||
this.$store.commit("samplecall/update_act",'removedoctor')
|
||||
this.closeDialogAction()
|
||||
|
||||
},
|
||||
receive(){
|
||||
this.$store.commit("samplecall/update_act",'receive')
|
||||
this.closeDialogAction()
|
||||
|
||||
},
|
||||
reject(value){
|
||||
console.log(value)
|
||||
if(value.status === 'X'){
|
||||
console.log("in reject")
|
||||
this.$store.commit("samplecall/update_act",'reject')
|
||||
this.$store.commit("samplecall/update_selected_sampletype",value)
|
||||
this.closeDialogAction()
|
||||
}
|
||||
},
|
||||
xprocess(value){
|
||||
this.$store.commit("samplecall/update_act",'process')
|
||||
this.$store.commit("samplecall/update_selected_sampletype",value)
|
||||
this.closeDialogAction()
|
||||
},
|
||||
doHandling(){
|
||||
//console.log(value)
|
||||
if(this.$store.state.samplecall.selected_sampletype.status === 'N'){
|
||||
console.log("in handling")
|
||||
this.$store.commit("samplecall/update_act",'handling')
|
||||
//this.$store.commit("samplecall/update_selected_sampletype",value)
|
||||
this.closeDialogAction()
|
||||
}
|
||||
},
|
||||
handling(value){
|
||||
console.log(value)
|
||||
if(value.status === 'N'){
|
||||
var sampletypes = this.$store.state.samplecall.patients
|
||||
var idx = _.findIndex(sampletypes, function(o) {
|
||||
return o.T_BarcodeLabID == value.T_BarcodeLabID
|
||||
})
|
||||
sampletypes[idx].requirement_status = 'Y'
|
||||
this.$store.commit("samplecall/update_patients",sampletypes)
|
||||
sampletypes[idx].requirements.forEach((el)=>{el.chex = "N"})
|
||||
console.log("in handling")
|
||||
this.$store.commit("samplecall/update_act",'handling')
|
||||
this.$store.commit("samplecall/update_selected_sampletype",value)
|
||||
this.closeDialogAction()
|
||||
}
|
||||
},
|
||||
cancel(){
|
||||
this.$store.commit("samplecall/update_act",'cancel')
|
||||
this.closeDialogAction()
|
||||
|
||||
},
|
||||
closeDialogAction(){
|
||||
console.log("closedialogaction")
|
||||
this.btn_hide = true
|
||||
var act = this.$store.state.samplecall.act
|
||||
var trx = this.$store.state.samplecall.selected_sampletype
|
||||
this.$store.dispatch("samplecall/doaction",{
|
||||
act:act,
|
||||
sample:trx,
|
||||
nolab:this.nolab,
|
||||
stationid: this.xselectedstation.id,
|
||||
statusid: this.xselectedstatus.id,
|
||||
lastid: -1
|
||||
})
|
||||
|
||||
},
|
||||
closeDialogSuccess(){
|
||||
let arrPatient = this.$store.state.samplecall.patients
|
||||
var idx = _.findIndex(arrPatient, item => item.M_PatientID === this.$store.state.samplecall.last_id)
|
||||
console.log(idx)
|
||||
var xcur_page = 1
|
||||
// if(idx !== -1)
|
||||
// xcur_page = this.$store.state.samplecall.current_page
|
||||
|
||||
this.$store.dispatch("samplecall/search",{
|
||||
name:this.name,
|
||||
nolab:this.nolab,
|
||||
stationid: this.xselectedstation.id,
|
||||
statusid: this.xselectedstatus.id,
|
||||
// current_page:xcur_page,
|
||||
lastid: idx
|
||||
})
|
||||
|
||||
this.$store.commit("samplecall/update_dialog_success",false)
|
||||
},
|
||||
closeDialogInfo(){
|
||||
this.$store.commit("samplecall/update_open_dialog_info",false)
|
||||
},
|
||||
checkTop(){
|
||||
var barcodes = this.patients
|
||||
var selected = _.filter(barcodes, function(o) { return o.chex; })
|
||||
this.bar_chx_all = false
|
||||
this.indeterminatex = false
|
||||
if(selected.length > 0 && barcodes.length === selected.length){
|
||||
this.bar_chx_all = true
|
||||
this.indeterminatex = false
|
||||
}
|
||||
if(selected.length > 0 && barcodes.length > selected.length){
|
||||
this.bar_chx_all = false
|
||||
this.indeterminatex = true
|
||||
}
|
||||
this.$store.commit("samplecall/update_selected_patient",selected)
|
||||
console.log(selected)
|
||||
},
|
||||
changeCbxAll(value){
|
||||
var arr = this.patients
|
||||
this.indeterminatex = false
|
||||
arr.forEach((el)=>{el.chex = value})
|
||||
var selected = _.filter(arr, function(o) { return o.chex; })
|
||||
this.$store.commit("samplecall/update_selected_patient",selected)
|
||||
},
|
||||
thr_search_doctor: _.debounce( function () {
|
||||
this.$store.dispatch("samplecall/searchdoctor",{search:this.search_doctor})
|
||||
},2000),
|
||||
saveDoctor(){
|
||||
this.errors = {require_doctor:false,require_doctor_address:false}
|
||||
if(!_.isEmpty(this.selected_doctor, true) && !_.isEmpty(this.selected_doctor_address, true)){
|
||||
var barcodes = this.patients
|
||||
var selected = _.filter(barcodes, function(o) { return o.chex; })
|
||||
var prm = {}
|
||||
prm.selected_doctor = this.selected_doctor
|
||||
prm.selected_doctor_address = this.selected_doctor_address
|
||||
prm.flagdoctorinoffice = this.flagdoctorinoffice
|
||||
prm.selected_patient = selected
|
||||
prm.search = {name:this.name,
|
||||
nolab:this.nolab,
|
||||
stationid: this.xselectedstation.id,
|
||||
statusid: this.xselectedstatus.id,
|
||||
// current_page:1,
|
||||
lastid: -1}
|
||||
this.$store.dispatch("samplecall/savedoctor",prm)
|
||||
}else{
|
||||
if(_.isEmpty(this.selected_doctor, true)){
|
||||
this.errors.require_doctor = true
|
||||
}
|
||||
if(_.isEmpty(this.selected_doctor_address, true)){
|
||||
this.errors.require_doctor_address = true
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
opendialogdoctor(){
|
||||
this.errors = {require_doctor:false,require_doctor_address:false}
|
||||
var trx = this.$store.state.samplecall.selected_patient
|
||||
if(trx.length > 0){
|
||||
this.flagdoctorinoffice = false
|
||||
this.selected_doctor = {}
|
||||
this.selected_doctor_address = {}
|
||||
this.$store.commit("samplecall/update_doctors",[])
|
||||
this.$store.commit("samplecall/update_doctor_address",[])
|
||||
this.dialog_doctor = true
|
||||
}
|
||||
else{
|
||||
this.btn_hide = false
|
||||
this.$store.commit("samplecall/update_msg_info","Tong kosong nyaring bunyinya, centang masih kosong tak ada gunanya<br/>Pilih salah satu biar ada aksi, jangan malah bengong lakukan saja")
|
||||
this.$store.commit("samplecall/update_open_dialog_info",true)
|
||||
}
|
||||
},
|
||||
printSingleBarcode(value){
|
||||
var label = value.T_BarcodeLabBarcode
|
||||
one_print_barcode_pk(label)
|
||||
},
|
||||
changeFilter(e){
|
||||
if(e.key == 'Enter') {
|
||||
////this.searchPatient()
|
||||
}
|
||||
},
|
||||
checkIsReady(value){
|
||||
var receivetime = value.T_OrderSampleReceiveDate+' '+value.T_OrderSampleReceiveTime
|
||||
var readytoprocess = value.T_OrderSampleReadyToProcessDateTime
|
||||
var rst = moment(new Date()).isBetween(moment(receivetime,"YYYY-MM-DD HH:mm:ss"), moment(readytoprocess,"YYYY-MM-DD HH:mm:ss"))
|
||||
return rst
|
||||
},
|
||||
getDuration(value){
|
||||
var receivetime = value.T_OrderSampleReceiveDate+' '+value.T_OrderSampleReceiveTime
|
||||
console.log(receivetime)
|
||||
var readytoprocess = value.T_OrderSampleReadyToProcessDateTime
|
||||
console.log(readytoprocess)
|
||||
var ms = moment(readytoprocess).diff(moment(receivetime))
|
||||
var diff = moment.duration(ms, "minutes").humanize(true);
|
||||
//var days = parseInt(diff.asDays()); //84
|
||||
|
||||
diff = moment.duration(moment(readytoprocess,"YYYY-MM-DD HH:mm:ss").diff(moment(new Date(),"YYYY-MM-DD HH:mm:ss"))).asMilliseconds();
|
||||
//moment.duration(x.diff(y))
|
||||
|
||||
|
||||
return setInterval(() => diff, 1000)
|
||||
},
|
||||
openNoteRequirements(value){
|
||||
console.log(value)
|
||||
this.$store.commit("samplecall/update_note_requirement",[])
|
||||
//var prm = value
|
||||
this.$store.dispatch("samplecall/getdatanoterequirement",value)
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
notes(){
|
||||
return this.$store.state.samplecall.notes
|
||||
},
|
||||
filter_sampletype(){
|
||||
return this.$store.state.samplecall.filter_sampletype
|
||||
},
|
||||
selected_filter_sampletype: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.selected_filter_sampletype
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_selected_filter_sampletype",val)
|
||||
//this.searchPatient()
|
||||
}
|
||||
},
|
||||
flagdoctorinoffice: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.flag_doctor_in_office
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_flag_doctor_in_office",val)
|
||||
}
|
||||
},
|
||||
bar_chx_all: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.bar_chx_all
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_bar_chx_all",val)
|
||||
}
|
||||
},
|
||||
indeterminatex: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.indeterminatex
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_indeterminatex",val)
|
||||
}
|
||||
},
|
||||
btn_hide: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.btn_hide
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_btn_hide",val)
|
||||
}
|
||||
},
|
||||
dialogsuccess: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.dialog_success
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_dialog_success",val)
|
||||
}
|
||||
},
|
||||
dialognoterequirement: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.dialog_note_requirement
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_dialog_note_requirement",val)
|
||||
}
|
||||
},
|
||||
xnoterequirement(){
|
||||
return this.$store.state.samplecall.note_requirement
|
||||
},
|
||||
msgsuccess(){
|
||||
return this.$store.state.samplecall.msg_success
|
||||
},
|
||||
snackbar: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.alert_success
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_alert_success",val)
|
||||
}
|
||||
},
|
||||
isLoading() {
|
||||
return this.$store.state.samplecall.search_status == 1
|
||||
},
|
||||
xstations() {
|
||||
return this.$store.state.samplecall.stations
|
||||
},
|
||||
xselectedstation: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.selected_station
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_selected_station",val)
|
||||
this.searchPatient()
|
||||
}
|
||||
},
|
||||
xstatuses() {
|
||||
return this.$store.state.samplecall.statuses
|
||||
},
|
||||
xselectedstatus: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.selected_status
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_selected_status",val)
|
||||
// this.searchPatient()
|
||||
}
|
||||
},
|
||||
patients() {
|
||||
return this.$store.state.samplecall.patients
|
||||
},
|
||||
openalertconfirmation: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.open_alert_confirmation
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_open_alert_confirmation",val)
|
||||
}
|
||||
},
|
||||
curr_page: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.current_page
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_current_page",val)
|
||||
this.$store.dispatch("samplecall/search",{
|
||||
name:this.name,
|
||||
nolab:this.nolab,
|
||||
stationid: this.xselectedstation.id,
|
||||
statusid: this.xselectedstatus.id,
|
||||
current_page:val,
|
||||
lastid: idx
|
||||
})
|
||||
}
|
||||
},
|
||||
xtotal_page: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.total_page
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_total_page",val)
|
||||
}
|
||||
},
|
||||
opendialoginfo: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.open_dialog_info
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_open_dialog_info",false)
|
||||
}
|
||||
},
|
||||
msginfo(){
|
||||
return this.$store.state.samplecall.msg_info
|
||||
},
|
||||
name: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.name
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_name",val)
|
||||
}
|
||||
},
|
||||
nolab: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.nolab
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_nolab",val)
|
||||
//////this.searchPatient()
|
||||
}
|
||||
},
|
||||
doctors(){
|
||||
return this.$store.state.samplecall.doctors
|
||||
},
|
||||
selected_doctor: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.selected_doctor
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_selected_doctor",val)
|
||||
this.$store.commit("samplecall/update_doctor_address",val.address)
|
||||
//console.log(val.address)
|
||||
if(val.address)
|
||||
this.selected_doctor_address = val.address[0]
|
||||
}
|
||||
},
|
||||
selected_doctor_address: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.selected_doctor_address
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_selected_doctor_address",val)
|
||||
}
|
||||
},
|
||||
doctor_address(){
|
||||
return this.$store.state.samplecall.doctor_address
|
||||
},
|
||||
dialogrequirement: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.dialog_requirement
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_dialog_requirement",val)
|
||||
}
|
||||
},
|
||||
requirements: {
|
||||
get() {
|
||||
return this.$store.state.samplecall.requirements
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_requirements",val)
|
||||
}
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
search_doctor(val,old) {
|
||||
//console.log(val)
|
||||
if (val == old ) return
|
||||
if (! val) return
|
||||
if (val.length < 1 ) return
|
||||
if (this.$store.state.samplecall.update_autocomplete_status == 1 ) return
|
||||
this.thr_search_doctor()
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
msgalertconfirmation:"Perubahan yang telah dilakukan belum disimpan dong !",
|
||||
items: [],
|
||||
search_doctor:'',
|
||||
errors:{require_doctor:false,require_doctor_address:false},
|
||||
page:1,
|
||||
headers: [
|
||||
{
|
||||
text: "TGL. TRANSAKSI",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "12%",
|
||||
class: "text-xs-center pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "NO REG",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "15%",
|
||||
class: "text-xs-center pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "NAMA",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
value: "name",
|
||||
width: "25%",
|
||||
class: "text-xs-center pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "BARCODE",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
value: "lab",
|
||||
width: "20%",
|
||||
class: "text-xs-center pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "PROSES",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
value: "status",
|
||||
width: "15%",
|
||||
class: "text-xs-center pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "REQUIREMENT",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
value: "status",
|
||||
width: "15%",
|
||||
class: "text-xs-center pa-2 blue lighten-3 white--text"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,55 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-layout row>
|
||||
<v-flex xs12>
|
||||
<v-sheet style="border:1px solid #2196f3"
|
||||
color="#c9dcf4e0"
|
||||
>
|
||||
<v-layout align-center row>
|
||||
<v-flex pl-3 pr-2 text-xs-left xs2>
|
||||
<p style="color:#2196f3" class="mb-0 font-weight-bold caption mono">daftar pemeriksaan</p>
|
||||
</v-flex>
|
||||
<v-flex pl-2 pr-2 text-xs-right xs10>
|
||||
<v-btn v-for="xtest in xtests" dark depressed small ma-1 class="mono" style="margin-left:0;font-size:11px" color="#2196f3">
|
||||
{{xtest.test_name}}
|
||||
</v-btn>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-sheet>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
data: () => ({
|
||||
|
||||
}),
|
||||
computed: {
|
||||
xtests:{
|
||||
get() {
|
||||
return this.$store.state.samplecall.tests
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_tests",val)
|
||||
}
|
||||
},
|
||||
showtests:{
|
||||
get() {
|
||||
return this.$store.state.samplecall.showtests
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("samplecall/update_showtests",val)
|
||||
}
|
||||
},
|
||||
},
|
||||
methods : {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user