Files
2026-04-27 10:13:31 +07:00

155 lines
5.1 KiB
PHP

<!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 one" >
<v-container fluid pt-2 pb-2 pl-1 pr-1>
<v-layout column>
<v-flex xs12 shrink>
<finish-dialog></finish-dialog>
<one-registration-tab></one-registration-tab>
</v-flex>
<v-flex xs12>
<!-- <v-layout> -->
<tab-01 v-show="tab_active == '01'"></tab-01>
<tab-02 v-show="tab_active == '02'"></tab-02>
<tab-03 v-show="tab_active == '03'"></tab-03>
<!-- </v-layout> -->
</v-flex>
<!-- <v-flex xs12 shrink>
<finish-dialog></finish-dialog>
<one-registration-tab></one-registration-tab>
</v-flex> -->
<!-- <v-layout>
<one-registration-tab></one-registration-tab>
</v-layout> -->
</v-layout>
</v-container>
<one-fo-registration-doctor-new></one-fo-registration-doctor-new>
<one-dialog-error msg="Abu"></one-dialog-error>
</v-content>
<v-footer class="mb-5" app color="transparent" v-if="tab_active == '01'">
<v-spacer></v-spacer>
<v-btn color="orange" dark @click="goToClinic">Klinik <v-icon>forward</v-icon></v-btn>
</v-footer>
<one-footer> </one-footer>
</v-app>
</div>
<!-- Vendor -->
<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/lodash.js"></script>
<script src="../../../libs/vendor/axios.min.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/vendor/webcam.min.js"></script>
<script src="../../../libs/one_global.js"></script>
<!-- App Script -->
<?php
$ts = "?ts=" . Date("ymdhis");
?>
<script type="module">
/*
function one_money(inp) {
return numeral(inp).format('0,000.00')
}
window.one_money = one_money
function one_float(inp) {
try {
let val = parseFloat(inp)
if (isNaN(val)) return 0.0
return val
} catch(e) {
return 0.0
}
}
window.one_float = one_float
*/
import { store } from './store.js<?php echo $ts ?>';
//for testing
window.store = store;
new Vue({
store,
data : {
},
mounted: function() {
this.$store.dispatch("doctor/search_pj")
this.$store.dispatch("language/search")
var url_string = window.location.href
var url = new URL(url_string);
var c = url.searchParams.get("id");
if (c != null) {
this.$store.commit('order/update_order_id', c)
this.$store.dispatch('order/load')
}
},
computed : {
tab_active () {
return store.state.tab_active
}
},
methods : {
goToClinic() {
location.replace("/one-ui/test/vuex/one-fo-clinic-registration/")
}
},
el: '#app',
components: {
'one-navbar': httpVueLoader('../../../apps/components/oneNavbarComponent.vue'),
'one-footer': httpVueLoader('../../../apps/components/oneFooter.vue'),
// 'patient-left-side' : httpVueLoader('./components/patientLeftSide.vue'),
// 'patient-right-side' : httpVueLoader('./components/patientRightSide.vue'),
'one-registration-tab': httpVueLoader('./components/oneRegistrationTab.vue'),
'tab-01' : httpVueLoader('./components/oneFoRegistrationTab01.vue'),
'tab-02' : httpVueLoader('./components/oneFoRegistrationTab02.vue'),
'tab-03' : httpVueLoader('./components/oneFoRegistrationTab03.vue'),
'finish-dialog' : httpVueLoader('./components/oneFoRegisterFinishDialog.vue'),
'one-fo-registration-doctor-new' : httpVueLoader('./components/oneFoRegistrationDoctorNewDialog.vue'),
'one-dialog-error' : httpVueLoader('../common/oneDialogError.vue')
}
})
</script>
<style>
[v-cloak] {
display: none
}
.v-content.one {
//padding:64px 0px 0px !important;
}
</style>
</body>
</html>