add modules folder based on s_menu
This commit is contained in:
133
test/vuex/acc-one-md-unitconvert/api/itemunitconvert.js
Normal file
133
test/vuex/acc-one-md-unitconvert/api/itemunitconvert.js
Normal file
@@ -0,0 +1,133 @@
|
||||
const URL = "/one-api/mockup/masterdata/accounting/"
|
||||
|
||||
export async function searchitem(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'unitconvert/search', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function searchitemx(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'unitconvert/searchitemx', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function fromitemunit(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'unitconvert/fromitemunit', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function toitemunit(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'unitconvert/toitemunit', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function saveAdd(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'unitconvert/save', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function saveedit(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'unitconvert/edit', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function xdelete(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'unitconvert/delete', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,794 @@
|
||||
<template>
|
||||
<v-layout>
|
||||
<!-- Alert dialog -->
|
||||
<v-dialog v-model="dialogdeletealert" max-width="30%">
|
||||
<v-card>
|
||||
<v-card-title class="headline grey lighten-2 pt-2 pb-2" primary-title>
|
||||
Peringatan !
|
||||
</v-card-title>
|
||||
<v-card-text class="pt-2 pb-2">
|
||||
<v-layout row>
|
||||
<v-flex xs12 d-flex>
|
||||
<v-layout row>
|
||||
<v-flex pb-1 xs12>
|
||||
<v-layout row>
|
||||
<v-flex pt-2 pr-2 xs12>
|
||||
{{ msgalert }}
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
<v-divider></v-divider>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="error" flat @click="dialogdeletealert = false">
|
||||
Tutup
|
||||
</v-btn>
|
||||
<v-btn color="primary" @click="deleteRow()">
|
||||
Yakin lah
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<!-- End alert dialog -->
|
||||
<!-- Snackbar -->
|
||||
<v-snackbar
|
||||
v-model="snackbar"
|
||||
:timeout="5000"
|
||||
:multi-line="false"
|
||||
:vertical="false"
|
||||
:top="true"
|
||||
:color="clr"
|
||||
:value="snackbar"
|
||||
>
|
||||
{{ msgsnackbar }}
|
||||
<v-btn flat @click="snackbar = false"> Tutup </v-btn>
|
||||
</v-snackbar>
|
||||
<!-- End Snackbar -->
|
||||
<!-- Form Dialog -->
|
||||
<v-dialog v-model="dialog_form" max-width="600px">
|
||||
<v-card>
|
||||
<v-card-title>
|
||||
<span class="headline">Form Konversi Satuan</span>
|
||||
</v-card-title>
|
||||
<v-divider></v-divider>
|
||||
<v-progress-linear v-if="loading_save" :indeterminate="true"></v-progress-linear>
|
||||
<v-card-text class="pt-0 pb-0">
|
||||
<v-layout wrap>
|
||||
<v-flex pb-1 pa-2 xs12>
|
||||
<v-autocomplete
|
||||
label="Satuan Awal"
|
||||
v-model="fromitemunitconvert"
|
||||
@blur="checkItemconvertForm"
|
||||
:items="xfromitemunit"
|
||||
:search-input.sync="search_fromunit"
|
||||
auto-select-first
|
||||
no-filter
|
||||
item-text="name"
|
||||
return-object
|
||||
:loading="get_data_status"
|
||||
no-data-text="Pilih Satuan"
|
||||
:error="error_fromitemunit_message !== ''"
|
||||
:error-messages="error_fromitemunit_message"
|
||||
>
|
||||
<template slot="item" slot-scope="{ item }">
|
||||
<v-list-tile-content>
|
||||
<v-list-tile-title v-text="item.name"></v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</template>
|
||||
</v-autocomplete>
|
||||
|
||||
</v-flex>
|
||||
<v-flex pb-1 pa-2 xs12>
|
||||
<v-autocomplete
|
||||
label="Satuan Akhir"
|
||||
v-model="toitemunitconvert"
|
||||
@blur="checkItemconvertForm"
|
||||
:items="xtoitemunit"
|
||||
:search-input.sync="search_tounit"
|
||||
auto-select-first
|
||||
no-filter
|
||||
item-text="name"
|
||||
return-object
|
||||
:loading="get_data_status"
|
||||
no-data-text="Pilih Satuan"
|
||||
:error="error_toitemunit_message !== ''"
|
||||
:error-messages="error_toitemunit_message"
|
||||
>
|
||||
<template slot="item" slot-scope="{ item }">
|
||||
<v-list-tile-content>
|
||||
<v-list-tile-title v-text="item.name"></v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</template>
|
||||
</v-autocomplete>
|
||||
</v-flex>
|
||||
<v-flex pb-1 pa-2 xs12>
|
||||
<v-text-field
|
||||
outline
|
||||
v-model="Amount"
|
||||
label="Nilai Konversi"
|
||||
:disabled="amount_input_disable"
|
||||
@blur="checkItemconvertForm"
|
||||
:error="error_amount_message !== ''"
|
||||
:error-messages="error_amount_message"
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
|
||||
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
<v-divider></v-divider>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
color="error"
|
||||
flat
|
||||
@click="closeDialog()"
|
||||
:disabled="loading_save"
|
||||
>Tutup</v-btn
|
||||
>
|
||||
<v-btn
|
||||
v-if="xact === 'add'"
|
||||
color="primary"
|
||||
:disabled="loading_save"
|
||||
@click="saveFormItemconvert()"
|
||||
>Simpan</v-btn
|
||||
>
|
||||
<v-btn
|
||||
v-if="xact === 'edit'"
|
||||
color="primary"
|
||||
:disabled="loading_save"
|
||||
@click="saveEdit()"
|
||||
>Simpan Perubahan</v-btn
|
||||
>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
<!-- End Form Dialog -->
|
||||
|
||||
<v-flex xs12>
|
||||
<v-card>
|
||||
<v-toolbar color="blue lighten-3" dark scroll-off-screen scroll-target="#scrolling-techniques">
|
||||
|
||||
<v-toolbar-title class="headline font-weight-bold">Konversi Satuan</v-toolbar-title>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn class="text-xs-right" @click="openForm()" icon>
|
||||
<v-icon>library_add</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar>
|
||||
|
||||
<!-- Data Tabel -->
|
||||
<div id="scrolling-techniques" class="scroll-y" :style="{ 'height': windowHeight }">
|
||||
<v-card elevation="0">
|
||||
<v-card-text>
|
||||
<v-layout row>
|
||||
<v-flex xs3>
|
||||
<v-text-field
|
||||
v-model="xsearch"
|
||||
label="Cari"
|
||||
placeholder="Ketikkan Satuan"
|
||||
outline
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
<v-divider></v-divider>
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="vsitemunitconvert"
|
||||
:loading="isLoading"
|
||||
hide-actions>
|
||||
|
||||
<template v-slot:headers="props">
|
||||
<tr>
|
||||
<th
|
||||
v-for="header in props.headers"
|
||||
:key="header.text"
|
||||
@click="changeSort(header.value, pagination.descending,header)"
|
||||
:width="header.width"
|
||||
:align="header.align"
|
||||
:class="header.class"
|
||||
>
|
||||
<v-icon color="grey lighten-2" v-if="pagination.sortBy === header.value && header.sort && pagination.descending == 'desc'" small
|
||||
>arrow_upward</v-icon
|
||||
>
|
||||
<v-icon color="grey lighten-2" v-if="pagination.sortBy === header.value && header.sort && pagination.descending == 'asc'" small
|
||||
>arrow_downward</v-icon
|
||||
>
|
||||
<v-icon color="grey lighten-2" v-if="pagination.sortBy !== header.value && header.sort" small
|
||||
>arrow_downward</v-icon
|
||||
>
|
||||
{{ header.text }}
|
||||
</th>
|
||||
</tr>
|
||||
</template>
|
||||
<v-progress-linear v-slot:progress color="blue" indeterminate></v-progress-linear>
|
||||
<template v-slot:no-data>
|
||||
<v-alert :value="true" color="error" icon="warning">
|
||||
Belum ditemukan data
|
||||
</v-alert>
|
||||
</template>
|
||||
<template v-slot:items="props">
|
||||
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.FromItemUnitName}}</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.ToItemUnitName}}</td>
|
||||
<td class="text-xs-left pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">{{ props.item.Amount}}</td>
|
||||
<td class="text-xs-center pa-2" v-bind:class="{'amber lighten-4':isSelected(props.item)}" @click="selectMe(props.item)">
|
||||
<v-tooltip bottom>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on" small class="ml-3" @click="openEdit(props.item)">edit</v-icon>
|
||||
</template>
|
||||
<span>Edit</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on" small class="ml-3" @click="confirmDelete(props.item)">delete</v-icon>
|
||||
</template>
|
||||
<span>Delete</span>
|
||||
</v-tooltip>
|
||||
<!-- <v-toolbar flat dense>
|
||||
<v-btn @click="openEdit(props.item)" small color="primary" dark>ubah <v-icon small right dark>edit</v-icon></v-btn>
|
||||
<v-divider vertical></v-divider>
|
||||
<v-btn @click="confirmDelete(props.item)" small color="danger" dark>hapus <v-icon small right dark>clear</v-icon></v-btn>
|
||||
</v-toolbar> -->
|
||||
</td>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</div>
|
||||
<!-- End Data Tabel -->
|
||||
<v-divider></v-divider>
|
||||
<v-flex xs12 class="text-xs-left pt-3 pb-3">
|
||||
<v-pagination v-model="curr_page" :length="xtotal_page" ></v-pagination>
|
||||
</v-flex>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
|
||||
</v-layout>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.searchbox .v-input.v-text-field .v-input__slot {
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
.searchbox .v-btn {
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
table.v-table tbody td,
|
||||
table.v-table tbody th {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
table.v-table thead tr {
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.textinput {
|
||||
-webkit-transition: width 0.4s ease-in-out;
|
||||
transition: width 0.4s ease-in-out;
|
||||
background-color: white;
|
||||
background-position: 10px 10px;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 40px;
|
||||
width: 100%;
|
||||
padding: 8px 10px;
|
||||
margin-bottom: 5px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #607d8b;
|
||||
|
||||
}
|
||||
|
||||
.textinput:focus {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.textinput:focus::-webkit-input-placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.textinput:focus::-moz-placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.textinput:-moz-placeholder {
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
.boxoutline {
|
||||
color: red;
|
||||
border: 1px solid red;
|
||||
justify-content: center;
|
||||
height: 45px;
|
||||
line-height: 45px;
|
||||
padding-left: 10px;
|
||||
background: #ffffff;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
border-radius: 1px
|
||||
}
|
||||
|
||||
.boxoutline:hover {
|
||||
background: rgba(0, 0, 0, 0.07) !important;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.boxsolid {
|
||||
color: #ffffff;
|
||||
border: 1px solid #ffffff;
|
||||
justify-content: center;
|
||||
height: 45px;
|
||||
line-height: 45px;
|
||||
padding-left: 10px;
|
||||
background: #f44336;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
border-radius: 1px
|
||||
}
|
||||
|
||||
.boxsolid:hover {
|
||||
background: #f44336de;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.scroll-container {
|
||||
scroll-padding: 50px 0 0 50px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 7px;
|
||||
}
|
||||
|
||||
/* this targets the default scrollbar (compulsory) */
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background-color: #73baf3;
|
||||
}
|
||||
|
||||
/* the new scrollbar will have a flat appearance with the set background color */
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #2196f3;
|
||||
}
|
||||
|
||||
/* this will style the thumb, ignoring the track */
|
||||
|
||||
::-webkit-scrollbar-button {
|
||||
background-color: #0079da;
|
||||
}
|
||||
|
||||
/* optionally, you can style the top and the bottom buttons (left and right for horizontal bars) */
|
||||
|
||||
::-webkit-scrollbar-corner {
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
/* if both the vertical and the horizontal bars appear, then perhaps the right bottom corner also needs to be styled */
|
||||
</style>
|
||||
|
||||
<script>
|
||||
module.exports = {
|
||||
data() {
|
||||
return {
|
||||
windowHeight: window.outerHeight - ((38/100)*window.outerHeight) + "px",
|
||||
ItemName: '',
|
||||
FromItemUnitName: '',
|
||||
ToItemUnitName: '',
|
||||
Amount: 0,
|
||||
xid: 0,
|
||||
search_fromunit:'',
|
||||
search_tounit:'',
|
||||
id_fromitemunit: 0,
|
||||
id_toitemunit: 0,
|
||||
error_itemunitconvert_form:false,
|
||||
error_item_message:'',
|
||||
error_fromitemunit_message:'',
|
||||
error_toitemunit_message:'',
|
||||
error_amount_message: '',
|
||||
msgalert: '',
|
||||
dialogdeletealert: false,
|
||||
clr: "success",
|
||||
amount_input_disable: false,
|
||||
statusEdit: false,
|
||||
headers: [
|
||||
{
|
||||
text: "SATUAN AWAL",
|
||||
align: "left",
|
||||
sort: true,
|
||||
sortable: true,
|
||||
value: "FromItemUnitName",
|
||||
width: "25%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "SATUAN AKHIR",
|
||||
align: "left",
|
||||
sort: true,
|
||||
sortable: true,
|
||||
value: "ToItemUnitName",
|
||||
width: "25%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "NILAI KONVERSI",
|
||||
align: "left",
|
||||
sort: true,
|
||||
sortable: true,
|
||||
value: "Amount",
|
||||
width: "25%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
},
|
||||
{
|
||||
text: "AKSI",
|
||||
align: "center",
|
||||
sort: false,
|
||||
sortable: false,
|
||||
value: "mr",
|
||||
width: "10%",
|
||||
class: "pa-2 blue lighten-3 white--text"
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch("itemunitconvert/search")
|
||||
// this.$store.dispatch("itemunitconvert/searchitemx")
|
||||
|
||||
},
|
||||
computed: {
|
||||
get_data_status: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.get_data_status
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_get_data_status", val)
|
||||
}
|
||||
},
|
||||
dialog_form: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.dialog_form
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_dialog_form", val)
|
||||
}
|
||||
},
|
||||
vsitemunitconvert() {
|
||||
return this.$store.state.itemunitconvert.itemunitconvert
|
||||
},
|
||||
isLoading() {
|
||||
return this.$store.state.itemunitconvert.search_status == 1
|
||||
},
|
||||
curr_page: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.current_page
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_current_page", val)
|
||||
this.$store.commit("itemunitconvert/update_last_id", -1)
|
||||
this.$store.dispatch("itemunitconvert/search")
|
||||
}
|
||||
},
|
||||
xtotal_page: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.total_itemunitconverts
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_total_itemunitconverts", val)
|
||||
}
|
||||
},
|
||||
pagination: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.pagination
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_pagination", val)
|
||||
}
|
||||
},
|
||||
xsearch: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.x_search
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_x_search", val)
|
||||
}
|
||||
},
|
||||
xitems() {
|
||||
return this.$store.state.itemunitconvert.itemx
|
||||
},
|
||||
itemconvert: {
|
||||
get() {
|
||||
// console.log("cek item_convert", this.$store.state.itemunitconvert.item_convert);
|
||||
return this.$store.state.itemunitconvert.item_convert
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_item_convert", val)
|
||||
this.$store.dispatch("itemunitconvert/fromitemunit")
|
||||
this.$store.dispatch("itemunitconvert/toitemunit")
|
||||
}
|
||||
},
|
||||
xfromitemunit:{
|
||||
// console.log("xfromitemnunit cek", this.$store.state.itemunitconvert.fromitemunits);
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.fromitemunits
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_fromitemunits",val)
|
||||
}
|
||||
},
|
||||
fromitemunitconvert:{
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.fromitemunit_convert
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_fromitemunit_convert",val)
|
||||
this.amount_input_disable = false
|
||||
this.Amount = 0
|
||||
if(!_.isEmpty(this.toitemunitconvert) && parseInt(this.toitemunitconvert.id) > 0){
|
||||
let fromunit = val.id
|
||||
let tounit = this.toitemunitconvert.id
|
||||
if(parseInt(fromunit) == parseInt(tounit)){
|
||||
this.amount_input_disable = true
|
||||
this.Amount = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
xtoitemunit:{
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.toitemunits
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_toitemunits",val)
|
||||
}
|
||||
},
|
||||
toitemunitconvert:{
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.toitemunit_convert
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_toitemunit_convert",val)
|
||||
this.amount_input_disable = false
|
||||
this.Amount = 0
|
||||
if(!_.isEmpty(this.fromitemunitconvert) && parseInt(this.fromitemunitconvert.id) > 0){
|
||||
let fromunit = this.fromitemunitconvert.id
|
||||
let tounit = val.id
|
||||
if(parseInt(fromunit) == parseInt(tounit)){
|
||||
this.amount_input_disable = true
|
||||
this.Amount = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
xact: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.act
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_act", val)
|
||||
}
|
||||
},
|
||||
loading_save: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.loading_save
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_loading_save", val)
|
||||
},
|
||||
},
|
||||
snackbar: {
|
||||
get() {
|
||||
return this.$store.state.itemunitconvert.alert_success;
|
||||
},
|
||||
set(val) {
|
||||
this.$store.commit("itemunitconvert/update_alert_success", val);
|
||||
},
|
||||
},
|
||||
msgsnackbar() {
|
||||
return this.$store.state.itemunitconvert.msg_success;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openForm() {
|
||||
this.xact = 'add'
|
||||
this.$store.commit("itemunitconvert/update_last_id", -1)
|
||||
this.itemconvert = ""
|
||||
this.fromitemunitconvert = ""
|
||||
this.toitemunitconvert = ""
|
||||
this.Amount = 0;
|
||||
|
||||
// console.log("cek amount open form", this.Amount);
|
||||
this.dialog_form = true
|
||||
this.statusEdit = false
|
||||
},
|
||||
isSelected(p) {
|
||||
return p.id == this.$store.state.itemunitconvert.selected_itemunitconvert.id
|
||||
},
|
||||
selectMe(selected) {
|
||||
this.$store.commit("itemunitconvert/update_selected_itemunitconvert", selected)
|
||||
this.$store.commit("itemunitconvert/update_last_id", selected.id)
|
||||
},
|
||||
changeSort(value, sort, header) {
|
||||
if(header.sort){
|
||||
var newVal = value
|
||||
var newSort = sort == "asc" ? "desc" : "asc"
|
||||
if (newVal !== this.pagination.sortBy)
|
||||
newSort = "asc"
|
||||
|
||||
this.pagination = { descending: newSort, sortBy: newVal }
|
||||
this.$store.dispatch("itemunitconvert/search")
|
||||
}
|
||||
},
|
||||
thr_search: _.debounce(function () {
|
||||
this.$store.dispatch("itemunitconvert/search")
|
||||
}, 1000),
|
||||
checkItemconvertForm(){
|
||||
this.resetErrors()
|
||||
this.error_itemunitconvert_form = false
|
||||
|
||||
if(this.fromitemunitconvert == undefined) {
|
||||
return
|
||||
}
|
||||
if(Object.keys(this.fromitemunitconvert).length === 0){
|
||||
this.error_fromitemunit_message = 'Pilih salah satu satuan awal'
|
||||
this.error_itemunitconvert_form = true
|
||||
}
|
||||
|
||||
if(this.toitemunitconvert == undefined) {
|
||||
return
|
||||
}
|
||||
if(Object.keys(this.toitemunitconvert).length === 0){
|
||||
this.error_toitemunit_message = 'Pilih salah satu satuan akhir'
|
||||
this.error_itemunitconvert_form = true
|
||||
}
|
||||
|
||||
if(this.Amount === ''){
|
||||
this.error_amount_message = 'Anda belum mengisi'
|
||||
this.error_itemunitconvert_form = true
|
||||
}
|
||||
},
|
||||
saveFormItemconvert(){
|
||||
this.resetErrors()
|
||||
this.checkItemconvertForm()
|
||||
if(this.fromitemunitconvert == undefined) {
|
||||
return
|
||||
}
|
||||
if(this.toitemunitconvert == undefined) {
|
||||
return
|
||||
}
|
||||
let prm = {}
|
||||
prm.id_item = this.itemconvert.id_item
|
||||
prm.id_fromitemunit = this.fromitemunitconvert.id
|
||||
prm.id_toitemunit = this.toitemunitconvert.id
|
||||
prm.amount = this.Amount
|
||||
|
||||
if(!this.error_itemunitconvert_form)
|
||||
this.$store.dispatch("itemunitconvert/save",prm)
|
||||
},
|
||||
resetErrors(){
|
||||
this.error_item_message = ''
|
||||
this.error_fromitemunit_message = ''
|
||||
this.error_toitemunit_message = ''
|
||||
this.error_amount_message = ''
|
||||
},
|
||||
resetItemunitconvert(){
|
||||
this.Amount = 0
|
||||
this.ItemName = ''
|
||||
this.FromItemUnitName = ''
|
||||
this.ToItemUnitName = ''
|
||||
},
|
||||
closeDialog() {
|
||||
this.Amount = 0;
|
||||
this.resetErrors();
|
||||
this.dialog_form = false;
|
||||
},
|
||||
// edit data
|
||||
openEdit(item){
|
||||
this.xact = 'edit'
|
||||
this.amount_input_disable = true
|
||||
this.$store.commit("itemunitconvert/update_last_id", item.id)
|
||||
this.selectMe(item)
|
||||
this.xid = item.id
|
||||
this.resetItemunitconvert()
|
||||
|
||||
|
||||
|
||||
this.xfromitemunit = [
|
||||
{
|
||||
id: item.FromItemUnitID,
|
||||
name: item.FromItemUnitName
|
||||
|
||||
}
|
||||
];
|
||||
this.fromitemunitconvert ={
|
||||
id: item.FromItemUnitID,
|
||||
name: item.FromItemUnitName
|
||||
|
||||
}
|
||||
|
||||
this.xtoitemunit = [
|
||||
{
|
||||
|
||||
id: item.ToItemUnitID,
|
||||
name: item.ToItemUnitName
|
||||
}
|
||||
];
|
||||
this.toitemunitconvert = {
|
||||
|
||||
id: item.ToItemUnitID,
|
||||
name: item.ToItemUnitName
|
||||
}
|
||||
|
||||
this.Amount = item.Amount
|
||||
|
||||
this.dialog_form = true
|
||||
this.statusEdit = true
|
||||
},
|
||||
saveEdit(){
|
||||
this.resetErrors()
|
||||
this.checkItemconvertForm()
|
||||
if(this.fromitemunitconvert == undefined) {
|
||||
return
|
||||
}
|
||||
if(this.toitemunitconvert == undefined) {
|
||||
return
|
||||
}
|
||||
let prm = {}
|
||||
prm.id = this.xid
|
||||
prm.id_fromitemunit = this.fromitemunitconvert.id
|
||||
prm.id_toitemunit = this.toitemunitconvert.id
|
||||
prm.amount = this.Amount
|
||||
|
||||
if(!this.error_itemunitconvert_form)
|
||||
this.$store.dispatch("itemunitconvert/saveEdit",prm)
|
||||
},
|
||||
confirmDelete(data){
|
||||
this.xid = data.id
|
||||
this.selectMe(data)
|
||||
this.msgalert = "Yakin, mau hapus konversi satuan ?"
|
||||
this.dialogdeletealert = true
|
||||
},
|
||||
deleteRow(){
|
||||
this.dialogdeletealert = false
|
||||
this.$store.commit("itemunitconvert/update_last_id", -1)
|
||||
let prm = {
|
||||
id:this.xid
|
||||
}
|
||||
this.$store.dispatch("itemunitconvert/delete",prm)
|
||||
},
|
||||
|
||||
thr_search_fromunit: _.debounce(function() {
|
||||
this.$store.dispatch("itemunitconvert/fromitemunit", this.search_fromunit);
|
||||
}, 2000),
|
||||
thr_search_tounit: _.debounce(function() {
|
||||
this.$store.dispatch("itemunitconvert/toitemunit", this.search_tounit);
|
||||
}, 2000),
|
||||
},
|
||||
watch: {
|
||||
xsearch(val, old) {
|
||||
this.xsearch = val
|
||||
this.thr_search()
|
||||
},
|
||||
search_fromunit(val, old) {
|
||||
if (val == old) return;
|
||||
if (!val) return;
|
||||
if (val.length < 1) return;
|
||||
this.thr_search_fromunit();
|
||||
},
|
||||
search_tounit(val, old) {
|
||||
if (val == old) return;
|
||||
if (!val) return;
|
||||
if (val.length < 1) return;
|
||||
this.thr_search_tounit();
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
70
test/vuex/acc-one-md-unitconvert/index.php
Normal file
70
test/vuex/acc-one-md-unitconvert/index.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<!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 class="pl-1 pr-1 pt-2 pb-2">
|
||||
<v-layout row wrap >
|
||||
<v-flex xs12 class="left" fill-height pa-1>
|
||||
<one-md-itemunitconvert></one-md-itemunitconvert>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-container>
|
||||
</v-content>
|
||||
<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/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-md-itemunitconvert': httpVueLoader('./components/oneMdItemUnitConvert.vue')
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<style>
|
||||
[v-cloak] {
|
||||
display: none
|
||||
}
|
||||
.left {
|
||||
}
|
||||
.right {
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
320
test/vuex/acc-one-md-unitconvert/modules/itemunitconvert.js
Normal file
320
test/vuex/acc-one-md-unitconvert/modules/itemunitconvert.js
Normal file
@@ -0,0 +1,320 @@
|
||||
// 1 => LOADING
|
||||
// 2 => DONE
|
||||
// 3 => ERROR
|
||||
import * as api from "../api/itemunitconvert.js"
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
dialog_form: false,
|
||||
itemunitconvert: [],
|
||||
search_status: 0,
|
||||
total_itemunitconverts: 0,
|
||||
current_page: 1,
|
||||
selected_itemunitconvert: {},
|
||||
x_search: "",
|
||||
pagination:{
|
||||
descending:'asc',
|
||||
sortBy: 'UnitConvertID'
|
||||
},
|
||||
last_id: -1,
|
||||
itemx: [],
|
||||
item_convert: {},
|
||||
fromitemunits: [],
|
||||
fromitemunit_convert: {},
|
||||
toitemunits: [],
|
||||
toitemunit_convert: {},
|
||||
act: "add",
|
||||
save_status: 0,
|
||||
msg_success: "",
|
||||
errors: [],
|
||||
loading_save:false,
|
||||
error_message: '',
|
||||
save_error_message: "",
|
||||
last_id: -1,
|
||||
dialog_error:false,
|
||||
alert_success: false,
|
||||
get_data_status:false
|
||||
},
|
||||
mutations: {
|
||||
update_get_data_status(state, val) {
|
||||
state.get_data_status = val
|
||||
},
|
||||
update_dialog_form(state, val) {
|
||||
state.dialog_form = val
|
||||
},
|
||||
update_itemunitconvert(state, data){
|
||||
state.itemunitconvert = data
|
||||
},
|
||||
update_search_status(state, status){
|
||||
state.search_status = status
|
||||
},
|
||||
update_total_itemunitconverts(state,val) {
|
||||
state.total_itemunitconverts = val
|
||||
},
|
||||
update_current_page(state, val) {
|
||||
state.current_page = val
|
||||
},
|
||||
update_selected_itemunitconvert(state, val) {
|
||||
state.selected_itemunitconvert = val
|
||||
},
|
||||
update_pagination(state, val) {
|
||||
state.pagination = val
|
||||
},
|
||||
update_x_search(state, val) {
|
||||
state.x_search = val
|
||||
state.current_page = 1
|
||||
},
|
||||
update_last_id(state, val) {
|
||||
state.last_id = val
|
||||
},
|
||||
update_itemx(state, val) {
|
||||
state.itemx = val
|
||||
},
|
||||
update_item_convert(state, val) {
|
||||
state.item_convert = val
|
||||
},
|
||||
update_fromitemunits(state, val) {
|
||||
state.fromitemunits = val
|
||||
},
|
||||
update_fromitemunit_convert(state, val){
|
||||
state.fromitemunit_convert = val
|
||||
},
|
||||
update_toitemunits(state, val) {
|
||||
state.toitemunits = val
|
||||
},
|
||||
update_toitemunit_convert(state, val){
|
||||
state.toitemunit_convert = val
|
||||
},
|
||||
update_act(state, val) {
|
||||
state.act = val
|
||||
},
|
||||
update_save_status(state, val) {
|
||||
state.save_status = val
|
||||
},
|
||||
update_msg_success(state, val) {
|
||||
state.msg_success = val
|
||||
},
|
||||
update_alert_success(state, val) {
|
||||
state.alert_success = val;
|
||||
},
|
||||
update_errors(state, val) {
|
||||
state.errors = val
|
||||
},
|
||||
update_loading_save(state, data) {
|
||||
state.loading_save = data
|
||||
},
|
||||
update_error_message(state, data) {
|
||||
state.error_message = data
|
||||
},
|
||||
update_save_error_message(state, val) {
|
||||
state.save_error_message = val
|
||||
},
|
||||
update_dialog_error(state, data) {
|
||||
state.dialog_error = data
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
async search(context) {
|
||||
context.commit("update_search_status", 1)
|
||||
|
||||
try {
|
||||
var prm = {
|
||||
token: one_token(),
|
||||
search: context.state.x_search,
|
||||
sortBy: context.state.pagination.sortBy,
|
||||
sortStatus: context.state.pagination.descending,
|
||||
current_page: context.state.current_page
|
||||
}
|
||||
|
||||
let resp = await api.searchitem(prm)
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_search_status", false)
|
||||
} else {
|
||||
context.commit("update_search_status", false)
|
||||
let data = {
|
||||
records: resp.data.records,
|
||||
total: resp.data.total_page,
|
||||
total_filter: resp.data.total_filter
|
||||
}
|
||||
context.commit("update_itemunitconvert", resp.data.records)
|
||||
context.commit("update_total_itemunitconverts", resp.data.total_page)
|
||||
if(context.state.last_id == -1){
|
||||
if(resp.data && resp.data.records.length > 0){
|
||||
context.commit("update_selected_itemunitconvert", resp.data.records[0])
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(resp.data && resp.data.records.length > 0){
|
||||
let idx = _.findIndex(resp.data.records, function(o) { return o.id == context.state.last_id})
|
||||
context.commit("update_selected_itemunitconvert", resp.data.records[idx])
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_search_status", false)
|
||||
// console.log(e)
|
||||
}
|
||||
},
|
||||
|
||||
async searchitemx(context) {
|
||||
try {
|
||||
let prm = {
|
||||
token: one_token(),
|
||||
}
|
||||
let resp = await api.searchitemx(prm)
|
||||
if (resp.status != "OK") {
|
||||
console.log(resp.message)
|
||||
} else {
|
||||
let data = resp.data.records;
|
||||
context.commit("update_itemx", resp.data.records)
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
|
||||
async fromitemunit(context,search) {
|
||||
context.commit("update_get_data_status",true)
|
||||
try {
|
||||
let prm = {}
|
||||
prm.token = one_token()
|
||||
prm.search = search
|
||||
|
||||
let resp = await api.fromitemunit(prm)
|
||||
if (resp.status != "OK") {
|
||||
console.log(resp.message);
|
||||
context.commit("update_get_data_status",false)
|
||||
} else {
|
||||
context.commit("update_get_data_status",false)
|
||||
let data = {
|
||||
records: resp.data.records
|
||||
}
|
||||
context.commit("update_fromitemunits", resp.data.records)
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_get_data_status",false)
|
||||
console.log(e);
|
||||
}
|
||||
},
|
||||
async toitemunit(context,search) {
|
||||
context.commit("update_get_data_status",true)
|
||||
try {
|
||||
let prm = {}
|
||||
prm.token = one_token()
|
||||
prm.search = search
|
||||
|
||||
let resp = await api.fromitemunit(prm)
|
||||
if (resp.status != "OK") {
|
||||
console.log(resp.message);
|
||||
context.commit("update_get_data_status",false)
|
||||
} else {
|
||||
context.commit("update_get_data_status",false)
|
||||
let data = {
|
||||
records: resp.data.records
|
||||
}
|
||||
context.commit("update_toitemunits", resp.data.records)
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_get_data_status",false)
|
||||
console.log(e);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
async save(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.saveAdd(prm)
|
||||
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
} else {
|
||||
context.commit("update_save_status", 2)
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_save_error_message", "")
|
||||
let data = {
|
||||
total: resp.data.total,
|
||||
records: resp.data.records
|
||||
}
|
||||
|
||||
if (data.total !== -1) {
|
||||
context.commit("update_errors", [])
|
||||
context.commit("update_dialog_form", false)
|
||||
var msg = "Konversi satuan sudah tersimpan"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("search")
|
||||
} else {
|
||||
context.commit("update_errors", resp.data.errors)
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_save_status", 3)
|
||||
context.commit("update_loading_save", false)
|
||||
}
|
||||
},
|
||||
|
||||
async saveEdit(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.saveedit(prm)
|
||||
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_dialog_error", true)
|
||||
context.commit("update_loading_save", false)
|
||||
} else {
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_dialog_error", false)
|
||||
context.commit("update_save_error_message", "")
|
||||
context.commit("update_dialog_form", false)
|
||||
var msg = "Konversi satuan sudah terupdate"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("search")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_dialog_error", true)
|
||||
context.commit("update_loading_save", false)
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
|
||||
async delete(context, prm) {
|
||||
context.commit("update_save_status", 1)
|
||||
try {
|
||||
context.commit("update_loading_save", true)
|
||||
prm.token = one_token()
|
||||
let resp = await api.xdelete(prm)
|
||||
|
||||
if (resp.status != "OK") {
|
||||
context.commit("update_error_message", resp.message)
|
||||
context.commit("update_dialog_error", true)
|
||||
context.commit("update_loading_save", false)
|
||||
} else {
|
||||
context.commit("update_loading_save", false)
|
||||
context.commit("update_dialog_error", false)
|
||||
context.commit("update_save_error_message", "")
|
||||
context.commit("update_dialog_form", false)
|
||||
var msg = "Konversi satuan sudah terhapus"
|
||||
context.commit("update_msg_success", msg)
|
||||
context.commit("update_alert_success", true)
|
||||
context.dispatch("search")
|
||||
}
|
||||
} catch (e) {
|
||||
context.commit("update_error_message", e.message)
|
||||
context.commit("update_dialog_error", true)
|
||||
context.commit("update_loading_save", false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
23
test/vuex/acc-one-md-unitconvert/store.js
Normal file
23
test/vuex/acc-one-md-unitconvert/store.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// State
|
||||
// data ...
|
||||
// Mutations
|
||||
//
|
||||
//
|
||||
// Actions
|
||||
import itemunitconvert from "./modules/itemunitconvert.js";
|
||||
import system from "../../../apps/modules/system/system.js";
|
||||
export const store = new Vuex.Store({
|
||||
modules: {
|
||||
itemunitconvert: itemunitconvert,
|
||||
system:system
|
||||
},
|
||||
state: {
|
||||
|
||||
},
|
||||
mutations: {
|
||||
|
||||
},
|
||||
actions: {
|
||||
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user