แก้ฟิลเตอร์ระบบ บรรจุ
This commit is contained in:
parent
a15efd7b45
commit
b8f336d2ba
7 changed files with 88 additions and 23 deletions
|
|
@ -26,6 +26,7 @@ const router = useRouter();
|
|||
const rows = ref<AppointMainRows[]>([]);
|
||||
const rowsData = ref<AppointMainRows[]>([]);
|
||||
const rowsOrder = ref<AppointMainRows[]>([]);
|
||||
const rowsOrderData = ref<AppointMainRows[]>([]);
|
||||
|
||||
const filterKeyword = ref<string>("");
|
||||
const filterKeywordOrder = ref<string>("");
|
||||
|
|
@ -153,14 +154,17 @@ function convertText(val: string) {
|
|||
|
||||
function onSendOrder() {
|
||||
modalOrder.value = true;
|
||||
rowsOrder.value = rows.value.filter(
|
||||
const listData = rows.value.filter(
|
||||
(item: AppointMainRows) => item.status == "PENDING"
|
||||
);
|
||||
rowsOrder.value = listData;
|
||||
rowsOrderData.value = listData;
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
modalOrder.value = false;
|
||||
rowsOrder.value = [];
|
||||
rowsOrderData.value = [];
|
||||
}
|
||||
|
||||
function onSearch() {
|
||||
|
|
@ -313,6 +317,7 @@ onMounted(async () => {
|
|||
v-model:modal="modalOrder"
|
||||
:close-modal="closeModal"
|
||||
v-model:rows="rowsOrder"
|
||||
v-model:rowsData="rowsOrderData"
|
||||
v-model:filter-keyword="filterKeywordOrder"
|
||||
:get-data="getData"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue