From 6c69ab1d6b45303868651db307160e8e77459952 Mon Sep 17 00:00:00 2001 From: Hanan Askarim Date: Tue, 21 Jul 2026 10:32:52 +0700 Subject: [PATCH] add button report penyerahan mutasi --- .../components/mutasiListing.vue | 50 ++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/test/vuex/acc-one-mutasi-handover/components/mutasiListing.vue b/test/vuex/acc-one-mutasi-handover/components/mutasiListing.vue index 300a930..2e763f9 100644 --- a/test/vuex/acc-one-mutasi-handover/components/mutasiListing.vue +++ b/test/vuex/acc-one-mutasi-handover/components/mutasiListing.vue @@ -217,7 +217,8 @@ Lihat Detail + + + Cetak PDF +
@@ -249,6 +262,18 @@ Kirim Mutasi + + + Cetak PDF +
@@ -267,6 +292,14 @@ + @@ -303,9 +336,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, @@ -593,6 +631,16 @@ module.exports = { this.$store.dispatch("form/getCategory"); this.$store.dispatch("form/getBranchAsal"); this.$store.dispatch("form/getBranchTujuan"); + }, + printout(val) { + this.printwidth = "60%"; + this.printtitle = ""; + let user = one_user(); + let username = user && user.M_StaffName ? user.M_StaffName : ""; + let tm = Date.now(); + let id = val.MutasiHandoverID ? val.MutasiHandoverID : val.MutasiRequestID; + this.urlprint = BASE_URL + "/one-api/report/rpt_penyerahan_mutasi/pdf?id=" + id + "&username=" + username + "&tm=" + tm; + this.openprint = true; } }, };