diff --git a/test/vuex/acc-one-payment-voucher/components/voucherListing.vue b/test/vuex/acc-one-payment-voucher/components/voucherListing.vue index faf9683..a771706 100644 --- a/test/vuex/acc-one-payment-voucher/components/voucherListing.vue +++ b/test/vuex/acc-one-payment-voucher/components/voucherListing.vue @@ -192,25 +192,43 @@ @@ -234,6 +252,15 @@ @forget-dialog-alert="dialogAlertDelete = false" @close-dialog-alert="closeAndDelete()" > + + @@ -263,10 +290,15 @@ module.exports = { components: { "dialog-form-voucher": httpVueLoader("./dialogFormVoucher.vue"), "one-dialog-alert": httpVueLoader("../../common/oneDialogAlert.vue"), - "one-dialog-error": httpVueLoader("../../common/oneDialogError.vue") + "one-dialog-error": httpVueLoader("../../common/oneDialogError.vue"), + "one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"), }, data() { return { + urlprint: "", + printtitle: "", + printwidth: "60%", + openprint: false, msgAlertDelete: "", dialogAlertDelete: false, xPVID: 0, @@ -306,7 +338,7 @@ module.exports = { }, { text: "AKSI", - align: "left", + align: "center", sortable: false, value: "status", width: "15%", @@ -570,6 +602,15 @@ module.exports = { this.$store.commit("voucher/update_selected_purchase", this.$store.state.voucher.details); this.$store.commit("voucher/update_resume_total", {"totalRealitation": data.PaymentVoucherTotal} ); + }, + 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_payment_voucher/pdf?id=" + val.PaymentVoucherID + "&username=" + username + "&tm=" + tm; + this.openprint = true; } }, watch: {