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

View file

@ -364,7 +364,7 @@ const search = ref<string>("");
const expanded = ref<string[]>([]);
const selected = ref<string>("");
const nodesTree = ref<treeTab[]>([]);
const send = ref<String[]>([]);
const selectedModal = ref([]);
const filterModal = ref<string>("");
const visibleColumnsModal = ref<String[]>(["no", "idcard", "name"]);
@ -467,7 +467,6 @@ const pagination = ref({
page: 1,
rowsPerPage: 10,
});
const optionSelect = ref<any>([
{ id: 1, name: "อีเมล" },
{ id: 2, name: "กล่องข้อความ" },