update pekerjaan lain-lain
This commit is contained in:
@@ -182,23 +182,23 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Pekerjaan</div>
|
||||
@php
|
||||
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||
@endphp
|
||||
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
||||
<select class="form-control" name="pekerjaan" id="pekerjaan">
|
||||
<option disabled selected value> -- Pilih Pekerjaan -- </option>
|
||||
@foreach($pekerjaan as $kerja)
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<div id="pekerjaan-lain-container" style="display: none; margin-top: 10px;">
|
||||
<input type="text" class="form-control" id="pekerjaan-lain" name="nota_pekerjaan" placeholder="Masukkan pekerjaan lain">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">Nota</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="nota" id="nota" placeholder="Nota"></div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="nota" id="nota" placeholder="Nota"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<input type="text" hidden name="idtype" value="nokp">
|
||||
@@ -321,16 +321,17 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Pekerjaan</div>
|
||||
@php
|
||||
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||
@endphp
|
||||
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="pekerjaan">
|
||||
<select class="form-control" name="pekerjaan" id="pekerjaan">
|
||||
<option disabled selected value> -- Pilih Pekerjaan -- </option>
|
||||
@foreach($pekerjaan as $kerja)
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<div id="pekerjaan-lain-container" style="display: none; margin-top: 10px;">
|
||||
<input type="text" class="form-control" id="pekerjaan-lain" name="nota_pekerjaan" placeholder="Masukkan pekerjaan lain">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">Nota</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="nota" id="nota" placeholder="Nota"></div>
|
||||
@@ -446,16 +447,17 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">Pekerjaan</div>
|
||||
@php
|
||||
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||
@endphp
|
||||
|
||||
<div class="col-md-8">
|
||||
<select class="form-control" name="pekerjaan" data-placeholder="Pilih Pekerjaan" id="passport_pekerjaan">
|
||||
<select class="form-control" name="pekerjaan" id="pekerjaan">
|
||||
<option disabled selected value> -- Pilih Pekerjaan -- </option>
|
||||
@foreach($pekerjaan as $kerja)
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
<option value="{{ $kerja['kodkerja'] }}">{{ $kerja['keterangan'] }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<div id="pekerjaan-lain-container" style="display: none; margin-top: 10px;">
|
||||
<input type="text" class="form-control" id="pekerjaan-lain" name="nota_pekerjaan" placeholder="Masukkan pekerjaan lain">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">Nota</div>
|
||||
<div class="col-md-8"><input class="form-control" type="text" name="nota" id="passport_nota" placeholder="Nota"></div>
|
||||
@@ -1281,6 +1283,17 @@
|
||||
</script>
|
||||
<script src="{{ asset('js/searchName.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$('#pekerjaan').on('change', function() {
|
||||
var lainContainer = $('#pekerjaan-lain-container');
|
||||
if ($(this).val() === '6') {
|
||||
lainContainer.show();
|
||||
} else {
|
||||
$('#pekerjaan-lain').val('');
|
||||
lainContainer.hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@push('additional_scripts')
|
||||
<script>
|
||||
// mycard-read endpoint initialization
|
||||
@@ -1293,4 +1306,4 @@
|
||||
<script src="{{ asset('js/postcode-concerns.js') }}"></script>
|
||||
@endpush
|
||||
|
||||
@endsection
|
||||
@endsection
|
||||
|
||||
@@ -334,6 +334,27 @@
|
||||
<span id="errorkodbank" style="color:red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class='form-group row col-md-12'>
|
||||
<div class='col-md-5'>
|
||||
Pekerjaan
|
||||
</div>
|
||||
<div class='col-md-7'>
|
||||
@php
|
||||
$pekerjaan = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/pekerjaan')->json();
|
||||
@endphp
|
||||
<select class="form-control" name="kodkerja" data-placeholder="Pilih Pekerjaan" id="kodkerja" disabled="true">
|
||||
<option value="-" selected disabled>-</option>
|
||||
@foreach($pekerjaan as $kerja)
|
||||
<option value="{{ $kerja['kodkerja'] }}" {{ $kerja['kodkerja'] == $customer_info['kodkerja'] ? 'selected' : '' }}>
|
||||
{{ $kerja['keterangan'] }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<div id="pekerjaan-lain-container" style="display: {{ $customer_info['kodkerja'] == '6' ? 'block' : 'none' }}; margin-top: 10px;" >
|
||||
<input type="text" class="form-control" id="nota_pekerjaan" name="nota_pekerjaan" placeholder="Sila Nyatakan" value="{{ $customer_info['nota_pekerjaan'] ?? '' }}" disabled="true">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='form-group row col-md-12'>
|
||||
<div class='col-md-5'>
|
||||
No Akaun
|
||||
@@ -2506,6 +2527,8 @@
|
||||
$('#telefon').attr('readonly', false);
|
||||
$('#telefon2').attr('readonly', false);
|
||||
$('#kodbank').attr('disabled', false);
|
||||
$('#kodkerja').attr('disabled', false);
|
||||
$('#nota_pekerjaan').attr('disabled', false);
|
||||
$('#noakaun').attr('readonly', false);
|
||||
$('#nota').attr('readonly', false);
|
||||
$('#alamat').attr('readonly', false);
|
||||
@@ -2527,6 +2550,8 @@
|
||||
$('#telefon').attr('readonly', true);
|
||||
$('#telefon2').attr('readonly', true);
|
||||
$('#kodbank').attr('disabled', true);
|
||||
$('#kodkerja').attr('disabled', true);
|
||||
$('#nota_pekerjaan').attr('disabled', true);
|
||||
$('#noakaun').attr('readonly', true);
|
||||
$('#nota').attr('readonly', true);
|
||||
$('#alamat').attr('readonly', true);
|
||||
@@ -2540,6 +2565,8 @@
|
||||
var telefon1 = $('#telefon').val();
|
||||
var telefon2 = $('#telefon2').val();
|
||||
var kodbank = $('#kodbank').val();
|
||||
var kodkerja = $('#kodkerja').val();
|
||||
var nota_pekerjaan = $('#nota_pekerjaan').val();
|
||||
var noakaun = $('#noakaun').val();
|
||||
var nota = $('#nota').val();
|
||||
var alamat = $('#alamat').val();
|
||||
@@ -2553,6 +2580,8 @@
|
||||
"telefon1": telefon1,
|
||||
"telefon2": telefon2,
|
||||
"kodbank":kodbank,
|
||||
"kodkerja":kodkerja,
|
||||
"nota_pekerjaan":nota_pekerjaan,
|
||||
"noakaun":noakaun,
|
||||
'nota':nota,
|
||||
'alamat':alamat,
|
||||
@@ -2637,6 +2666,8 @@
|
||||
$('#telefon2').attr('readonly', true);
|
||||
$('#noakaun').attr('readonly', true);
|
||||
$('#kodbank').attr('disabled', true);
|
||||
$('#kodkerja').attr('disabled', true);
|
||||
$('#nota_pekerjaan').attr('disabled', true);
|
||||
$('#nota').attr('readonly', true);
|
||||
$('#alamat').attr('readonly', true);
|
||||
$('#poskod').attr('readonly', true);
|
||||
@@ -2682,7 +2713,7 @@
|
||||
});
|
||||
|
||||
async function removeansuran(event){
|
||||
|
||||
|
||||
let ansid = $('input[name="belum"]:checked').val();
|
||||
let harini = new Date();harini.setHours(0, 0, 0, 0);
|
||||
|
||||
@@ -2693,7 +2724,7 @@
|
||||
text: 'Ansuran untuk Pembiayaan Belum Selesai Sahaja!'
|
||||
});
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
if(ansid == null && $("input[name='options']:checked").val() == 'belum_tebus'){
|
||||
@@ -2716,7 +2747,7 @@
|
||||
let ansuranlatest = await fetch(api_url + '/admin/ansuran/getLatest?' + queryString)
|
||||
.then(response => response.json())
|
||||
.then(response => {return response});
|
||||
|
||||
|
||||
if(Object.keys(ansuranlatest).length == 0){
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
@@ -2734,9 +2765,9 @@
|
||||
}catch(error){
|
||||
console.error("Error:", error);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2749,7 +2780,7 @@
|
||||
}
|
||||
|
||||
async function getKelulusanKhazanahOperasi(textstatus = 'none',norujukan){
|
||||
|
||||
|
||||
const swalWithBootstrapButtons = Swal.mixin({
|
||||
customClass: {
|
||||
confirmButton: 'btn btn-success',
|
||||
@@ -2816,7 +2847,7 @@
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(response => {return response});
|
||||
|
||||
|
||||
return siricreated;
|
||||
|
||||
}else if (result.dismiss === Swal.DismissReason.cancel){
|
||||
@@ -2910,7 +2941,7 @@
|
||||
}).then(()=>{
|
||||
location.reload();
|
||||
});
|
||||
|
||||
|
||||
|
||||
}catch(error){
|
||||
Swal.fire({
|
||||
@@ -2921,4 +2952,15 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$('#kodkerja').on('change', function() {
|
||||
var lainContainer = $('#pekerjaan-lain-container');
|
||||
if ($(this).val() === '6') {
|
||||
lainContainer.show();
|
||||
} else {
|
||||
$('#pekerjaan-lain').val('');
|
||||
lainContainer.hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user