diff --git a/test/vuex/acc-one-faktur-v4/components/listing.vue b/test/vuex/acc-one-faktur-v4/components/listing.vue
index 51adefc..2ca080c 100644
--- a/test/vuex/acc-one-faktur-v4/components/listing.vue
+++ b/test/vuex/acc-one-faktur-v4/components/listing.vue
@@ -96,7 +96,7 @@
Rp. {{ toRupiah(props.item.SupplierInvoiceGrandTotal) }} |
{{ props.item.SupplierInvoiceStatus }} |
-
+
-
+
Detail Faktur
+
+
+
+ print
+
+
+ Cetak PDF
+
|
@@ -218,6 +230,15 @@
+
+
@@ -237,6 +258,7 @@
"dialog-item": httpVueLoader("./dialogItem.vue"),
"dialog-view": httpVueLoader("./viewFaktur.vue"),
"dialog-attachment": httpVueLoader("./dialog-attachment.vue"),
+ "one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"),
},
mounted() {
this.$store.dispatch("data/getListSupplier")
@@ -244,6 +266,10 @@
},
data() {
return {
+ urlprint: "",
+ printtitle: "",
+ printwidth: "60%",
+ openprint: false,
filterDateForm: false,
filterEndDateForm: false,
confirmDialog: false,
@@ -468,6 +494,15 @@
if (item.SupplierInvoiceID != '') {
this.$store.dispatch("form/verifyFaktur", {fakturID: item.SupplierInvoiceID});
}
+ },
+ 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_faktur/pdf?id=" + val.SupplierInvoiceID + "&username=" + username + "&tm=" + tm;
+ this.openprint = true;
}
},
watch: {