mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
fix: 修复订单管理页店铺选择筛选不生效的问题
This commit is contained in:
@@ -224,14 +224,16 @@ const gridOptions: VxeGridProps<any> = {
|
||||
loading.value = true;
|
||||
// 从表单获取搜索参数
|
||||
const searchParams = form || {};
|
||||
// 合并表单值和本地状态
|
||||
const filters = {
|
||||
platformOrderNo: searchParams.platformOrderNo || searchForm.value.platformOrderNo || undefined,
|
||||
shopId: searchParams.shopId ?? searchForm.value.shopId,
|
||||
statusId: searchParams.statusId ?? searchForm.value.statusId,
|
||||
};
|
||||
const params: PageQueryDTO<OrderDTO.Filters> = {
|
||||
page: page.currentPage,
|
||||
pageSize: page.pageSize,
|
||||
filters: {
|
||||
platformOrderNo: searchParams.platformOrderNo || undefined,
|
||||
shopId: searchParams.shopId,
|
||||
statusId: searchParams.statusId,
|
||||
},
|
||||
filters,
|
||||
};
|
||||
// 处理排序参数
|
||||
if (currentSort.value) {
|
||||
@@ -279,7 +281,10 @@ const formOptions = computed(() => ({
|
||||
filterOption: false,
|
||||
onSearch: handleShopSearch,
|
||||
onPopupScroll: handleShopPopupScroll,
|
||||
onChange: () => gridApi?.reload(),
|
||||
onChange: (val: any) => {
|
||||
searchForm.value.shopId = val;
|
||||
gridApi?.reload();
|
||||
},
|
||||
loading: shopLoading,
|
||||
dropdownMenuColumnStyle: { maxHeight: '300px', overflow: 'auto' },
|
||||
},
|
||||
@@ -292,7 +297,10 @@ const formOptions = computed(() => ({
|
||||
placeholder: '请选择状态',
|
||||
options: orderStatusOptions,
|
||||
allowClear: true,
|
||||
onChange: () => gridApi?.reload(),
|
||||
onChange: (val: any) => {
|
||||
searchForm.value.statusId = val;
|
||||
gridApi?.reload();
|
||||
},
|
||||
},
|
||||
fieldName: 'statusId',
|
||||
label: '订单状态',
|
||||
|
||||
Reference in New Issue
Block a user