75 lines
1.7 KiB
Vue
75 lines
1.7 KiB
Vue
<template>
|
|
|
|
<v-dialog
|
|
v-model="dialog"
|
|
width="500"
|
|
>
|
|
|
|
|
|
<v-card>
|
|
<v-card-title
|
|
class="headline green white--text lighten-2 pt-2 pb-2"
|
|
primary-title
|
|
>
|
|
Pendaftaran Berhasil
|
|
</v-card-title>
|
|
<v-card-text class="pt-2 pb-2">
|
|
<h6 class="display-1 text-md-center mt-2">No Registrasi</h6>
|
|
<h6 class="display-3 text-md-center green white--text mt-3">{{ text_labno }}</h6>
|
|
<v-divider></v-divider>
|
|
|
|
<v-flex xs12 class="text-md-center">
|
|
<v-btn color="orange" class="mt-5" dark @click="print_receipt">Cetak Nota</v-btn>
|
|
</v-flex>
|
|
|
|
</v-card-text>
|
|
<v-divider></v-divider>
|
|
|
|
<v-card-actions>
|
|
<v-spacer></v-spacer>
|
|
<v-btn
|
|
color="primary"
|
|
flat
|
|
@click="dialog = false"
|
|
>
|
|
Tutup
|
|
</v-btn>
|
|
</v-card-actions>
|
|
</v-card>
|
|
</v-dialog>
|
|
|
|
</template>
|
|
|
|
<style scoped>
|
|
</style>
|
|
|
|
<script>
|
|
module.exports = {
|
|
components : {
|
|
},
|
|
methods : {
|
|
tuing: function() {
|
|
alert('x')
|
|
},
|
|
|
|
print_receipt() {
|
|
this.$store.dispatch('order/print_receipt')
|
|
}
|
|
},
|
|
computed : {
|
|
dialog: {
|
|
get() {
|
|
return this.$store.state.order.finish_dialog_is_active;
|
|
},
|
|
set(val) {
|
|
this.$store.commit('order/update_finish_dialog_is_active', val);
|
|
}
|
|
},
|
|
|
|
text_labno () {
|
|
return this.$store.state.order.order.number
|
|
}
|
|
}
|
|
}
|
|
</script>
|