From 2e25e0d91882cb50ecdea53b12024d1148f37f3b Mon Sep 17 00:00:00 2001 From: MUHD HAFIFIE Date: Tue, 17 Aug 2021 18:28:57 +0800 Subject: [PATCH] fix skit2 la --- resources/views/customers/info.blade.php | 118 +++++++++++------- .../views/khazanah/alirantunai.blade.php | 46 +++++++ resources/views/khazanah/dashboard.blade.php | 2 +- .../views/print/laporan_penebusan.blade.php | 14 ++- 4 files changed, 132 insertions(+), 48 deletions(-) diff --git a/resources/views/customers/info.blade.php b/resources/views/customers/info.blade.php index f35f38c..b08b0ea 100644 --- a/resources/views/customers/info.blade.php +++ b/resources/views/customers/info.blade.php @@ -828,40 +828,56 @@ text: 'Sila pilih salah satu SAG' }); }else{ + + Swal.fire({ + title: 'Memuatkan...', + allowEscapeKey : false, + allowOutsideClick: false, + didOpen: function () { + Swal.showLoading() + } + }); + $.ajax({ method:'get', url:'{{ route("gadai.history") }}', data:{ "norujukan" : histid}, success:function(data) { - $('#historytebusModal').modal(); + historytebustable(data); + $.ajax({ + method: 'get', + url: api_url + '/api/transaction/' + histid, + success: function(data){ + historybayarantable(data); + + $.ajax({ + method:'get', + url: api_url + '/api/gadai/norujukan/'+histid, + success:function(gadai){ + rekodasal(gadai); + + $.ajax({ + method:'get', + url: api_url + '/api/ansuran/' + "{{ $cawangan_info['kodcaw'] }}" + '/' + histid, + success:function(ansuran){ + rekodansuran(ansuran); + + Swal.close(); + $('#historytebusModal').modal(); + } + }); + } + }); + + } + }); },error: function(xhr, status, error) { var err = eval("(" + xhr.responseText + ")"); alert(xhr.responseText); } }); - $.ajax({ - method: 'get', - url: api_url + '/api/transaction/' + histid, - success: function(data){ - historybayarantable(data); - } - }); - $.ajax({ - method:'get', - url: api_url + '/api/gadai/norujukan/'+histid, - success:function(gadai){ - rekodasal(gadai); - } - }); - $.ajax({ - method:'get', - url: api_url + '/api/ansuran/' + "{{ $cawangan_info['kodcaw'] }}" + '/' + histid, - success:function(ansuran){ - rekodansuran(ansuran); - } - }); } }else if($("input[name='options']:checked").val() == 'sudah_tebus'){ let histid = $('input[name="sudahtebus"]:checked').val(); @@ -873,39 +889,53 @@ text: 'Sila pilih salah satu SAG' }); }else{ + + Swal.fire({ + title: 'Memuatkan...', + allowEscapeKey : false, + allowOutsideClick: false, + didOpen: function () { + Swal.showLoading() + } + }); + $.ajax({ method:'get', url:'{{ route("gadai.history") }}', data:{ "norujukan" : histid}, success:function(data){ - $('#historytebusModal').modal(); historytebustable(data); + + $.ajax({ + method: 'get', + url: api_url + '/api/transaction/' + histid, + success: function(data){ + historybayarantable(data); + } + }); + $.ajax({ + method:'get', + url:api_url + '/api/gadai/norujukan/'+histid, + success:function(gadai){ + rekodasal(gadai); + } + }); + $.ajax({ + method:'get', + url: api_url + '/api/ansuran/' + "{{ $cawangan_info['kodcaw'] }}" + '/' + histid, + success:function(ansuran){ + rekodansuran(ansuran); + } + }); + + $('#historytebusModal').modal(); + Swal.close(); + },error: function(xhr, status, error) { var err = eval("(" + xhr.responseText + ")"); alert(xhr.responseText); } }); - $.ajax({ - method: 'get', - url: api_url + '/api/transaction/' + histid, - success: function(data){ - historybayarantable(data); - } - }); - $.ajax({ - method:'get', - url:api_url + '/api/gadai/norujukan/'+histid, - success:function(gadai){ - rekodasal(gadai); - } - }); - $.ajax({ - method:'get', - url: api_url + '/api/ansuran/' + "{{ $cawangan_info['kodcaw'] }}" + '/' + histid, - success:function(ansuran){ - rekodansuran(ansuran); - } - }); } } } diff --git a/resources/views/khazanah/alirantunai.blade.php b/resources/views/khazanah/alirantunai.blade.php index 44da7f9..09f54bf 100644 --- a/resources/views/khazanah/alirantunai.blade.php +++ b/resources/views/khazanah/alirantunai.blade.php @@ -272,6 +272,13 @@