diff --git a/src/views/miniapp/order/AppOrder.data.ts b/src/views/miniapp/order/AppOrder.data.ts index 18d8360..4ba3e0e 100644 --- a/src/views/miniapp/order/AppOrder.data.ts +++ b/src/views/miniapp/order/AppOrder.data.ts @@ -4,6 +4,7 @@ import { rules } from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; import { JVxeTypes, JVxeColumn } from '/@/components/jeecg/JVxeTable/types'; import { getWeekMonthQuarterYear } from '/@/utils'; +import {allProductCagegoryList} from "@/views/miniapp/productCategory/AppCategory.api"; //列表数据 export const columns: BasicColumn[] = [ { @@ -41,6 +42,11 @@ export const columns: BasicColumn[] = [ align: 'center', dataIndex: 'productName', }, + { + title: '产品类别', + align: 'center', + dataIndex: 'productType', + }, { title: '产品服务年限', align: 'center', @@ -140,6 +146,18 @@ export const searchFormSchema: FormSchema[] = [ field: 'productName', component: 'JInput', }, + { + label: '产品类别', + field: 'productType', + component: 'ApiSelect', + componentProps: { + api: allProductCagegoryList, + numberToString: true, + labelField: 'categoryName', + valueField: 'categoryName', + immediate: false, + }, + }, { label: '经销商', field: 'storeName', diff --git a/src/views/miniapp/product/AppProduct.data.ts b/src/views/miniapp/product/AppProduct.data.ts index 248370e..44afbd5 100644 --- a/src/views/miniapp/product/AppProduct.data.ts +++ b/src/views/miniapp/product/AppProduct.data.ts @@ -66,7 +66,6 @@ export const formSchema: FormSchema[] = [ field: 'categoryId', component: 'ApiSelect', componentProps: { - mode: 'multiple', api: allProductCagegoryList, numberToString: true, labelField: 'categoryName',