diff --git a/test/vuex/acc-one-mutasi-request/components/mutasiListing.vue b/test/vuex/acc-one-mutasi-request/components/mutasiListing.vue
index a925a13..3261e39 100644
--- a/test/vuex/acc-one-mutasi-request/components/mutasiListing.vue
+++ b/test/vuex/acc-one-mutasi-request/components/mutasiListing.vue
@@ -217,12 +217,13 @@
-
+
Hapus
-
+
+
+
+
+
+ print
+
+
+ Cetak PDF
+
+
|
@@ -265,6 +280,14 @@
+
@@ -301,9 +324,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,
@@ -546,6 +574,15 @@ module.exports = {
deleteRM(data) {
this.$store.commit("mutasi/update_selected_list_data", data);
this.$store.commit("mutasi/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_request_mutasi/pdf?id=" + val.MutasiRequestID + "&username=" + username + "&tm=" + tm;
+ this.openprint = true;
}
},
};