Merge branch 'fixkaunter' of https://gitlab.com/online-sistem1/kaunter into fixkaunter

This commit is contained in:
hafifierahman
2022-04-05 11:33:13 +08:00
@@ -207,17 +207,42 @@
showCancelButton: true, showCancelButton: true,
animation: 'slide-from-top', animation: 'slide-from-top',
inputPlaceholder: 'Sila Pilih Bank', inputPlaceholder: 'Sila Pilih Bank',
allowOutsideClick: false allowOutsideClick: false,
preConfirm: (value) => {
if(!value){
Swal.showValidationMessage(
`Pilih Bank yang dinyatakan`
);
}
}
}).then(function (result) { }).then(function (result) {
if (result) { if (result) {
if (result.isConfirmed) { if (result.isConfirmed) {
let cit = result.value;
Swal.fire({
title: 'Masukkan No Resit',
input: 'text',
animation: 'slide-from-top',
inputPlaceholder: 'No Resit',
allowOutsideClick: false,
preConfirm: (value) => {
if(!value){
Swal.showValidationMessage(
`Masukkan No Resit Di dalam kotak disediakan`
);
}
}
}).then(function (response) {
if(response){
$.ajax({ $.ajax({
method:"put", method:"put",
url: api_url + '/admin/permohonan/tagcit', url: api_url + '/admin/permohonan/tagcit',
data: { data: {
"mohonid" : mid, "mohonid" : mid,
"bank" : result.value "bank" : cit,
"resitcit" : response.value
}, },
success:function(data) success:function(data)
{ {
@@ -225,7 +250,10 @@
Swal.fire('Diterima!', '', 'success') Swal.fire('Diterima!', '', 'success')
} }
}); });
}
});
}else{ }else{
} }