| | |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MdmItemModelApi } from '#/api/mdm/item-model'; |
| | | import type { MesMdItemApi } from '#/api/mes/md/item'; |
| | | import type { MdmItemApi } from '#/api/mdm/item'; |
| | | import type { MesWmArrivalNoticeApi } from '#/api/mes/wm/arrivalnotice'; |
| | | import type { MesWmArrivalNoticeLineApi } from '#/api/mes/wm/arrivalnotice/line'; |
| | | import type { MesWmItemReceiptApi } from '#/api/mes/wm/itemreceipt'; |
| | |
| | | import { getItemModelListByItem } from '#/api/mdm/item-model'; |
| | | import { generateAutoCode } from '#/api/mes/md/autocode/record'; |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | | import { MdItemSelect } from '#/views/mes/md/item/components'; |
| | | import { MdmItemSelect } from '#/views/basicData/mdm/components'; |
| | | import { SrmSupplierSelect } from '#/views/srm/supplier/components'; |
| | | import { |
| | | WmArrivalNoticeLineSelect, |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '物料', |
| | | component: markRaw(MdItemSelect), |
| | | component: markRaw(MdmItemSelect), |
| | | componentProps: { |
| | | placeholder: '请选择物料', |
| | | // 切换物料后,型号、录入单位与数量都要重新选 |
| | | onChange: (item?: MesMdItemApi.Item) => handleItemChange(item?.id), |
| | | onChange: (item?: MdmItemApi.Item) => handleItemChange(item?.id), |
| | | }, |
| | | rules: 'selectRequired', |
| | | dependencies: { |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '物料', |
| | | component: markRaw(MdItemSelect), |
| | | component: markRaw(MdmItemSelect), |
| | | componentProps: { |
| | | disabled: true, |
| | | }, |