44 lines
1.5 KiB
Vue
Executable File
44 lines
1.5 KiB
Vue
Executable File
<script setup lang="ts">
|
|
import InputWithFilter from '../InputWithFilter.vue';
|
|
import DatePicker from '@/components/DatePicker.vue';
|
|
import InlineRadioGroup from '@/components/Form/InlineRadioGroup.vue';
|
|
import { ref } from 'vue';
|
|
const uidPlaceholder = 'Semua Unit Induk Distribusi/Wilayah';
|
|
const up3Placeholder = 'Semua Unit Pelaksanaan Pelayanan Pelanggan';
|
|
const ulpPlaceholder = 'Semua Unit Layanan Pelanggan';
|
|
const uppp = ref({ id: 0, name: up3Placeholder });
|
|
const uid = ref({ id: 0, name: uidPlaceholder });
|
|
const ulp = ref({ id: 0, name: ulpPlaceholder });
|
|
const emit = defineEmits(['update:filters'])
|
|
const data = ref({
|
|
uid: uid.value,
|
|
up3: uppp.value,
|
|
ulp: ulp.value,
|
|
periode: '',
|
|
group: 1
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
|
|
<div class="flex flex-col flex-1 space-y-2">
|
|
<label class="filter-input-label">Jenis Pengaduan:</label>
|
|
|
|
<InlineRadioGroup :radio-items="[{ id: 1, title: 'Gangguan', checked: true }, { id: 2, title: 'Keluhan' }]" />
|
|
</div>
|
|
|
|
<div class="flex flex-col flex-1 space-y-2">
|
|
<label class="filter-input-label">Cari Report Number:</label>
|
|
|
|
<InputWithFilter placeholder="cari report" :filters="[{ id: 1, title: 'Nama Pelapor' }]" />
|
|
</div>
|
|
|
|
<div class="flex flex-col flex-1 space-y-2">
|
|
<label class="filter-input-label">Periode Tanggal:</label>
|
|
|
|
<DatePicker @update:date-value="(value) => data.periode = value" />
|
|
</div>
|
|
</div>
|
|
|
|
</template>
|