add button report receive order asset

This commit is contained in:
Hanan Askarim
2026-07-21 09:43:00 +07:00
parent ba320134f8
commit 927d009c15

View File

@@ -68,7 +68,7 @@
<v-chip small color="warning" text-color="white">Unconfirmed</v-chip> <v-chip small color="warning" text-color="white">Unconfirmed</v-chip>
</div> </div>
</td> </td>
<td class="text-xs-center pa-2"> <td class="text-xs-center pa-2" style="white-space: nowrap;">
<div v-show="props.item.ReceiveOrderPoConfirmed != 'Y'"> <div v-show="props.item.ReceiveOrderPoConfirmed != 'Y'">
<v-tooltip bottom pr-2> <v-tooltip bottom pr-2>
<template v-slot:activator="{ on }"> <template v-slot:activator="{ on }">
@@ -132,6 +132,15 @@
</template> </template>
<span>View Document</span> <span>View Document</span>
</v-tooltip> </v-tooltip>
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn color="primary" dark @click="printout(props.item)"
style="min-width: 40px; margin: 0;" small v-on="on">
<v-icon small>print</v-icon>
</v-btn>
</template>
<span>Cetak PDF</span>
</v-tooltip>
</div> </div>
</td> </td>
</tr> </tr>
@@ -154,6 +163,14 @@
<dialog-confirm-order-asset></dialog-confirm-order-asset> <dialog-confirm-order-asset></dialog-confirm-order-asset>
<dialog-pick-contract></dialog-pick-contract> <dialog-pick-contract></dialog-pick-contract>
<dialog-inspeksi></dialog-inspeksi> <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>
</div> </div>
</template> </template>
@@ -166,6 +183,7 @@ module.exports = {
'dialog-confirm-order-asset': httpVueLoader('./dialog-confirm-receive.vue'), 'dialog-confirm-order-asset': httpVueLoader('./dialog-confirm-receive.vue'),
'dialog-pick-contract': httpVueLoader('./dialog-pick-contract.vue'), 'dialog-pick-contract': httpVueLoader('./dialog-pick-contract.vue'),
'dialog-inspeksi': httpVueLoader('./dialog-inspeksi.vue'), 'dialog-inspeksi': httpVueLoader('./dialog-inspeksi.vue'),
'one-dialog-print': httpVueLoader('../../common/oneDialogPrintX.vue'),
}, },
mounted() { mounted() {
this.$store.dispatch("orderAsset/listingCabang"); this.$store.dispatch("orderAsset/listingCabang");
@@ -174,6 +192,10 @@ module.exports = {
}, },
data() { data() {
return { return {
urlprint: "",
printtitle: "",
printwidth: "60%",
openprint: false,
menuStartdateFilter: false, menuStartdateFilter: false,
menuEnddateFilter: false, menuEnddateFilter: false,
headers: [ headers: [
@@ -282,6 +304,15 @@ module.exports = {
deleteRO(item) { deleteRO(item) {
this.$store.commit("roasset/update_selected_roasset", item) this.$store.commit("roasset/update_selected_roasset", item)
this.$store.commit("roasset/update_dialog_delete", true); this.$store.commit("roasset/update_dialog_delete", 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_order_asset/pdf?id=" + val.ReceiveOrderPoID + "&username=" + username + "&tm=" + tm;
this.openprint = true;
} }
}, },
watch: { watch: {