Flatten nested repos

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

View File

@@ -0,0 +1,328 @@
<template>
<div>
<v-layout column>
<v-dialog v-model="dialogconfirmation" 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>
{{ msgconfirmation }}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn small color="error darken-1 text-sm-right" flat
@click="dialogconfirmation = false">Batal</v-btn>
<v-btn small color="primary darken-1 text-sm-left" flat @click="doSave()">Simpan</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<!-- alert dialog error start -->
<v-dialog v-model="dialogerror" persistent max-width="290">
<v-card>
<v-card-title color="error" class="headline">Error !</v-card-title>
<v-card-text>
{{ msgerror }}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="green darken-1" flat @click="closeDialogError">OK</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<!-- alert dialog error end -->
<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-layout align-center column>
<v-toolbar dark color="primary">
<v-toolbar-title class="white--text"
>DAFTAR SAMPEL</v-toolbar-title
>
<v-spacer></v-spacer>
</v-toolbar>
<v-card style="width: 100%" class="mb-2 pa-2">
<v-layout row wrap>
<v-flex xs12 class="text-sm-right" pa-1>
<v-btn v-if="xsamples.length > 0" :disabled="xsamples[0].ischoose == 'Y'" @click="opensaveConfirm()" color="primary">Konfirmasi</v-btn>
</v-flex>
</v-layout>
</v-card>
</v-layout>
<v-card>
<v-layout v-if="xsamples.length > 0" row wrap class="scroll-container" style="max-height:600px;overflow: auto;">
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
<v-layout xs12 row wrap>
<v-flex xs4 v-for="(vst,idx) in xsamples" :key="vst.T_OrderSampleID" class="pr-2 pb-1">
<v-layout row>
<v-flex :class="vst.ischoose === 'Y' ? 'boxoutlinegreen' : 'boxoutline'" style="text-overflow:ellipsis;overflow:hidden;" xs11>
<span>{{vst.typename_barcode}}</span>
</v-flex>
<v-flex :class="vst.ischoose === 'Y' ? 'boxoutlinegreen text-left' : 'boxoutline text-left'" style="padding-top:10px" pl-2 pb-2 pr-2 xs2>
<v-layout row align-left justify-space-between>
<v-icon v-if="vst.ischoose === 'N'" style="color:red">clear</v-icon>
<v-icon v-if="vst.ischoose === 'Y'" style="color:green">check</v-icon>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card>
</v-layout>
<!-- <one-dialog-print
:title="printtitle"
:width="printwidth"
:height="500"
:status="openprint"
:urlprint="urlprint"
@close-dialog-print="closePrint"
></one-dialog-print> -->
</div>
</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;
}
.scroll-container {
scroll-padding: 50px 0 0 50px;
}
.boxoutlinegreen {
color: green;
border: 1px solid green;
justify-content: center;
height: 45px;
line-height: 45px;
padding-left: 10px;
background: #ffffff;
font-size: 14px;
font-weight: 500;
border-radius: 1px
}
.boxoutlinegreen:hover {
background: rgba(0, 0, 0, 0.07) !important;
font-size: 15px;
font-weight: 700;
}
.boxoutline {
color: red;
border: 1px solid red;
justify-content: center;
height: 45px;
line-height: 45px;
padding-left: 10px;
background: #ffffff;
font-size: 14px;
font-weight: 500;
border-radius: 1px
}
.boxoutline:hover {
background: rgba(0, 0, 0, 0.07) !important;
font-size: 15px;
font-weight: 700;
}
::-webkit-scrollbar {
width: 7px;
}
/* this targets the default scrollbar (compulsory) */
::-webkit-scrollbar-track {
background-color: #73baf3;
}
/* the new scrollbar will have a flat appearance with the set background color */
::-webkit-scrollbar-thumb {
background-color: #2196f3;
}
/* this will style the thumb, ignoring the track */
::-webkit-scrollbar-button {
background-color: #0079da;
}
/* optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */
::-webkit-scrollbar-corner {
background-color: black;
}
</style>
<script>
module.exports = {
components: {
// "one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"),
},
mounted() {},
methods: {
opensaveConfirm() {
var msg = "Yakin, akan terima sampel ?"
this.$store.commit("receive/update_msg_confirmation", msg)
this.$store.commit("receive/update_dialog_confirmation", true)
},
doSave() {
var datasample = this.$store.state.receive.samples;
if (datasample.length > 0) {
var prm = {
spkHomeServiceID: this.$store.state.receive.selected_transaction.SpkHomeServiceID,
spkHomeServiceOrderID: this.$store.state.receive.selected_transaction.SpkHomeServiceOrderID,
arrSample: datasample
}
this.$store.dispatch("receive/saveConfirm", prm)
}
},
closeDialogError() {
this.$store.commit("receive/update_dialog_error", false);
},
closeDialogSuccess(){
this.$store.dispatch("receive/getsample", {
orderheaderID: this.$store.state.receive.selected_transaction.SpkHomeServiceOrderT_OrderHeaderID
})
this.$store.commit("receive/update_dialog_success",false)
},
},
computed: {
xsamples() {
return this.$store.state.receive.samples;
},
dialogconfirmation: {
get() {
return this.$store.state.receive.dialog_confirmation
},
set(val) {
this.$store.commit("receive/update_dialog_confirmation", val)
}
},
msgconfirmation() {
return this.$store.state.receive.msg_confirmation
},
dialogerror: {
get() {
return this.$store.state.receive.dialog_error;
},
set(val) {
this.$store.commit("receive/update_dialog_error", val);
},
},
msgerror() {
return this.$store.state.receive.msg_error;
},
dialogsuccess: {
get() {
return this.$store.state.receive.dialog_success
},
set(val) {
this.$store.commit("receive/update_dialog_success",val)
}
},
msgsuccess(){
return this.$store.state.receive.msg_success
}
},
watch: {
},
data() {
return {
printtitle: "",
printwidth: "80%",
openprint: false,
urlprint: "",
searchhandoverHeaderCopy: "",
selected_delivery: {},
search_company: "",
search_test: "",
menuFormDateStart: false,
menuFormDateEnd: false,
date: new Date().toISOString().substr(0, 10),
dialogAct: "add",
items: [],
menuFormDateEnd: false,
menuFormDateStart: false,
errors: [],
sheet: false,
indeterminatex: false,
checkednotall: false,
bar_chx_all: false,
selected_barcode: [],
dialogtimeline: false,
search_doctor: "",
headers: [
{
text: "NOMOR",
align: "center",
sortable: false,
value: "lab",
width: "15%",
class: "pa-2 blue darken-2 white--text",
},
{
text: "TGL. ORDER",
align: "center",
sortable: false,
value: "lab",
width: "15%",
class: "pa-2 blue darken-2 white--text",
},
{
text: "NAMA",
align: "center",
sortable: false,
value: "lab",
width: "25%",
class: "pa-2 blue darken-2 white--text",
},
{
text: "STAFF",
align: "center",
sortable: false,
value: "name",
width: "20%",
class: "pa-2 blue darken-2 white--text",
},
{
text: "PENERIMA",
align: "center",
sortable: false,
value: "name",
width: "20%",
class: "pa-2 blue darken-2 white--text",
},
],
};
},
};
</script>

View File

@@ -0,0 +1,306 @@
<template>
<v-layout class="fill-height" column>
<v-toolbar dark color="primary">
<v-toolbar-title class="white--text"
>DAFTAR ORDER SPK</v-toolbar-title
>
</v-toolbar>
<v-card class="mb-2 pa-2 searchbox">
<v-layout align-center row>
<v-flex xs6 pa-1>
<v-menu class="xs4 pl-2"
v-model="menufilterdateend"
: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
v-model="filterComputedDateFormattedEnd"
label="Tanggal spk"
outline
readonly
hide-details
v-on="on"
@blur="date = deFormatedDate(filterComputedDateFormattedEnd)"
></v-text-field>
</template>
<v-date-picker v-model="xdate" no-title @input="menufilterdateend = false"></v-date-picker>
</v-menu>
</v-flex>
<v-flex xs6 pa-1>
<v-text-field
v-model="spk_search"
label="Cari"
outline
placeholder="Ketikkan no spk atau no lab"
hide-details
></v-text-field>
</v-flex>
<v-flex pa-1>
<v-btn
dark
color="primary"
style="min-width: 50px; height: 50px; margin: 0"
@click="searchTransaction()"
>
<v-icon>search</v-icon>
</v-btn>
</v-flex>
</v-layout>
</v-card>
<v-card >
<v-layout row>
<v-flex xs12 pl-2 pr-2 pt-2 pb-2>
<v-data-table
:headers="headers"
:items="xtransactions"
:loading="isLoading"
hide-actions
class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.SpkHomeServiceDate }}</td>
<td class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.SpkHomeServiceNumber }}</td>
<td class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.T_OrderHeaderLabNumber }}</td>
<td class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.M_PatientName }}</td>
</template>
</v-data-table>
<v-divider></v-divider>
<v-pagination
style="margin-top:10px;margin-bottom:10px"
v-model="curr_page"
:length="xtotal_page"
></v-pagination>
</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:40px;
}
.searchbox .v-btn {
min-height:40px;
}
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("receive/search",{
date: this.xdate,
search: this.spk_search,
current_page: 1,
lastid: -1
})
},
methods : {
isSelected(p) {
return p.SpkHomeServiceOrderID == this.$store.state.receive.selected_transaction.SpkHomeServiceOrderID
},
selectMe(data) {
this.$store.commit("receive/update_selected_transaction", data)
this.$store.dispatch("receive/getsample", {
orderheaderID: data.SpkHomeServiceOrderT_OrderHeaderID
})
},
searchTransaction() {
this.$store.dispatch("receive/search", {
date: this.xdate,
search: this.spk_search,
current_page: 1,
lastid: -1
})
this.$store.commit("receive/update_samples", [])
},
openDeleteAll(value){
this.$store.commit("receive/update_selected_transaction", value)
let msg = "Yakin, akan menghapus data spk nomor " + this.$store.state.receive.selected_transaction.SpkHomeServiceNumber + " ?"
this.$store.commit("receive/update_msg_confirmation_delete", msg)
this.$store.commit("receive/update_dialog_confirmation_delete", true)
},
doDeleteData() {
var prm = {}
prm.spkHomeServiceId = this.$store.state.receive.selected_transaction.SpkHomeServiceID
prm.number = this.$store.state.receive.selected_transaction.SpkHomeServiceNumber
console.log(prm)
this.$store.dispatch("form/deleteOrder",prm)
},
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')}`
},
editRowOrder(item) {
// console.log('edit data', item)
// this.$store.commit("service/update_act", 'edit')
// this.$store.commit("service/update_no_save", 0)
// this.$store.commit("form/update_trx_id", item.SpkHomeServiceID)
// this.$store.commit("form/update_transaction_date", this.formatDate(item.SpkHomeServiceDate))
// this.$store.commit("service/update_selected_transaction", item)
// this.$store.commit("form/update_save_hide", true);
// this.$store.dispatch("form/getorderbyid",{spkHomeServiceId: item.SpkHomeServiceID, current_page: 1})
// this.$store.dispatch("form/getstaff", {spkHomeServiceId: item.SpkHomeServiceID })
// this.$store.dispatch("form/getstaffbyid",{spkHomeServiceId: item.SpkHomeServiceID })
},
closeAlertConfirmation(){
this.$store.commit("service/update_open_alert_confirmation",false)
},
forgetAlertConfirmation(){
this.$store.commit("service/update_no_save",0)
this.$store.commit("service/update_open_alert_confirmation",false)
},
updateAlert_success(val){
this.$store.commit("service/update_alert_success",val)
},
closeDialogInfo(){
this.$store.commit("service/update_open_dialog_info",false)
}
},
computed: {
opendialoginfo: {
get() {
return this.$store.state.receive.open_dialog_info
},
set(val) {
this.$store.commit("receive/update_open_dialog_info", false)
}
},
msginfo(){
return this.$store.state.receive.msg_info
},
xtransactions() {
return this.$store.state.receive.transactions
},
curr_page: {
get() {
return this.$store.state.receive.current_page
},
set(val) {
this.$store.commit("receive/update_current_page",val)
this.$store.dispatch("receive/search",{
date: this.xdate,
search: '',
current_page: val,
lastid:-1
})
}
},
xtotal_page: {
get() {
return this.$store.state.receive.total_page
},
set(val) {
this.$store.commit("receive/update_total_page",val)
}
},
spk_search : {
get() {
return this.$store.state.receive.spk_search
},
set(val) {
this.$store.commit("receive/update_spk_search",val)
}
},
isLoading() {
return this.$store.state.receive.search_transaction == 1
},
snackbar: {
get() {
return this.$store.state.receive.alert_success
},
set(val) {
this.$store.commit("receive/update_alert_success",val)
}
},
openalertconfirmation: {
get() {
return this.$store.state.receive.open_alert_confirmation
},
set(val) {
this.$store.commit("receive/update_open_alert_confirmation",val)
}
},
filterComputedDateFormattedEnd () {
return this.formatDate(this.xdate)
},
xdate:{
get() {
return this.$store.state.receive.transaction_date
},
set(val) {
this.$store.commit("receive/update_transaction_date",val)
}
},
},
data() {
return {
msgalertconfirmation:"Perubahan yang telah dilakukan belum disimpan dong !",
date: new Date().toISOString().substr(0, 10),
menufilterdateend:false,
name: '',
page:1,
headers: [
{
text: "TANGGAL",
align: "center",
sortable: false,
width: "20%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "NOMOR SPK",
align: "center",
sortable: false,
width: "20%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "NOMOR LAB",
align: "center",
sortable: false,
width: "20%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "NAMA",
align: "center",
sortable: false,
width: "40%",
class: "pa-2 blue lighten-3 white--text"
}
]
};
}
}
</script>