| | |
| | | } |
| | | |
| | | /** 订单工序列表的字段 */ |
| | | export function useProcessGridColumns(): VxeTableGridOptions<MesProWorkOrderProcessApi.WorkOrderProcess>['columns'] { |
| | | export function useProcessGridColumns( |
| | | draggable = false, |
| | | ): VxeTableGridOptions<MesProWorkOrderProcessApi.WorkOrderProcess>['columns'] { |
| | | return [ |
| | | ...(draggable |
| | | ? [ |
| | | { |
| | | field: 'drag', |
| | | title: '', |
| | | width: 40, |
| | | slots: { default: 'dragHandle' }, |
| | | } as const, |
| | | ] |
| | | : []), |
| | | { |
| | | type: 'expand', |
| | | width: 50, |
| | | slots: { content: 'expand_content' }, |
| | | } as const, |
| | | { |
| | | field: 'sort', |
| | | title: '序号', |
| | |
| | | }, |
| | | { |
| | | title: '操作', |
| | | width: 120, |
| | | width: 200, |
| | | fixed: 'right', |
| | | slots: { default: 'actions' }, |
| | | }, |