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,82 @@
<template>
<v-menu
v-model="menu2"
:close-on-content-click="false"
:nudge-right="40"
lazy
transition="scale-transition"
offset-y
full-width
max-width="290px"
min-width="290px"
>
<v-text-field
slot="activator"
v-model="computedDateFormatted"
:label=init_label
hint="DD-MM-YYYY format"
persistent-hint
readonly
solo
hide-details
class="ma-1"
></v-text-field>
<v-date-picker v-model="init_date" no-title @input="menu2 = false"></v-date-picker>
</v-menu>
</template>
<script>
module.exports = {
props : ['label', 'date', 'data'],
data () {
return {
init_date: this.date ? this.date : new Date().toISOString().substr(0, 10),
dateFormatted: this.formatDate(new Date().toISOString().substr(0, 10)),
menu1: false,
menu2: false,
init_label: this.label ? this.label : 'Date',
init_data: this.data ? this.data : ''
}
},
computed: {
computedDateFormatted () {
return this.formatDate(this.init_date)
}
},
watch: {
init_date (n, o) {
this.dateFormatted = this.formatDate(this.init_date)
this.$emit('change', {"old_date":o, "new_date":n, "data":this.init_data});
}
},
methods: {
formatDate (date) {
if (!date) return null
const [year, month, day] = date.split('-')
return `${day}-${month}-${year}`
},
parseDate (date) {
if (!date) return null
const [month, day, year] = date.split('/')
return `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`
},
emitChange (n, o) {
console.log("old:"+o)
console.log("new:"+n)
}
},
mounted () {
this.$store.dispatch('header/search')
}
}
</script>

View File

@@ -0,0 +1,170 @@
<template>
<v-layout class="fill-height" column>
<v-card class="grow">
<!-- <v-subheader>
<h3 class="title">DAFTAR PASIEN</h3>
</v-subheader> -->
<hr style="border-top:0px solid #c8c8c8;" />
<v-data-table
:headers="headers" :items="patients"
:loading="isLoading"
hide-actions class="xelevation-1">
<template slot="items" slot-scope="props">
<td class="text-xs-left pa-2 green--text" v-bind:class="is_selected(props.item)"
@click="select(props.item)">
{{props.item.T_OrderRefIntDate}}
</td>
<td class="text-xs-left pa-2 green--text" v-bind:class="is_selected(props.item)"
@click="select(props.item)">
{{props.item.T_OrderRefIntNumber}}
</td>
<td class="text-xs-left pa-2 green--text" v-bind:class="is_selected(props.item)"
@click="select(props.item)">
{{props.item.M_BranchName}}
</td>
<td class="text-xs-left pa-2" v-bind:class="is_selected(props.item)"
@click="select(props.item)">
{{props.item.T_OrderRefIntStatus}}
</td>
<td class="text-xs-left pa-0" v-bind:class="is_selected(props.item)"
@click="select(props.item)">
<v-btn color="success" small title="konfirmasi" class="one-btn-icon"
:disabled="props.item.M_StatusRefCode != 'NEW'"
@click="confirm">
<!-- <v-icon>verified_user</v-icon> -->
<span class="icon-check"></span>
</v-btn>
</td>
</template>
</v-data-table>
<v-pagination
v-model="curr_patient_page"
:length="total_patient_page"
:total-visible="5"
@input="change_page"
></v-pagination>
</v-card>
</v-layout>
</template>
<style scoped>
.searchbox .v-input.v-text-field .v-input__slot{
min-height:60px;
}
.searchbox .v-btn {
min-height:60px;
}
table.v-table tbody td,table.v-table tbody th {
height: 40px;
}
table.v-table thead tr {
height: 40px;
}
.one-btn-icon {
font-size: 1.5em
}
</style>
<script>
module.exports = {
data() {
return {
query: "",
items: [],
headers: [
{
text: "TANGGAL",
align: "left",
sortable: false,
value: "mr",
width: "20%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "NOMOR",
align: "left",
sortable: false,
value: "mr",
width: "20%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "CABANG TUJUAN",
align: "left",
sortable: false,
value: "mr",
width: "35%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "STATUS",
align: "left",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "ACTION",
align: "left",
sortable: false,
value: "mr",
width: "10%",
class: "pa-2 blue lighten-3 white--text"
}
],
isLoading: false
}
},
computed : {
patients () {
return this.$store.state.header.headers
},
curr_patient_page () {
return this.$store.state.header.curr_header_page
},
total_patient_page () {
return this.$store.state.header.total_header_page
},
selected_patient : {
get () { return this.$store.state.header.selected_header },
set (v) { this.$store.commit('header/update_selected_header', v) }
}
},
methods : {
change_page () {
return
},
is_selected (x) {
let y = this.selected_patient
if (x.T_OrderRefIntID == y.T_OrderRefIntID)
return 'green lighten-4'
return ''
},
select (x) {
this.selected_patient = x
this.$store.dispatch('detail/search')
},
confirm () {
this.$store.dispatch('header/confirm')
}
},
mounted () {
this.$store.dispatch('header/search')
}
}
</script>

View File

@@ -0,0 +1,55 @@
<template>
<v-layout row wrap mb-1>
<v-flex xs12>
<v-card>
<v-card-text class="pa-1">
<v-layout row wrap>
<v-flex xs4>
<one-date-picker
label="Tanggal"
:date="sdate"
data="0"
@change="changeDate"
></one-date-picker>
</v-flex>
<v-flex xs8 class="text-xs-right">
<one-process-ref-internal-new-dialog></one-process-ref-internal-new-dialog>
</v-flex>
</v-layout>
</v-card-text>
</v-card>
</v-flex>
</v-layout>
</template>
<style scoped>
button {
height: 48px;
}
.one-btn-icon {
font-size: 1.5em
}
</style>
<script>
module.exports = {
components : {
'one-process-ref-internal-new-dialog': httpVueLoader('./oneProcessRefInternalNewDialog.vue'),
'one-date-picker': httpVueLoader('./oneDatePicker.vue')
},
computed : {
sdate () {
return this.$store.state.header.sdate
}
},
methods : {
changeDate(x) {
this.$store.commit('header/update_sdate', x.new_date)
this.$store.dispatch('header/search')
}
}
}
</script>