diff --git a/src/modules/05_command/views/lists.vue b/src/modules/05_command/views/lists.vue index cf0ef852..56d7cb98 100644 --- a/src/modules/05_command/views/lists.vue +++ b/src/modules/05_command/views/lists.vue @@ -59,13 +59,13 @@ const tabs = ref([ }, ]); -const dataCategory = ref([]); //ข้อมูล หมดหมู่ -const categoryOP = ref([]); // options หมดหมู่ +const dataCategory = ref([]); //ข้อมูล หมวดหมู่ +const categoryOP = ref([]); // options หมวดหมู่ const idOrder = ref(""); // Id คำสั่ง const activeOrderId = ref(""); // Id คำสั่งที่เลือก const name = ref(""); // ชื่อคำสั่ง -const category = ref(""); // หมดหมู่ +const category = ref(""); // หมวดหมู่ const listOrder = ref([]); // list คำสั่ง const status = ref(false); // สถานะ const isEdit = ref(false); //เก็บ true/false เช็คแก้ไข @@ -158,6 +158,11 @@ async function fetchOrderType() { }); } +/** + * ฟังก์ชั่นค้นหาข้อมูลใน Select หมวดหมู่ + * @param val คำค้นหา + * @param update ฟังก์ชั่นค้นหา + */ function filterSelector(val: string, update: Function) { update(() => { category.value = val ? "" : category.value;