[fix] perbaikan input select + font qr code

This commit is contained in:
dhilanradya 2025-10-22 11:04:53 +07:00
parent b186e7ca23
commit d55399ed55
3 changed files with 17 additions and 15 deletions

View File

@ -102,7 +102,7 @@ const printBarcode = () => {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.5mm; gap: 0.5mm;
font-size: 5pt; font-size: 8pt;
line-height: 1.2; line-height: 1.2;
} }
@ -116,12 +116,12 @@ const printBarcode = () => {
} }
.item-name { .item-name {
font-size: 6pt; font-size: 8pt;
line-height: 1.1; line-height: 1.1;
white-space: normal; white-space: normal;
word-wrap: break-word; word-wrap: break-word;
position: absolute; position: absolute;
width: 36mm; width: 34mm;
text-align: center; text-align: center;
transform: rotate(270deg); transform: rotate(270deg);
transform-origin: center; transform-origin: center;

View File

@ -255,7 +255,7 @@ const fetchSales = async () => {
headers: { Authorization: `Bearer ${localStorage.getItem("token")}` } headers: { Authorization: `Bearer ${localStorage.getItem("token")}` }
}) })
salesOptions.value = res.data.map(s => ({ value: s.id, label: s.nama })) salesOptions.value = res.data.map(s => ({ value: s.id, label: s.nama }))
if (salesOptions.value.length > 0) selectedSales.value = salesOptions.value[0].value selectedSales.value = ''
} catch (e) { } catch (e) {
console.error('Error fetching sales:', e) console.error('Error fetching sales:', e)
} }

View File

@ -3,17 +3,19 @@
<div class="p-6"> <div class="p-6">
<p class="font-serif italic text-[25px] text-D">NAMPAN</p> <p class="font-serif italic text-[25px] text-D">NAMPAN</p>
<div class="flex flex-col gap-3 justify-end w-full sm:w-auto my-3"> <div class="w-full flex justify-end">
<Searchbar v-model:search="searchQuery" /> <div class="flex flex-col gap-3 justify-between w-full md:w-75 my-3">
<div class="flex w-full gap-2" v-if="isAdmin"> <Searchbar v-model:search="searchQuery" />
<button @click="openModal" class="px-4 py-2 sm:px-2 sm:py-1 hover:bg-B bg-C rounded-md shadow w-full"> <div class="flex w-full gap-2" v-if="isAdmin">
Tambah Nampan <button @click="openModal" class="px-4 py-2 sm:px-2 sm:py-1 hover:bg-B bg-C rounded-md shadow w-full">
</button> Tambah Nampan
<button @click="promptEmptyAllTrays" </button>
class="px-4 py-2 sm:px-2 sm:py-1 bg-red-500 hover:bg-red-600 text-white rounded-md w-full"> <button @click="promptEmptyAllTrays"
Kosongkan Semua Nampan class="px-4 py-2 sm:px-2 sm:py-1 bg-red-500 hover:bg-red-600 text-white rounded-md w-full">
</button> Kosongkan Semua Nampan
</div> </button>
</div>
</div>
</div> </div>
</div> </div>