Merge branch 'production' of https://git.abbauf.com/Magang-2025/Kasir into production

This commit is contained in:
timotiabbauftech 2025-09-02 17:14:42 +07:00
commit 26e1ee751e
3 changed files with 28 additions and 28 deletions

View File

@ -10,7 +10,7 @@
<div v-else class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4"> <div v-else class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">
<div v-for="tray in filteredTrays" :key="tray.id" <div v-for="tray in filteredTrays" :key="tray.id"
class="border rounded-lg p-4 shadow-sm hover:shadow-md transition"> class="border border-C rounded-lg p-4 shadow-sm hover:shadow-md transition">
<div class="flex justify-between items-center mb-3"> <div class="flex justify-between items-center mb-3">
<h2 class="font-bold text-lg" style="color: #102C57;">{{ tray.nama }}</h2> <h2 class="font-bold text-lg" style="color: #102C57;">{{ tray.nama }}</h2>
<div class="flex gap-2"> <div class="flex gap-2">
@ -24,7 +24,7 @@
</div> </div>
<div v-if="tray.items && tray.items.length > 0" class="space-y-2 max-h-64 overflow-y-auto pr-2"> <div v-if="tray.items && tray.items.length > 0" class="space-y-2 max-h-64 overflow-y-auto pr-2">
<div v-for="item in tray.items" :key="item.id" class="flex justify-between items-center border rounded-lg p-2" <div v-for="item in tray.items" :key="item.id" class="flex justify-between items-center border border-C rounded-lg p-2"
@click="openMovePopup(item)"> @click="openMovePopup(item)">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">

View File

@ -57,11 +57,11 @@
@click.self="closeOverlay" @click.self="closeOverlay"
> >
<div <div
class="bg-white rounded-lg shadow-lg p-6 w-[450px] border-2 border-[#e6d3b3] relative flex flex-col items-center" class="bg-white rounded-lg shadow-lg p-6 w-[450px] border-2 border-B relative flex flex-col items-center"
> >
<!-- Foto Produk --> <!-- Foto Produk -->
<div <div
class="relative w-72 h-72 border border-[#e6d3b3] flex items-center justify-center mb-3 overflow-hidden rounded" class="relative w-72 h-72 border border-B flex items-center justify-center mb-3 overflow-hidden rounded"
> >
<img <img
v-if="detail.foto && detail.foto.length > 0" v-if="detail.foto && detail.foto.length > 0"

View File

@ -1,6 +1,6 @@
<template> <template>
<mainLayout> <mainLayout>
<!-- Header --> <!-- Header -->
<div class="mb-4"> <div class="mb-4">
<!-- Judul --> <!-- Judul -->
@ -18,15 +18,15 @@
<!-- Tombol --> <!-- Tombol -->
<div class="flex gap-2 mt-3 justify-end"> <div class="flex gap-2 mt-3 justify-end">
<!-- Tambah Nampan --> <!-- Tambah Nampan -->
<button <button
@click="openModal" @click="openModal"
class="px-4 py-2 hover:bg-B bg-C rounded-md shadow font-semibold" > class="px-4 py-2 hover:bg-B bg-C rounded-md shadow font-semibold" >
Tambah Nampan Tambah Nampan
</button> </button>
<!-- Kosongkan --> <!-- Kosongkan -->
<button <button
@click="openConfirmModal" @click="openConfirmModal"
class="px-3 py-2 bg-red-500 hover:bg-red-600 text-white rounded-md"> class="px-3 py-2 bg-red-500 hover:bg-red-600 text-white rounded-md">
Kosongkan Kosongkan
</button> </button>
@ -36,35 +36,35 @@
<!-- Search + List --> <!-- Search + List -->
<TrayList :search="searchQuery" @edit="editTray" @delete="deleteTray"/> <TrayList :search="searchQuery" @edit="editTray" @delete="deleteTray"/>
<!-- Modal Tambah/Edit Nampan --> <!-- Modal Tambah/Edit Nampan -->
<div <div
v-if="showModal" v-if="showModal"
class="fixed inset-0 bg-black bg-opacity-40 flex justify-center items-center z-50" class="fixed inset-0 bg-black/75 flex justify-center items-center z-50"
> >
<div class="bg-white rounded-lg shadow-lg p-6 w-96"> <div class="bg-white rounded-lg shadow-lg p-6 w-96">
<h2 class="text-lg font-semibold mb-4" style="color: #102C57;">Tambah Nampan</h2> <h2 class="text-lg font-semibold mb-4" style="color: #102C57;">Tambah Nampan</h2>
<label class="block mb-2 text-sm font-medium" style="color: #102C57;">Nama Nampan</label> <label class="block mb-2 text-sm font-medium" style="color: #102C57;">Nama Nampan</label>
<input <input
v-model="trayName" v-model="trayName"
type="text" type="text"
placeholder="Contoh: A4" placeholder="Contoh: A4"
class="w-full border rounded-md p-2 mb-4" class="w-full border rounded-md p-2 mb-4"
/> />
<div class="flex justify-end gap-2"> <div class="flex justify-end gap-2">
<button <button
@click="closeModal" @click="closeModal"
class="px-4 py-2 bg-gray-400 hover:bg-gray-500 text-white rounded-md"> class="px-4 py-2 bg-gray-400 hover:bg-gray-500 text-white rounded-md">
Cancel Cancel
</button> </button>
<button <button
@click="saveTray" @click="saveTray"
class="px-4 py-2 bg-[#DAC0A3] hover:bg-[#C9A77E] rounded-md" class="px-4 py-2 bg-[#DAC0A3] hover:bg-[#C9A77E] rounded-md"
style="color: #102C57;"> style="color: #102C57;">
Save Save
</button> </button>
@ -73,8 +73,8 @@
</div> </div>
<!-- Modal Konfirmasi Kosongkan --> <!-- Modal Konfirmasi Kosongkan -->
<div <div
v-if="showConfirmModal" v-if="showConfirmModal"
class="fixed inset-0 bg-black bg-opacity-40 flex justify-center items-center z-50" class="fixed inset-0 bg-black bg-opacity-40 flex justify-center items-center z-50"
> >
<div class="bg-white rounded-lg shadow-lg p-6 w-96 text-center"> <div class="bg-white rounded-lg shadow-lg p-6 w-96 text-center">
@ -84,13 +84,13 @@
Masuk ke menu Brankas untuk mengembalikan item ke nampan. Masuk ke menu Brankas untuk mengembalikan item ke nampan.
</p> </p>
<div class="flex justify-center gap-4"> <div class="flex justify-center gap-4">
<button <button
@click="closeConfirmModal" @click="closeConfirmModal"
class="px-5 py-2 bg-gray-300 hover:bg-gray-400 rounded-md font-semibold"> class="px-5 py-2 bg-gray-300 hover:bg-gray-400 rounded-md font-semibold">
Batal Batal
</button> </button>
<button <button
@click="confirmEmptyTray" @click="confirmEmptyTray"
class="px-5 py-2 bg-red-500 hover:bg-red-600 text-white rounded-md font-semibold"> class="px-5 py-2 bg-red-500 hover:bg-red-600 text-white rounded-md font-semibold">
Ya Ya
</button> </button>