Merge branch 'fixkaunter' of https://gitlab.com/online-sistem1/kaunter into fixkaunter
This commit is contained in:
@@ -207,25 +207,53 @@
|
|||||||
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) {
|
||||||
|
|
||||||
$.ajax({
|
let cit = result.value;
|
||||||
method:"put",
|
|
||||||
url: api_url + '/admin/permohonan/tagcit',
|
|
||||||
data: {
|
|
||||||
"mohonid" : mid,
|
|
||||||
"bank" : result.value
|
|
||||||
},
|
|
||||||
success:function(data)
|
|
||||||
{
|
|
||||||
if(data === 1)
|
|
||||||
Swal.fire('Diterima!', '', 'success')
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
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({
|
||||||
|
method:"put",
|
||||||
|
url: api_url + '/admin/permohonan/tagcit',
|
||||||
|
data: {
|
||||||
|
"mohonid" : mid,
|
||||||
|
"bank" : cit,
|
||||||
|
"resitcit" : response.value
|
||||||
|
},
|
||||||
|
success:function(data)
|
||||||
|
{
|
||||||
|
if(data === 1)
|
||||||
|
Swal.fire('Diterima!', '', 'success')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user