From 984049cb014d5d838c25d64b74ca5b6da4341d84 Mon Sep 17 00:00:00 2001 From: Hanan Askarim Date: Tue, 21 Jul 2026 10:25:08 +0700 Subject: [PATCH] add button report penerimaan mutasi --- .../components/mutasiListing.vue | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/test/vuex/acc-one-mutasi-receive/components/mutasiListing.vue b/test/vuex/acc-one-mutasi-receive/components/mutasiListing.vue index a218c1a..152b4bf 100644 --- a/test/vuex/acc-one-mutasi-receive/components/mutasiListing.vue +++ b/test/vuex/acc-one-mutasi-receive/components/mutasiListing.vue @@ -223,7 +223,8 @@ Lihat Detail + + + Cetak PDF +
@@ -286,6 +299,14 @@ +
@@ -323,9 +344,14 @@ module.exports = { "approve-dialog": httpVueLoader("./approveDialog.vue"), "one-dialog-alert": httpVueLoader("../../common/oneDialogAlert.vue"), "one-dialog-error": httpVueLoader("../../common/oneDialogError.vue"), + "one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"), }, data() { return { + urlprint: "", + printtitle: "", + printwidth: "60%", + openprint: false, msgAlertDeleteRequest: "", dialogAlertDeleteRequest: false, dialogAlertDeleteDetail: false, @@ -624,6 +650,15 @@ module.exports = { this.$store.commit("mutasi/update_indeterminatex", false); this.$store.commit("mutasi/update_selected_barcode", []); this.$store.dispatch("mutasi/getBarcodes"); + }, + 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_penerimaan_mutasi/pdf?id=" + val.MutasiHandoverID + "&username=" + username + "&tm=" + tm; + this.openprint = true; } }, };