| | |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import { z } from '#/adapter/form'; |
| | | import { getSimpleUserListByRoleCode } from '#/api/system/user'; |
| | | import type { MesProTaskApi } from '#/api/mes/pro/task'; |
| | | import type { MesProWorkOrderApi } from '#/api/mes/pro/workorder'; |
| | | |
| | |
| | | width: 80, |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: '订单状态', |
| | | width: 100, |
| | | cellRender: { |
| | | name: 'CellDict', |
| | | props: { type: DICT_TYPE.MES_PRO_WORK_ORDER_STATUS }, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'productionStatus', |
| | | title: '生产状态', |
| | | width: 100, |
| | | cellRender: { |
| | | name: 'CellDict', |
| | | props: { type: DICT_TYPE.ORDER_PRODUCTION_STATUS }, |
| | | }, |
| | | }, |
| | | { |
| | | field: 'quantity', |
| | | title: '订单数量', |
| | | width: 100, |
| | | }, |
| | | { |
| | | field: 'quantityChanged', |
| | | title: '调整数量', |
| | | width: 100, |
| | | }, |
| | | // { |
| | | // field: 'quantityChanged', |
| | | // title: '调整数量', |
| | | // width: 100, |
| | | // }, |
| | | { |
| | | field: 'quantityProduced', |
| | | title: '已生产数量', |
| | |
| | | width: 120, |
| | | formatter: 'formatDate', |
| | | }, |
| | | { |
| | | field: 'status', |
| | | title: '排产状态', |
| | | width: 100, |
| | | cellRender: { |
| | | name: 'CellDict', |
| | | props: { type: DICT_TYPE.MES_PRO_WORK_ORDER_STATUS }, |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | title: '操作', |
| | | width: 160, |
| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'assigneeUserIds', |
| | | label: '报工人', |
| | | component: 'ApiSelect', |
| | | componentProps: { |
| | | placeholder: '请选择报工人', |
| | | api: getSimpleUserListByRoleCode, |
| | | params: { code: 'production_submit_work' }, |
| | | labelField: 'nickname', |
| | | valueField: 'id', |
| | | mode: 'multiple', |
| | | }, |
| | | rules: z.array(z.number()).min(1, '请选择报工人').default([]), |
| | | }, |
| | | { |
| | | fieldName: 'remark', |
| | | label: '备注', |
| | | component: 'Textarea', |