| | |
| | | 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 = [ |
| | |
| | | }, |
| | | }, |
| | | { |
| | | component: "ApiSelect", |
| | | fieldName: "warehouseId", |
| | | label: "默认仓库", |
| | | component: 'Input', |
| | | fieldName: 'warehouseId', |
| | | label: '默认仓库', |
| | | componentProps: { |
| | | placeholder: "请选择默认仓库", |
| | | allowClear: true, |
| | | api: getWarehouseSimpleList, |
| | | labelField: "name", |
| | | valueField: "id", |
| | | placeholder: '请输入默认仓库ID', |
| | | }, |
| | | }, |
| | | { |
| | |
| | | }, |
| | | }, |
| | | { |
| | | component: "Switch", |
| | | fieldName: "isBatchManaged", |
| | | label: "批次管理", |
| | | component: 'Switch', |
| | | fieldName: 'isBatchManaged', |
| | | label: '批次管理', |
| | | defaultValue: true, |
| | | componentProps: { |
| | | class: "w-auto", |
| | | checkedChildren: "是", |