filter ออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-26 09:25:43 +07:00
parent 86d81c7066
commit 77a930ed78
5 changed files with 24 additions and 546 deletions

View file

@ -207,9 +207,9 @@ const OrderTypeFilter = async () => {
};
//
const OrderStatus = ref<string>("");
const OrderStatus = ref<string>("ทั้งหมด");
const OrderStatusOption = reactive<DataOption1[]>([
{ id: "", name: "ทั้งหมด" },
{ id: "ทั้งหมด", name: "ทั้งหมด" },
]);
const addedOrderStatusValues: string[] = [];
const OrderStatusFilter = async () => {
@ -245,13 +245,6 @@ const resetFilter = () => {
const attrs = ref<any>(useAttrs());
const searchFilterTable = async () => {
if (OrderType.value == "ทั้งหมด") {
OrderType.value = "";
}
if (OrderStatus.value == "ทั้งหมด") {
OrderStatus.value = "";
}
// filter
await DataStore.DataUpdateOrder(
OrderType.value,
@ -355,7 +348,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
map-options
option-label="name"
:options="OrderTypeOption"
option-value="name"
option-value="id"
lazy-rules
hide-bottom-space
:readonly="false"
@ -365,7 +358,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
@update:model-value="searchFilterTable"
/>
</div>
<div class="col-xs-12 col-sm-3 col-md-2">
<div class="col-xs-12 col-sm-3 col-md-3">
<q-select
v-model="OrderStatus"
label="สถานะ"
@ -517,4 +510,4 @@ const paginationLabel = (start: string, end: string, total: string) => {
top: 0;
}
}
</style>
</style>