add button report receive item po
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
BELUM KONFIRMASI
|
BELUM KONFIRMASI
|
||||||
</v-chip>
|
</v-chip>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-xs-center">
|
<td class="text-xs-center" style="white-space: nowrap;">
|
||||||
<div v-show="props.item.ReceiveOrderPoConfirmed === 'N'">
|
<div v-show="props.item.ReceiveOrderPoConfirmed === 'N'">
|
||||||
<v-tooltip bottom>
|
<v-tooltip bottom>
|
||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
@@ -131,6 +131,17 @@
|
|||||||
</template>
|
</template>
|
||||||
<span>Lihat detail</span>
|
<span>Lihat detail</span>
|
||||||
</v-tooltip>
|
</v-tooltip>
|
||||||
|
<v-tooltip bottom>
|
||||||
|
<template v-slot:activator="{ on }">
|
||||||
|
<v-btn
|
||||||
|
style="min-width: 30px; height: 30px; margin: 0;"
|
||||||
|
small @click="printout(props.item)" color="primary"
|
||||||
|
>
|
||||||
|
<v-icon small color="white" v-on="on">print</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</template>
|
||||||
|
<span>Cetak PDF</span>
|
||||||
|
</v-tooltip>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -151,6 +162,14 @@
|
|||||||
<one-dialog-item-batch></one-dialog-item-batch>
|
<one-dialog-item-batch></one-dialog-item-batch>
|
||||||
<one-dialog-ro-layout></one-dialog-ro-layout>
|
<one-dialog-ro-layout></one-dialog-ro-layout>
|
||||||
<one-dialog-ro-view></one-dialog-ro-view>
|
<one-dialog-ro-view></one-dialog-ro-view>
|
||||||
|
<one-dialog-print
|
||||||
|
:title="printtitle"
|
||||||
|
:width="printwidth"
|
||||||
|
:height="600"
|
||||||
|
:status="openprint"
|
||||||
|
:urlprint="urlprint"
|
||||||
|
@close-dialog-print="openprint = false"
|
||||||
|
></one-dialog-print>
|
||||||
|
|
||||||
<!-- snackbar -->
|
<!-- snackbar -->
|
||||||
<v-snackbar
|
<v-snackbar
|
||||||
@@ -173,12 +192,17 @@ module.exports = {
|
|||||||
'one-dialog-item-batch': httpVueLoader('./dialogBatchItem.vue'),
|
'one-dialog-item-batch': httpVueLoader('./dialogBatchItem.vue'),
|
||||||
'one-dialog-ro-layout': httpVueLoader('./dialogRoLayout.vue'),
|
'one-dialog-ro-layout': httpVueLoader('./dialogRoLayout.vue'),
|
||||||
'one-dialog-ro-view': httpVueLoader('./dialogViewRO.vue'),
|
'one-dialog-ro-view': httpVueLoader('./dialogViewRO.vue'),
|
||||||
|
'one-dialog-print': httpVueLoader('../../common/oneDialogPrintX.vue'),
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.dispatch("ro/search")
|
this.$store.dispatch("ro/search")
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
urlprint: "",
|
||||||
|
printtitle: "",
|
||||||
|
printwidth: "60%",
|
||||||
|
openprint: false,
|
||||||
menuStartDateFilter: false,
|
menuStartDateFilter: false,
|
||||||
menuEndDateFilter: false,
|
menuEndDateFilter: false,
|
||||||
headers: [
|
headers: [
|
||||||
@@ -212,7 +236,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: "AKSI", align: "center", sortable: false, value: "act",
|
text: "AKSI", align: "center", sortable: false, value: "act",
|
||||||
width: "10%", class: "pa-2 text-center blue lighten-3 white--text",
|
width: "15%", class: "pa-2 text-center blue lighten-3 white--text",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -293,6 +317,15 @@ module.exports = {
|
|||||||
this.$store.dispatch("ro/getWarehouse");
|
this.$store.dispatch("ro/getWarehouse");
|
||||||
this.$store.dispatch("ro/getItemUpdate");
|
this.$store.dispatch("ro/getItemUpdate");
|
||||||
this.$store.commit("form/update_dialog_form_receive_item_edit", true);
|
this.$store.commit("form/update_dialog_form_receive_item_edit", true);
|
||||||
|
},
|
||||||
|
printout(val) {
|
||||||
|
this.printwidth = "60%";
|
||||||
|
this.printtitle = "";
|
||||||
|
let user = one_user();
|
||||||
|
let username = user && user.M_StaffName ? user.M_StaffName : "";
|
||||||
|
let tm = Date.now();
|
||||||
|
this.urlprint = BASE_URL + "/one-api/report/rpt_receive_item_po/pdf?id=" + val.ReceiveOrderPoID + "&username=" + username + "&tm=" + tm;
|
||||||
|
this.openprint = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Reference in New Issue
Block a user