gaoluyang
10 天以前 696e85cf6422c703fbba63df097320bd813d9926
src/views/basicData/mdm/data.ts
@@ -4,9 +4,8 @@
import { CommonStatusEnum, DICT_TYPE } from "#/packages/constants/src";
import { getDictOptions } from "#/packages/effects/hooks/src";
import { z } from "#/adapter/form";
import { getUnitPage } from "#/api/mdm/unit";
import { getWarehouseSimpleList } from "#/api/erp/stock/warehouse";
import { z } from '#/adapter/form';
import { getUnitPage } from '#/api/mdm/unit';
/** 物料类型选项 */
export const ITEM_TYPE_OPTIONS = [
@@ -154,15 +153,11 @@
      },
    },
    {
      component: "ApiSelect",
      fieldName: "warehouseId",
      label: "默认仓库",
      component: 'Input',
      fieldName: 'warehouseId',
      label: '默认仓库',
      componentProps: {
        placeholder: "请选择默认仓库",
        allowClear: true,
        api: getWarehouseSimpleList,
        labelField: "name",
        valueField: "id",
        placeholder: '请输入默认仓库ID',
      },
    },
    {
@@ -240,9 +235,10 @@
      },
    },
    {
      component: "Switch",
      fieldName: "isBatchManaged",
      label: "批次管理",
      component: 'Switch',
      fieldName: 'isBatchManaged',
      label: '批次管理',
      defaultValue: true,
      componentProps: {
        class: "w-auto",
        checkedChildren: "是",