diff --git a/resources/js/WTD/SenaraiBakiLelong.vue b/resources/js/WTD/SenaraiBakiLelong.vue index 80b60c4..a991e64 100644 --- a/resources/js/WTD/SenaraiBakiLelong.vue +++ b/resources/js/WTD/SenaraiBakiLelong.vue @@ -2,9 +2,13 @@
+

JUMLAH = RM {{ this.totalbaki }}

+
+ +
@@ -16,7 +20,7 @@
- +
@@ -38,7 +42,7 @@
- +
@@ -73,6 +77,7 @@ export default { arraybakilelong: [], selectedNorujukan: [], allSelected: false, + boolblocksag: false } }, props: ['bakilelong'], @@ -133,24 +138,35 @@ export default { confirmButtonText: 'Yes' }).then((result) => { if (result.isConfirmed) { - + this.axios.post(ref.$hostname + '/admin/wtd/insert', { kodcaw: cawangan, norujukan: ref.selectedNorujukan }).then(response => { if (response.data === 'success') { - Swal.fire( - 'Nyah Padam!', - 'Berjaya dipadamkan!', + this.$swal( + 'Berjaya!', + 'Berjaya block senarai SAG!', 'success' ) + + this.boolblocksag = true; } }); } }) + }, + proseswtd: function () { + this.axios.post(ref.$hostname + '/admin/wtd/process', { + kodcaw: cawangan, + norujukan: ref.selectedNorujukan + + }).then(response => { + + }); } } }