Initial import

This commit is contained in:
sas.fajri
2026-05-25 20:01:37 +07:00
commit 710d7c1b97
10371 changed files with 2381698 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// API :
// search bank
// paramater : query , page , rowPerPage
const URL =
"http://lebaran.aplikasi.web.id/smartlab_api/vuex/t02/search_bank";
export async function searchBank(query, page, rowPerPage = 15) {
try {
var resp = await axios.post(URL, {
query: query,
page: page,
rowPerPage: rowPerPage
});
if (resp.status != 200) {
return {
status: "ERR",
query: query,
message: resp.statusText
};
}
let data = resp.data;
data.query = query;
return data;
} catch (e) {
return {
status: "ERR",
query: query,
message: e.message
};
}
}

View File

@@ -0,0 +1,45 @@
<template>
<v-layout row>
<v-flex shrink wrap class="searchbox">
<v-card class="blue lighten-3 pa-0">
<v-card-actions >
<v-layout row wrap align-center>
<v-flex >
<div class="nota">TOTAL</div>
</v-flex>
<v-flex >
<div class="total">90.000</div>
</v-flex>
</v-layout>
</v-card-actions>
</v-card>
</v-flex>
</v-layout>
</template>
<style scoped>
.layout {
padding:10px;
}
.nota {
font-size: 2em;
font-weight: bold;
text-align: left;
}
.total {
font-size: 2em;
font-weight: bold;
text-align: right;
}
</style>
<script>
module.exports = {
}
</script>

View File

@@ -0,0 +1,75 @@
<template>
<div>
<table>
<tr>
<th>Pemeriksaan</th>
<th>Bruto</th>
<th>Diskon</th>
<th>Total</th>
<th>Action</th>
</tr>
<tr>
<td style = "text-align: left; padding : 5px;">SGOT</td>
<td >50.000</td>
<td >5.000</td>
<td >45.000</td>
<td > <v-icon color = "red" >delete</v-icon> </td>
</tr>
<tr>
<td style = "text-align: left; padding : 5px;">SGPT</td>
<td >50.000</td>
<td >5.000</td>
<td >45.000</td>
<td > <v-icon color = "red" >delete</v-icon> </td>
</tr>
<tfoot>
<tr>
<th colspan="3" style = "text-align: right;">SUB TOTAL</th>
<th >100.000</th>
<th >&nbsp;</th>
</tr>
<tr>
<th colspan="3" style = "text-align: right;">DISKON PEMBULATAN</th>
<th >10.000</th>
<th >&nbsp;</th>
</tr>
</tfoot>
</table>
</div>
</template>
<style scoped>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
table, th {
border: 1px solid #dddddd;
text-align: center;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<script>
module.exports = {
}
</script>

View File

@@ -0,0 +1,32 @@
<template>
<v-layout row wrap>
<v-flex xs6 class="left">
Left
</v-flex>
<v-flex xs6 class="right" >
<nota-box> </nota-box>
<v-flex grow >
<notadetail-box> </notadetail-box>
</v-flex>
</v-flex>
</v-layout>
</template>
<style scoped>
.left {
background-color:white;
}
.right {
background-color:white;
}
</style>
<script>
module.exports = {
components : {
'nota-box' : httpVueLoader('./notaBoxV1.vue'),
'notadetail-box' : httpVueLoader('./notadetailBoxV1.vue'),
}
}
</script>

View File

@@ -0,0 +1,59 @@
<!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 fill-height>
<one-fo-order-list> </one-fo-order-list>
</v-container>
</v-content>
<one-footer> </one-footer>
</v-app>
</div>
<!-- Vendor -->
<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>
<!-- 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-fo-order-list': httpVueLoader('./components/oneFoOrderListV1.vue'),
}
})
</script>
<style>
[v-cloak] {
display: none
}
</style>
</body>
</html>

View File

@@ -0,0 +1,71 @@
// State
// data ...
// Mutations
//
//
// Actions
import * as api from "./api.js";
export const store = new Vuex.Store({
state: {
rows: [],
midPages: [],
isLoading: false,
isError: false,
errorMessage: "",
query: "",
page: 0,
totalPage: 0,
totalRecord: 0
},
mutations: {
updateBank(state, data) {
// console.log(data);
if (data.status == "ERR") {
state.isError = true;
if (data.db_error) {
state.errorMessage = data.db_error.message;
} else {
state.errorMessage = data.message;
}
state.query = data.query;
state.page = 0;
state.totalPage = 0;
state.totalRecord = 0;
state.rows = [];
state.midPages = [];
} else {
state.isError = false;
state.errorMessage = "";
state.query = data.query;
state.page = data.page;
state.totalPage = data.totalPage;
state.totalRecord = data.totalRecord;
state.rows = data.rows;
state.midPages = data.midPages;
}
},
updateLoading(state, flag) {
state.isLoading = flag;
},
resetError(state) {
state.isError = false;
state.errorMessage = "";
}
},
actions: {
async searchBank(context, data) {
context.commit("updateLoading", true);
let resp = await api.searchBank(
data.query,
data.page,
data.rowPerPage
);
context.commit("updateLoading", false);
context.commit("updateBank", resp);
setTimeout(function() {
context.commit("resetError");
}, 5000);
}
}
});