{
  "$schema": "https://www.ai-dc.ai/developer/schemas/aidc-ui.schema.json",
  "aidcUi": "1.0",
  "title": "生产看板",
  "body": [
    {
      "type": "PageHeader",
      "title": "生产看板",
      "description": "一号厂 · 白班 · 10-11",
      "actions": [
        {
          "label": "开始工单",
          "name": "wo.start"
        }
      ]
    },
    {
      "type": "Alert",
      "tone": "warning",
      "title": "二号线停机 12 分钟：卷布张力报警",
      "description": "设备智能体已经通知维修，预计 10:40 恢复。WO-2207 可能晚 30 分钟。",
      "action": {
        "label": "看详情",
        "name": "line.open",
        "payload": {
          "line": "L2"
        }
      }
    },
    {
      "type": "Stats",
      "items": [
        {
          "label": "今日计划",
          "value": 8,
          "unit": "单",
          "hint": "共 9,600 米"
        },
        {
          "label": "已完成",
          "value": 3,
          "unit": "单",
          "hint": "3,400 米"
        },
        {
          "label": "良率",
          "value": "98.4",
          "unit": "%",
          "delta": "+0.3 个点",
          "tone": "good"
        },
        {
          "label": "停机",
          "value": 12,
          "unit": "分钟",
          "delta": "+12 分钟",
          "tone": "bad",
          "hint": "二号线"
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "产线进度",
          "description": "按今日计划",
          "children": [
            {
              "type": "Progress",
              "label": "一号线 · 功能面料",
              "value": 86,
              "meta": "86%",
              "tone": "good"
            },
            {
              "type": "Progress",
              "label": "二号线 · 家纺",
              "value": 41,
              "meta": "41% · 停机中",
              "tone": "bad"
            },
            {
              "type": "Progress",
              "label": "三号线 · 工装",
              "value": 73,
              "meta": "73%"
            }
          ]
        },
        {
          "type": "Card",
          "title": "今日良率",
          "description": "每小时 · %",
          "children": [
            {
              "type": "Chart",
              "kind": "line",
              "labels": [
                "08:00",
                "09:00",
                "10:00",
                "11:00",
                "12:00",
                "13:00",
                "14:00"
              ],
              "series": [
                {
                  "name": "良率",
                  "values": [
                    97.8,
                    98.1,
                    98.6,
                    98.2,
                    98.5,
                    98.3,
                    98.4
                  ]
                }
              ],
              "unit": "%",
              "summary": "今日良率在 97.8% 到 98.6% 之间"
            }
          ]
        }
      ]
    },
    {
      "type": "Kanban",
      "columns": [
        {
          "title": "待开工",
          "items": [
            {
              "title": "WO-2209 功能面料 1,200 米",
              "who": {
                "name": "周洋",
                "kind": "person"
              },
              "meta": "11:30"
            },
            {
              "title": "WO-2210 工装 800 米",
              "who": {
                "name": "孙婷",
                "kind": "person"
              },
              "meta": "13:00"
            }
          ]
        },
        {
          "title": "进行中",
          "items": [
            {
              "title": "WO-2205 功能面料 1,600 米",
              "who": {
                "name": "周洋",
                "kind": "person"
              },
              "badge": {
                "text": "82%",
                "tone": "neutral"
              }
            },
            {
              "title": "WO-2206 工装 1,000 米",
              "who": {
                "name": "孙婷",
                "kind": "person"
              },
              "badge": {
                "text": "64%",
                "tone": "neutral"
              }
            }
          ]
        },
        {
          "title": "阻塞",
          "items": [
            {
              "title": "WO-2207 家纺 1,400 米",
              "who": {
                "name": "设备智能体",
                "kind": "agent"
              },
              "badge": {
                "text": "停机",
                "tone": "bad"
              }
            }
          ]
        },
        {
          "title": "已完成",
          "items": [
            {
              "title": "WO-2201 功能面料 1,200 米",
              "badge": {
                "text": "良率 98.9%",
                "tone": "good"
              }
            },
            {
              "title": "WO-2202 家纺 1,000 米",
              "badge": {
                "text": "良率 97.6%",
                "tone": "good"
              }
            },
            {
              "title": "WO-2203 工装 1,200 米",
              "badge": {
                "text": "良率 98.5%",
                "tone": "good"
              }
            }
          ]
        }
      ]
    }
  ]
}
