Initial import
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<template>
|
||||
<v-card class="fill-height">
|
||||
<v-card-title primary-title class=" orange lighten-3 white--text">
|
||||
<h3 class="headline">Pengaturan Aplikasi Klinik</h3>
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<v-layout row wrap>
|
||||
<v-flex xs4>
|
||||
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="Default Company"
|
||||
v-model="selected_company.name"
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs12>
|
||||
<v-text-field
|
||||
label="Default MOU"
|
||||
v-model="selected_mou.name"
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs8>
|
||||
<v-checkbox label="Diskon Pemeriksaan LAB" v-model="value" value="value"></v-checkbox>
|
||||
</v-flex>
|
||||
<v-flex xs4>
|
||||
<v-text-field
|
||||
label="Nilai Diskon"
|
||||
v-model="conf_lab_disc"
|
||||
reverse
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
|
||||
<v-flex xs8 class="text-xs-center">
|
||||
<v-icon color="blue lighten-4" style="font-size:400px">settings</v-icon>
|
||||
<v-icon color="blue lighten-4" style="font-size:400px">settings</v-icon>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
data () {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
computed : {
|
||||
selected_company() {
|
||||
return this.$store.state.conf.selected_company
|
||||
},
|
||||
|
||||
selected_mou() {
|
||||
return this.$store.state.conf.selected_mou
|
||||
},
|
||||
|
||||
conf_lab_is_disc() {
|
||||
return this.$store.state.conf.conf_lab_is_disc
|
||||
},
|
||||
|
||||
conf_lab_disc() {
|
||||
// return one_money(50000)
|
||||
return one_money(this.$store.state.conf.conf_lab_disc, '0,000')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
77
one-ui/test_x_old/vuex/one-system-clinic-conf/index.php
Normal file
77
one-ui/test_x_old/vuex/one-system-clinic-conf/index.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>One</title>
|
||||
<link rel="stylesheet" href="../../../libs/vendor/css/google-fonts.css">
|
||||
<link rel="stylesheet" href="../../../libs/vendor/css/vuetify.min.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div v-cloak id="app">
|
||||
<v-app id="smartApp" >
|
||||
<one-navbar></one-navbar>
|
||||
<v-content class="blue lighten-5" >
|
||||
<v-container fluid pt-2 pb-2 pl-1 pr-1 class="fill-height">
|
||||
<v-layout column>
|
||||
|
||||
<v-layout>
|
||||
<v-flex xs12 pr-1>
|
||||
<one-conf></one-conf>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</v-content>
|
||||
<one-footer> </one-footer>
|
||||
</v-app>
|
||||
</div>
|
||||
|
||||
<!-- Vendor -->
|
||||
<script src="../../../libs/vendor/axios.min.js"></script>
|
||||
<script src="../../../libs/vendor/moment.min.js"></script>
|
||||
<script src="../../../libs/vendor/numeral.min.js"></script>
|
||||
<script src="../../../libs/vendor/moment-locale-id.js"></script>
|
||||
<script src="../../../libs/vendor/vue.js"></script>
|
||||
<script src="../../../libs/vendor/vuex.js"></script>
|
||||
<script src="../../../libs/vendor/vuetify.js"></script>
|
||||
<script src="../../../libs/vendor/httpVueLoader.js"></script>
|
||||
<script src="../../../libs/one_global.js"></script>
|
||||
<!-- App Script -->
|
||||
<?php
|
||||
$ts = "?ts=" . Date("ymdhis");
|
||||
?>
|
||||
<script type="module">
|
||||
import { store } from './store.js<?php echo $ts ?>';
|
||||
//for testing
|
||||
window.store = store;
|
||||
new Vue({
|
||||
store,
|
||||
el: '#app',
|
||||
components: {
|
||||
'one-navbar': httpVueLoader('../../../apps/components/oneNavbarComponent.vue'),
|
||||
'one-footer': httpVueLoader('../../../apps/components/oneFooter.vue'),
|
||||
'one-conf': httpVueLoader('./components/oneSystemClinicConf.vue')
|
||||
},
|
||||
|
||||
computed : {
|
||||
|
||||
},
|
||||
|
||||
mounted () {
|
||||
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
[v-cloak] {
|
||||
display: none
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,45 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
// import * as api from "../api/patient.js"
|
||||
// window.api = api
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
conf_company_id: 0,
|
||||
conf_mou_id: 0,
|
||||
conf_lab_is_disc: "N",
|
||||
conf_lab_disc: 50000,
|
||||
|
||||
selected_company: {id: 0, name: "Pasien Mandiri"},
|
||||
selected_mou: {id:0, name: "Mandiri Normal"}
|
||||
},
|
||||
mutations: {
|
||||
update_conf_company_id (state, v) {
|
||||
state.conf_company_id = v
|
||||
},
|
||||
|
||||
update_conf_mou_id (state, v) {
|
||||
state.conf_mou_id = v
|
||||
},
|
||||
|
||||
update_conf_lab_is_disc (state, v) {
|
||||
state.conf_lab_is_disc = v
|
||||
},
|
||||
|
||||
update_conf_lab_disc (state, v) {
|
||||
state.conf_lab_disc = v
|
||||
},
|
||||
|
||||
update_selected_company (state, v) {
|
||||
state.selected_company = v
|
||||
},
|
||||
|
||||
update_selected_mou (state, v) {
|
||||
state.selected_mou = v
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
}
|
||||
}
|
||||
23
one-ui/test_x_old/vuex/one-system-clinic-conf/store.js
Normal file
23
one-ui/test_x_old/vuex/one-system-clinic-conf/store.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// State
|
||||
// data ...
|
||||
// Mutations
|
||||
//
|
||||
//
|
||||
// Actions
|
||||
import conf from "./modules/conf.js";
|
||||
import system from "../../../apps/modules/system/system.js";
|
||||
|
||||
export const store = new Vuex.Store({
|
||||
state : {
|
||||
|
||||
},
|
||||
|
||||
mutations : {
|
||||
|
||||
},
|
||||
|
||||
modules : {
|
||||
conf: conf,
|
||||
system: system
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user