This commit is contained in:
1 parent
0efcfa45b8
commit
1e4dc4201c
7 files changed
+172
-729
No files matched your search
@@ -265,8 +265,7 @@
|
||||
<th>No. DO</th>
|
||||
<th>Sacks</th>
|
||||
<th>Boxes</th>
|
||||
<th>Expected</th>
|
||||
<th>Net</th>
|
||||
<th>DO Sacks / Boxes</th>
|
||||
<th>Start Time</th>
|
||||
<th>End Time</th>
|
||||
<th>Duration (Min)</th>
|
||||
@@ -274,7 +273,7 @@
|
||||
</thead>
|
||||
<tbody id="batchesTableBody">
|
||||
<tr>
|
||||
<td colspan="10" class="no-data">
|
||||
<td colspan="9" class="no-data">
|
||||
<i class="fa-solid fa-arrow-left"></i>
|
||||
Silakan pilih tanggal dari daftar sebelah kiri untuk memuat detail batch.
|
||||
</td>
|
||||
@@ -358,7 +357,7 @@
|
||||
const tableBody = document.getElementById('batchesTableBody');
|
||||
tableBody.innerHTML = `
|
||||
<tr>
|
||||
<td colspan="10" class="no-data">
|
||||
<td colspan="9" class="no-data">
|
||||
<i class="fa-solid fa-circle-notch fa-spin"></i>
|
||||
Memuat data batch untuk tanggal ${date}...
|
||||
</td>
|
||||
@@ -384,7 +383,7 @@
|
||||
if (!data.batches || data.batches.length === 0) {
|
||||
tableBody.innerHTML = `
|
||||
<tr>
|
||||
<td colspan="10" class="no-data">
|
||||
<td colspan="9" class="no-data">
|
||||
<i class="fa-solid fa-inbox"></i>
|
||||
Tidak ada batch tercatat pada tanggal ${date}.
|
||||
</td>
|
||||
@@ -401,7 +400,6 @@
|
||||
const dos = (b.do_numbers || []).join(', ') || '—';
|
||||
const plate = b.plate || '—';
|
||||
const expected = (b.expected_sack || 0) + ' / ' + (b.expected_box || 0);
|
||||
const net = (b.net_sack ?? b.count) + ' / ' + (b.net_box ?? b.box_loading ?? 0);
|
||||
|
||||
tr.innerHTML = `
|
||||
<td style="font-weight: 600; color: var(--accent-blue);">Batch #${b.batch_number}</td>
|
||||
@@ -410,7 +408,6 @@
|
||||
<td style="font-weight: 500;">${b.count.toLocaleString()}</td>
|
||||
<td style="font-weight: 500;">${(b.box_loading || 0).toLocaleString()}</td>
|
||||
<td style="font-size:12px;">${expected}</td>
|
||||
<td style="font-size:12px;">${net}</td>
|
||||
<td>${startStr}</td>
|
||||
<td>${endStr}</td>
|
||||
<td>${b.duration_minutes || 0} min</td>
|
||||
@@ -422,7 +419,7 @@
|
||||
console.error('Failed to load date details:', err);
|
||||
tableBody.innerHTML = `
|
||||
<tr>
|
||||
<td colspan="10" class="no-data" style="color: var(--accent-red);">
|
||||
<td colspan="9" class="no-data" style="color: var(--accent-red);">
|
||||
<i class="fa-solid fa-circle-exclamation"></i>
|
||||
Gagal memuat detail data: ${err.message}
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user