diff --git a/test/vuex/acc-one-purchase-request-direct-approved/components/listingRequest.vue b/test/vuex/acc-one-purchase-request-direct-approved/components/listingRequest.vue index d153e31..f6471be 100644 --- a/test/vuex/acc-one-purchase-request-direct-approved/components/listingRequest.vue +++ b/test/vuex/acc-one-purchase-request-direct-approved/components/listingRequest.vue @@ -116,15 +116,24 @@ edit visibility + + print + @@ -325,6 +334,16 @@ + + + @@ -349,9 +368,14 @@ module.exports = { "one-dialog-info": httpVueLoader("../../common/oneDialogInfo.vue"), "one-dialog-attachment": httpVueLoader("./formDialogAttachtment.vue"), "one-dialog-edit-req": httpVueLoader("./formEditRequest.vue"), + "one-dialog-print": httpVueLoader("../../common/oneDialogPrintX.vue"), }, data() { return { + urlprint: "", + printtitle: "", + printwidth: "60%", + openprint: false, msgAlertDeleteOrReject: "", dialogAlertRejectRequest: false, dialogAlertDeleteDetail: false, @@ -742,6 +766,15 @@ module.exports = { }) } this.dialogAlertUnapprove = false; + }, + 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_pr_direct_approval/pdf?id=" + val.PurchaseRequestDirectID + "&username=" + username + "&tm=" + tm; + this.openprint = true; } }, }