Compare commits

..

No commits in common. "b78a396a51e97295fe8fab6ee536f1fc0cc0486b" and "e67fb10e37462027e2248553a6efc2c26da0b4b9" have entirely different histories.

View File

@ -49,33 +49,23 @@
</div> </div>
<!-- Isi Card (Max tinggi 3 item + scroll kalau lebih) --> <!-- Isi Card (Max tinggi 3 item + scroll kalau lebih) -->
<div <div v-if="tray.items && tray.items.length" class="space-y-2 flex-1 overflow-y-auto h-[160px] pr-1">
v-if="tray.items && tray.items.length" <div v-for="item in tray.items" :key="item.id"
class="space-y-2 flex-1 overflow-y-auto max-h-[168px] pr-1" class="flex justify-between items-center border border-C rounded-lg p-2 cursor-pointer hover:bg-gray-50"
> @click="openMovePopup(item)">
<div <div class="flex items-center gap-3">
v-for="item in tray.items" <img v-if="item.produk.foto && item.produk.foto.length > 0" :src="item.produk.foto[0].url"
:key="item.id" alt="foto produk" class="size-12 object-cover rounded" />
class="flex justify-between items-center border border-C rounded-lg p-2 cursor-pointer hover:bg-gray-50" <div class="text-D">
@click="openMovePopup(item)" <p class="text-sm">{{ item.produk.nama }}</p>
> <p class="text-sm font-medium">{{ item.kode_item }}</p>
<div class="flex items-center gap-3"> </div>
<img </div>
v-if="item.produk.foto && item.produk.foto.length > 0" <div class="flex items-center gap-2">
:src="item.produk.foto[0].url" <span class="font-medium">{{ item.produk.berat }}g</span>
alt="foto produk" </div>
class="size-12 object-cover rounded" </div>
/> </div>
<div class="text-D">
<p class="text-sm">{{ item.produk.nama }}</p>
<p class="text-sm font-medium">{{ item.kode_item }}</p>
</div>
</div>
<div class="flex items-center gap-2">
<span class="font-medium">{{ item.produk.berat }}g</span>
</div>
</div>
</div>
<!-- Kalau kosong --> <!-- Kalau kosong -->
<div v-else class="text-gray-400 text-center py-4 flex-1"> <div v-else class="text-gray-400 text-center py-4 flex-1">