update proses add akun pusat media jurnal & move barcode to serah terima

This commit is contained in:
2026-05-13 16:52:20 +07:00
parent 38a182641a
commit d018e85927
44 changed files with 14646 additions and 12 deletions

View File

@@ -6,17 +6,25 @@
</v-card-title>
<v-card-text>
<p>Apakah Anda yakin ingin melakukan serah terima barang inventaris kepada user pemohon di ruangan <b>{{ selected_ro.M_RuanganName }}</b>?</p>
<p>Apakah Anda yakin ingin melakukan serah terima barang inventaris kepada user pemohon</p>
<v-data-table :headers="headers" :items="items" hide-actions class="elevation-1">
<template v-slot:items="props">
<tr>
</tr>
</template>
</v-data-table>
<v-form ref="formhandover" lazy-validation v-model="valid_formhandover">
<v-layout row mt-2>
<v-flex xs6 pr-1>
<v-autocomplete
label="Staff Penerima*" outline
:rules="rules_staff" return-object
v-model="selected_staff" :items="list_staff"
item-text="M_UserUsername" item-value="M_UserID"
></v-autocomplete>
<v-autocomplete v-model="selected_ruangan" :items="list_lokasi" label="Lokasi Penerima*"
outline item-value="M_RuanganID" item-text="M_RuanganName"></v-autocomplete>
</v-flex>
<v-flex xs6 pl-1>
<v-autocomplete label="Staff Penerima*" outline :rules="rules_staff" return-object
v-model="selected_staff" :items="list_staff" item-text="M_UserUsername"
item-value="M_UserID"></v-autocomplete>
</v-flex>
</v-layout>
</v-form>
@@ -35,8 +43,27 @@
module.exports = {
data() {
return {
selected_ruangan: 0,
temp_list: [
{ M_RuanganID: 1, M_RuanganName: "bonde" }
],
valid_formhandover: true,
rules_staff: [v => (v && Object.keys(v).length > 0) || 'Staff harus diisi'],
rules_staff: [v => (v && Object.keys(v).length > 0) || 'Staff harus diisi'],
headers: [
{
text: "ITEM", align: "center", sortable: false, value: "itemname",
width: "60%", class: "pa-2 blue lighten-3 white--text",
},
{
text: "QTY", align: "center", sortable: false, value: "qtyitem",
width: "20%", class: "pa-2 blue lighten-3 white--text",
},
{
text: "HANDOVER", align: "center", sortable: false, value: "qtysend",
width: "20%", class: "pa-2 blue lighten-3 white--text",
},
],
items: []
}
},
computed: {
@@ -74,7 +101,10 @@ module.exports = {
},
list_staff() {
return this.$store.state.ro.list_staff
}
},
list_lokasi() {
return this.$store.state.ro.list_lokasi
},
},
methods: {
closeHandOver() {
@@ -95,4 +125,4 @@ module.exports = {
},
},
}
</script>
</script>

View File

@@ -190,7 +190,7 @@
style="min-width: 30px; height: 30px; margin: 0;" outline
small @click="handOverRO(props.item)" color="green lighten-2"
>
<v-icon small color="green" v-on="on">send</v-icon>
<v-icon small color="green" v-on="on">move_to_inbox</v-icon>
</v-btn>
</template>
<span>Serah Terima</span>
@@ -375,8 +375,9 @@ module.exports = {
},
handOverRO(data) {
this.$store.commit("ro/update_selected_ro", data);
this.$store.commit("ro/update_dialog_handover", true);
this.$store.dispatch("ro/getRuangan");
this.$store.dispatch("ro/getListStaff", 'Y');
this.$store.commit("ro/update_dialog_handover", true);
},
uploadDoct(data) {
this.$store.commit("ro/update_selected_ro", data);