| | |
| | | }, |
| | | }, |
| | | { |
| | | component: 'InputNumber', |
| | | fieldName: 'sort', |
| | | label: '排序', |
| | | defaultValue: 0, |
| | | componentProps: { min: 0, max: 2147483647, precision: 0, placeholder: '数值越小越靠前' }, |
| | | }, |
| | | { |
| | | component: "Input", |
| | | fieldName: "code", |
| | | label: "物料编码", |
| | |
| | | }, |
| | | }, |
| | | { |
| | | component: 'Switch', |
| | | fieldName: 'syncMes', |
| | | label: '同步到MES', |
| | | defaultValue: true, |
| | | componentProps: { |
| | | checkedChildren: '是', |
| | | unCheckedChildren: '否', |
| | | }, |
| | | rules: z.boolean().default(true), |
| | | }, |
| | | { |
| | | component: "RadioGroup", |
| | | fieldName: "status", |
| | | label: "状态", |
| | |
| | | export function useGridColumns(): VxeTableGridOptions["columns"] { |
| | | return [ |
| | | { type: "checkbox", width: 40 }, |
| | | { field: 'sort', title: '排序', width: 80 }, |
| | | { |
| | | field: "code", |
| | | title: "物料编码", |
| | |
| | | { |
| | | field: "syncedMes", |
| | | title: "同步状态", |
| | | width: 90, |
| | | width: 100, |
| | | fixed: "right", |
| | | slots: { default: "syncedMes" }, |
| | | }, |