src/views/basicData/mdm/data.ts
@@ -6,7 +6,6 @@
import { z } from '#/adapter/form';
import { getUnitPage } from '#/api/mdm/unit';
import { getWarehouseSimpleList } from '#/api/erp/stock/warehouse';
/** 物料类型选项 */
export const ITEM_TYPE_OPTIONS = [
@@ -154,15 +153,11 @@
      },
    },
    {
      component: 'ApiSelect',
      component: 'Input',
      fieldName: 'warehouseId',
      label: '默认仓库',
      componentProps: {
        placeholder: '请选择默认仓库',
        allowClear: true,
        api: getWarehouseSimpleList,
        labelField: 'name',
        valueField: 'id',
        placeholder: '请输入默认仓库ID',
      },
    },
    {
@@ -243,6 +238,7 @@
      component: 'Switch',
      fieldName: 'isBatchManaged',
      label: '批次管理',
      defaultValue: true,
      componentProps: {
        class: 'w-auto',
        checkedChildren: '是',