Compare commits
No commits in common. "876c5301b30dff83c48ffdfc4dfdef2325e05f22" and "e80c26ac2ff89e75c4615933e7a0ec8e3237231d" have entirely different histories.
876c5301b3
...
e80c26ac2f
@ -17,7 +17,7 @@
|
|||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
<p class="font-semibold">{{ item.produk.nama }}</p>
|
<p class="font-semibold">{{ item.produk.nama }}</p>
|
||||||
<p class="text-sm text-gray-500">ID: {{ item.id }}</p>
|
<p class="text-sm text-gray-500">ID: {{ item.produk.id }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -57,7 +57,7 @@
|
|||||||
v-model="selectedTrayId"
|
v-model="selectedTrayId"
|
||||||
class="w-full rounded-md border shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
|
class="w-full rounded-md border shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
|
||||||
>
|
>
|
||||||
<option value="" disabled>Brankas</option>
|
|
||||||
<option v-for="tray in trays" :key="tray.id" :value="tray.id">
|
<option v-for="tray in trays" :key="tray.id" :value="tray.id">
|
||||||
{{ tray.nama }}
|
{{ tray.nama }}
|
||||||
</option>
|
</option>
|
||||||
@ -123,14 +123,7 @@ const qrCodeUrl = computed(() => {
|
|||||||
// --- fungsi modal
|
// --- fungsi modal
|
||||||
const openMovePopup = (item) => {
|
const openMovePopup = (item) => {
|
||||||
selectedItem.value = item;
|
selectedItem.value = item;
|
||||||
if (item.id_nampan) {
|
selectedTrayId.value = item.id_nampan;
|
||||||
// ✅ sudah ada di nampan tertentu
|
|
||||||
selectedTrayId.value = item.id_nampan;
|
|
||||||
} else {
|
|
||||||
// 🗄️ kalau belum ada, default ke "Brankas"
|
|
||||||
const brankas = trays.value.find(t => t.nama.toLowerCase() === "brankas");
|
|
||||||
selectedTrayId.value = brankas ? brankas.id : "";
|
|
||||||
}
|
|
||||||
isPopupVisible.value = true;
|
isPopupVisible.value = true;
|
||||||
};
|
};
|
||||||
const closePopup = () => {
|
const closePopup = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user