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,26 @@
<template>
<v-layout row wrap>
<v-flex xs12 sm6 class="left" fill-height pa-1>
<!-- komponen kiri -->
<one-mou-px-left></one-mou-px-left>
</v-flex>
<v-flex xs12 sm6 class="right" fill-height pa-1>
<!-- komponen kanan -->
<one-fo-registration-price-list></one-fo-registration-price-list>
</v-flex>
</v-layout>
</template>
<script>
module.exports = {
components : {
'one-mou-px-left' : httpVueLoader('./oneMouPxLeft.vue'),
'one-fo-registration-price-list' : httpVueLoader('./oneFoRegistrationPriceList.vue?ts='
+ new Date().toISOString())
}
}
</script>

View File

@@ -0,0 +1,25 @@
<template>
<v-layout row wrap>
<v-flex xs12 sm6 class="left" fill-height pa-1>
<!-- komponen kiri -->
<one-fo-registration-detail-order></one-fo-registration-detail-order>
</v-flex>
<v-flex xs12 sm6 class="right" fill-height pa-1>
<!-- komponen kanan -->
<one-fo-registration-payment></one-fo-registration-payment>
</v-flex>
</v-layout>
</template>
<script>
module.exports = {
components : {
'one-fo-registration-detail-order' : httpVueLoader('./oneFoRegistrationDetailOrder.vue'),
'one-fo-registration-payment' : httpVueLoader('./oneFoRegistrationPayment.vue')
}
}
</script>

View File

@@ -0,0 +1,56 @@
<template>
<v-layout>
<v-flex xs12 text-xs-center mb-2>
<v-card color="blue lighten-4">
<v-card-text class="pb-0 pt-1">
<v-btn
v-for="tab in tabs"
:color="tab.code == active ? 'white' : 'grey lighten-5'"
class="white--text ma-0 tab-btn"
:class="[tab.code == active ? 'active' : '']"
@click="changeTab(tab.code)"
flat
:key="tab.code"
:data="tab"
>
<!-- <v-icon left dark>{{ tab.icon }}</v-icon> -->
<h6 class="title">{{ tab.label }}</h6>
</v-btn>
</v-card-text>
</v-card>
</v-flex>
</v-layout>
</template>
<style scoped>
.active {
border-bottom: solid 3px #ffeb3b!important;
}
.tab-btn {
min-width: 400px;
}
</style>
<script>
module.exports = {
data () {
return {
tabs : [
{"label":"PENGATURAN", "icon":"opacity", "code":"01"},
{"label":"PENOMORAN", "icon":"verified_user", "code":"02"}
],
active : "01"
}
},
methods : {
changeTab (x) {
this.active = x;
this.$store.commit('change_tab', x);
}
}
}
</script>

View File

@@ -0,0 +1,22 @@
<template>
<v-layout row wrap >
<v-flex xs12 sm6 fill-height pa-1>
<queue-admin></queue-admin>
</v-flex>
<v-flex xs12 sm6 fill-height pa-1>
<queue-counter></queue-counter>
</v-flex>
</v-layout>
</template>
<script>
module.exports = {
components : {
'queue-admin' : httpVueLoader('./queueAdmin.vue'),
'queue-numbering1' : httpVueLoader('./queueNumbering1.vue'),
'queue-counter' : httpVueLoader('./queueCounter.vue')
}
}
</script>

View File

@@ -0,0 +1,21 @@
<template>
<v-layout row wrap >
<v-flex xs12 sm12 fill-height pa-1>
<queue-numbering></queue-numbering>
</v-flex>
</v-layout>
</template>
<script>
module.exports = {
components : {
'queue-admin' : httpVueLoader('./queueAdmin.vue'),
'queue-numbering' : httpVueLoader('./queueNumbering.vue'),
'queue-counter' : httpVueLoader('./queueCounter.vue')
}
}
</script>

View File

@@ -0,0 +1,305 @@
<template>
<v-layout column fill-height>
<template>
<v-dialog
v-model="dialogdeletealert"
max-width="30%"
>
<v-card>
<v-card-title
class="headline grey lighten-2 pt-2 pb-2"
primary-title
>
Peringatan !
</v-card-title>
<v-card-text class="pt-2 pb-2">
<v-layout row>
<v-flex xs12 d-flex>
<v-layout row>
<v-flex pb-1 xs12>
<v-layout row>
<v-flex pt-2 pr-2 xs12>
{{msgalert}}
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
flat
@click="dialogdeletealert = false"
>
Tutup
</v-btn>
<v-btn
color="primary"
flat
@click="closeDeleteAlert()"
>
Yakin lah
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<v-snackbar
v-model="snackbar"
:color="color"
:timeout="5000"
:multi-line="false"
:vertical="false"
:top="true"
>
{{msgsnackbar}}
<v-btn
flat
@click="updateAlert_success(false)"
>
Tutup
</v-btn>
</v-snackbar>
<v-toolbar class="pa-1 mb-2" color="blue lighten-3" dark height="50px">
<v-toolbar-title>LAYANAN</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn @click="openFormService()" icon>
<v-icon>library_add</v-icon>
</v-btn>
</v-toolbar>
<v-card class="pa-1 p-left-side grow" grow>
<v-card-text class="pa-0">
<v-layout row wrap>
<v-flex xs12>
<v-data-table :headers="headers" :items="services" :loading="isLoading" hide-actions class="elevation-1">
<template slot="items" slot-scope="props">
<td class="text-align:center" v-bind:class="{'amber lighten-4':props.item.selected}">{{ props.item.serviceCode }}</td>
<td style="text-align:left" v-bind:class="{'amber lighten-4':props.item.selected}">{{ props.item.serviceName }}</td>
<td style="text-align:center" v-bind:class="{'amber lighten-4':props.item.selected}">{{ props.item.servicePriority }}</td>
<td style="text-align:center" class="justify-center layout px-0">
<v-icon color="primary" small class="mr-2" @click="editService(props.item)" > edit </v-icon>
<v-icon color="error" small @click="deleteService(props.item)" > delete </v-icon>
</td>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card-text>
</v-card>
<template>
<v-layout row justify-center>
<v-dialog v-model="xdialogservice" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Service</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form
ref="formservice"
v-model="validservice"
lazy-validation
>
<v-layout wrap>
<v-flex xs12>
<v-text-field v-model="servicecode" label="Kode Layanan" :rules="servicecodeRules" required></v-text-field>
</v-flex>
<v-flex>
<p class="error pl-2 pr-2" style="color:#fff" v-if="xerrorcode === true">Udah ada dong kode service yang sama</p>
</v-flex>
<v-flex xs12>
<v-text-field v-model="servicename" label="Nama Layanan" :rules="servicenameRules" required></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field v-model="servicepriority" label="Prioritas" ></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="updateDialogService()">Tutup</v-btn>
<v-btn v-if="xactservice === 'new'" color="blue darken-1" flat @click="saveFormService()">Simpan</v-btn>
<v-btn v-if="xactservice === 'edit'" color="blue darken-1" flat @click="updateFormService()">Simpan Perubahan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-layout>
</template>
<style scoped>
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("service/loadx")
},
methods : {
isSelected(p) {
return p.serviceID == this.$store.state.service.selected_service.serviceID
},
selectMe(val) {
},
updateDialogService(){
this.$store.commit("service/update_dialog_service",false)
},
openFormService(){
this.servicepriority = 1
this.$store.commit("service/update_dialog_service",true)
},
saveFormService(){
if (this.$refs.formservice.validate()) {
this.$store.dispatch("service/save",{
code:this.servicecode,
name:this.servicename,
priority:this.servicepriority
})
}
},
editService(data){
this.xid = data.serviceID
this.servicecode = data.serviceCode
this.servicename = data.serviceName
this.servicepriority = data.servicePriority
this.$store.commit("service/update_act",'edit')
this.$store.commit("service/update_error_code",false)
this.$store.commit("service/update_dialog_service",true)
},
updateFormService(){
if (this.$refs.formservice.validate()) {
this.$store.dispatch("service/update",{
id:this.xid,
code:this.servicecode,
name:this.servicename,
priority:this.servicepriority
})
}
},
deleteService(data){
this.xid = data.serviceID
this.msgalert = "Yakin, mau hapus layanan "+data.serviceName+" ?"
this.dialogdeletealert = true
},
closeDeleteAlert(){
this.$store.dispatch("service/deletex",{
id:this.xid,
name:this.serviceName
})
this.dialogdeletealert = false
},
},
computed: {
xactservice(){
return this.$store.state.service.act
},
xerrorcode(){
return this.$store.state.service.error_code
},
snackbar: {
get() {
return this.$store.state.service.alert_success
},
set(val) {
this.$store.commit("service/update_alert_success",val)
}
},
msgsnackbar(){
return this.$store.state.service.msg_success
},
xdialogservice(){
return this.$store.state.service.dialog_service
},
services() {
return this.$store.state.service.services
},
isLoading() {
return this.$store.state.service.load_status == 1
},
updateAlert_success(val){
this.$store.commit("service/update_alert_success",val)
}
},
data() {
return {
color:"success",
validservice:false,
servicecode:'',
servicename:'',
servicepriority:1,
servicenameRules: [
v => !!v || 'Nama Layanan harus diisi'
],
servicecodeRules: [
v => !!v || 'Kode Layanan harus diisi'
],
dialogdeletealert:false,
msgalert:"",
xid:0,
headers: [
{
text: "KODE",
align: "left",
sortable: false,
value: "mr",
width: "15%",
class: "blue lighten-3 white--text"
},
{
text: "NAMA LAYANAN",
align: "left",
sortable: false,
value: "name",
width: "25%",
class: "blue lighten-3 white--text"
},
{
text: "PRIORITAS",
align: "center",
sortable: false,
value: "name",
width: "25%",
class: "blue lighten-3 white--text"
},
{
text: "AKSI",
align: "center",
sortable: false,
value: "status",
width: "15%",
class: "blue lighten-3 white--text"
}
],
};
}
}
</script>

View File

@@ -0,0 +1,262 @@
<template>
<v-layout column fill-height>
<template>
<v-dialog
v-model="dialogdeletealert"
max-width="30%"
>
<v-card>
<v-card-title
class="headline grey lighten-2 pt-2 pb-2"
primary-title
>
Peringatan !
</v-card-title>
<v-card-text class="pt-2 pb-2">
<v-layout row>
<v-flex xs12 d-flex>
<v-layout row>
<v-flex pb-1 xs12>
<v-layout row>
<v-flex pt-2 pr-2 xs12>
{{msgalert}}
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
flat
@click="dialogdeletealert = false"
>
Tutup
</v-btn>
<v-btn
color="primary"
flat
@click="closeDeleteAlert()"
>
Yakin lah
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<v-toolbar class="pa-1 mb-2" color="blue lighten-3" dark height="50px">
<v-toolbar-title>COUNTER <font color="white">[ IP anda : {{ ownIP }} ]</font> </v-toolbar-title>
<v-spacer></v-spacer>
<v-btn @click="openFormCounter()" icon>
<v-icon>library_add</v-icon>
</v-btn>
</v-toolbar>
<v-card class="pa-1 p-left-side grow" grow>
<v-card-text class="pa-0">
<v-layout row wrap>
<v-flex xs12>
<v-data-table :headers="headers" :items="counters" :loading="isLoading" hide-actions class="elevation-1">
<template slot="items" slot-scope="props">
<td v-bind:class="{'amber lighten-4':props.item.selected}">{{ props.item.counterCode }}</td>
<td v-bind:class="{'amber lighten-4':props.item.selected}">{{ props.item.counterIP }}</td>
<td class="justify-center layout px-0">
<v-icon color="primary" small class="mr-2" @click="editCounter(props.item)" > edit </v-icon>
<v-icon color="error" small @click="deleteCounter(props.item)" > delete </v-icon> </td>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card-text>
</v-card>
<template>
<v-layout row justify-center>
<v-dialog v-model="xdialogcounter" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Counter</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form
ref="formcounter"
v-model="validcounter"
lazy-validation
>
<v-layout wrap>
<v-flex xs12>
<v-text-field v-model="countercode" label="Kode Counter" :rules="countercodeRules" required></v-text-field>
</v-flex>
<v-flex>
<p class="error pl-2 pr-2" style="color:#fff" v-if="xerrorcode === true">Udah ada dong kode counter yang sama</p>
</v-flex>
<v-flex xs12>
<v-text-field v-model="counterip" label="IP Counter" :rules="counteripRules" required></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="updateDialogCounter()">Tutup</v-btn>
<v-btn v-if="xactcounter === 'new'" color="blue darken-1" flat @click="saveFormCounter()">Simpan</v-btn>
<v-btn v-if="xactcounter === 'edit'" color="blue darken-1" flat @click="updateFormCounter()">Simpan Perubahan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-layout>
</template>
<style scoped>
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("counter/loadx")
},
methods : {
isSelected(p) {
return p.counterID == this.$store.state.counter.selected_counter.counterID
},
updateDialogCounter(){
this.$store.commit("counter/update_dialog_counter",false)
},
openFormCounter(){
this.counterpriority = 1
this.$store.commit("counter/update_dialog_counter",true)
},
saveFormCounter(){
if (this.$refs.formcounter.validate()) {
this.$store.dispatch("counter/save",{
code:this.countercode,
ip:this.counterip
})
}
},
editCounter(data){
this.xid = data.counterID
this.countercode = data.counterCode
this.counterip = data.counterIP
this.$store.commit("counter/update_act",'edit')
this.$store.commit("counter/update_error_code",false)
this.$store.commit("counter/update_dialog_counter",true)
},
updateFormCounter(){
if (this.$refs.formcounter.validate()) {
this.$store.dispatch("counter/update",{
id:this.xid,
code:this.countercode,
ip:this.counterip
})
}
},
deleteCounter(data){
this.xid = data.counterID
this.msgalert = "Yakin, mau hapus schedule "+data.counterCode+" ?"
this.dialogdeletealert = true
},
closeDeleteAlert(){
this.$store.dispatch("counter/deletex",{
id:this.xid,
name:this.counterCode
})
this.dialogdeletealert = false
}
},
computed: {
xactcounter(){
return this.$store.state.counter.act
},
ownIP() {
return this.$store.state.service.ownIP
},
xerrorcode(){
return this.$store.state.counter.error_code
},
xdialogcounter(){
return this.$store.state.counter.dialog_counter
},
counters() {
return this.$store.state.counter.counters
},
isLoading() {
return this.$store.state.counter.load_status == 1
},
updateAlert_success(val){
this.$store.commit("counter/update_alert_success",val)
}
},
data() {
return {
color:"success",
validcounter:false,
countercode:'',
counterip:'',
countercodeRules: [
v => !!v || 'Kode Counter harus diisi'
],
counteripRules: [
v => !!v || 'IP Counter harus diisi'
],
dialogdeletealert:false,
msgalert:"",
xid:0,
headers: [
{
text: "KODE",
align: "left",
sortable: false,
value: "mr",
width: "20%",
class: "blue lighten-3 white--text"
},
{
text: "IP",
align: "left",
sortable: false,
value: "name",
width: "20%",
class: "blue lighten-3 white--text"
},
{
text: "AKSI",
align: "Center",
sortable: false,
value: "name",
width: "5%",
class: "blue lighten-3 white--text"
}
]
};
}
}
</script>

View File

@@ -0,0 +1,364 @@
<template>
<v-layout column fill-height>
<template>
<v-dialog
v-model="dialogdeletealert"
max-width="30%"
>
<v-card>
<v-card-title
class="headline grey lighten-2 pt-2 pb-2"
primary-title
>
Peringatan !
</v-card-title>
<v-card-text class="pt-2 pb-2">
<v-layout row>
<v-flex xs12 d-flex>
<v-layout row>
<v-flex pb-1 xs12>
<v-layout row>
<v-flex pt-2 pr-2 xs12>
{{msgalert}}
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-flex>
</v-layout>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
flat
@click="dialogdeletealert = false"
>
Tutup
</v-btn>
<v-btn
color="primary"
flat
@click="closeDeleteAlert()"
>
Yakin lah
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<v-toolbar class="pa-1 mb-2" color="blue lighten-3" dark height="50px">
<v-toolbar-title>NUMBERING</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn @click="openFormNumbering()" icon>
<v-icon>library_add</v-icon>
</v-btn>
</v-toolbar>
<v-card class="pa-1 p-left-side grow" grow>
<v-card-text class="pa-0">
<v-layout row wrap>
<v-flex xs12>
<v-data-table :headers="headers" :items="numberings" :loading="isLoading" hide-actions class="elevation-1">
<template slot="items" slot-scope="props">
<td v-bind:class="{'amber lighten-4':props.item.selected}" >{{ props.item.serviceName }}</td>
<td class="text-sm-center" v-bind:class="{'amber lighten-4':props.item.selected}" >{{ props.item.numberingPrefix }}</td>
<td class="text-sm-center" v-bind:class="{'amber lighten-4':props.item.selected}" >{{ props.item.numberingPrefixDate }}</td>
<td class="text-sm-center" v-bind:class="{'amber lighten-4':props.item.selected}" >{{ props.item.numberingDigit }}</td>
<td class="text-sm-center" v-bind:class="{'amber lighten-4':props.item.selected}" >{{ props.item.numberingSufix }}</td>
<td class="text-sm-center" v-bind:class="{'amber lighten-4':props.item.selected}" >{{ props.item.numberingCounter }}</td>
<td class="text-sm-center" v-bind:class="{'amber lighten-4':props.item.selected}" >{{ props.item.numberingReset }}</td>
<td class="justify-center layout px-0">
<v-icon color="primary" small class="mr-2" @click="editNumbering(props.item)" > edit </v-icon>
<v-icon color="error" small @click="deleteNumbering(props.item)" > delete </v-icon>
</td>
</template>
</v-data-table>
</v-flex>
</v-layout>
</v-card-text>
</v-card>
<template>
<v-layout row justify-center>
<v-dialog v-model="xdialognumbering" persistent max-width="600px">
<v-card>
<v-card-title>
<span class="headline">Form Penomoran</span>
</v-card-title>
<v-card-text class="pt-0 pb-0">
<v-form
ref="formnumbering"
v-model="validnumbering"
lazy-validation
>
<v-layout wrap>
<v-flex xs12>
<v-select
item-text="serviceName"
return-object
:items="xservices"
v-model="xservice"
label="Layanan"
></v-select>
</v-flex>
<v-flex xs12>
<v-text-field v-model="prefix" label="Sisipan Awal"></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field v-model="prefixdate" label="Sisipan Awal Tanggal"></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field v-model="digit" label="Digit" ></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field v-model="sufix" label="Sisipan Akhir" ></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field v-model="counter" label="Counter" ></v-text-field>
</v-flex>
<v-flex xs12>
<v-text-field v-model="reset" label="Reset" ></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="updateDialogNumbering()">Tutup</v-btn>
<v-btn v-if="xactnumbering === 'new'" color="blue darken-1" flat @click="saveFormNumbering()">Simpan</v-btn>
<v-btn v-if="xactnumbering === 'edit'" color="blue darken-1" flat @click="updateFormNumbering()">Simpan Perubahan</v-btn>
</v-card-actions>
</v-form>
</v-card>
</v-dialog>
</v-layout>
</template>
</v-layout>
</template>
<style scoped>
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("numbering/loadx")
},
methods : {
isSelected(p) {
return p.numberingID == this.$store.state.numbering.selected_numbering.numberingID
},
updateDialogNumbering(){
this.$store.commit("numbering/update_dialog_numbering",false)
},
openFormNumbering(){
this.$store.commit("service/update_selected_service",{})
this.prefix = ''
this.prefixdate = ''
this.digit = ''
this.sufix = ''
this.counter = 0
this.reset = ''
this.$store.commit("numbering/update_dialog_numbering",true)
},
saveFormNumbering(){
if (this.$refs.formnumbering.validate()) {
this.$store.dispatch("numbering/save",{
serviceid:this.$store.state.service.selected_service.serviceID,
prefix:this.prefix,
prefixdate:this.prefixdate,
digit:this.digit,
sufix:this.sufix,
counter:this.counter,
reset:this.reset
})
}
},
editNumbering(data){
this.xid = data.numberingID
this.$store.commit("service/update_selected_service",{serviceID:data.serviceID,serviceCode:data.serviceCode,serviceName:data.serviceName})
this.prefix = data.numberingPrefix
this.prefixdate = data.numberingPrefixDate
this.digit = data.numberingDigit
this.sufix = data.numberingSufix
this.counter = data.numberingCounter
this.reset = data.numberingReset
this.$store.commit("numbering/update_act",'edit')
this.$store.commit("numbering/update_error_code",false)
this.$store.commit("numbering/update_dialog_numbering",true)
},
updateFormNumbering(){
if (this.$refs.formnumbering.validate()) {
this.$store.dispatch("numbering/update",{
id:this.xid,
serviceid:this.$store.state.service.selected_service.serviceID,
prefix:this.prefix,
prefixdate:this.prefixdate,
digit:this.digit,
sufix:this.sufix,
counter:this.counter,
reset:this.reset
})
}
},
deleteNumbering(data){
this.xid = data.numberingID
this.msgalert = "Yakin, mau hapus numbering "+data.numberingPrefix+" ?"
this.dialogdeletealert = true
},
closeDeleteAlert(){
this.$store.dispatch("numbering/deletex",{
id:this.xid,
name:this.numberingPrefix
})
this.dialogdeletealert = false
}
},
computed: {
xactnumbering(){
return this.$store.state.numbering.act
},
xerrorcode(){
return this.$store.state.numbering.error_code
},
xservices(){
return this.$store.state.service.services
},
xservice:{
get() {
return this.$store.state.service.selected_service
},
set(val) {
this.$store.commit("service/update_selected_service",val)
}
},
snackbar: {
get() {
return this.$store.state.numbering.alert_success
},
set(val) {
this.$store.commit("numbering/update_alert_success",val)
}
},
msgsnackbar(){
return this.$store.state.numbering.msg_success
},
xdialognumbering(){
return this.$store.state.numbering.dialog_numbering
},
numberings() {
return this.$store.state.numbering.numberings
},
isLoading() {
return this.$store.state.numbering.load_status == 1
},
updateAlert_success(val){
this.$store.commit("numbering/update_alert_success",val)
}
},
data() {
return {
color:"success",
validnumbering:false,
xid:0,
prefix:'',
prefixdate:'',
digit:'',
sufix:'',
counter:'',
reset:'',
dialogdeletealert:false,
msgalert:"",
headers: [
{
text: "LABEL PENOMORAN",
align: "LEFT",
sortable: false,
value: "mr",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "SISIPAN AWAL",
align: "Center",
sortable: false,
value: "lab",
width: "15%",
class: "pa-2 blue lighten-3 white--text"
},
{
text: "SISIPAN AWAL TANGGAL",
align: "Center",
sortable: false,
value: "name",
width: "15%",
class: "blue lighten-3 white--text"
},
{
text: "DIGIT",
align: "CENTER",
sortable: false,
value: "name",
width: "15%",
class: "blue lighten-3 white--text"
},
{
text: "SISIPAN AKHIR",
align: "Center",
sortable: false,
value: "name",
width: "15%",
class: "blue lighten-3 white--text"
},
{
text: "COUNTER",
align: "Center",
sortable: false,
value: "name",
width: "15%",
class: "blue lighten-3 white--text"
},
{
text: "RESET",
align: "Center",
sortable: false,
value: "name",
width: "15%",
class: "blue lighten-3 white--text"
},
{
text: "AKSI",
align: "Center",
sortable: false,
value: "name",
width: "15%",
class: "blue lighten-3 white--text"
}
]
};
}
}
</script>