Initial import
This commit is contained in:
230
one-ui/management/one-sales-per-payment/index.php
Normal file
230
one-ui/management/one-sales-per-payment/index.php
Normal file
@@ -0,0 +1,230 @@
|
||||
<!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/icomoon-fonts.css">
|
||||
<link rel="stylesheet" href="../../libs/vendor/css/vuetify.min.css">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Days+One&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div v-cloak id="app">
|
||||
<v-app id="smartApp" >
|
||||
<v-card tile elevation="5" color="#85352e" class="pt-2 pb-2 mb-1">
|
||||
<v-flex class="text-xs-center" xs12>
|
||||
<h3 style="font-family: 'Days One', sans-serif;color:#FFFFFF">BISONE</h3>
|
||||
</v-flex>
|
||||
</v-card>
|
||||
<v-content
|
||||
|
||||
v-touch="{
|
||||
left: () => getdatasx('Right'),
|
||||
right: () => getdatasx('Left')
|
||||
}"
|
||||
style="max-height: 1000px;background:#fcfcfc!important" >
|
||||
<v-layout class="align-center pr-2" row>
|
||||
<v-flex class="text-xs-left mt-2" xs6>
|
||||
<p class="pl-2 mb-0 font-weight-black">TOTAL OMSET</p>
|
||||
</v-flex>
|
||||
<v-flex class="text-xs-right mt-2" xs6>
|
||||
<v-btn-toggle v-model="xtype">
|
||||
<v-btn color="#272324" small flat @click="changeType('day')" value="day">
|
||||
Harian
|
||||
</v-btn>
|
||||
<v-btn color="#272324" small flat @click="changeType('month')" value="month">
|
||||
Bulanan
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-container fluid fill-height class="pl-1 pr-1 pt-1 pb-2">
|
||||
<v-layout row>
|
||||
<v-flex sm12 and-down>
|
||||
<v-card tile color="#F0EACF">
|
||||
<v-card-title class="pa-1" style="background:#3F848F" >
|
||||
</v-card-title>
|
||||
<v-card-text class="pt-1">
|
||||
<v-layout row>
|
||||
<v-flex class="text-xs-left" xs12 and-down>
|
||||
<div id="chart">
|
||||
<apexchart type="bar" height="350" :options="chartOptions" :series="series"></apexchart>
|
||||
</div>
|
||||
</div>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</v-content>
|
||||
</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/one_global.js"></script>
|
||||
<script>
|
||||
window.Promise ||
|
||||
document.write(
|
||||
'<script src="../../libs/vendor/polyfill.min.js"><\/script>'
|
||||
)
|
||||
window.Promise ||
|
||||
document.write(
|
||||
'<script src="../../libs/vendor/classList.min.js"><\/script>'
|
||||
)
|
||||
window.Promise ||
|
||||
document.write(
|
||||
'<script src="../../libs/vendor/findindex_polyfill_mdn.js"><\/script>'
|
||||
)
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script src="../../libs/vendor/apexcharts.js"></script>
|
||||
<script src="../../libs/vendor/vue-apexcharts.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',
|
||||
methods: {
|
||||
tab_selected : function(tab) {
|
||||
return this.$store.state.tab_selected == tab
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
let self = this
|
||||
self.$store.dispatch('sales/getdatas_riau',{type:this.xtype})
|
||||
self.$store.dispatch('sales/getdatas_pajajaran',{type:this.xtype})
|
||||
self.$store.dispatch('sales/getdatas_toha',{type:this.xtype})
|
||||
self.$store.dispatch('sales/getdatas_cimahi',{type:this.xtype})
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
data: {
|
||||
xtype:'day',
|
||||
types:['day','month'],
|
||||
series: [{
|
||||
name: 'PRODUCT A',
|
||||
data: [44, 55, 41, 67, 22, 43]
|
||||
}, {
|
||||
name: 'PRODUCT B',
|
||||
data: [13, 23, 20, 8, 13, 27]
|
||||
}, {
|
||||
name: 'PRODUCT C',
|
||||
data: [11, 17, 15, 15, 21, 14]
|
||||
}, {
|
||||
name: 'PRODUCT D',
|
||||
data: [21, 7, 25, 13, 22, 8]
|
||||
}],
|
||||
chartOptions: {
|
||||
chart: {
|
||||
type: 'bar',
|
||||
height: 350,
|
||||
stacked: true,
|
||||
toolbar: {
|
||||
show: true
|
||||
},
|
||||
zoom: {
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
responsive: [{
|
||||
breakpoint: 480,
|
||||
options: {
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
offsetX: -10,
|
||||
offsetY: 0
|
||||
}
|
||||
}
|
||||
}],
|
||||
plotOptions: {
|
||||
bar: {
|
||||
horizontal: false,
|
||||
},
|
||||
},
|
||||
xaxis: {
|
||||
type: 'datetime',
|
||||
categories: ['01/01/2011 GMT', '01/02/2011 GMT', '01/03/2011 GMT', '01/04/2011 GMT',
|
||||
'01/05/2011 GMT', '01/06/2011 GMT'
|
||||
],
|
||||
},
|
||||
legend: {
|
||||
position: 'right',
|
||||
offsetY: 40
|
||||
},
|
||||
fill: {
|
||||
opacity: 1
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
},
|
||||
methods:{
|
||||
|
||||
},
|
||||
components: {
|
||||
apexchart: VueApexCharts
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
[v-cloak] {
|
||||
display: none
|
||||
}
|
||||
.left {
|
||||
}
|
||||
.right {
|
||||
} #chart {
|
||||
padding: 0;
|
||||
max-width: 650px;
|
||||
margin: 35px auto;
|
||||
}
|
||||
|
||||
.apexcharts-legend text {
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
|
||||
|
||||
select.flat-select:focus, select.flat-select:hover {
|
||||
border: 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
|
||||
.apexcharts-canvas {
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user