| | |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MesProFeedbackApi } from '#/api/mes/pro/feedback'; |
| | | import type { MesProTaskApi } from '#/api/mes/pro/task'; |
| | |
| | | taskId: undefined, |
| | | unitMeasureName: undefined, |
| | | workstationId: undefined, |
| | | reportableQuantity: undefined, |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | routeId: task.routeId, |
| | | unitMeasureName: task.unitMeasureName, |
| | | workstationId: task.workstationId, |
| | | reportableQuantity: task.reportableQuantity, |
| | | }); |
| | | // 工艺路线工序的 checkFlag 决定数量区域展示 |
| | | if (task.routeId && task.processId) { |
| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'reportableQuantity', |
| | | label: '可报工数量', |
| | | component: 'InputNumber', |
| | | componentProps: { |
| | | class: 'w-full', |
| | | disabled: true, |
| | | precision: 2, |
| | | }, |
| | | dependencies: { |
| | | triggerFields: ['taskId'], |
| | | show: (values) => !!values.taskId && ['create', 'update'].includes(formType), |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'feedbackQuantity', |
| | | label: '报工数量', |
| | | component: 'InputNumber', |