Initial import
This commit is contained in:
@@ -0,0 +1,480 @@
|
||||
<template>
|
||||
<v-layout v-if="sampletype" class="mb-2 mt-2" column >
|
||||
<v-dialog v-model="xdialogdelete" persistent max-width="290">
|
||||
<v-card>
|
||||
<v-card-title
|
||||
dark
|
||||
class="headline error pt-2 pb-2"
|
||||
primary-title
|
||||
style="color:white"
|
||||
>
|
||||
<h4 dark>Peringatan !</h4>
|
||||
</v-card-title>
|
||||
<v-card-text v-html="xmsgdelete">
|
||||
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn small color="error darken-1 text-sm-left" flat @click="doDeletePhoto()">Hapus</v-btn>
|
||||
<v-btn small color="primary darken-1 text-sm-right" flat @click="xdialogdelete = false">Batal</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<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-dialog v-model="xdialogimage" persistent max-width="650" max-height="500">
|
||||
<v-card color="amber lighten-5">
|
||||
<v-container grid-list-sm fluid>
|
||||
<v-layout row wrap>
|
||||
<v-flex>
|
||||
<v-card flat tile class="d-flex">
|
||||
<v-img
|
||||
:src="ximage"
|
||||
aspect-ratio="1"
|
||||
class="grey lighten-2"
|
||||
>
|
||||
<template v-slot:placeholder>
|
||||
<v-layout
|
||||
fill-height
|
||||
align-center
|
||||
justify-center
|
||||
ma-0
|
||||
>
|
||||
<v-progress-circular indeterminate color="grey lighten-5"></v-progress-circular>
|
||||
</v-layout>
|
||||
</template>
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
<v-card-actions>
|
||||
<v-btn color="error darken-1" v-if="sampletype.status !== 'V'" @click="deleteImage()">Hapus</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="black" dark @click="xdialogimage = false">Tutup</v-btn>
|
||||
</v-card-actions>
|
||||
<v-card>
|
||||
</v-dialog>
|
||||
<v-card v-if="sampletype">
|
||||
<v-layout row>
|
||||
<v-flex xs12>
|
||||
<!--<v-subheader red--text text--lighten-1> LIST SAMPLE
|
||||
</v-subheader>
|
||||
<v-divider></v-divider>-->
|
||||
<v-layout pa-2 row wrap>
|
||||
<v-flex xs5 mb-2 mr-3>
|
||||
<v-layout>
|
||||
<v-flex xs12>
|
||||
<v-card style="border:1px solid black" flat class="text">
|
||||
<v-layout pa-1>
|
||||
<v-flex xs5>
|
||||
<v-img
|
||||
src="https://anggrek.aplikasi.web.id/one-ui/libs/image/body.jpg"
|
||||
height="125px"
|
||||
contain
|
||||
></v-img>
|
||||
</v-flex>
|
||||
<v-flex xs7>
|
||||
<v-card-title style="padding-top:0">
|
||||
<div>
|
||||
<div style="font-size:x-large" class="font-weight-light font-condensed pl-2">{{sampletype.T_SampleTypeName}}</div>
|
||||
<div>
|
||||
<v-btn depressed color="warning"><v-icon left>alarm</v-icon>{{sampletype.process_date}} {{sampletype.process_time}}</v-btn></div>
|
||||
<v-btn depressed color="success"><v-icon left>alarm</v-icon>{{sampletype.done_date}} {{sampletype.done_time}}</v-btn></div>
|
||||
</div>
|
||||
</v-card-title>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-divider></v-divider>
|
||||
<v-card-actions class="pt-2 pb-2">
|
||||
<v-layout v-if="sampletype.status !== 'V'" row>
|
||||
<v-flex pa-1 pl-3 xs6>
|
||||
<v-btn block @click="reject(sampletype)" color="error">TOLAK</v-btn>
|
||||
</v-flex>
|
||||
<v-flex pa-1 pr-3 xs6>
|
||||
<v-btn block @click="verify(sampletype)" color="primary">VERIFIKASI</v-btn>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout v-if="sampletype.status === 'V'" align-center row>
|
||||
<v-flex xs7>
|
||||
<!--<v-chip label color="primary" text-color="white">
|
||||
<v-icon left>alarm_on</v-icon>{{sampletype.verify_date}} {{sampletype.verify_time}}
|
||||
</v-chip>-->
|
||||
<v-btn block depressed color="primary"><v-icon left>alarm_on</v-icon>{{sampletype.verify_date}} {{sampletype.verify_time}}</v-btn>
|
||||
</v-flex>
|
||||
<v-flex xs5>
|
||||
<v-chip close label @click="unverify(sampletype)" color="red" text-color="white">
|
||||
Batal Verifikasi
|
||||
</v-chip>
|
||||
<!--<v-btn block v-if="sampletype.status === 'V'" @click="unverify(sampletype)" color="error"><v-icon>lock_open</v-icon></v-btn>-->
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
<v-flex v-if="sampletype.status !== 'V'" xs-7>
|
||||
<form enctype="multipart/form-data" novalidate v-if="isInitial || isSaving">
|
||||
|
||||
<div class="dropbox">
|
||||
<input type="file" multiple :name="uploadFieldName" :disabled="isSaving" @change="filesChange($event.target.name, $event.target.files); fileCount = $event.target.files.length"
|
||||
accept="image/*" class="input-file">
|
||||
<p v-if="isInitial">
|
||||
Geret photo ke sini untuk memulai upload<br> atau klik untuk mencari
|
||||
</p>
|
||||
<p v-if="isSaving">
|
||||
Sedang meng-upload {{ fileCount }} photo...
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
<div class="dropbox text-xs-center" v-if="isFailed">
|
||||
<h2 style="color:#f44336">Photo gagal diupload !</h2>
|
||||
<p>
|
||||
<a href="javascript:void(0)" @click="reset()">Klik untuk upload lagi</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="dropbox text-xs-center" v-if="isSuccess">
|
||||
<h2>Photo berhasil diupload.</h2>
|
||||
<p>
|
||||
<a href="javascript:void(0)" @click="reset()">Klik untuk upload lagi</a>
|
||||
</p>
|
||||
</div>
|
||||
</v-flex>
|
||||
<v-flex v-if="sampletype.status === 'V'" xs-7>
|
||||
<div class="dropbox_verify">
|
||||
<p>
|
||||
fitur upload photo sudah tidak tersedia
|
||||
</p>
|
||||
<p><v-icon x-medium color="#fff">not_interested</v-icon></p>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-divider></v-divider>
|
||||
<v-layout align-center justify-center row fill-height>
|
||||
<v-flex xs12 pt-3 pb-3 sm8>
|
||||
<v-card color="amber lighten-5">
|
||||
<v-container grid-list-sm fluid>
|
||||
<v-layout justify-center row v-if="xphotos.length === 0">
|
||||
<h5>Belum ada photo yang diupload</h5>
|
||||
</v-layout>
|
||||
<v-layout row v-if="xphotos.length > 0" wrap>
|
||||
<v-flex
|
||||
v-for="photo in xphotos"
|
||||
:key="photo.id"
|
||||
pa-1
|
||||
>
|
||||
<v-card flat tile class="d-flex">
|
||||
<v-img
|
||||
:src="photo.newname"
|
||||
aspect-ratio="1"
|
||||
class="grey lighten-2"
|
||||
@click="openImage(photo)"
|
||||
>
|
||||
<template v-slot:placeholder>
|
||||
<v-layout
|
||||
fill-height
|
||||
align-center
|
||||
justify-center
|
||||
ma-0
|
||||
>
|
||||
<v-progress-circular indeterminate color="grey lighten-5"></v-progress-circular>
|
||||
</v-layout>
|
||||
</template>
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
</v-layout>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.dropbox {
|
||||
outline: 2px dashed grey; /* the dash box */
|
||||
outline-offset: -10px;
|
||||
background: lightcyan;
|
||||
color: dimgray;
|
||||
padding: 10px 10px;
|
||||
min-height: 218px; /* minimum height */
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dropbox_verify {
|
||||
outline: 2px dashed #fff; /* the dash box */
|
||||
outline-offset: -10px;
|
||||
background: #382f2f;
|
||||
color: #fff;
|
||||
padding-top:45px;
|
||||
min-height: 214px; /* minimum height */
|
||||
max-height: 214px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
text-align:center;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
.input-file {
|
||||
opacity: 0; /* invisible but it's there! */
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dropbox:hover {
|
||||
background: lightblue; /* when mouse over to the drop zone, change color */
|
||||
}
|
||||
|
||||
.dropbox p {
|
||||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
padding: 50px 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
mounted() {
|
||||
this.reset()
|
||||
},
|
||||
data: () => ({
|
||||
uploadFieldName: 'photos[]',
|
||||
fileCount:0,
|
||||
weigthdiv:4,
|
||||
chip2:true
|
||||
}),
|
||||
computed: {
|
||||
sampletype(){
|
||||
return this.$store.state.sample.selected_transaction
|
||||
},
|
||||
currentStatus:{
|
||||
get() {
|
||||
return this.$store.state.sample.current_status
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_current_status",val)
|
||||
}
|
||||
},
|
||||
uploadedFiles:{
|
||||
get() {
|
||||
return this.$store.state.sample.uploaded_files
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_uploaded_files",val)
|
||||
}
|
||||
},
|
||||
uploadError:{
|
||||
get() {
|
||||
return this.$store.state.sample.uploaded_error
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_uploaded_error",val)
|
||||
}
|
||||
},
|
||||
isInitial() {
|
||||
return this.currentStatus === 'STATUS_INITIAL';
|
||||
},
|
||||
isSaving() {
|
||||
return this.currentStatus === 'STATUS_SAVING';
|
||||
},
|
||||
isSuccess() {
|
||||
return this.currentStatus === 'STATUS_SUCCESS';
|
||||
},
|
||||
isFailed() {
|
||||
return this.currentStatus === 'STATUS_FAILED';
|
||||
},
|
||||
xdialogaction:{
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_action
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_action",val)
|
||||
}
|
||||
},
|
||||
xmsgaction:{
|
||||
get() {
|
||||
return this.$store.state.sample.msg_action
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_msg_action",val)
|
||||
}
|
||||
},
|
||||
xphotos() {
|
||||
return this.$store.state.sample.photos
|
||||
},
|
||||
xdialogimage:{
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_image
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_image",val)
|
||||
}
|
||||
},
|
||||
ximage() {
|
||||
return this.$store.state.sample.image
|
||||
},
|
||||
xdialogdelete:{
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_confirmation_delete
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_confirmation_delete",val)
|
||||
}
|
||||
},
|
||||
xmsgdelete:{
|
||||
get() {
|
||||
return this.$store.state.sample.msg_confirmation_delete
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_msg_confirmation_delete",val)
|
||||
}
|
||||
},
|
||||
xdialoginfo:{
|
||||
get() {
|
||||
return this.$store.state.sample.open_dialog_info
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_open_dialog_info",val)
|
||||
}
|
||||
},
|
||||
xmsginfo:{
|
||||
get() {
|
||||
return this.$store.state.sample.msg_info
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_msg_info",val)
|
||||
}
|
||||
},
|
||||
showtooltip(){
|
||||
if(this.$store.state.sample.selected_transaction.status === 'V'){
|
||||
return true
|
||||
}
|
||||
else{
|
||||
return false
|
||||
}
|
||||
}
|
||||
},
|
||||
methods : {
|
||||
reset() {
|
||||
console.log('reset')
|
||||
this.currentStatus = 'STATUS_INITIAL';
|
||||
this.uploadedFiles = [];
|
||||
this.uploadError = null;
|
||||
},
|
||||
save(formData) {
|
||||
this.currentStatus = 'STATUS_SAVING'
|
||||
this.$store.dispatch("sample/upload",formData)
|
||||
},
|
||||
filesChange(fieldName, fileList) {
|
||||
const formData = new FormData()
|
||||
if (!fileList.length) return
|
||||
Array
|
||||
.from(Array(fileList.length).keys())
|
||||
.map(x => {
|
||||
formData.append(fieldName, fileList[x], fileList[x].name)
|
||||
})
|
||||
formData.append ('ordernumber', this.sampletype.T_OrderHeaderLabNumber)
|
||||
formData.append ('orderid', this.sampletype.T_OrderHeaderID)
|
||||
formData.append ('sampletype', this.sampletype.T_SampleTypeID)
|
||||
formData.append ('token', one_token())
|
||||
this.save(formData);
|
||||
},
|
||||
closeDialogAction(){
|
||||
var act = this.$store.state.sample.act
|
||||
var statusnextid = 4
|
||||
var trxs = this.$store.state.sample.transactions
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
var idx = _.findIndex(trxs, item => item.T_OrderHeaderID === trx.T_OrderHeaderID && item.T_SampleTypeID === trx.T_SampleTypeID)
|
||||
this.$store.dispatch("sample/doaction",{
|
||||
act:act,
|
||||
orderid:trx.T_OrderHeaderID,
|
||||
sampleid:trx.T_SampleTypeID,
|
||||
namelab:this.$store.state.sample.name_lab,
|
||||
startdate:this.$store.state.sample.start_date,
|
||||
enddate: this.$store.state.sample.end_date,
|
||||
stationid:this.$store.state.sample.selected_station.id,
|
||||
statusnextid : statusnextid,
|
||||
doctor:this.$store.state.sample.selected_doctor,
|
||||
doctoraddress:this.$store.state.sample.selected_doctor_address,
|
||||
lastid:idx
|
||||
})
|
||||
|
||||
},
|
||||
reject(value){
|
||||
var msg = "Anda yakin akan menolak sample "+value.T_SampleTypeName+" dari pasien "+value.patient_fullname+" ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'reject')
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
},
|
||||
verify(value){
|
||||
this.$store.commit("sample/update_errors",[])
|
||||
var errors = this.$store.state.sample.errors
|
||||
if(_.isEmpty(this.$store.state.sample.selected_doctor)){
|
||||
errors.push("requiredoctor")
|
||||
}
|
||||
if(_.isEmpty(this.$store.state.sample.selected_doctor_address)){
|
||||
errors.push("requiredoctoraddress")
|
||||
}
|
||||
if(errors.length === 0){
|
||||
var msg = "Anda yakin akan me-verifikasi sample "+value.T_SampleTypeName+" dari pasien "+value.patient_fullname+" ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'verify')
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
}
|
||||
},
|
||||
unverify(value){
|
||||
var msg = "Anda yakin akan membatalkan verifikasi "+value.T_SampleTypeName+" dari pasien "+value.patient_fullname+" ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'unverify')
|
||||
this.currentStatus === 'STATUS_INITIAL'
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
},
|
||||
openImage(value){
|
||||
this.$store.commit("sample/update_selected_photo",value)
|
||||
this.$store.commit("sample/update_image",value.newname)
|
||||
this.$store.commit("sample/update_dialog_image",true)
|
||||
},
|
||||
deleteImage(){
|
||||
this.$store.commit("sample/update_dialog_image",false)
|
||||
var msg = "<p>Yakin akan menghapus photo ?</p>"
|
||||
this.$store.commit("sample/update_msg_confirmation_delete",msg)
|
||||
this.$store.commit("sample/update_dialog_confirmation_delete",true)
|
||||
},
|
||||
doDeletePhoto(){
|
||||
var id = this.$store.state.sample.selected_photo.id
|
||||
var trxs = this.$store.state.sample.transactions
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
var idx = _.findIndex(trxs, item => item.T_OrderHeaderID === trx.T_OrderHeaderID && item.T_SampleTypeID === trx.T_SampleTypeID)
|
||||
this.$store.dispatch("sample/deletephoto",{
|
||||
id:id,
|
||||
orderid:trx.T_OrderHeaderID,
|
||||
sampleid:trx.T_SampleTypeID,
|
||||
namelab:this.$store.state.sample.name_lab,
|
||||
startdate:this.$store.state.sample.start_date,
|
||||
enddate: this.$store.state.sample.end_date,
|
||||
stationid:this.$store.state.sample.selected_station.id,
|
||||
lastid:idx
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,112 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-layout v-if="xselected_patient" mt-2 row>
|
||||
<v-flex xs12>
|
||||
<v-card>
|
||||
<v-card-text style="padding-top:2px">
|
||||
<v-subheader v-if="xselected_patient.status === 'V'" red--text text--lighten-1>
|
||||
<v-flex text-md-right>
|
||||
<v-btn @click="updateDoctor()" small color="info">Update</v-btn>
|
||||
</v-flex>
|
||||
</v-subheader>
|
||||
<v-divider></v-divider>
|
||||
<v-layout row>
|
||||
<v-flex pa-2 xs6>
|
||||
<v-select
|
||||
item-text="name"
|
||||
return-object
|
||||
:items="xdoctors"
|
||||
v-model="xselecteddoctor"
|
||||
label="Dokter*"
|
||||
></v-select>
|
||||
<p v-if="checkError('requiredoctor')" class="error pl-2 pr-2" style="color:#fff">Dokter dipilih dulu dong</p>
|
||||
</v-flex>
|
||||
<v-flex pa-2 xs6>
|
||||
<v-select
|
||||
item-text="name"
|
||||
return-object
|
||||
:items="xdoctoraddress"
|
||||
v-model="xselecteddoctoraddress"
|
||||
label="Alamat Dokter*"
|
||||
></v-select>
|
||||
<p v-if="checkError('requiredoctoraddress')" class="error pl-2 pr-2" style="color:#fff">Alamatnya juga dong dipilih</p>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
data: () => ({
|
||||
|
||||
}),
|
||||
computed: {
|
||||
xselected_patient(){
|
||||
//console.log(this.$store.state.sample.selected_transaction)
|
||||
return this.$store.state.sample.selected_transaction
|
||||
},
|
||||
xselecteddoctor: {
|
||||
get() {
|
||||
return this.$store.state.sample.selected_doctor
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_selected_doctor",val)
|
||||
this.$store.dispatch("sample/getdoctoraddress",{
|
||||
id:val.id
|
||||
})
|
||||
}
|
||||
},
|
||||
xdoctors(){
|
||||
return this.$store.state.sample.doctors
|
||||
},
|
||||
xselecteddoctoraddress: {
|
||||
get() {
|
||||
return this.$store.state.sample.selected_doctor_address
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_selected_doctor_address",val)
|
||||
|
||||
}
|
||||
},
|
||||
xdoctoraddress(){
|
||||
return this.$store.state.sample.doctor_address
|
||||
}
|
||||
},
|
||||
methods : {
|
||||
checkError(value){
|
||||
var errors = this.$store.state.sample.errors
|
||||
if(errors.includes(value)){
|
||||
return true
|
||||
}
|
||||
else{
|
||||
return false
|
||||
}
|
||||
},
|
||||
updateDoctor(){
|
||||
this.$store.commit("sample/update_errors",[])
|
||||
var errors = this.$store.state.sample.errors
|
||||
var value = this.$store.state.sample.selected_transaction
|
||||
if(_.isEmpty(this.$store.state.sample.selected_doctor)){
|
||||
errors.push("requiredoctor")
|
||||
}
|
||||
if(_.isEmpty(this.$store.state.sample.selected_doctor_address)){
|
||||
errors.push("requiredoctoraddress")
|
||||
}
|
||||
if(errors.length === 0){
|
||||
var msg = "Anda yakin akan merubah data dokter atau alamat dokter "+value.T_SampleTypeName+" dari pasien "+value.patient_fullname+" ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'updatedoctor')
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,829 @@
|
||||
<template>
|
||||
<v-layout class="mb-2" column >
|
||||
<v-dialog v-model="dialogsupplies" persistent max-width="850">
|
||||
<v-card>
|
||||
<v-card-title class="headline">Supplies</v-card-title>
|
||||
<v-card-text>
|
||||
<v-layout row>
|
||||
<v-flex xs12 pa-1>
|
||||
<v-data-table
|
||||
:headers="headers_dialog_supplies"
|
||||
:items="xsupplies"
|
||||
:loading="isLoading"
|
||||
hide-actions class="elevation-1">
|
||||
<template slot="items" slot-scope="props">
|
||||
<td class="text-xs-left pa-2">{{ props.item.supplies_name }}</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
<div>
|
||||
<v-btn v-if="checkInLists(props.item) === false" @click="addToLists(props.item)" small color="error"><v-icon left>close</v-icon> Belum dipilih</v-btn>
|
||||
<v-btn v-if="checkInLists(props.item) === true" flat small color="success"><v-icon left>check</v-icon> Sudah terpilih</v-btn>
|
||||
</div>
|
||||
</td>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="green darken-1" flat @click="dialogsupplies = false">OK</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<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="doDeleteTrx()">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-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()">Ya</v-btn>
|
||||
<v-btn color="error darken-1" flat @click="xdialogaction = false">Tutup</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<v-layout row>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-card>
|
||||
<v-subheader red--text text--lighten-1> FORM SUPPLIES
|
||||
<span v-if="xact !== 'new'"> [ <span style="color:#2196F3;font-weight: 900;">{{xnumbering}}</span> ]</span>
|
||||
<v-flex text-md-right>
|
||||
<v-btn v-if="xact !== 'new' && currStatus === 'NEW'" @click="deleteTrx()" small color="error">Hapus</v-btn>
|
||||
<v-btn v-if="( xact !== 'new' && currStatus === 'NEW') || xact === 'new'" @click="saveTrx()" small color="primary">Simpan</v-btn>
|
||||
</v-flex>
|
||||
</v-subheader>
|
||||
<v-divider></v-divider>
|
||||
<v-layout class="pb-2" row wrap>
|
||||
<v-flex xs12 pa-2>
|
||||
<v-layout row>
|
||||
<v-flex xs2 pa-1>
|
||||
<v-menu class="pr-2"
|
||||
v-model="menutrxdate"
|
||||
:close-on-content-click="false"
|
||||
:nudge-right="40"
|
||||
lazy
|
||||
transition="scale-transition"
|
||||
offset-y
|
||||
full-width
|
||||
max-width="290px"
|
||||
min-width="290px"
|
||||
>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-text-field
|
||||
class="mt-1"
|
||||
v-model="filterComputedDateFormattedTrx"
|
||||
label="Tanggal Transaksi*"
|
||||
:disabled="xact === 'edit'"
|
||||
|
||||
readonly
|
||||
v-on="on"
|
||||
@blur="date = deFormatedDate(filterComputedDateFormattedTrx)"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<v-date-picker v-model="xtrxdate" no-title @input="menutrxdate = false"></v-date-picker>
|
||||
</v-menu>
|
||||
</v-flex>
|
||||
<v-flex pa-1 xs4>
|
||||
<v-select
|
||||
item-text="name"
|
||||
return-object
|
||||
:items="xstaffs"
|
||||
v-model="xselectedstaff"
|
||||
:disabled="xact === 'edit'"
|
||||
label="Petugas Pengambil Sample*"
|
||||
></v-select>
|
||||
<p v-if="checkError('requirestaff')" class="error pl-2 pr-2" style="color:#fff">Staff dipilih dulu dong</p>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
|
||||
|
||||
<v-layout row>
|
||||
<v-flex xs12 pa-1>
|
||||
<v-textarea
|
||||
filled
|
||||
outline
|
||||
:disabled="xact === 'edit' && currStatus === 'RCV'"
|
||||
label="Catatan"
|
||||
v-model="xnote"
|
||||
rows="3"
|
||||
></v-textarea>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card>
|
||||
<v-layout class="pt-2 mb-1" column row>
|
||||
<v-card>
|
||||
<v-layout row>
|
||||
<v-flex xs12>
|
||||
<v-subheader red--text text--lighten-1> ORDER</v-subheader>
|
||||
<v-divider></v-divider>
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12 pa-2>
|
||||
<v-layout row>
|
||||
<v-flex xs12 pa-1>
|
||||
<v-data-table
|
||||
:headers="headerdetail"
|
||||
:items="details"
|
||||
:loading="isLoading"
|
||||
hide-actions class="elevation-1">
|
||||
<template slot="items" slot-scope="props">
|
||||
<td class="text-xs-center pa-2">
|
||||
<div v-if="currStatus !== 'RCV'">
|
||||
<v-btn style="min-width:30px;padding-left: 8px;padding-right: 8px;" @click="changeStatusDetail(props.item)" v-if="props.item.status === 'N'" small color="error"><v-icon>close</v-icon></v-btn>
|
||||
<v-btn style="min-width:30px;padding-left: 8px;padding-right: 8px;" @click="changeStatusDetail(props.item)" v-if="props.item.status === 'Y'" flat small color="success"><v-icon>check</v-icon></v-btn>
|
||||
</div>
|
||||
<div v-if="currStatus === 'RCV'">
|
||||
<v-btn style="min-width:30px;padding-left: 8px;padding-right: 8px;" v-if="props.item.status === 'N'" small color="error"><v-icon>close</v-icon></v-btn>
|
||||
<v-btn style="min-width:30px;padding-left: 8px;padding-right: 8px;" v-if="props.item.status === 'Y'" flat small color="success"><v-icon>check</v-icon></v-btn>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-xs-left pa-2">{{ props.item.trx_numbering }} [ <kbd>{{ props.item.trx_time }}</kbd> ]</td>
|
||||
<td class="text-xs-left pa-2">{{ props.item.patient_name }}</td>
|
||||
<td class="text-xs-center pa-2" >{{ props.item.tests }}</td>
|
||||
<td class="text-xs-center pa-2" >
|
||||
<v-chip
|
||||
class="ma-2"
|
||||
color="info"
|
||||
label
|
||||
text-color="white"
|
||||
>
|
||||
<v-icon left>print</v-icon>
|
||||
{{props.item.sampletype_name}}
|
||||
</v-chip>
|
||||
</td>
|
||||
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-flex>
|
||||
</v-card>
|
||||
|
||||
|
||||
</v-layout>
|
||||
|
||||
|
||||
<v-layout class="pt-2 mb-1" column row>
|
||||
|
||||
<v-card>
|
||||
<v-layout row>
|
||||
<v-flex xs12>
|
||||
<v-subheader red--text text--lighten-1> SUPPLIES
|
||||
<v-flex text-md-right>
|
||||
<v-btn v-if="currStatus !== 'RCV'" @click="openDialogSupplies('supplies')" small color="primary">tambah</v-btn>
|
||||
</v-flex>
|
||||
</v-subheader>
|
||||
<v-divider></v-divider>
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12 pa-2>
|
||||
<v-layout row>
|
||||
<v-flex xs12 pa-1>
|
||||
<v-data-table
|
||||
:headers="headersupplies"
|
||||
:items="supplies"
|
||||
:loading="isLoading"
|
||||
hide-actions class="elevation-1">
|
||||
<template slot="items" slot-scope="props">
|
||||
<td class="text-xs-left pa-2">{{ props.item.supplies_name }}</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
<v-text-field
|
||||
style="margin-top:0;padidng-top:0"
|
||||
single-line
|
||||
hide-details
|
||||
@change="changeQtySupplies(props.item)"
|
||||
v-model="props.item.qty"
|
||||
></v-text-field>
|
||||
</td>
|
||||
|
||||
<td class="text-xs-center pa-2">
|
||||
<div v-if="currStatus !== 'RCV'">
|
||||
<v-btn @click="changeStatusSupplies(props.item)" v-if="props.item.status === 'N'" small color="error"><v-icon left>close</v-icon> Belum dipilih</v-btn>
|
||||
<v-btn @click="changeStatusSupplies(props.item)" v-if="props.item.status === 'Y'" flat small color="success"><v-icon left>check</v-icon> Sudah terpilih</v-btn>
|
||||
</div>
|
||||
<div v-if="currStatus === 'RCV'">
|
||||
<v-btn v-if="props.item.status === 'N'" small color="error"><v-icon left>close</v-icon> Belum dipilih</v-btn>
|
||||
<v-btn v-if="props.item.status === 'Y'" flat small color="success"><v-icon left>check</v-icon> Sudah terpilih</v-btn>
|
||||
</div>
|
||||
</td>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-flex>
|
||||
</v-card>
|
||||
|
||||
</v-layout>
|
||||
|
||||
|
||||
<v-layout class="pt-2 mb-1" column row>
|
||||
<v-card>
|
||||
<v-layout row>
|
||||
<v-flex xs12>
|
||||
<v-subheader red--text text--lighten-1> BUFFER
|
||||
<v-flex text-md-right>
|
||||
<v-btn v-if="currStatus !== 'RCV'" @click="openDialogSupplies('buffers')" small color="primary">tambah</v-btn>
|
||||
</v-flex>
|
||||
</v-subheader>
|
||||
<v-divider></v-divider>
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12 pa-2>
|
||||
<v-layout row>
|
||||
<v-flex xs12 pa-1>
|
||||
<v-data-table
|
||||
:headers="headerbuffer"
|
||||
:items="buffers"
|
||||
:loading="isLoading"
|
||||
hide-actions class="elevation-1">
|
||||
<template slot="items" slot-scope="props">
|
||||
<td class="text-xs-left pa-2">{{ props.item.supplies_name }}</td>
|
||||
<td class="text-xs-center pa-2">
|
||||
<v-text-field
|
||||
single-line
|
||||
hide-details
|
||||
@change="changeQtyBuffers(props.item)"
|
||||
style="margin-top:0;padidng-top:0"
|
||||
v-model="props.item.qty"
|
||||
></v-text-field>
|
||||
</td>
|
||||
|
||||
<td class="text-xs-center pa-2">
|
||||
<div v-if="currStatus !== 'RCV'">
|
||||
<v-btn @click="changeStatusBuffers(props.item)" v-if="props.item.status === 'N'" small color="error"><v-icon left>close</v-icon> Belum dipilih</v-btn>
|
||||
<v-btn @click="changeStatusBuffers(props.item)" v-if="props.item.status === 'Y'" flat small color="success"><v-icon left>check</v-icon> Sudah terpilih</v-btn>
|
||||
</div>
|
||||
<div v-if="currStatus === 'RCV'">
|
||||
<v-btn v-if="props.item.status === 'N'" small color="error"><v-icon left>close</v-icon> Belum dipilih</v-btn>
|
||||
<v-btn v-if="props.item.status === 'Y'" flat small color="success"><v-icon left>check</v-icon> Sudah terpilih</v-btn>
|
||||
</div>
|
||||
</td>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-flex>
|
||||
</v-card>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-flex>
|
||||
</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: () => ({
|
||||
menutrxdate:false,
|
||||
date: new Date().toISOString().substr(0, 10),
|
||||
isLoading:false,
|
||||
headerdetail: [
|
||||
{
|
||||
text: "STATUS",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "8%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "NOMOR",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "PASIEN",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "PEMERIKSAAN",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "SAMPLE",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
}
|
||||
|
||||
|
||||
],
|
||||
headersupplies: [
|
||||
{
|
||||
text: "SUPPLIES",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "45%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "QTY",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "10%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "STATUS",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "20%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
}
|
||||
],
|
||||
headerbuffer: [
|
||||
{
|
||||
text: "SUPPLIES",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "45%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "QTY",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "10%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "STATUS",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "20%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
}
|
||||
],
|
||||
headers_dialog_supplies: [
|
||||
{
|
||||
text: "SUPPLIES",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "85%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "STATUS",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
}
|
||||
],
|
||||
}),
|
||||
computed: {
|
||||
xact: {
|
||||
get() {
|
||||
return this.$store.state.sample.act
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_act",val)
|
||||
}
|
||||
},
|
||||
xnumbering(){
|
||||
if(this.$store.state.sample.selected_transaction)
|
||||
return this.$store.state.sample.selected_transaction.trx_numbering
|
||||
else
|
||||
return '-'
|
||||
},
|
||||
currStatus(){
|
||||
if(this.$store.state.sample.selected_transaction)
|
||||
return this.$store.state.sample.selected_transaction.status
|
||||
else
|
||||
return 'NONE'
|
||||
},
|
||||
xselectedtransaction(){
|
||||
return this.$store.state.sample.selected_transaction
|
||||
},
|
||||
xtrxdate : {
|
||||
get() {
|
||||
return this.$store.state.sample.trx_date
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_trx_date",val)
|
||||
this.$store.dispatch("sample/getstaffbydate",{
|
||||
xdate:val
|
||||
})
|
||||
}
|
||||
},
|
||||
dialogconfirmationdelete:{
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_confirmation_delete
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_confirmation_delete",val)
|
||||
}
|
||||
},
|
||||
msgconfirmationdelete(){
|
||||
return this.$store.state.sample.msg_confirmation_delete
|
||||
},
|
||||
filterComputedDateFormattedTrx () {
|
||||
return this.sampleatDate(this.xtrxdate)
|
||||
},
|
||||
xselectedstaff: {
|
||||
get() {
|
||||
return this.$store.state.sample.selected_staff
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_selected_staff",val)
|
||||
console.log(val)
|
||||
console.log({
|
||||
xdate:this.$store.state.sample.trx_date,
|
||||
staffid:val.id
|
||||
})
|
||||
this.$store.dispatch("sample/getorderbydatestaff",{
|
||||
xdate:this.$store.state.sample.trx_date,
|
||||
staffid:val.id
|
||||
})
|
||||
}
|
||||
},
|
||||
xstaffs(){
|
||||
return this.$store.state.sample.staffs
|
||||
},
|
||||
xnote: {
|
||||
get() {
|
||||
return this.$store.state.sample.trx_note
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_trx_note",val)
|
||||
}
|
||||
},
|
||||
details(){
|
||||
return this.$store.state.sample.details
|
||||
},
|
||||
supplies(){
|
||||
return this.$store.state.sample.supplies
|
||||
},
|
||||
buffers(){
|
||||
return this.$store.state.sample.buffers
|
||||
},
|
||||
xsupplies(){
|
||||
return this.$store.state.sample.list_supplies
|
||||
},
|
||||
xdialogaction:{
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_action
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_action",val)
|
||||
}
|
||||
},
|
||||
xmsgaction:{
|
||||
get() {
|
||||
return this.$store.state.sample.msg_action
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_msg_action",val)
|
||||
}
|
||||
},
|
||||
dialogsupplies:{
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_supplies
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_supplies",val)
|
||||
}
|
||||
},
|
||||
dialogsuppliesact:{
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_supplies_act
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_supplies_act",val)
|
||||
}
|
||||
},
|
||||
xdateedit(){
|
||||
return this.$store.state.sample.trx_date_edit
|
||||
},
|
||||
xstaffedit(){
|
||||
return this.$store.state.sample.trx_staff_edit
|
||||
},
|
||||
},
|
||||
methods : {
|
||||
checkError(value){
|
||||
var errors = this.$store.state.sample.errors
|
||||
if(errors.includes(value)){
|
||||
return true
|
||||
}
|
||||
else{
|
||||
return false
|
||||
}
|
||||
},
|
||||
sampleatDate (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')}`
|
||||
},
|
||||
saveTrx(){
|
||||
this.$store.commit("sample/update_errors",[])
|
||||
var errors = this.$store.state.sample.errors
|
||||
var details = this.$store.state.sample.details
|
||||
var supplies = this.$store.state.sample.supplies
|
||||
var buffers = this.$store.state.sample.buffers
|
||||
if(_.isEmpty(this.xselectedstaff)){
|
||||
errors.push("requirestaff")
|
||||
}
|
||||
var checklist = ''
|
||||
var arr_selected_detail = _.filter(details, { status:'Y' })
|
||||
var arr_selected_supplies = _.filter(supplies, { status:'Y' })
|
||||
if(arr_selected_detail.length === 0){
|
||||
checklist += "<p>Belum ada order yang dipilih dong</p>"
|
||||
}
|
||||
if(arr_selected_supplies.length === 0){
|
||||
checklist += "<p>Belum ada supplies yang dipilih dong</p>"
|
||||
}
|
||||
if(errors.length === 0 && checklist === ''){
|
||||
|
||||
var prm = {}
|
||||
|
||||
if(this.xact === 'new')
|
||||
prm.trx_id = 0
|
||||
else
|
||||
prm.trx_id = this.$store.state.sample.selected_transaction.trx_id
|
||||
|
||||
prm.details = details
|
||||
prm.supplies = supplies
|
||||
prm.buffers = buffers
|
||||
prm.trx_date = this.xtrxdate
|
||||
prm.trx_note = this.xnote
|
||||
prm.staff = this.xselectedstaff
|
||||
prm.startdate = this.$store.state.sample.start_date
|
||||
prm.enddate = this.$store.state.sample.end_date
|
||||
prm.search = this.$store.state.sample.name_lab
|
||||
prm.stationid = this.$store.state.sample.selected_station.id
|
||||
prm.lastid = -1
|
||||
this.$store.dispatch("sample/save",prm)
|
||||
}
|
||||
else{
|
||||
var msg = checklist
|
||||
this.$store.commit("sample/update_msg_info",msg)
|
||||
this.$store.commit("sample/update_open_dialog_info",true)
|
||||
}
|
||||
},
|
||||
changeFlagImage(value){
|
||||
console.log('changeFlagImage')
|
||||
if(this.xact === 'new' || (this.xact !== 'new' && this.currStatus === 'CREATED')){
|
||||
let arr = this.$store.state.sample.details
|
||||
var idx = _.findIndex(arr, item => item.orderid === value.orderid && item.sampleid === value.sampleid)
|
||||
arr[idx].flag_image = value.flag_image === 'N' ? 'Y':'N'
|
||||
this.$store.commit("sample/update_details",arr)
|
||||
}
|
||||
},
|
||||
changeStatusDetail(value){
|
||||
let arr = this.$store.state.sample.details
|
||||
var idx = _.findIndex(arr, item => item.trx_id === value.trx_id)
|
||||
arr[idx].status = value.status === 'N' ? 'Y':'N'
|
||||
this.$store.commit("sample/update_details",arr)
|
||||
},
|
||||
changeStatusSupplies(value){
|
||||
let arr = this.$store.state.sample.supplies
|
||||
var idx = _.findIndex(arr, item => item.supplies_id === value.supplies_id)
|
||||
arr[idx].status = value.status === 'N' ? 'Y':'N'
|
||||
this.$store.commit("sample/update_supplies",arr)
|
||||
},
|
||||
changeStatusBuffers(value){
|
||||
let arr = this.$store.state.sample.buffers
|
||||
var idx = _.findIndex(arr, item => item.supplies_id === value.supplies_id)
|
||||
arr[idx].status = value.status === 'N' ? 'Y':'N'
|
||||
this.$store.commit("sample/update_buffers",arr)
|
||||
},
|
||||
changeQtySupplies(value){
|
||||
let arr = this.$store.state.sample.supplies
|
||||
var idx = _.findIndex(arr, item => item.supplies_id === value.supplies_id)
|
||||
arr[idx].qty = value.qty
|
||||
this.$store.commit("sample/update_supplies",arr)
|
||||
},
|
||||
changeQtyBuffers(value){
|
||||
let arr = this.$store.state.sample.buffers
|
||||
var idx = _.findIndex(arr, item => item.supplies_id === value.supplies_id)
|
||||
arr[idx].qty = value.qty
|
||||
this.$store.commit("sample/update_buffers",arr)
|
||||
},
|
||||
changeFlagImageReceive(value){
|
||||
console.log('changeFlagImageReceive')
|
||||
if(this.xact !== 'new' && this.currStatus !== 'DONE'){
|
||||
let arr = this.$store.state.sample.details
|
||||
var idx = _.findIndex(arr, item => item.orderid === value.orderid && item.sampleid === value.sampleid)
|
||||
arr[idx].flag_image_receive = value.flag_image_receive === 'N' ? 'Y':'N'
|
||||
this.$store.commit("sample/update_details",arr)
|
||||
}
|
||||
},
|
||||
changeFlagResultReceive(value){
|
||||
console.log('changeFlagResultReceive')
|
||||
if(this.xact !== 'new' && this.currStatus !== 'DONE'){
|
||||
let arr = this.$store.state.sample.details
|
||||
var idx = _.findIndex(arr, item => item.orderid === value.orderid && item.sampleid === value.sampleid)
|
||||
arr[idx].flag_result_receive = value.flag_result_receive === 'N' ? 'Y':'N'
|
||||
this.$store.commit("sample/update_details",arr)
|
||||
}
|
||||
},
|
||||
deleteTrx(){
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
console.log(trx)
|
||||
let msg = "Yakin, akan menghapus data transaksi "+trx.trx_numbering+" ?"
|
||||
this.$store.commit("sample/update_msg_confirmation_delete",msg)
|
||||
this.$store.commit("sample/update_dialog_confirmation_delete",true)
|
||||
},
|
||||
doDeleteTrx(){
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
this.$store.dispatch("sample/deletetrx",trx)
|
||||
},
|
||||
releaseToCourier(){
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
var msg = "Anda yakin akan menyerahkan dokumen transaksi "+trx.trx_numbering+" ke kurir ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'RELEASEC')
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
},
|
||||
receiveDoctor(){
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
var msg = "Dokumen transaksi "+trx.trx_numbering+" telah diterima dokter ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'RCVDOC')
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
},
|
||||
receiveFromCourier(){
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
var msg = "Dokumen transaksi "+trx.trx_numbering+" diterima dari kurir ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'DONE')
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
},
|
||||
forceClose(){
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
var msg = "Dokumen transaksi "+trx.trx_numbering+" ditutup ? "
|
||||
this.$store.commit("sample/update_msg_action",msg)
|
||||
this.$store.commit("sample/update_act",'FORCEDONE')
|
||||
this.$store.commit("sample/update_dialog_action",true)
|
||||
},
|
||||
closeDialogAction(){
|
||||
var act = this.$store.state.sample.act
|
||||
var trx = this.$store.state.sample.selected_transaction
|
||||
let arrtrx = this.$store.state.sample.transactions
|
||||
var idx = _.findIndex(arrtrx, item => item.trx_id === trx.trx_id)
|
||||
var prm = {}
|
||||
prm.act = act
|
||||
prm.trx = trx
|
||||
prm.startdate = this.$store.state.sample.start_date
|
||||
prm.enddate = this.$store.state.sample.end_date
|
||||
prm.search = this.$store.state.sample.name_lab
|
||||
prm.stationid = this.$store.state.sample.selected_station.id
|
||||
prm.lastid = idx
|
||||
prm.details = this.$store.state.sample.details
|
||||
prm.trx_note = this.xnote
|
||||
this.$store.dispatch("sample/doaction",prm)
|
||||
},
|
||||
openDialogSupplies(act){
|
||||
this.$store.commit("sample/update_dialog_supplies_act",act)
|
||||
this.$store.commit("sample/update_dialog_supplies",true)
|
||||
},
|
||||
checkInLists(value){
|
||||
var act = this.$store.state.sample.dialog_supplies_act
|
||||
var arr = []
|
||||
if(act === 'supplies'){
|
||||
arr = this.$store.state.sample.supplies
|
||||
}
|
||||
else{
|
||||
arr = this.$store.state.sample.buffers
|
||||
}
|
||||
|
||||
var idx = _.findIndex(arr, item => item.supplies_id === value.supplies_id)
|
||||
if(idx !== -1){
|
||||
return true
|
||||
}
|
||||
else{
|
||||
return false
|
||||
}
|
||||
},
|
||||
addToLists(value){
|
||||
var act = this.$store.state.sample.dialog_supplies_act
|
||||
var arr = []
|
||||
if(act === 'supplies'){
|
||||
arr = this.$store.state.sample.supplies
|
||||
}
|
||||
else{
|
||||
arr = this.$store.state.sample.buffers
|
||||
}
|
||||
var idx = _.findIndex(arr, item => item.supplies_id === value.supplies_id)
|
||||
if(idx === -1){
|
||||
var detail = {
|
||||
trx_id:0,
|
||||
supplies_id:value.supplies_id,
|
||||
supplies_name:value.supplies_name,
|
||||
qty:1,
|
||||
status:'Y'
|
||||
}
|
||||
arr.push(detail)
|
||||
if(act === 'supplies'){
|
||||
this.$store.commit("sample/update_supplies",arr)
|
||||
}
|
||||
else{
|
||||
this.$store.commit("sample/update_buffers",arr)
|
||||
}
|
||||
|
||||
this.$store.commit("sample/update_no_save",true)
|
||||
}
|
||||
else{
|
||||
var msg = "Sudah ada di list dong "
|
||||
this.$store.commit("samplestorage/update_msg_info",msg)
|
||||
this.$store.commit("samplestorage/update_open_dialog_info",true)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,377 @@
|
||||
<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-menu class="xs3 pr-2"
|
||||
v-model="menufilterdatestart"
|
||||
:close-on-content-click="false"
|
||||
:nudge-right="40"
|
||||
lazy
|
||||
hide-details
|
||||
transition="scale-transition"
|
||||
offset-y
|
||||
full-width
|
||||
max-width="290px"
|
||||
min-width="290px"
|
||||
>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-text-field
|
||||
class="mt-1"
|
||||
v-model="filterComputedDateFormattedStart"
|
||||
label="Filter Tanggal Awal"
|
||||
outline
|
||||
hide-details
|
||||
readonly
|
||||
v-on="on"
|
||||
@blur="date = deFormatedDate(filterComputedDateFormattedStart)"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<v-date-picker v-model="xdatestart" no-title @input="menufilterdatestart = false"></v-date-picker>
|
||||
</v-menu>
|
||||
|
||||
<v-menu class="xs3 pl-2"
|
||||
v-model="menufilterdateend"
|
||||
:close-on-content-click="false"
|
||||
:nudge-right="40"
|
||||
lazy
|
||||
transition="scale-transition"
|
||||
offset-y
|
||||
hide-details
|
||||
full-width
|
||||
max-width="290px"
|
||||
min-width="290px"
|
||||
>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-text-field
|
||||
class="mt-1"
|
||||
v-model="filterComputedDateFormattedEnd"
|
||||
label="Filter Tanggal Akhir"
|
||||
outline
|
||||
hide-details
|
||||
readonly
|
||||
v-on="on"
|
||||
@blur="date = deFormatedDate(filterComputedDateFormattedEnd)"
|
||||
></v-text-field>
|
||||
</template>
|
||||
<v-date-picker v-model="xdateend" no-title @input="menufilterdateend = false"></v-date-picker>
|
||||
</v-menu>
|
||||
<v-text-field class="xs4 ma-1"
|
||||
label="Nomor Transaksi"
|
||||
placeholder="Cari ..."
|
||||
outline
|
||||
v-model="xnamelab"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
<v-select class="xs3 ma-1" :items="xstations"
|
||||
item-text="name"
|
||||
return-object
|
||||
v-model="xselectedstation"
|
||||
label="Status" outline hide-details></v-select>
|
||||
<v-btn class="xs3 ma-1" color="success" @click="searchTransaction" >Cari</v-btn>
|
||||
<v-btn class="xs3 ma-1" color="info" @click="setNewTransaction" >Baru</v-btn>
|
||||
</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="xtransactions"
|
||||
: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.trx_numbering }}</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.trx_date_ina}}</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.penyampling_name}}</td>
|
||||
<td class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.status_name}}</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>
|
||||
<one-dialog-info :status="opendialoginfo" :msg="msginfo" @close-dialog-info="closeDialogInfo()"></one-dialog-info>
|
||||
</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("sample/initgetstaffbydate",{
|
||||
startdate:this.xdatestart,
|
||||
enddate: this.xdateend,
|
||||
search:this.xnamelab,
|
||||
stationid:this.xselectedstation.id,
|
||||
lastid:-1,
|
||||
xdate:this.xdatestart
|
||||
})
|
||||
},
|
||||
methods : {
|
||||
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')}`
|
||||
},
|
||||
isSelected(p) {
|
||||
return p.trx_id == this.$store.state.sample.selected_transaction.trx_id
|
||||
},
|
||||
searchTransaction() {
|
||||
this.$store.dispatch("sample/search",{
|
||||
startdate:this.xdatestart,
|
||||
enddate: this.xdateend,
|
||||
search:this.xnamelab,
|
||||
stationid:this.xselectedstation.id,
|
||||
lastid:-1
|
||||
})
|
||||
},
|
||||
selectMe(trx) {
|
||||
if(this.$store.state.sample.no_save == 0 ){
|
||||
//console.log(trx)
|
||||
this.$store.commit("sample/update_selected_transaction",trx)
|
||||
this.$store.commit("sample/update_act",'edit')
|
||||
this.$store.commit("sample/update_trx_note",trx.trx_note)
|
||||
this.$store.commit("sample/update_trx_date",trx.trx_date)
|
||||
//this.$store.commit("sample/update_trx_staff_edit",trx.penyampling_name)
|
||||
this.$store.commit("sample/update_staffs",trx.staffs)
|
||||
//console.log(trx.staffs)
|
||||
//console.log({id:trx.Preorder_SuppliesTrxM_StaffID,name:trx.penyampling_name})
|
||||
this.$store.commit("sample/update_selected_staff",{id:trx.Preorder_SuppliesTrxM_StaffID,name:trx.penyampling_name})
|
||||
|
||||
this.$store.commit("sample/update_details", trx.details)
|
||||
this.$store.commit("sample/update_supplies", trx.supplies)
|
||||
this.$store.commit("sample/update_buffers", trx.buffers)
|
||||
|
||||
}else{
|
||||
this.$store.commit("sample/update_open_alert_confirmation",true)
|
||||
}
|
||||
},
|
||||
closeAlertConfirmation(){
|
||||
this.$store.commit("sample/update_open_alert_confirmation",false)
|
||||
},
|
||||
forgetAlertConfirmation(){
|
||||
this.$store.commit("sample/update_no_save",0)
|
||||
this.$store.commit("sample/update_open_alert_confirmation",false)
|
||||
},
|
||||
updateAlert_success(val){
|
||||
this.$store.commit("sample/update_alert_success",val)
|
||||
},
|
||||
setNewTransaction(){
|
||||
this.$store.commit("sample/update_selected_transaction",{})
|
||||
|
||||
this.$store.commit("sample/update_details",[])
|
||||
this.$store.commit("sample/update_supplies",[])
|
||||
this.$store.commit("sample/update_buffers",[])
|
||||
this.$store.commit("sample/update_trx_date",moment(new Date()).format('YYYY-MM-DD'))
|
||||
this.$store.dispatch("sample/getstaffbydate",{
|
||||
xdate:moment(new Date()).format('YYYY-MM-DD')
|
||||
})
|
||||
this.$store.commit("sample/update_trx_note",'')
|
||||
this.$store.commit("sample/update_act",'new')
|
||||
},
|
||||
closeDialogSuccess(){
|
||||
let arrtrx = this.$store.state.sample.transactions
|
||||
var idx = _.findIndex(arrtrx, item => item.So_WalkLetterCourierID === this.$store.state.sample.last_id)
|
||||
//console.log(idx)
|
||||
this.$store.dispatch("sample/search",{
|
||||
startdate:this.xdatestart,
|
||||
enddate: this.xdateend,
|
||||
search:this.xnamelab,
|
||||
stationid:this.xselectedstation.id,
|
||||
lastid:idx
|
||||
})
|
||||
this.$store.commit("sample/update_dialog_success",false)
|
||||
},
|
||||
closeDialogInfo(){
|
||||
this.$store.commit("sample/update_open_dialog_info",false)
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
dialogsuccess: {
|
||||
get() {
|
||||
return this.$store.state.sample.dialog_success
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_dialog_success",val)
|
||||
}
|
||||
},
|
||||
msgsuccess(){
|
||||
return this.$store.state.sample.msg_success
|
||||
},
|
||||
snackbar: {
|
||||
get() {
|
||||
return this.$store.state.sample.alert_success
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_alert_success",val)
|
||||
}
|
||||
},
|
||||
isLoading() {
|
||||
return this.$store.state.sample.search_status == 1
|
||||
},
|
||||
xdatestart : {
|
||||
get() {
|
||||
return this.$store.state.sample.start_date
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_start_date",val)
|
||||
}
|
||||
},
|
||||
xdateend : {
|
||||
get() {
|
||||
return this.$store.state.sample.end_date
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_end_date",val)
|
||||
}
|
||||
},
|
||||
xnamelab : {
|
||||
get() {
|
||||
return this.$store.state.sample.name_lab
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_name_lab",val)
|
||||
}
|
||||
},
|
||||
filterComputedDateFormattedStart () {
|
||||
return this.formatDate(this.xdatestart)
|
||||
},
|
||||
filterComputedDateFormattedEnd () {
|
||||
return this.formatDate(this.xdateend)
|
||||
},
|
||||
xstations() {
|
||||
return this.$store.state.sample.stations
|
||||
},
|
||||
xselectedstation: {
|
||||
get() {
|
||||
return this.$store.state.sample.selected_station
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_selected_station",val)
|
||||
}
|
||||
},
|
||||
xtransactions() {
|
||||
//console.log(this.$store.state.sample.transactions)
|
||||
return this.$store.state.sample.transactions
|
||||
},
|
||||
openalertconfirmation: {
|
||||
get() {
|
||||
return this.$store.state.sample.open_alert_confirmation
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_open_alert_confirmation",val)
|
||||
}
|
||||
},
|
||||
opendialoginfo: {
|
||||
get() {
|
||||
return this.$store.state.sample.open_dialog_info
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("sample/update_open_dialog_info",false)
|
||||
}
|
||||
},
|
||||
msginfo(){
|
||||
return this.$store.state.sample.msg_info
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
msgalertconfirmation:"Perubahan yang telah dilakukan belum disimpan dong !",
|
||||
menufilterdatestart:false,
|
||||
menufilterdateend:false,
|
||||
date: new Date().toISOString().substr(0, 10),
|
||||
items: [],
|
||||
name: '',
|
||||
page:1,
|
||||
headers: [
|
||||
{
|
||||
text: "NOMOR",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "10%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "TANGGAL",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "10%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "PETUGAS",
|
||||
align: "left",
|
||||
sortable: false,
|
||||
width: "15%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "STATUS",
|
||||
align: "center",
|
||||
sortable: false,
|
||||
width: "10%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
}
|
||||
],
|
||||
pagination:{
|
||||
descending: false,
|
||||
page: 1,
|
||||
rowsPerPage: 5,
|
||||
sortBy: 'So_WalkLetterCourierNumbering DESC',
|
||||
totalItems: this.$store.state.sample.total_transactions
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user