wangxinhui
2026-03-13 8dc2427e1c5e5e349bce2d72759034c406eb0848
ÏîÄ¿´úÂë/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue
@@ -86,7 +86,9 @@
              </div>
              <div v-else-if="item.type == 'tag'">
                <el-tag size="small">
                <el-tag
                  size="small"
                  :type="getTagType(scoped.row, item)">
                  {{ getDictionary(scoped.row, item) }}
                </el-tag>
              </div>
@@ -412,6 +414,18 @@
        }
      }
    },
    getTagType(row, column) {
      // æ ¹æ®è®¢å•状态返回对应的标签类型
      const status = row[column.prop];
      if (status === 3) { // ç¼ºæ–™
        return 'danger'; // çº¢è‰²
      } else if (status === 0) { // æœªå¼€å§‹
        return 'success'; // ç»¿è‰²
      } else if (status === 1) { // å‡ºåº“中
        return 'primary'; // è“è‰²
      }
      return ''; // é»˜è®¤æ— é¢œè‰²
    },
  },
};
</script>