filter OrderType,OrderStatus

This commit is contained in:
AnandaTon 2023-06-30 17:26:51 +07:00
parent bd7db2ad8e
commit a0437a8a66
3 changed files with 25 additions and 24 deletions

View file

@ -584,8 +584,8 @@ const fiscalYearFilter = async () => {
}
};
const OrderType = ref<string | null>(null);
const OrderTypeOption = reactive<DataOption[]>([{ id: 0, name: "ทั้งหมด" }]);
const OrderType = ref<string>("");
const OrderTypeOption = reactive<DataOption[]>([{ id: "", name: "ทั้งหมด" }]);
const addedOrderTypeValues: string[] = [];
const OrderTypeFilter = async () => {
// API
@ -623,11 +623,11 @@ const OrderTypeFilter = async () => {
// }
}
};
const OrderStatus = ref<string | null>(null);
const OrderStatus = ref<string>("");
const OrderStatusText = ref<FormOrderPlacementMainData[]>(
DataStore.DataMainOrigOrder
);
const OrderStatusOption = reactive<DataOption[]>([{ id: 0, name: "ทั้งหมด" }]);
const OrderStatusOption = reactive<DataOption[]>([{ id: "", name: "ทั้งหมด" }]);
const addedOrderStatusValues: string[] = [];
const OrderStatusFilter = async () => {
// API