feature: serah terima & print barcode
This commit is contained in:
@@ -81,10 +81,8 @@
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="warning" dark @click="confirmRO(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on"
|
||||
>
|
||||
<v-btn color="warning" dark @click="confirmRO(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>send</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -92,10 +90,8 @@
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="info" dark @click="editRO(props.item)" v-on="on"
|
||||
style="min-width: 40px; margin: 0;" small
|
||||
>
|
||||
<v-btn color="info" dark @click="editRO(props.item)" v-on="on"
|
||||
style="min-width: 40px; margin: 0;" small>
|
||||
<v-icon small>edit</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -103,10 +99,8 @@
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn
|
||||
color="red" dark @click="deleteRO(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on"
|
||||
>
|
||||
<v-btn color="red" dark @click="deleteRO(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>delete</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -114,6 +108,15 @@
|
||||
</v-tooltip>
|
||||
</div>
|
||||
<div v-show="props.item.ReceiveOrderPoConfirmed == 'Y'">
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="black lighten-2" dark @click="viewBarcode(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>print</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>View Barcode</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="info" dark @click="viewDetail(props.item)"
|
||||
@@ -125,14 +128,14 @@
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="green" dark @click="uploadAttachment(props.item)"
|
||||
<v-btn color="orange" dark @click="uploadAttachment(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>attach_file</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>View Document</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip bottom>
|
||||
<v-tooltip bottom pr-2>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="primary" dark @click="printout(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
@@ -141,6 +144,17 @@
|
||||
</template>
|
||||
<span>Cetak PDF</span>
|
||||
</v-tooltip>
|
||||
<span v-show="props.item.ReceiveOrderPoIsHandover == 'N'">
|
||||
<v-tooltip bottom>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn color="green" dark @click="handOverRO(props.item)"
|
||||
style="min-width: 40px; margin: 0;" small v-on="on">
|
||||
<v-icon small>move_to_inbox</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>Serah Terima</span>
|
||||
</v-tooltip>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -163,14 +177,10 @@
|
||||
<dialog-confirm-order-asset></dialog-confirm-order-asset>
|
||||
<dialog-pick-contract></dialog-pick-contract>
|
||||
<dialog-inspeksi></dialog-inspeksi>
|
||||
<one-dialog-print
|
||||
:title="printtitle"
|
||||
:width="printwidth"
|
||||
:height="600"
|
||||
:status="openprint"
|
||||
:urlprint="urlprint"
|
||||
@close-dialog-print="openprint = false"
|
||||
></one-dialog-print>
|
||||
<dialog-view-barcode></dialog-view-barcode>
|
||||
<dialog-handover-asset></dialog-handover-asset>
|
||||
<one-dialog-print :title="printtitle" :width="printwidth" :height="600" :status="openprint" :urlprint="urlprint"
|
||||
@close-dialog-print="openprint = false"></one-dialog-print>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -183,6 +193,8 @@ module.exports = {
|
||||
'dialog-confirm-order-asset': httpVueLoader('./dialog-confirm-receive.vue'),
|
||||
'dialog-pick-contract': httpVueLoader('./dialog-pick-contract.vue'),
|
||||
'dialog-inspeksi': httpVueLoader('./dialog-inspeksi.vue'),
|
||||
'dialog-view-barcode': httpVueLoader('./dialog-view-barcode.vue'),
|
||||
'dialog-handover-asset': httpVueLoader('./dialog-handover-asset.vue'),
|
||||
'one-dialog-print': httpVueLoader('../../common/oneDialogPrintX.vue'),
|
||||
},
|
||||
mounted() {
|
||||
@@ -313,6 +325,18 @@ module.exports = {
|
||||
let tm = Date.now();
|
||||
this.urlprint = BASE_URL + "/one-api/report/rpt_receive_order_asset/pdf?id=" + val.ReceiveOrderPoID + "&username=" + username + "&tm=" + tm;
|
||||
this.openprint = true;
|
||||
},
|
||||
viewBarcode(item) {
|
||||
this.$store.dispatch("roasset/lookupBarcodes", item.ReceiveOrderPoID);
|
||||
this.$store.commit("roasset/update_selected_roasset", item);
|
||||
this.$store.commit("roasset/update_dialog_barcode", true);
|
||||
},
|
||||
handOverRO(item) {
|
||||
this.$store.commit("roasset/update_selected_roasset", item);
|
||||
this.$store.dispatch("roasset/lookupRuangan");
|
||||
this.$store.dispatch("orderAsset/listingStaff", { ROID: item.ReceiveOrderPoID, isSerahTerima: 'Y' });
|
||||
this.$store.dispatch("roasset/lookupAssetNotHanded", item.ReceiveOrderPoID);
|
||||
this.$store.commit("roasset/update_dialog_handover_asset", true);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Reference in New Issue
Block a user