| | |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VbenFormApi, VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MesProWorkOrderApi } from '#/api/mes/pro/workorder'; |
| | | import type { MesWmMaterialStockApi } from '#/api/mes/wm/materialstock'; |
| | |
| | | }, |
| | | { |
| | | fieldName: 'workOrderId', |
| | | label: '外协工单', |
| | | label: '外协订单', |
| | | component: markRaw(ProWorkOrderSelect), |
| | | componentProps: { |
| | | // 选择外协工单后,自动回填供应商 |
| | | // 选择外协订单后,自动回填供应商 |
| | | onChange: async (workOrder?: MesProWorkOrderApi.WorkOrder) => { |
| | | await formApi?.setFieldValue('vendorId', workOrder?.vendorId); |
| | | }, |
| | |
| | | }, |
| | | { |
| | | field: 'workOrderCode', |
| | | title: '生产工单号', |
| | | title: '生产订单号', |
| | | minWidth: 140, |
| | | }, |
| | | { |