| | |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MesWmMaterialStockApi } from '#/api/mes/wm/materialstock'; |
| | | import type { MesWmProductReceiptApi } from '#/api/mes/wm/productreceipt'; |
| | |
| | | class: '!w-full', |
| | | format: 'YYYY-MM-DD', |
| | | placeholder: '请选择入库日期', |
| | | valueFormat: 'x', |
| | | valueFormat: 'YYYY-MM-DD', |
| | | }, |
| | | rules: 'required', |
| | | }, |
| | |
| | | component: markRaw(ProWorkOrderSelect), |
| | | componentProps: { |
| | | status: MesProWorkOrderStatusEnum.CONFIRMED, |
| | | checkMethod: (row: any) => row.productionStatus !== 0, |
| | | }, |
| | | }, |
| | | { |
| | |
| | | }, |
| | | }, |
| | | { |
| | | field: 'feedbackId', |
| | | title: '来源', |
| | | width: 100, |
| | | slots: { default: 'source' }, |
| | | }, |
| | | { |
| | | title: '操作', |
| | | width: 240, |
| | | fixed: 'right', |
| | |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'qualityStatus', |
| | | title: '质量状态', |
| | | width: 100, |
| | | cellRender: { |
| | | name: 'CellDict', |
| | | props: { type: DICT_TYPE.MES_WM_QUALITY_STATUS }, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'batchCode', |
| | | title: '批次号', |
| | | minWidth: 120, |
| | | }, |
| | | ...(stockable |
| | | ? [ |
| | | { |
| | | field: 'isStock', |
| | | title: '是否入库', |
| | | width: 100, |
| | | slots: { default: 'isStock' }, |
| | | } as const, |
| | | ] |
| | | : []), |
| | | ...(editable || stockable |
| | | ? [ |
| | | { |