Initial import

This commit is contained in:
sas.fajri
2026-05-25 20:01:37 +07:00
commit 710d7c1b97
10371 changed files with 2381698 additions and 0 deletions

View File

@@ -0,0 +1,289 @@
<template>
<v-layout>
<v-flex xs12>
<v-card class="mb-2">
<v-subheader red--text text--lighten-1>
Multi Rule Untuk {{xnattest.Nat_TestName}}
<v-flex text-md-right>
<v-btn small @click="openFormMultiRule()" color="info">TAMBAH DATA</v-btn>
</v-flex>
</v-subheader>
<v-divider></v-divider>
<v-layout row>
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
<v-data-table :headers="headers" :items="xnatmultirules" :loading="isLoading" :pagination.sync="pagination" class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2" v-html="props.item.Nat_TestName">
</td>
<td class="text-xs-left pa-2" v-html="props.item.Nat_TestName">
</td>
<td class="text-xs-left pa-2" v-html="props.item.Nat_TestName">
</td>
</template>
<template>
<div class="text-xs-center">
<v-pagination v-model="page" :length="15" :total-visible="7"></v-pagination>
</div>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogmultirule" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Multirule</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form ref="formmultirule" lazy-validation>
<v-layout wrap>
<v-flex xs12>
<v-select item-text="M_ValueName" return-object :items="xvaluetypexes" v-model="xvaluetypex" label="Nilai"></v-select>
</v-flex>
<v-flex xs12>
<v-text-field label="Extreme Low" v-model="xelow"></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field label="Extreme High" v-model="xehigh"></v-text-field>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="updateDialogFormMultiRule()">Tutup</v-btn>
<v-btn color="blue darken-1" flat @click="saveFormMultiRule()">Simpan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-flex>
</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-md-test-conclusion-dialog-normal-value': httpVueLoader(
'./oneMdTestConclusionDialogNormalValue.vue'),
'one-dialog-alert': httpVueLoader('../../common/oneDialogAlert.vue')
},
methods: {
updateDialogFormMultiRule() {
this.$store.commit("multirule/update_dialog_form_multirule", false)
},
openFormMultiRule() {
this.$refs.formmultirule.reset()
this.$refs.formmultirule.resetValidation()
this.$store.commit("multirule/update_dialog_form_multirule", true)
},
saveFormMultiRule() {
this.$store.dispatch("multirule/savemultirule", {
testid: this.xtest.Nat_TestID,
multiruleid: this.$store.state.multirule.selected_detail.Nat_MultiruleID,
valueid: this.xvaluex.M_ValueID,
mastertest: this.$store.state.multirule.selected_transaction.Nat_TestID
})
},
thr_search_test: _.debounce(function () {
this.$store.dispatch("multirule/searchtest", this.search_test)
}, 2000)
},
computed: {
dialogmultirule() {
return this.$store.state.multirule.dialog_form_multirule
},
isLoading() {
return this.$store.state.multirule.search_status == 1
},
xnattest() {
return this.$store.state.multirule.selected_multirule
},
xnatmultirules() {
return this.$store.state.multirule.natmultirules
},
xfiltermethode() {
return this.$store.state.multirule.filter_methodes
},
xselected_filter_methode: {
get() {
return this.$store.state.multirule.selected_filter_methode
},
set(val) {
this.$store.commit("form/update_selected_filter_methode", val)
}
},
xtests() {
return this.$store.state.multirule.tests
},
xtest: {
get() {
return this.$store.state.multirule.test
},
set(val) {
this.$store.commit("multirule/update_test", val)
}
},
xvaluexs() {
return this.$store.state.multirule.valuexs
},
xvaluex: {
get() {
return this.$store.state.multirule.valuex
},
set(val) {
this.$store.commit("multirule/update_valuex", val)
}
},
xspilih: {
get() {
return this.$store.state.multirule.spilih
},
set(val) {
this.$store.commit("multirule/update_spilih", val)
}
},
xsmultiruleid: {
get() {
return this.$store.state.multirule.smultiruleid
},
set(val) {
this.$store.commit("multirule/update_smultiruleid", val)
}
},
xvaluetypexes() {
return this.$store.state.multirule.valuetypexes
},
xvaluetypex: {
get() {
return this.$store.state.multirule.selected_valuetypex
},
set(val) {
this.$store.commit("multirule/update_selected_valuetypex", val)
}
}
},
data() {
return {
msgalertconfirmation: "Perubahan yang telah dilakukan belum disimpan dong !",
menufilterdatestart: false,
menufilterdateend: false,
date: new Date().toISOString().substr(0, 10),
items: [],
name: '',
xnilai: '',
xelow: '',
xehigh: '',
search_test: '',
page: 1,
headers: [{
text: "NILAI",
align: "center",
sortable: false,
width: "30%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "EXTREME LOW",
align: "center",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "EXTREME HIGH",
align: "center",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
}
],
headers_search: [{
text: "PASIEN",
align: "left",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "BARCODE",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "ALMARI",
align: "left",
sortable: false,
width: "25%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "RAK",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "POSISI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "AKSI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
}
],
pagination: {
descending: false,
page: 1,
rowsPerPage: 5,
sortBy: 'trx_id ASC',
totalItems: this.$store.state.multirule.total_transactions
}
};
},
watch: {
search_test(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.multirule.update_autocomplete_status == 1) return
this.thr_search_test()
}
}
}
</script>

View File

@@ -0,0 +1,216 @@
<template>
<v-layout class="mb-2" column>
<v-dialog v-model="dialogconfirmationdelete" persistent max-width="290">
<v-card>
<v-card-title dark class="headline error pt-2 pb-2" primary-title style="color:white">
<h4 dark>Konfirmasi</h4>
</v-card-title>
<v-card-text>
{{msgconfirmationdelete}}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn small color="error darken-1 text-sm-left" flat @click="doDeleteData()">Hapus</v-btn>
<v-btn small color="primary darken-1 text-sm-right" flat @click="dialogconfirmationdelete = false">Batal</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<v-card>
<v-layout row>
<v-flex xs12>
<v-subheader red--text text--lighten-1> Multi Rule {{xnattest.Nat_TestName}}
<v-flex text-md-right>
<v-btn @click="deleteData()" small color="error">Hapus</v-btn>
<v-btn @click="saveData()" small color="primary">Simpan</v-btn>
</v-flex>
</v-subheader>
<v-divider></v-divider>
<v-layout row wrap>
<v-flex xs12 pa-2>
<v-layout row>
<v-flex xs6 pa-1>
<v-text-field v-model="xextremelow" label="Extreme Low" hide-details></v-text-field>
</v-flex>
<v-flex xs6 pa-1>
<v-text-field v-model="xlinieritas" label="Linieritas" hide-details></v-text-field>
</v-flex>
</v-layout>
<v-layout row>
<v-flex xs6 pa-1>
<v-text-field v-model="xextremehigh" label="Extreme High" hide-details></v-text-field>
</v-flex>
<v-flex xs6 pa-1>
<v-text-field v-model="xlimitdetection" label="Limit Detection" hide-details></v-text-field>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-flex>
</v-card>
</v-layout>
</template>
<style scoped>
table,
td,
th {
border: 1px solid #ddd;
text-align: left;
}
table {
border-collapse: collapse;
width: 100%;
}
th,
td {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 8px;
padding-right: 5px;
}
.mini-input .v-input {
margin-top: 0px;
}
.mini-input .v-input,
.mini-input .v-input--selection-controls,
.mini-input .v-input__slot {
margin-top: 0px;
margin-bottom: 0px;
margin-left: 3px;
}
.mini-input .v-messages {
min-height: 0px;
}
input.fhm-input {
border: 1px solid black;
border-radius: 2px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1),
0 0 4px rgba(0, 0, 0, 0.1);
-moz-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1),
0 0 4px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1),
0 0 4px rgba(0, 0, 0, 0.1);
padding: 2px 4px;
background: rgba(255, 255, 255, 0.5);
margin: 0 0 1px 0;
width: 30px;
text-align: center;
}
</style>
<script>
module.exports = {
data: () => ({
}),
computed: {
xnattest() {
return this.$store.state.multirule.selected_multirule
},
dialogconfirmationdelete: {
get() {
return this.$store.state.multirule.dialog_confirmation_delete
},
set(val) {
this.$store.commit("multirule/update_dialog_confirmation_delete", val)
}
},
msgconfirmationdelete() {
return this.$store.state.multirule.msg_confirmation_delete
},
xact() {
return this.$store.state.multirule.act
},
detail() {
return this.$store.state.multirule.selected_multirule
},
xextremelow: {
get() {
return this.$store.state.multirule.extremelow
},
set(val) {
this.$store.commit("multirule/update_extremelow", val)
this.$store.commit("multirule/update_no_save", 1)
}
},
xextremehigh: {
get() {
return this.$store.state.multirule.extremehigh
},
set(val) {
this.$store.commit("multirule/update_extremehigh", val)
this.$store.commit("multirule/update_no_save", 1)
}
},
xlinieritas: {
get() {
return this.$store.state.multirule.linieritas
},
set(val) {
this.$store.commit("multirule/update_linieritas", val)
this.$store.commit("multirule/update_no_save", 1)
}
},
xlimitdetection: {
get() {
return this.$store.state.multirule.limitdetection
},
set(val) {
this.$store.commit("multirule/update_limitdetection", val)
this.$store.commit("multirule/update_no_save", 1)
}
},
},
methods: {
checkError(value) {
var errors = this.$store.state.multirule.errors
if (errors.includes(value)) {
return true
} else {
return false
}
},
saveData() {
var prm = {}
prm.xid = this.$store.state.multirule.selected_multirule.xid
prm.Nat_MultiRuleID = this.$store.state.multirule.selected_multirule.Nat_MultiRuleID
prm.Nat_MultiRuleNat_TestID = this.xnattest.Nat_TestID
prm.Nat_MultiRuleExtremeLow = this.xextremelow
prm.Nat_MultiRuleExtremeHigh = this.xextremehigh
prm.Nat_MultiRuleLinieritas = this.xlinieritas
prm.Nat_MultiRuleLimitDetection = this.xlimitdetection
this.$store.dispatch("multirule/save", prm)
},
saveNewMultiRule() {
var prm = {}
prm.Nat_MultiRuleID = 0
prm.Nat_MultiRuleNat_TestID = this.$store.state.multirule.selected_multirule.Nat_MultiRuleNat_TestID
prm.Nat_MultiRuleExtremeLow = this.xextremelow
prm.Nat_MultiRuleExtremeHigh = this.xextremehigh
prm.Nat_MultiRuleLinieritas = this.xlinieritas
prm.Nat_MultiRuleLimitDetection = this.xlimitdetection
this.$store.dispatch("multirule/newmultirule", prm)
},
deleteData() {
let msg = "Yakin, akan menghapus data " + this.xnattest.Nat_TestName + " ?"
this.$store.commit("multirule/update_msg_confirmation_delete", msg)
this.$store.commit("multirule/update_dialog_confirmation_delete", true)
},
doDeleteData() {
var prm = {}
prm.Nat_MultiRuleID = this.$store.state.multirule.selected_multirule.Nat_MultiRuleID
prm.testid = this.xnattest.Nat_TestID
prm.isquantitative = this.xnattest.Nat_TestIsQuantitative
this.$store.dispatch("multirule/delete", prm)
}
}
}
</script>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,283 @@
<template>
<v-layout>
<v-flex xs12>
<v-card class="mb-2">
<v-subheader red--text text--lighten-1>
Reflex Test Kualitatif
<v-flex text-md-right>
<v-btn small @click="openFormMultiRule()" color="info">TAMBAH DATA</v-btn>
</v-flex>
</v-subheader>
<v-divider></v-divider>
<v-layout row>
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
<v-data-table :headers="headers" :items="xnatmultirules" :loading="isLoading" :pagination.sync="pagination" class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2" v-html="props.item.Nat_TestName">
</td>
<td class="text-xs-left pa-2" v-html="props.item.Nat_TestName">
</td>
</template>
<template>
<div class="text-xs-center">
<v-pagination v-model="page" :length="15" :total-visible="7"></v-pagination>
</div>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogqualitative" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Reflex Test Kualitatif</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form ref="formmultirule" lazy-validation>
<v-layout wrap>
<v-flex xs12>
<v-autocomplete label="Test" v-model="xtestqualitative" :items="xtestqualitatives" :search-input.sync="search_testqualitative" auto-select-first no-filter
item-text="Nat_TestName" return-object :loading="isLoading" no-data-text="Pilih Test">
<template slot="item" slot-scope="{ item }">
<v-list-tile-content>
<v-list-tile-title v-text="item.Nat_TestName"></v-list-tile-title>
</v-list-tile-content>
</template>
</v-autocomplete>
</v-flex>
<v-flex xs12>
<v-select item-text="M_ValueName" return-object :items="xvaluequalitativees" v-model="xvaluequalitative" label="Nilai"></v-select>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="updateDialogFormMultiRule()">Tutup</v-btn>
<v-btn color="blue darken-1" flat @click="saveFormMultiRule()">Simpan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-flex>
</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-md-test-conclusion-dialog-normal-value': httpVueLoader(
'./oneMdTestConclusionDialogNormalValue.vue'),
'one-dialog-alert': httpVueLoader('../../common/oneDialogAlert.vue')
},
methods: {
updateDialogFormMultiRule() {
this.$store.commit("multirule/update_dialog_form_qualitative", false)
},
openFormMultiRule() {
this.$refs.formmultirule.reset()
this.$refs.formmultirule.resetValidation()
this.$store.commit("multirule/update_dialog_form_qualitative", true)
},
saveFormMultiRule() {
this.$store.dispatch("multirule/savemultirule", {
testid: this.xtest.Nat_TestID,
multiruleid: this.$store.state.multirule.selected_detail.Nat_MultiruleID,
valueid: this.xvaluex.M_ValueID,
mastertest: this.$store.state.multirule.selected_transaction.Nat_TestID
})
},
thr_search_testqualitative: _.debounce(function () {
this.$store.dispatch("multirule/searchtestqualitative", this.search_testqualitative)
}, 2000)
},
computed: {
dialogqualitative() {
return this.$store.state.multirule.dialog_form_qualitative
},
isLoading() {
return this.$store.state.multirule.search_status == 1
},
xnattest() {
return this.$store.state.multirule.selected_multirule
},
xnatmultirules() {
return this.$store.state.multirule.natmultirules
},
xfiltermethode() {
return this.$store.state.multirule.filter_methodes
},
xselected_filter_methode: {
get() {
return this.$store.state.multirule.selected_filter_methode
},
set(val) {
this.$store.commit("form/update_selected_filter_methode", val)
}
},
xtestqualitatives() {
return this.$store.state.multirule.testqualitatives
},
xtestqualitative: {
get() {
return this.$store.state.multirule.testqualitative
},
set(val) {
this.$store.commit("multirule/update_testqualitative", val)
}
},
xvaluexs() {
return this.$store.state.multirule.valuexs
},
xvaluex: {
get() {
return this.$store.state.multirule.valuex
},
set(val) {
this.$store.commit("multirule/update_valuex", val)
}
},
xspilih: {
get() {
return this.$store.state.multirule.spilih
},
set(val) {
this.$store.commit("multirule/update_spilih", val)
}
},
xsmultiruleid: {
get() {
return this.$store.state.multirule.smultiruleid
},
set(val) {
this.$store.commit("multirule/update_smultiruleid", val)
}
},
xvaluequalitativees() {
return this.$store.state.multirule.valuequalitativees
},
xvaluequalitative: {
get() {
return this.$store.state.multirule.selected_valuequalitative
},
set(val) {
this.$store.commit("multirule/update_selected_valuequalitative", val)
}
}
},
data() {
return {
msgalertconfirmation: "Perubahan yang telah dilakukan belum disimpan dong !",
menufilterdatestart: false,
menufilterdateend: false,
date: new Date().toISOString().substr(0, 10),
items: [],
name: '',
xnilai: '',
xelow: '',
xehigh: '',
search_testqualitative: '',
page: 1,
headers: [{
text: "TEST",
align: "center",
sortable: false,
width: "30%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "NILAI",
align: "center",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
}
],
headers_search: [{
text: "PASIEN",
align: "left",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "BARCODE",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "ALMARI",
align: "left",
sortable: false,
width: "25%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "RAK",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "POSISI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "AKSI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
}
],
pagination: {
descending: false,
page: 1,
rowsPerPage: 5,
sortBy: 'trx_id ASC',
totalItems: this.$store.state.multirule.total_transactions
}
};
},
watch: {
search_testqualitative(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.multirule.update_autocomplete_status == 1) return
this.thr_search_testqualitative()
}
}
}
</script>

View File

@@ -0,0 +1,284 @@
<template>
<v-layout>
<v-flex xs12>
<v-card class="mb-2">
<v-subheader red--text text--lighten-1>
Reflex Test Kuantitatif
<v-flex text-md-right>
<v-btn small @click="openFormMultiRule()" color="info">TAMBAH DATA</v-btn>
</v-flex>
</v-subheader>
<v-divider></v-divider>
<v-layout row>
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
<v-data-table :headers="headers" :items="xnatmultirules" :loading="isLoading" :pagination.sync="pagination" class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2" v-html="props.item.Nat_TestName">
</td>
<td class="text-xs-left pa-2" v-html="props.item.Nat_TestName">
</td>
</template>
<template>
<div class="text-xs-center">
<v-pagination v-model="page" :length="15" :total-visible="7"></v-pagination>
</div>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogquantitative" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Reflex Test Kuantitatif</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form ref="formmultirule" lazy-validation>
<v-layout wrap>
<v-flex xs12>
<v-autocomplete label="Test" v-model="xtest" :items="xtests" :search-input.sync="search_test" auto-select-first no-filter
item-text="Nat_TestName" return-object :loading="isLoading" no-data-text="Pilih Test">
<template slot="item" slot-scope="{ item }">
<v-list-tile-content>
<v-list-tile-title v-text="item.Nat_TestName"></v-list-tile-title>
</v-list-tile-content>
</template>
</v-autocomplete>
</v-flex>
<v-flex xs12>
<v-select item-text="M_ValueName" return-object :items="xvaluetypees" v-model="xvaluetype" label="Nilai"></v-select>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="updateDialogFormMultiRule()">Tutup</v-btn>
<v-btn color="blue darken-1" flat @click="saveFormMultiRule()">Simpan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-flex>
</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-md-test-conclusion-dialog-normal-value': httpVueLoader(
'./oneMdTestConclusionDialogNormalValue.vue'),
'one-dialog-alert': httpVueLoader('../../common/oneDialogAlert.vue')
},
methods: {
updateDialogFormMultiRule() {
this.$store.commit("multirule/update_dialog_form_quantitative", false)
},
openFormMultiRule() {
this.$refs.formmultirule.reset()
this.$refs.formmultirule.resetValidation()
this.$store.commit("multirule/update_dialog_form_quantitative", true)
},
saveFormMultiRule() {
this.$store.dispatch("multirule/savemultirule", {
testid: this.xtest.Nat_TestID,
multiruleid: this.$store.state.multirule.selected_detail.Nat_MultiruleID,
valueid: this.xvaluex.M_ValueID,
mastertest: this.$store.state.multirule.selected_transaction.Nat_TestID
})
},
thr_search_test: _.debounce(function () {
this.$store.dispatch("multirule/searchtest", this.search_test)
}, 2000)
},
computed: {
dialogquantitative() {
return this.$store.state.multirule.dialog_form_quantitative
},
isLoading() {
return this.$store.state.multirule.search_status == 1
},
xnattest() {
return this.$store.state.multirule.selected_multirule
},
xnatmultirules() {
return this.$store.state.multirule.natmultirules
},
xfiltermethode() {
return this.$store.state.multirule.filter_methodes
},
xselected_filter_methode: {
get() {
return this.$store.state.multirule.selected_filter_methode
},
set(val) {
this.$store.commit("form/update_selected_filter_methode", val)
}
},
xtests() {
return this.$store.state.multirule.tests
},
xtest: {
get() {
return this.$store.state.multirule.test
},
set(val) {
this.$store.commit("multirule/update_test", val)
}
},
xvaluexs() {
return this.$store.state.multirule.valuexs
},
xvaluex: {
get() {
return this.$store.state.multirule.valuex
},
set(val) {
this.$store.commit("multirule/update_valuex", val)
}
},
xspilih: {
get() {
return this.$store.state.multirule.spilih
},
set(val) {
this.$store.commit("multirule/update_spilih", val)
}
},
xsmultiruleid: {
get() {
return this.$store.state.multirule.smultiruleid
},
set(val) {
this.$store.commit("multirule/update_smultiruleid", val)
}
},
xvaluetypees() {
return this.$store.state.multirule.valuetypees
},
xvaluetype: {
get() {
return this.$store.state.multirule.selected_valuetype
},
set(val) {
this.$store.commit("multirule/update_selected_valuetype", val)
}
}
},
data() {
return {
msgalertconfirmation: "Perubahan yang telah dilakukan belum disimpan dong !",
menufilterdatestart: false,
menufilterdateend: false,
date: new Date().toISOString().substr(0, 10),
items: [],
name: '',
xnilai: '',
xelow: '',
xehigh: '',
search_test: '',
page: 1,
headers: [{
text: "TEST",
align: "center",
sortable: false,
width: "30%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "NILAI",
align: "center",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
}
],
headers_search: [{
text: "PASIEN",
align: "left",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "BARCODE",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "ALMARI",
align: "left",
sortable: false,
width: "25%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "RAK",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "POSISI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "AKSI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
}
],
pagination: {
descending: false,
page: 1,
rowsPerPage: 5,
sortBy: 'trx_id ASC',
totalItems: this.$store.state.multirule.total_transactions
}
};
},
watch: {
search_test(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.multirule.update_autocomplete_status == 1) return
this.thr_search_test()
}
}
}
</script>

View File

@@ -0,0 +1,557 @@
<template>
<v-layout>
<v-flex xs12>
<v-card class="mb-2">
<v-subheader red--text text--lighten-1>
Reflex Test
<v-flex text-md-right>
</v-flex>
</v-subheader>
<v-divider></v-divider>
<v-layout row>
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
<v-data-table :headers="headers" :items="xnatmultirules" :loading="isLoading" :pagination.sync="pagination" class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2" v-html="props.item.nilai">
</td>
<td class="text-xs-left pa-2" v-html="props.item.Nat_MultiRuleRuleIsNotApplicable">
</td>
<td class="text-xs-left pa-2" v-html="props.item.low">
</td>
<td class="text-xs-left pa-2" v-html="props.item.normal">
</td>
<td class="text-xs-left pa-2" v-html="props.item.high">
</td>
<td class="text-xs-left pa-2" v-html="props.item.negative">
</td>
<td class="text-xs-left pa-2" v-html="props.item.borderline">
</td>
<td class="text-xs-left pa-2" v-html="props.item.positive">
</td>
<td class="text-xs-left pa-2">
<v-icon class="ml-3" color="primary" @click="editFormMultiRule(props.item)">edit</v-icon>
</td>
</template>
<template>
<div class="text-xs-center">
<v-pagination v-model="page" :length="15" :total-visible="7"></v-pagination>
</div>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogquantitative" persistent max-width="900px">
<v-card>
<v-card-title>
<span class="headline">Form Reflex Test : {{xnattest.Nat_TestName}} [ {{this.xnilai}} ]</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form ref="formmultirule" lazy-validation>
<v-layout row wrap>
<v-flex xs12 pa-2>
<v-layout row>
<v-flex xs6 pa-1>
<v-text-field v-model="xextremelow" label="Extreme Low" hide-details></v-text-field>
</v-flex>
<v-flex xs6 pa-1>
<v-text-field v-model="xlinieritas" label="Linieritas" hide-details></v-text-field>
</v-flex>
</v-layout>
</v-flex>
<v-flex xs12 pa-2>
<v-layout row>
<v-flex xs6 pa-1>
<v-text-field v-model="xextremehigh" label="Extreme High" hide-details></v-text-field>
</v-flex>
<v-flex xs6 pa-1>
<v-text-field v-model="xlimitdetection" label="Limit Detection" hide-details></v-text-field>
</v-flex>
</v-layout>
</v-flex>
<v-flex xs12 pa-2>
<v-layout row>
<v-flex xs6 pa-1>
<div>
<v-btn @click="changeBtnFlagNotApplicable(xisnotapplicable)" v-if="xisnotapplicable === 'N'" small color="error">
<v-icon left>close</v-icon> NOT APPLICABLE</v-btn>
<v-btn @click="changeBtnFlagNotApplicable(xisnotapplicable)" v-if="xisnotapplicable === 'Y'" small color="success">
<v-icon left>check</v-icon> NOT APPLICABLE</v-btn>
</div>
</v-flex>
<v-flex xs6 pa-1>
</v-flex>
</v-layout>
</v-flex>
<v-flex xs12 pa-2>
<v-layout row>
<v-flex xs4 pa-1>
<v-autocomplete label="Pemeriksaan" v-model="xorderautotest" :items="xorderautotests" :search-input.sync="search_test" auto-select-first
no-filter item-text="Nat_TestName" return-object no-data-text="Cari Pemeriksaan"
outline small>
<template slot="item" slot-scope="{ item }">
<v-list-tile-content>
<v-list-tile-title v-text="item.Nat_TestName"></v-list-tile-title>
</v-list-tile-content>
</template>
</v-autocomplete>
</v-flex>
<v-flex xs4 pa-1>
<v-select outline item-text="M_ValueName" class="mini-select" return-object :items="xvaluetypexes" v-model="xvaluetypex"
label="Nilai"></v-select>
</v-flex>
<v-flex xs4 pa-1>
<span @click="addTest()" class="icon-medium-fill-base xs1 white--text primary ml-1 icon-add"></span>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
<v-layout row wrap>
<v-flex xs12 pt-2 pb-1>
<table style="
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
border: 0px;
" class="px">
<tr>
<td style="border: 1px solid #fff;
border-collapse: collapse;
padding-top: 2px;
padding-bottom: 2px;" width="40%" class="pa-2 grey lighten-1 white--text">TEST
</td>
<td style="border: 1px solid #fff;
border-collapse: collapse;
padding-top: 2px;
padding-bottom: 2px;" width="40%" class="pa-2 grey lighten-1 white--text">NILAI
</td>
<td style="border: 1px solid #fff;
border-collapse: collapse;
padding-top: 2px;
padding-bottom: 2px;" width="20%" class="pa-2 grey lighten-1 white--text">HAPUS
</td>
</tr>
<tr class="mini-input" v-for="(vpx,idx) in xordertests">
<td style="border: 1px solid #fff;
border-collapse: collapse;
padding-top: 2px;
padding-bottom: 2px;
padding: 8px;
text-align:left;
vertical-align:left;" align="left">{{vpx.Nat_TestName}}
</td>
<td style="border: 1px solid #fff;
border-collapse: collapse;
padding-top: 2px;
padding-bottom: 2px;
padding: 8px;" class="text-md-left pl-3">{{vpx.nilai}}</td>
<td style="border: 1px solid #fff;
border-collapse: collapse;
padding-top: 2px;
padding-bottom: 2px;
padding: 8px;" class="text-md-center pr-2"><span v-if="vpx.editable == 'N'">{{idx + 1}}</span>
<v-icon v-else-if="vpx.editable == 'Y'" color="#c75c3a" @click="deleteDataPx(idx)">delete</v-icon>
</td>
</tr>
<tfoot>
</tfoot>
</table>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" flat @click="updateDialogFormMultiRule()">Tutup</v-btn>
<v-btn v-if="this.xid === '0'" color="grey darken-1" flat @click="saveFormReflexTest()">Simpan</v-btn>
<v-btn v-if="this.xid !== '0'" color="grey darken-1" flat @click="updateFormReflexTest()">Simpan Perubahan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-flex>
</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-md-test-conclusion-dialog-normal-value': httpVueLoader(
'./oneMdTestConclusionDialogNormalValue.vue'),
'one-dialog-alert': httpVueLoader('../../common/oneDialogAlert.vue')
},
methods: {
changeBtnFlagNotApplicable(value) {
var newval = (value === 'Y') ? 'N' : 'Y'
this.xisnotapplicable = newval
console.log(this.xisnotapplicable)
},
updateDialogFormMultiRule() {
this.$store.commit("multirule/update_dialog_form_quantitative", false)
},
openFormMultiRule() {
this.$refs.formmultirule.reset()
this.$refs.formmultirule.resetValidation()
this.$store.commit("multirule/update_dialog_form_quantitative", true)
},
addTest() {
var oldArr = this.$store.state.multirule.ordertests
var arrTest = this.$store.state.multirule.orderautotest
var arrValue = this.$store.state.multirule.selected_valuetypex
var arrAll = _.assignIn(arrTest, arrValue)
oldArr.push(_.assignIn(arrTest, arrValue))
this.searchtest = ''
this.$store.commit("multirule/update_orderautotests", [])
this.$store.commit("multirule/update_orderautotest", {})
this.$store.commit("multirule/update_valuetypexes", [])
this.$store.commit("multirule/update_selected_valuetypex", {})
},
deleteDataPx(idx) {
var inx = parseInt(idx);
var xrow = this.$store.state.multirule.ordertests[inx]
if (parseInt(xrow.xid) !== 0) {
var xdeltest = this.$store.state.multirule.deleted_ordertests
xdeltest.push(xrow)
this.$store.commit("multirule/update_deleted_ordertests", xdeltest)
}
var oldArr = this.$store.state.multirule.ordertests
oldArr.splice(inx, 1)
this.$store.commit("multirule/update_ordertests", oldArr)
},
editFormMultiRule(data) {
console.log('editform')
console.log(data.nilai)
this.xid = data.Nat_MultiRuleRuleID
this.xmultiruleid = data.Nat_MultiRuleID
this.xnilai = data.nilai
this.xextremelow = this.xnattest.Nat_MultiRuleExtremeLow
this.xextremehigh = this.xnattest.Nat_MultiRuleExtremeHigh
this.xlinieritas = this.xnattest.Nat_MultiRuleLinieritas
this.xlimitdetection = this.xnattest.Nat_MultiRuleLimitDetection
this.xisnotapplicable = data.Nat_MultiRuleRuleIsNotApplicable
this.$store.commit("multirule/update_ordertests", data.tests)
this.$store.commit("multirule/update_dialog_form_quantitative", true)
},
saveFormReflexTest() {
this.$store.dispatch("multirule/savereflextest", {
Nat_MultiRuleRuleNat_MultiRuleID: this.xmultiruleid,
Nat_MultiRuleNilai: this.xnilai,
testid: this.xnattest.Nat_TestID,
isquantitative: this.xnattest.Nat_TestIsQuantitative,
extremelow: this.xextremelow,
extremehigh: this.xextremehigh,
linieritas: this.xlinieritas,
limitdetection: this.xlimitdetection,
isnotapplicable: this.xisnotapplicable,
ordertests: this.xordertests
})
},
updateFormReflexTest() {
this.$store.dispatch("multirule/updatereflextest", {
id: this.xid,
multiruleid: this.xmultiruleid,
nilai: this.xnilai,
testid: this.xnattest.Nat_TestID,
isquantitative: this.xnattest.Nat_TestIsQuantitative,
extremelow: this.xextremelow,
extremehigh: this.xextremehigh,
linieritas: this.xlinieritas,
limitdetection: this.xlimitdetection,
isnotapplicable: this.xisnotapplicable,
ordertests: this.xordertests,
deleted_ordertests: this.$store.state.multirule.deleted_ordertests
})
},
thr_search_test: _.debounce(function () {
this.$store.dispatch("multirule/searchtest", this.search_test)
}, 2000)
},
computed: {
dialogquantitative() {
return this.$store.state.multirule.dialog_form_quantitative
},
isLoading() {
return this.$store.state.multirule.search_status == 1
},
xnattest() {
return this.$store.state.multirule.selected_multirule
},
xnatmultirules() {
return this.$store.state.multirule.natmultirules
},
xfiltermethode() {
return this.$store.state.multirule.filter_methodes
},
xselected_filter_methode: {
get() {
return this.$store.state.multirule.selected_filter_methode
},
set(val) {
this.$store.commit("form/update_selected_filter_methode", val)
}
},
xtests() {
return this.$store.state.multirule.tests
},
xtest: {
get() {
return this.$store.state.multirule.test
},
set(val) {
this.$store.commit("multirule/update_test", val)
}
},
xisnotapplicable: {
get() {
return this.$store.state.multirule.isnotapplicable
},
set(val) {
this.$store.commit("multirule/update_isnotapplicable", val)
}
},
xvaluexs() {
return this.$store.state.multirule.valuexs
},
xvaluex: {
get() {
return this.$store.state.multirule.valuex
},
set(val) {
this.$store.commit("multirule/update_valuex", val)
}
},
xspilih: {
get() {
return this.$store.state.multirule.spilih
},
set(val) {
this.$store.commit("multirule/update_spilih", val)
}
},
xsmultiruleid: {
get() {
return this.$store.state.multirule.smultiruleid
},
set(val) {
this.$store.commit("multirule/update_smultiruleid", val)
}
},
xvaluetypees() {
return this.$store.state.multirule.valuetypees
},
xvaluetype: {
get() {
return this.$store.state.multirule.selected_valuetype
},
set(val) {
this.$store.commit("multirule/update_selected_valuetype", val)
}
},
xnilai: {
get() {
return this.$store.state.multirule.nilai
},
set(val) {
this.$store.commit("multirule/update_nilai", val)
}
},
xorderautotests() {
return this.$store.state.multirule.orderautotests
},
xorderautotest: {
get() {
return this.$store.state.multirule.orderautotest
},
set(val) {
this.$store.commit("multirule/update_orderautotest", val)
}
},
xordertests() {
return this.$store.state.multirule.ordertests
},
xvaluetypexes() {
return this.$store.state.multirule.valuetypexes
},
xvaluetypex: {
get() {
return this.$store.state.multirule.selected_valuetypex
},
set(val) {
this.$store.commit("multirule/update_selected_valuetypex", val)
}
}
},
data() {
return {
msgalertconfirmation: "Perubahan yang telah dilakukan belum disimpan dong !",
menufilterdatestart: false,
menufilterdateend: false,
date: new Date().toISOString().substr(0, 10),
items: [],
name: '',
xelow: '',
xehigh: '',
xextremehigh: '',
xextremelow: '',
xlimitdetection: '',
xlinieritas: '',
search_test: '',
xid: 0,
xmultiruleid: 0,
page: 1,
headers: [{
text: "NILAI",
align: "center",
sortable: false,
width: "5%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "NOT APLICABLE",
align: "center",
sortable: false,
width: "5%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "LOW",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "NORMAL",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "HIGH",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "NEGATIVE",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "BORDERLINE",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "POSITIVE",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "AKSI",
align: "center",
sortable: false,
width: "5%",
class: "pa-2 grey lighten-1 white--text"
}
],
headers_search: [{
text: "PASIEN",
align: "left",
sortable: false,
width: "20%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "BARCODE",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "ALMARI",
align: "left",
sortable: false,
width: "25%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "RAK",
align: "center",
sortable: false,
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "POSISI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "AKSI",
align: "center",
sortable: false,
width: "10%",
class: "pa-2 grey lighten-1 white--text"
}
],
pagination: {
descending: false,
page: 1,
rowsPerPage: 5,
sortBy: 'trx_id ASC',
totalItems: this.$store.state.multirule.total_transactions
}
};
},
watch: {
search_test(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.multirule.update_autocomplete_status == 1) return
this.thr_search_test()
}
}
}
</script>

View File

@@ -0,0 +1,458 @@
<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>
<v-text-field class="xs4 ma-1" label="Kode" placeholder="Cari..." outline v-model="code" hide-details></v-text-field>
<v-text-field class="xs4 ma-1" label="Pemeriksaan" placeholder="Cari..." outline v-model="name" hide-details></v-text-field>
<span @click="searchTest" class="icon-medium-fill-base xs1 white--text success iconsearch-search"></span>
</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="multirules" :loading="isLoading" :pagination.sync="pagination" class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.Nat_TestCode}}</td>
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.Nat_TestName}}</td>
</template>
<template>
<div class="text-xs-center">
<v-pagination v-model="page" :length="15" :total-visible="7"></v-pagination>
</div>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card>
<one-dialog-alert :status="openalertconfirmation" :msg="msgalertconfirmation" @forget-dialog-alert="forgetAlertConfirmation()"
@close-dialog-alert="closeAlertConfirmation()"></one-dialog-alert>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogformorder" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Perusahaan</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form ref="formcompany">
<v-layout row wrap>
<v-flex xs12 pa-2>
<v-layout row>
<v-flex xs12 pa-1>
<v-autocomplete label="Perusahaan*" v-model="xcompany" :items="xcompanies" :search-input.sync="search_company" auto-select-first
no-filter item-text="M_CompanyName" return-object :loading="isLoading" no-data-text="Pilih Perusahaan">
<template slot="item" slot-scope="{ item }">
<v-list-tile-content>
<v-list-tile-title v-text="item.M_CompanyName"></v-list-tile-title>
</v-list-tile-content>
</template>
</v-autocomplete>
<p v-if="checkError('requirexcompany')" class="error pl-2 pr-2" style="color:#fff">Pilih perusahaan dulu dong</p>
</v-flex>
</v-layout>
<v-layout row>
<v-flex xs12 pa-1>
<v-select item-text="M_MouName" return-object :items="xmous" v-model="xmou" label="MOU*"></v-select>
<p v-if="checkError('requirexmou')" class="error pl-2 pr-2" style="color:#fff">Pilih MOU dulu dong</p>
</v-flex>
</v-layout>
<v-layout row>
<v-flex xs12 pa-1>
<v-menu ref="menusdate" v-model="menusdate" :close-on-content-click="false" :nudge-right="0" lazy transition="scale-transition"
offset-y full-width max-width="290px" min-width="290px">
<template v-slot:activator="{ on }">
<v-text-field v-model="startComputedDateFormatted" label="Tgl. Order*" readonly v-on="on" @blur="date = deFormatedDate(startComputedDateFormatted)"></v-text-field>
</template>
<v-date-picker v-model="xsdate" no-title @input="menusdate = false"></v-date-picker>
<p v-if="checkError('requirexsdate')" class="error pl-2 pr-2" style="color:#fff">Tanggal order harus diisi dong</p>
</v-flex>
</v-layout>
<v-layout row>
<v-flex xs12 pa-1>
<v-text-field v-model="xnote" label="Catatan"></v-text-field>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="grey darken-1" flat @click="updateDialogFormOrder()">Tutup</v-btn>
<v-btn v-if="xact === 'new'" color="grey darken-1" flat @click="saveFormPerusahaan()">Simpan</v-btn>
<v-btn v-if="xact === 'edit'" color="grey darken-1" flat @click="updateFormPerusahaan()">Simpan Perubahan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
<template>
<v-layout row justify-center>
<v-dialog v-model="dialogstatusorder" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Status</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-timeline>
<v-timeline-item v-for="(status, i) in xstatuss" :key="i" :waktu="status.waktu" :user="status.user" small>
<template>
<span :class="`headline font-weight-bold cyan--text`" v-text="status.status"></span>
</template>
<div class="py-3">
<h2 :class="`headline font-weight-light mb-3 cyan--text`"></h2>
<div>
{{status.waktu}}
<p> [ {{status.user}} ] </p>
</div>
</div>
</v-timeline-item>
</v-timeline>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="grey darken-1" flat @click="updateDialogStatusOrder()">Tutup</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-layout>
</template>
</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')
},
mounted() {
this.$store.dispatch("multirule/getsexreg")
this.$store.dispatch("multirule/search", {
code: this.code,
name: this.name,
lastid: -1
})
},
methods: {
checkError(value) {
var errors = this.$store.state.multirule.errors
if (errors.includes(value)) {
return true
} else {
return false
}
},
isSelected(p) {
return p.Nat_TestID == this.$store.state.multirule.selected_multirule
.Nat_TestID
},
searchTest() {
this.$store.dispatch("multirule/search", {
code: this.code,
name: this.name,
lastid: -1
})
},
selectMe(pat) {
if (this.$store.state.multirule.no_save == 0) {
this.$store.commit("multirule/update_selected_multirule", pat)
this.$store.commit("multirule/update_act_comp", 'edit')
this.$store.commit("multirule/update_extremelow", pat.Nat_MultiRuleExtremeLow)
this.$store.commit("multirule/update_extremehigh", pat.Nat_MultiRuleExtremeHigh)
this.$store.commit("multirule/update_linieritas", pat.Nat_MultiRuleLinieritas)
this.$store.commit("multirule/update_limitdetection", pat.Nat_MultiRuleLimitDetection)
this.$store.commit("multirule/update_isnotapplicable", pat.Nat_MultiRuleRuleIsNotApplicable)
this.$store.dispatch("multirule/getnatmultirule", {
id: pat.Nat_TestID, isquantitative: pat.Nat_TestIsQuantitative
})
this.$store.dispatch("multirule/getvaluetypex",pat.Nat_TestIsQuantitative)
} else {
this.$store.commit("multirule/update_open_alert_confirmation", true)
}
},
closeAlertConfirmation() {
this.$store.commit("multirule/update_open_alert_confirmation", false)
},
forgetAlertConfirmation() {
this.$store.commit("multirule/update_no_save", 0)
this.$store.commit("multirule/update_open_alert_confirmation", false)
},
updateAlert_success(val) {
this.$store.commit("multirule/update_alert_success", val)
},
updateDialogFormOrder() {
this.$store.commit("multirule/update_dialog_form_order", false)
},
updateDialogStatusOrder() {
this.$store.commit("multirule/update_dialog_status_order", false)
},
setNewOrder() {
this.$store.commit("multirule/update_selected_multirule", {})
this.$store.commit("multirule/update_act_comp", 'new')
this.$store.commit("multirule/update_dialog_form_order", true)
this.search_company = ''
},
setStatusOrder() {
this.$store.commit("multirule/update_selected_multirule", {})
this.$store.commit("multirule/update_dialog_status_order", true)
this.search_company = ''
},
saveFormPerusahaan() {
this.$store.commit("multirule/update_errors", [])
var errors = this.$store.state.multirule.errors
if (_.isEmpty(this.xcompany)) {
errors.push("requirexcompany")
}
if (_.isEmpty(this.xmou)) {
errors.push("requirexmou")
}
if (_.isEmpty(this.xsdate)) {
errors.push("requirexsdate")
}
if (errors.length === 0) {
this.$store.dispatch("multirule/newmultirule", {
companyid: this.xcompany.M_CompanyID,
mouid: this.xmou.M_MouID,
sdate: this.xsdate,
note: this.xnote
})
}
},
thr_search_company: _.debounce(function () {
this.$store.dispatch("multirule/searchcompany", this.search_company)
}, 2000),
closeDialogSuccess() {
let arrmultirule = this.$store.state.multirule.multirules
var idx = _.findIndex(arrmultirule, item => item.Nat_TestID === this.$store.state
.multirule.last_id)
console.log(idx)
this.$store.dispatch("multirule/search", {
code: this.code,
name: this.name,
lastid: idx
})
this.$store.commit("multirule/update_dialog_success", false)
},
formatDate(date) {
if (!date) return null
const [year, month, day] = date.split('-')
return `${day}-${month}-${year}`
},
deFormatedDate(date) {
if (!date) return null
const [day, month, year] = date.split('-')
return `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`
}
},
computed: {
dialogsuccess: {
get() {
return this.$store.state.multirule.dialog_success
},
set(val) {
this.$store.commit("multirule/update_dialog_success", val)
}
},
msgsuccess() {
return this.$store.state.multirule.msg_success
},
snackbar: {
get() {
return this.$store.state.multirule.alert_success
},
set(val) {
this.$store.commit("multirule/update_alert_success", val)
}
},
isLoading() {
return this.$store.state.multirule.search_status == 1
},
xact() {
return this.$store.state.multirule.act_comp
},
multirules() {
return this.$store.state.multirule.multirules
},
openalertconfirmation: {
get() {
return this.$store.state.multirule.open_alert_confirmation
},
set(val) {
this.$store.commit("multirule/update_open_alert_confirmation", val)
}
},
dialogformorder() {
return this.$store.state.multirule.dialog_form_order
},
dialogstatusorder() {
return this.$store.state.multirule.dialog_status_order
},
xdate: {
get() {
return this.$store.state.multirule.date
},
set(val) {
this.$store.commit("multirule/update_date", val)
}
},
xnote: {
get() {
return this.$store.state.multirule.note
},
set(val) {
this.$store.commit("multirule/update_note", val)
}
},
xcompanies() {
return this.$store.state.multirule.companies
},
xcompany: {
get() {
return this.$store.state.multirule.company
},
set(val) {
this.$store.commit("multirule/update_company", val)
this.$store.dispatch("multirule/getmou", this.$store.state.multirule.company)
}
},
xmous() {
return this.$store.state.multirule.mous
},
xmou: {
get() {
return this.$store.state.multirule.mou
},
set(val) {
this.$store.commit("multirule/update_mou", val)
}
},
startComputedDateFormatted() {
return this.formatDate(this.xsdate)
},
xsdate: {
get() {
return this.$store.state.multirule.sdate
},
set(val) {
this.$store.commit("multirule/update_sdate", val)
}
},
xstatuss() {
return this.$store.state.multirule.statuss
}
},
data() {
return {
msgalertconfirmation: "Perubahan yang telah dilakukan belum disimpan dong !",
items: [],
code: '',
name: '',
search_company: '',
menusdate: false,
date: new Date().toISOString().substr(0, 10),
page: 1,
headers: [{
text: "KODE",
align: "center",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 grey lighten-1 white--text"
},
{
text: "PEMERIKSAAN",
align: "center",
sortable: false,
value: "mr",
width: "40%",
class: "pa-2 grey lighten-1 white--text"
}
],
pagination: {
ascending: true,
page: 1,
rowsPerPage: 5,
sortBy: 'Nat_TestCode',
totalItems: this.$store.state.multirule.total_multirules
},
statuss: [{
waktu: '16-07-2019 10:00',
status: 'Order Dibuat',
user: 'Nagita Slavina'
},
{
waktu: '16-07-2019 11:00',
status: 'Order Dikirim',
user: 'Nagita Slavina'
},
{
waktu: '16-07-2019 12:00',
status: 'Order dikonfirmasi',
user: 'Chacha Frederica'
},
{
waktu: '16-07-2019 13:00',
status: 'Telah dibuat Surat Jalan',
user: 'Chacha Frederica'
},
{
waktu: '16-07-2019 14:00',
status: 'Kurir akan mengambil sampel',
user: 'Satria Subiantoro'
}
]
};
},
watch: {
search_company(val, old) {
if (val == old) return
if (!val) return
if (val.length < 1) return
if (this.$store.state.multirule.update_autocomplete_status == 1) return
this.thr_search_company()
}
}
}
</script>