From 3ac5a0935e41d3655c837cbac4023e81a66e7727 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Tue, 5 Jul 2022 16:38:28 +0800 Subject: [PATCH] fix --- resources/js/WTD/SenaraiBakiLelong.vue | 28 +++++++++++++++++++++++++- resources/js/WTD/wtd.vue | 15 ++++++++++---- resources/js/app.js | 1 + 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/resources/js/WTD/SenaraiBakiLelong.vue b/resources/js/WTD/SenaraiBakiLelong.vue index a991e64..b33b963 100644 --- a/resources/js/WTD/SenaraiBakiLelong.vue +++ b/resources/js/WTD/SenaraiBakiLelong.vue @@ -11,7 +11,7 @@
- +
@@ -158,6 +158,32 @@ export default { } }) + }, + async printwtd() { + let cawangan = 'KB2'; + let ref = this; + + await this.$swal({ + title: 'Cetak WTD', + html: + '', + text: "cetak wtd ini?", + showCloseButton: true, + showCancelButton: true, + focusConfirm: false, + confirmButtonText: + 'Ya', + cancelButtonText: + 'Tidak', + }).then((result) => { + if (result.isConfirmed) { + + this.blockwtd(); + + } + }) + }, proseswtd: function () { this.axios.post(ref.$hostname + '/admin/wtd/process', { diff --git a/resources/js/WTD/wtd.vue b/resources/js/WTD/wtd.vue index bf18397..7f4bb2e 100644 --- a/resources/js/WTD/wtd.vue +++ b/resources/js/WTD/wtd.vue @@ -35,6 +35,9 @@