add modules folder based on s_menu
This commit is contained in:
@@ -7,6 +7,17 @@
|
||||
|
||||
<v-card-text>
|
||||
<p>Apakah Anda yakin ingin melakukan konfirmasi terima barang inventaris ?</p>
|
||||
<v-layout pa-2 row class="green lighten-2">
|
||||
<v-flex xs2> NO </v-flex>
|
||||
<v-flex xs5> PENERIMA </v-flex>
|
||||
<v-flex xs5> BARCODE </v-flex>
|
||||
</v-layout>
|
||||
<v-layout align-center pa-2 v-for="(obj, idx) in itemNeedConfirming(selected_main.itemHandedOver)"
|
||||
:key="idx" row>
|
||||
<v-flex xs2>{{ idx + 1 }}</v-flex>
|
||||
<v-flex xs5>{{ obj.M_UserUsername }}</v-flex>
|
||||
<v-flex xs5>{{ obj.T_BarcodeBarangNumber }}</v-flex>
|
||||
</v-layout>
|
||||
</v-card-text>
|
||||
|
||||
<v-card-actions>
|
||||
@@ -44,14 +55,22 @@ module.exports = {
|
||||
},
|
||||
methods: {
|
||||
closeHandOver() {
|
||||
this.selected_main = {}
|
||||
this.dialogConfirmHandover = false
|
||||
},
|
||||
itemNeedConfirming(data) {
|
||||
return data.filter(item => item.allHandedOver == 'N');
|
||||
},
|
||||
async saveConfirmHandOver() {
|
||||
const dataHanded = this.selected_main.itemHandedOver;
|
||||
const itemHanded = dataHanded.filter(item => item.allHandedOver == 'N');
|
||||
|
||||
let prm = {
|
||||
purchaseRequestID: this.selected_main.prId,
|
||||
itemHandedOver: itemHanded
|
||||
}
|
||||
await this.$store.dispatch("requester/confirmHandOver", prm);
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user