src/views/basicData/mdm/data.ts
@@ -289,6 +289,18 @@
      },
    },
    {
      component: 'InputNumber',
      fieldName: 'leadTime',
      label: '采购提前期(天)',
      componentProps: { class: '!w-full', min: 0, precision: 0, placeholder: '请输入采购提前期' },
    },
    {
      component: 'InputNumber',
      fieldName: 'outsourceLeadTime',
      label: '外协提前期(天)',
      componentProps: { class: '!w-full', min: 0, precision: 0, placeholder: '请输入外协提前期' },
    },
    {
      component: "InputNumber",
      fieldName: "minStock",
      label: "最低库存",
@@ -551,52 +563,46 @@
      title: "单位",
      minWidth: 80,
    },
    {
      field: "unitMeasureName2",
      title: "辅单位1",
      minWidth: 80,
    },
    {
      field: "unitMeasureRate1",
      title: "辅单位1换算比率",
      minWidth: 130,
    },
    {
      field: "unitMeasureName3",
      title: "辅单位2",
      minWidth: 80,
    },
    {
      field: "unitMeasureRate2",
      title: "辅单位2换算比率",
      minWidth: 130,
    },
    // 辅单位1/辅单位1换算比率/辅单位2/辅单位2换算比率:物料列表不再展示(表单里仍可维护),需要恢复就取消注释
    // {
    //   field: "unitMeasureName2",
    //   title: "辅单位1",
    //   minWidth: 80,
    // },
    // {
    //   field: "unitMeasureRate1",
    //   title: "辅单位1换算比率",
    //   minWidth: 130,
    // },
    // {
    //   field: "unitMeasureName3",
    //   title: "辅单位2",
    //   minWidth: 80,
    // },
    // {
    //   field: "unitMeasureRate2",
    //   title: "辅单位2换算比率",
    //   minWidth: 130,
    // },
    {
      field: "warehouseName",
      title: "默认仓库",
      minWidth: 100,
    },
    {
      field: "purchasePrice",
      title: "采购价",
      minWidth: 100,
      formatter: ({ cellValue }) => {
        return cellValue != null ? `¥${Number(cellValue).toFixed(2)}` : "";
      },
    },
    {
      field: "salesPrice",
      title: "销售价",
      minWidth: 100,
      formatter: ({ cellValue }) => {
        return cellValue != null ? `¥${Number(cellValue).toFixed(2)}` : "";
      },
    },
    // 销售价:物料列表不再展示,需要恢复就取消注释
    // {
    //   field: "salesPrice",
    //   title: "销售价",
    //   minWidth: 100,
    //   formatter: ({ cellValue }) => {
    //     return cellValue != null ? `¥${Number(cellValue).toFixed(2)}` : "";
    //   },
    // },
    {
      field: "createTime",
      title: "创建时间",
      minWidth: 180,
      formatter: "formatDateTime",
      formatter: 'formatDate',
    },
    {
      field: "isBatchManaged",