{
  "$schema": "https://www.ai-dc.ai/developer/schemas/aidc-ui.schema.json",
  "aidcUi": "1.0",
  "title": "上线进度与费用",
  "body": [
    {
      "type": "PageHeader",
      "title": "上线进度与费用",
      "description": "Demo Company 的智能体在哪运行、上线到哪一步、每月多少钱。数据截至 10 月 13 日。",
      "actions": [
        {
          "label": "导出月报",
          "name": "report.export",
          "style": "secondary"
        }
      ]
    },
    {
      "type": "Stats",
      "items": [
        {
          "label": "已上线",
          "value": 18,
          "unit": "/ 24 个",
          "hint": "6 个下周上线"
        },
        {
          "label": "没人用时",
          "value": "0",
          "unit": "GB",
          "hint": "来消息才叫醒，用完就停"
        },
        {
          "label": "第一条回复多等",
          "value": "3.2",
          "unit": "秒",
          "hint": "醒着的马上回"
        },
        {
          "label": "每月费用",
          "value": "¥4,064",
          "delta": "-42%",
          "tone": "good",
          "hint": "比上线前"
        }
      ]
    },
    {
      "type": "Card",
      "title": "一条消息怎么走",
      "description": "橙色是员工发消息到智能体回复的路径；灰色是只在本机的部分",
      "children": [
        {
          "type": "Diagram",
          "summary": "员工的消息经入口、平台，叫醒智能体，智能体在公司自己的机器上读文件、查业务系统",
          "groups": [
            {
              "label": "公司自己的机器",
              "col": 2,
              "row": 1,
              "cols": 2
            }
          ],
          "nodes": [
            {
              "id": "im",
              "label": "企业 IM",
              "sub": "员工发消息",
              "col": 0,
              "row": 0
            },
            {
              "id": "entry",
              "label": "入口",
              "sub": "一直在线、很小",
              "col": 1,
              "row": 0,
              "tone": "signal"
            },
            {
              "id": "platform",
              "label": "平台",
              "sub": "登记 · 调度",
              "col": 2,
              "row": 0,
              "tone": "signal"
            },
            {
              "id": "agent",
              "label": "智能体",
              "sub": "来消息才起",
              "col": 3,
              "row": 0,
              "tone": "signal"
            },
            {
              "id": "erp",
              "label": "业务系统",
              "sub": "ERP · 仓库",
              "col": 3,
              "row": 1
            },
            {
              "id": "files",
              "label": "文件与脚本",
              "sub": "只在本机",
              "col": 2,
              "row": 1,
              "tone": "muted"
            }
          ],
          "edges": [
            {
              "from": "im",
              "to": "entry",
              "label": "长连接",
              "tone": "signal"
            },
            {
              "from": "entry",
              "to": "platform",
              "label": "规范化",
              "tone": "signal"
            },
            {
              "from": "platform",
              "to": "agent",
              "label": "叫醒",
              "tone": "signal"
            },
            {
              "from": "agent",
              "to": "erp",
              "label": "只读查询"
            },
            {
              "from": "erp",
              "to": "files",
              "label": "导出",
              "dashed": true
            }
          ]
        }
      ]
    },
    {
      "type": "Grid",
      "columns": 2,
      "children": [
        {
          "type": "Card",
          "title": "上线进度",
          "children": [
            {
              "type": "Progress",
              "label": "销售与客服",
              "value": 8,
              "max": 8,
              "tone": "good",
              "meta": "8 / 8"
            },
            {
              "type": "Progress",
              "label": "生产与仓库",
              "value": 7,
              "max": 10,
              "meta": "7 / 10"
            },
            {
              "type": "Progress",
              "label": "财务",
              "value": 3,
              "max": 6,
              "tone": "warning",
              "meta": "3 / 6 · 等数据权限"
            },
            {
              "type": "Timeline",
              "items": [
                {
                  "time": "10-08",
                  "title": "销售与客服全部上线",
                  "tone": "good"
                },
                {
                  "time": "10-15",
                  "title": "生产与仓库剩下 3 个",
                  "tone": "signal",
                  "who": {
                    "name": "上线智能体",
                    "kind": "agent"
                  }
                },
                {
                  "time": "10-22",
                  "title": "财务开通数据权限后上线",
                  "who": {
                    "name": "IT 负责人",
                    "kind": "person"
                  }
                }
              ]
            }
          ]
        },
        {
          "type": "Card",
          "title": "每月费用估算",
          "description": "拖动滑杆看费用怎么变",
          "children": [
            {
              "type": "Estimate",
              "unit": "¥",
              "period": "/ 月",
              "inputs": [
                {
                  "name": "agents",
                  "label": "智能体",
                  "min": 1,
                  "max": 60,
                  "value": 24,
                  "unit": " 个"
                },
                {
                  "name": "machines",
                  "label": "自己的机器",
                  "min": 0,
                  "max": 3,
                  "value": 1,
                  "unit": " 台"
                },
                {
                  "name": "storage",
                  "label": "盘与备份",
                  "min": 20,
                  "max": 500,
                  "step": 10,
                  "value": 120,
                  "unit": " GB"
                }
              ],
              "lines": [
                {
                  "label": "运行（按智能体）",
                  "price": 90,
                  "per": "agents"
                },
                {
                  "label": "自己的机器",
                  "price": 560,
                  "per": "machines"
                },
                {
                  "label": "盘与备份",
                  "price": 1.2,
                  "per": "storage"
                },
                {
                  "label": "入口与平台",
                  "price": 1200
                }
              ],
              "note": "示例单价，换成你们合同里的数。"
            }
          ]
        }
      ]
    },
    {
      "type": "Table",
      "caption": "10 月每一项的账",
      "columns": [
        {
          "key": "item",
          "label": "项"
        },
        {
          "key": "what",
          "label": "放什么"
        },
        {
          "key": "cost",
          "label": "每月（元）",
          "kind": "number"
        }
      ],
      "rows": [
        {
          "item": "运行",
          "what": "24 个智能体，来消息才叫醒",
          "cost": 2160
        },
        {
          "item": "自己的机器",
          "what": "1 台 8 GB：要用本机文件的 6 个智能体",
          "cost": 560
        },
        {
          "item": "盘与备份",
          "what": "120 GB，每天快照",
          "cost": 144
        },
        {
          "item": "入口与平台",
          "what": "机器人连接、登记、调度",
          "cost": 1200
        }
      ],
      "footer": {
        "item": "合计",
        "what": "",
        "cost": 4064
      }
    }
  ]
}
