Merge pull request 'feature/senior-officer' (#118) from feature/senior-officer into staging
Reviewed-on: #118
This commit is contained in:
@@ -267,7 +267,7 @@
|
||||
}).then((rejectResult) => {
|
||||
if (rejectResult.isConfirmed) {
|
||||
handleAjaxRequest(
|
||||
`/otorisator/revisi/${dataId}`, {
|
||||
`/otorisator/revisi-laporan/${dataId}`, {
|
||||
keterangan: rejectResult.value
|
||||
},
|
||||
'Data berhasil ditolak.',
|
||||
|
||||
@@ -326,7 +326,14 @@
|
||||
const noReg = element.getAttribute('data-no-reg');
|
||||
const debitur = element.getAttribute('data-debitur');
|
||||
const waktuPenilaian = element.getAttribute('data-waktu-penilaian');
|
||||
const rejectedNote = JSON.parse(element.getAttribute('data-rejected-note'));
|
||||
let rejectedNote = element.getAttribute('data-rejected-note');
|
||||
try {
|
||||
rejectedNote = rejectedNote ? JSON.parse(rejectedNote) : null;
|
||||
} catch (e) {
|
||||
console.warn('Failed to parse rejectedNote:', e);
|
||||
rejectedNote = null;
|
||||
}
|
||||
const note = rejectedNote && typeof rejectedNote === 'string' && rejectedNote.trim() ? String(rejectedNote).trim() : '';
|
||||
|
||||
Swal.fire({
|
||||
title: 'Reschedule Jadwal Kunjungan',
|
||||
@@ -354,8 +361,8 @@
|
||||
class="block w-full px-4 py-2 border border-gray-300 rounded-lg shadow-sm focus:ring-blue-500 focus:border-blue-500 sm:text-sm"
|
||||
placeholder="Masukkan alasan reschedule..."></textarea>
|
||||
</div>
|
||||
${rejectedNote && rejectedNote.trim() ? `
|
||||
<p class="text-gray-700"><strong>Catatan Reject:</strong> ${rejectedNote}</p>
|
||||
${note ? `
|
||||
<p class="text-gray-700"><strong>Catatan Reject:</strong> ${note}</p>
|
||||
` : ''}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -527,7 +527,7 @@ Route::middleware(['auth'])->group(function () {
|
||||
);
|
||||
|
||||
Route::post('otorisator/{id}/{context}', [PenilaianController::class, 'otorisatorUpdate'])->name('otorisator.update');
|
||||
Route::post('revisi/{id}', [PenilaianController::class, 'revisiLaporan'])->name('otorisator.revisi');
|
||||
Route::post('revisi-laporan/{id}', [PenilaianController::class, 'revisiLaporan'])->name('otorisator.revisi');
|
||||
|
||||
Route::get('pembatalan', [PenilaianController::class, 'otorisator'])->name('pembatalan.index')->defaults(
|
||||
'type',
|
||||
|
||||
Reference in New Issue
Block a user