gaoluyang
5 天以前 a342672f32352c1337b8977c25c101725fccedd5
src/views/erp/stock/stock/data.ts
@@ -1,8 +1,10 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { getProductSimpleList } from '#/api/erp/product/product';
import { markRaw } from 'vue';
import { getWarehouseSimpleList } from '#/api/erp/stock/warehouse';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
/** 搜索表单 */
export function useGridFormSchema(): VbenFormSchema[] {
@@ -10,14 +12,9 @@
    {
      fieldName: 'productId',
      label: '产品',
      component: 'ApiSelect',
      component: markRaw(MdmItemSelect),
      componentProps: {
        placeholder: '请选择产品',
        allowClear: true,
        showSearch: true,
        api: getProductSimpleList,
        labelField: 'name',
        valueField: 'id',
      },
    },
    {