{
  "$schema": "https://www.ai-dc.ai/developer/schemas/aidc-ui.schema.json",
  "aidcUi": "1.0",
  "title": "经营总览",
  "body": [
    {
      "type": "PageHeader",
      "title": "经营总览",
      "description": "Demo Company · 2026 年 10 月 · 数据截至今天 08:00",
      "actions": [
        {
          "label": "查看异常",
          "name": "anomalies.open"
        },
        {
          "label": "导出",
          "name": "report.export",
          "style": "secondary"
        }
      ]
    },
    {
      "type": "Chips",
      "name": "period",
      "value": "month",
      "options": [
        {
          "value": "month",
          "label": "本月"
        },
        {
          "value": "quarter",
          "label": "本季"
        },
        {
          "value": "year",
          "label": "今年"
        }
      ]
    },
    {
      "type": "Stats",
      "items": [
        {
          "label": "收入",
          "value": "¥1,286",
          "unit": "万",
          "delta": "+8.2%",
          "tone": "good",
          "hint": "比 9 月同期",
          "trend": [
            880,
            910,
            1020,
            760,
            940,
            1010,
            1080,
            1120,
            1060,
            1150,
            1190,
            1286
          ]
        },
        {
          "label": "毛利率",
          "value": "23.4",
          "unit": "%",
          "delta": "-1.6 个点",
          "tone": "bad",
          "hint": "原料涨价",
          "trend": [
            25.8,
            25.1,
            25.6,
            24.9,
            25.2,
            25,
            24.6,
            24.8,
            24.3,
            24.1,
            25,
            23.4
          ]
        },
        {
          "label": "回款",
          "value": "¥942",
          "unit": "万",
          "delta": "+3.1%",
          "tone": "good",
          "hint": "回款率 73%",
          "trend": [
            610,
            680,
            820,
            590,
            700,
            760,
            810,
            850,
            820,
            880,
            914,
            942
          ]
        },
        {
          "label": "准时交付",
          "value": "96.2",
          "unit": "%",
          "delta": "+0.8 个点",
          "tone": "good",
          "hint": "目标 95%",
          "trend": [
            93.1,
            94,
            94.4,
            92.8,
            94.9,
            95.2,
            95,
            95.6,
            95.1,
            95.8,
            95.4,
            96.2
          ]
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "收入趋势",
          "description": "近 12 个月 · 万元",
          "children": [
            {
              "type": "Chart",
              "kind": "area",
              "labels": [
                "11月",
                "12月",
                "1月",
                "2月",
                "3月",
                "4月",
                "5月",
                "6月",
                "7月",
                "8月",
                "9月",
                "10月"
              ],
              "series": [
                {
                  "name": "收入",
                  "values": [
                    880,
                    910,
                    1020,
                    760,
                    940,
                    1010,
                    1080,
                    1120,
                    1060,
                    1150,
                    1190,
                    1286
                  ]
                }
              ],
              "unit": "万",
              "summary": "近 12 个月收入从 880 万涨到 1,286 万"
            }
          ]
        },
        {
          "type": "Card",
          "title": "各产品线毛利率",
          "description": "本月 · 目标 25%",
          "children": [
            {
              "type": "Chart",
              "kind": "bar",
              "labels": [
                "功能面料",
                "家纺",
                "工装",
                "辅料",
                "定制"
              ],
              "series": [
                {
                  "name": "毛利率",
                  "values": [
                    27.1,
                    24.5,
                    21.8,
                    18.9,
                    26.4
                  ]
                }
              ],
              "unit": "%",
              "highlight": 3,
              "summary": "辅料毛利率 18.9%，五条产品线里最低"
            }
          ]
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "要处理的事",
          "description": "3 件",
          "children": [
            {
              "type": "List",
              "items": [
                {
                  "title": "辅料毛利率连续 2 个月低于 20%",
                  "subtitle": "主要原因：涤纶长丝涨价 12%",
                  "badge": {
                    "text": "要你决定",
                    "tone": "signal"
                  },
                  "actions": [
                    {
                      "label": "看原因",
                      "name": "anomaly.open",
                      "payload": {
                        "id": "A-17"
                      }
                    }
                  ]
                },
                {
                  "title": "Demo Customer C 逾期 ¥86 万",
                  "subtitle": "超过账期 32 天",
                  "badge": {
                    "text": "逾期",
                    "tone": "bad"
                  },
                  "actions": [
                    {
                      "label": "催收",
                      "name": "collect.start",
                      "payload": {
                        "customer": "cell-demo-c"
                      }
                    }
                  ]
                },
                {
                  "title": "二号线产能利用率 71%",
                  "subtitle": "比计划低 12 个点",
                  "badge": {
                    "text": "关注",
                    "tone": "warning"
                  },
                  "actions": [
                    {
                      "label": "看产线",
                      "name": "line.open",
                      "payload": {
                        "line": "L2"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "Card",
          "title": "最近的变化",
          "children": [
            {
              "type": "Timeline",
              "items": [
                {
                  "time": "今天 08:12",
                  "title": "9 月关账完成",
                  "who": {
                    "name": "财务智能体",
                    "kind": "agent"
                  },
                  "tone": "good"
                },
                {
                  "time": "昨天 17:40",
                  "title": "Demo Customer E 签了年度订单 ¥320 万",
                  "who": {
                    "name": "陈静",
                    "kind": "person"
                  },
                  "tone": "good"
                },
                {
                  "time": "昨天 10:05",
                  "title": "涤纶长丝报价上调 12%",
                  "detail": "已比价 3 家",
                  "who": {
                    "name": "采购智能体",
                    "kind": "agent"
                  },
                  "tone": "warning"
                },
                {
                  "time": "10-09",
                  "title": "二号线计划停机 6 小时（换型）"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
