liu
8 天以前 70b7935fc261cd5e8eaaf1cfbc8078b04db576d2
src/views/basicData/mdm/data.ts
@@ -93,6 +93,13 @@
      },
    },
    {
      component: 'InputNumber',
      fieldName: 'sort',
      label: '排序',
      defaultValue: 0,
      componentProps: { min: 0, max: 2147483647, precision: 0, placeholder: '数值越小越靠前' },
    },
    {
      component: "Input",
      fieldName: "code",
      label: "物料编码",
@@ -333,6 +340,17 @@
      },
    },
    {
      component: 'Switch',
      fieldName: 'syncMes',
      label: '同步到MES',
      defaultValue: true,
      componentProps: {
        checkedChildren: '是',
        unCheckedChildren: '否',
      },
      rules: z.boolean().default(true),
    },
    {
      component: "RadioGroup",
      fieldName: "status",
      label: "状态",
@@ -514,6 +532,7 @@
export function useGridColumns(): VxeTableGridOptions["columns"] {
  return [
    { type: "checkbox", width: 40 },
    { field: 'sort', title: '排序', width: 80 },
    {
      field: "code",
      title: "物料编码",
@@ -597,7 +616,7 @@
    {
      field: "syncedMes",
      title: "同步状态",
      width: 90,
      width: 100,
      fixed: "right",
      slots: { default: "syncedMes" },
    },