fix(permohona/so):perbaikan resedule dan revisi paparan
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -477,7 +477,7 @@ Route::middleware(['auth'])->group(function () {
|
||||
Route::get('/', [PenilaianController::class, 'index'])->name('index');
|
||||
Route::get('{id}/assignment', [PenilaianController::class, 'assignment'])->name('assignment');
|
||||
Route::put('{id}', [PenilaianController::class, 'update'])->name('update');
|
||||
Route::put('revisi/{nomor_registrasi}', [PenilaianController::class, 'revisi'])->name('revisi');
|
||||
Route::put('revisi/{id}', [PenilaianController::class, 'revisiLaporan'])->name('revisi');
|
||||
Route::post('create', [PenilaianController::class, 'create'])->name('create');
|
||||
Route::post('store', [PenilaianController::class, 'store'])->name('store');
|
||||
Route::post('storePenilaiLaporan', [PenilaianController::class, 'storePenilaiLaporan'])->name('storePenilaiLaporan');
|
||||
|
||||
Reference in New Issue
Block a user