schangxiang@126.com
2025-04-29 27ba504441037666e787ded85b4af2f65be65c17
HIAWms/web/src/widgets/HIAWms/Views/Pages/WmsMaterial/Config.ts
@@ -5,12 +5,79 @@
    title: '序号',
  },
  {
    field: 'name',
    title: '名称',
    field: 'materialCode',
    title: '物料编码',
  },
  {
    field: 'code',
    title: '编号',
    field: 'materialName',
    title: '物料名称',
  },
  {
    field: 'purchaseType',
    title: '采购类型',
    formatter: ({ cellValue }) => {
      // You'll need to map the enum values to display text
      const purchaseTypeMap = {
        0: '类型1',
        1: '类型2',
        // Add all enum values
      }
      return purchaseTypeMap[cellValue] || cellValue
    },
  },
  {
    field: 'materialType',
    title: '物料类型',
    formatter: ({ cellValue }) => {
      // Map material type enum to display text
      const materialTypeMap = {
        0: '类型A',
        1: '类型B',
        // Add all enum values
      }
      return materialTypeMap[cellValue] || cellValue
    },
  },
  {
    field: 'primaryUnit',
    title: '主单位',
  },
  {
    field: 'standard',
    title: '规格/标准',
  },
  {
    field: 'outerDiameter',
    title: '外径(mm)',
  },
  {
    field: 'wallThickness',
    title: '壁厚(mm)',
  },
  {
    field: 'materialQuality',
    title: '材质',
  },
  {
    field: 'length',
    title: '长度(m)',
  },
  {
    field: 'isMainBranch',
    title: '主支管',
    formatter: ({ cellValue }) => (cellValue ? '是' : '否'),
  },
  {
    field: 'factory',
    title: '生产工厂',
  },
  {
    field: 'certification',
    title: '证书编号',
  },
  {
    field: 'sort',
    title: '排序',
  },
  {
    field: 'remark',