feature: serah terima & print barcode
This commit is contained in:
@@ -22,8 +22,7 @@
|
||||
</v-flex>
|
||||
<v-flex xs4 pa-1>
|
||||
<v-text-field hide-details outline placeholder="Nomor Delivery / Supplier Invoice"
|
||||
v-model="form_receive.reference" label="Referensi" :readonly="readonly_mode"
|
||||
></v-text-field>
|
||||
v-model="form_receive.reference" label="Referensi" :readonly="readonly_mode"></v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
@@ -33,20 +32,14 @@
|
||||
v-model="form_receive.ponumber" readonly></v-text-field>
|
||||
</v-flex>
|
||||
<v-flex xs2 pa-1>
|
||||
<v-autocomplete
|
||||
:items="list_cabang" hide-details outline
|
||||
v-model="form_receive.branchID" label="Cabang"
|
||||
item-text="M_BranchName" item-value="M_BranchID"
|
||||
@change="onChangeCabang" :readonly="readonly_mode"
|
||||
></v-autocomplete>
|
||||
<v-autocomplete :items="list_cabang" hide-details outline v-model="form_receive.branchID"
|
||||
label="Cabang" item-text="M_BranchName" item-value="M_BranchID" @change="onChangeCabang"
|
||||
:readonly="readonly_mode"></v-autocomplete>
|
||||
</v-flex>
|
||||
<v-flex xs2 pa-1>
|
||||
<v-autocomplete
|
||||
:items="list_gudang" hide-details outline
|
||||
v-model="form_receive.gudangID" label="Gudang"
|
||||
item-text="WarehouseName" item-value="WarehouseID"
|
||||
:readonly="readonly_mode"
|
||||
></v-autocomplete>
|
||||
<v-autocomplete :items="list_gudang" hide-details outline v-model="form_receive.gudangID"
|
||||
label="Gudang" item-text="WarehouseName" item-value="WarehouseID"
|
||||
:readonly="readonly_mode"></v-autocomplete>
|
||||
</v-flex>
|
||||
<v-flex xs4 pa-1>
|
||||
<v-text-field hide-details outline label="Biaya Pengiriman" placeholder="0"
|
||||
@@ -60,17 +53,17 @@
|
||||
v-model="form_receive.catatan" :readonly="readonly_mode"></v-textarea>
|
||||
</v-flex>
|
||||
<v-flex xs3 pa-1 mt-1>
|
||||
<v-btn block color="info" @click="pickKontrakAset()"
|
||||
:disabled="isFormEmpty()" v-show="!readonly_mode">
|
||||
<v-btn block color="info" @click="pickKontrakAset()" :disabled="isFormEmpty()"
|
||||
v-show="!readonly_mode">
|
||||
PILIH ORDER ASSET
|
||||
</v-btn>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
<v-layout row wrap class="mt-3">
|
||||
<v-flex xs12 v-if="order_received.length > 0">
|
||||
<v-data-table :headers="headers" :items="order_received"
|
||||
item-key="PODetailID" class="elevation-1" hide-actions>
|
||||
<v-flex xs12 v-if="order_received.length > 0">
|
||||
<v-data-table :headers="headers" :items="order_received" item-key="PODetailID"
|
||||
class="elevation-1" hide-actions>
|
||||
<template v-slot:items="props">
|
||||
<tr>
|
||||
<td class="text-xs-center pa-1">
|
||||
@@ -101,10 +94,8 @@
|
||||
<td class="text-xs-center pa-1">
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="green" dark @click="openInspeksi(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on"
|
||||
>
|
||||
<v-btn color="green" dark @click="openInspeksi(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>note_add</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -113,10 +104,8 @@
|
||||
|
||||
<v-tooltip bottom v-show="!readonly_mode">
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="warning" dark @click="cancelOrder(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on"
|
||||
>
|
||||
<v-btn color="warning" dark @click="cancelOrder(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>cancel</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -132,7 +121,8 @@
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn @click="batalReceiveOrder()" color="error" class="white--text">Batal</v-btn>
|
||||
<v-btn :disabled="readonly_mode" @click="simpanReceivedOrder()" color="primary" class="white--text">Simpan</v-btn>
|
||||
<v-btn :disabled="readonly_mode" @click="simpanReceivedOrder()" color="primary"
|
||||
class="white--text">Simpan</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-dialog>
|
||||
@@ -140,15 +130,15 @@
|
||||
|
||||
<style scoped>
|
||||
.style-limit-heightcard {
|
||||
max-height: 60vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: 60vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.style-limit-heightcontent {
|
||||
overflow-y: auto;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -268,7 +258,7 @@ module.exports = {
|
||||
pengirim: ""
|
||||
};
|
||||
|
||||
this.$store.dispatch("orderAsset/listingStaff");
|
||||
this.$store.dispatch("orderAsset/listingStaff", { ROID: "0", isSerahTerima: 'N' });
|
||||
this.$store.commit("orderAsset/update_selected_item_received", selectedItem);
|
||||
this.$store.commit("orderAsset/update_form_inspeksi", formInspeksi);
|
||||
this.$store.commit("orderAsset/update_dialog_inspeksi", true);
|
||||
@@ -280,7 +270,7 @@ module.exports = {
|
||||
},
|
||||
simpanReceivedOrder() {
|
||||
if (this.order_received.length <= 0) {
|
||||
let snac = {color: 'warning', msg: "item tidak boleh kosong", state: true}
|
||||
let snac = { color: 'warning', msg: "item tidak boleh kosong", state: true }
|
||||
this.$store.commit("roasset/update_snackbar", snac)
|
||||
return;
|
||||
}
|
||||
@@ -292,7 +282,7 @@ module.exports = {
|
||||
this.$store.dispatch("orderAsset/editReceiveOrder");
|
||||
}
|
||||
} else {
|
||||
let snac = {color: 'warning', msg: "proses masih berjalan", state: true}
|
||||
let snac = { color: 'warning', msg: "proses masih berjalan", state: true }
|
||||
this.$store.commit("roasset/update_snackbar", snac)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user