update
This commit is contained in:
@@ -2376,7 +2376,7 @@
|
||||
<button type="button" id="btnsavedraft" class="btn btn-success pull-right">Save as Draft</button>
|
||||
</div>
|
||||
@if (Session('previlage') == 'supervisor' OR Session('previlage') == 'developer')
|
||||
<div class="col-auto">
|
||||
<div class="col-auto" id="nilai_kritis_wrapper" style="display: none;">
|
||||
<div class="form-check mb-2">
|
||||
<input class="form-check-input" type="checkbox" id="nilai_kritis" name="nilai_kritis">
|
||||
<label class="form-check-label" for="nilai_kritis">
|
||||
@@ -5028,6 +5028,7 @@
|
||||
$("#otheras").val(dataRecord.ppdsas);
|
||||
$("#kave").val(dataRecord.kd_spesimen);
|
||||
$("#mas").val(dataRecord.nm_spesimen);
|
||||
window.syncNilaiKritisVisibility(dataRecord.nm_spesimen);
|
||||
$("#berat").val(dataRecord.berat);
|
||||
$("#klinis").val(dataRecord.klinis);
|
||||
$("#klinisi").html(dataRecord.klinisi);
|
||||
@@ -6039,6 +6040,16 @@
|
||||
$("#btnopenmodalcancel").click(function() {
|
||||
$("#modalpembatalan").modal('show');
|
||||
});
|
||||
window.syncNilaiKritisVisibility = function(spesimen) {
|
||||
var normalized = ((spesimen || '') + '').trim().toUpperCase();
|
||||
var isDarah = normalized.indexOf('DARAH') !== -1;
|
||||
if (isDarah) {
|
||||
$('#nilai_kritis_wrapper').show();
|
||||
} else {
|
||||
$('#nilai_kritis').prop('checked', false);
|
||||
$('#nilai_kritis_wrapper').hide();
|
||||
}
|
||||
}
|
||||
$("#btnshowtemplate").click(function() {
|
||||
$('#divtemplate').show();
|
||||
});
|
||||
|
||||
@@ -112,10 +112,26 @@
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h5 class="card-title mb-0">Riwayat Nilai Kritis Yang Sudah Ditindaklanjuti</h5>
|
||||
<a href="{{ route('criticalValueNotificationExport', ['type' => 'followed']) }}" class="btn btn-success btn-sm">
|
||||
<a href="{{ route('criticalValueNotificationExport', ['type' => 'followed', 'start_date' => $startDate, 'end_date' => $endDate]) }}" class="btn btn-success btn-sm">
|
||||
Export Excel
|
||||
</a>
|
||||
</div>
|
||||
<form method="GET" action="{{ route('criticalValueNotifications') }}" class="mb-3">
|
||||
<div class="form-row align-items-end">
|
||||
<div class="form-group col-md-3">
|
||||
<label for="start_date">Start Date Report</label>
|
||||
<input type="date" id="start_date" name="start_date" class="form-control" value="{{ $startDate }}">
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<label for="end_date">End Date Report</label>
|
||||
<input type="date" id="end_date" name="end_date" class="form-control" value="{{ $endDate }}">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<button type="submit" class="btn btn-primary btn-sm">Tampilkan</button>
|
||||
<a href="{{ route('criticalValueNotifications') }}" class="btn btn-secondary btn-sm">Reset</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@if($followedItems->isEmpty())
|
||||
<div class="alert alert-secondary mb-0">Belum ada riwayat tindak lanjut.</div>
|
||||
@else
|
||||
@@ -131,6 +147,8 @@
|
||||
<th>Spesimen</th>
|
||||
<th>Waktu Set Nilai Kritis</th>
|
||||
<th>Waktu Ditindaklanjuti</th>
|
||||
<th>Selisih Waktu</th>
|
||||
<th>Status TAT</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -155,6 +173,16 @@
|
||||
<br><small>oleh {{ $item->followed_up_by_name }}</small>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $item->tat_duration_label ?? '-' }}</td>
|
||||
<td>
|
||||
@if(($item->tat_status_label ?? '-') === 'Memenuhi TAT')
|
||||
<span class="badge badge-success">{{ $item->tat_status_label }}</span>
|
||||
@elseif(($item->tat_status_label ?? '-') === 'Tidak Memenuhi TAT')
|
||||
<span class="badge badge-danger">{{ $item->tat_status_label }}</span>
|
||||
@else
|
||||
<span class="badge badge-secondary">-</span>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@php
|
||||
$status = $item->follow_up_status ?? '';
|
||||
|
||||
@@ -226,6 +226,7 @@
|
||||
}
|
||||
},
|
||||
{ text: 'Acc.No', datafield: 'nofoto', width: 100, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Order', datafield: 'tlsreques', width: 200, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'No.RM', datafield: 'tlsnoregister', width: 100, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Name', datafield: 'tlsnama', width: 150, cellsalign: 'left', align: 'center' },
|
||||
{ text: 'Gender', datafield: 'tlsjk', filtertype: 'checkedlist', width: 50, cellsalign: 'left', align: 'center' },
|
||||
|
||||
Reference in New Issue
Block a user