fix(wms): 对齐商品分类树筛选查询
parent
4821d49017
commit
a70fcc9616
|
|
@ -92,14 +92,6 @@ export function useFormSchema(formApi?: any): VbenFormSchema[] {
|
||||||
/** 列表的搜索表单 */
|
/** 列表的搜索表单 */
|
||||||
export function useGridFormSchema(): VbenFormSchema[] {
|
export function useGridFormSchema(): VbenFormSchema[] {
|
||||||
return [
|
return [
|
||||||
{
|
|
||||||
component: 'Input',
|
|
||||||
fieldName: 'categoryId',
|
|
||||||
dependencies: {
|
|
||||||
triggerFields: [''],
|
|
||||||
show: () => false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
fieldName: 'code',
|
fieldName: 'code',
|
||||||
label: '商品编号',
|
label: '商品编号',
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,9 @@ async function handleExport() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 分类树点击 */
|
/** 分类树点击 */
|
||||||
async function handleCategoryNodeClick(categoryId: number | undefined) {
|
const searchCategoryId = ref<number | undefined>(undefined);
|
||||||
await gridApi.formApi.setValues({ categoryId });
|
function handleCategoryNodeClick(categoryId: number | undefined) {
|
||||||
|
searchCategoryId.value = categoryId;
|
||||||
handleRefresh();
|
handleRefresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -143,6 +144,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||||
pageNo: page.currentPage,
|
pageNo: page.currentPage,
|
||||||
pageSize: page.pageSize,
|
pageSize: page.pageSize,
|
||||||
...formValues,
|
...formValues,
|
||||||
|
categoryId: searchCategoryId.value,
|
||||||
});
|
});
|
||||||
currentRows.value = buildItemSkuRows(data.list || []);
|
currentRows.value = buildItemSkuRows(data.list || []);
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -92,14 +92,6 @@ export function useFormSchema(formApi?: any): VbenFormSchema[] {
|
||||||
/** 列表的搜索表单 */
|
/** 列表的搜索表单 */
|
||||||
export function useGridFormSchema(): VbenFormSchema[] {
|
export function useGridFormSchema(): VbenFormSchema[] {
|
||||||
return [
|
return [
|
||||||
{
|
|
||||||
component: 'Input',
|
|
||||||
fieldName: 'categoryId',
|
|
||||||
dependencies: {
|
|
||||||
triggerFields: [''],
|
|
||||||
show: () => false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
fieldName: 'code',
|
fieldName: 'code',
|
||||||
label: '商品编号',
|
label: '商品编号',
|
||||||
|
|
|
||||||
|
|
@ -88,8 +88,9 @@ async function handleExport() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 分类树点击 */
|
/** 分类树点击 */
|
||||||
async function handleCategoryNodeClick(categoryId: number | undefined) {
|
const searchCategoryId = ref<number | undefined>(undefined);
|
||||||
await gridApi.formApi.setValues({ categoryId });
|
function handleCategoryNodeClick(categoryId: number | undefined) {
|
||||||
|
searchCategoryId.value = categoryId;
|
||||||
handleRefresh();
|
handleRefresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -142,6 +143,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||||
pageNo: page.currentPage,
|
pageNo: page.currentPage,
|
||||||
pageSize: page.pageSize,
|
pageSize: page.pageSize,
|
||||||
...formValues,
|
...formValues,
|
||||||
|
categoryId: searchCategoryId.value,
|
||||||
});
|
});
|
||||||
currentRows.value = buildItemSkuRows(data.list || []);
|
currentRows.value = buildItemSkuRows(data.list || []);
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue