{
  "$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": "dunning.send"
        }
      ]
    },
    {
      "type": "Stats",
      "items": [
        {
          "label": "应收余额",
          "value": "¥1,862",
          "unit": "万"
        },
        {
          "label": "本月回款",
          "value": "¥942",
          "unit": "万",
          "delta": "+3.1%",
          "tone": "good"
        },
        {
          "label": "逾期",
          "value": "¥214",
          "unit": "万",
          "delta": "+38 万",
          "tone": "bad",
          "hint": "3 家客户"
        },
        {
          "label": "平均回款",
          "value": 48,
          "unit": "天",
          "delta": "-3 天",
          "tone": "good"
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "每月回款",
          "description": "万元",
          "children": [
            {
              "type": "Chart",
              "kind": "bar",
              "labels": [
                "5月",
                "6月",
                "7月",
                "8月",
                "9月",
                "10月"
              ],
              "series": [
                {
                  "name": "回款",
                  "values": [
                    760,
                    810,
                    850,
                    820,
                    914,
                    942
                  ]
                }
              ],
              "unit": "万",
              "summary": "10 月回款 942 万，近 6 个月最高"
            }
          ]
        },
        {
          "type": "Card",
          "title": "账龄",
          "description": "万元",
          "children": [
            {
              "type": "Chart",
              "kind": "donut",
              "labels": [
                "未到期",
                "1–30 天",
                "31–60 天",
                "60 天以上"
              ],
              "series": [
                {
                  "name": "应收",
                  "values": [
                    1408,
                    240,
                    128,
                    86
                  ]
                }
              ],
              "unit": "万",
              "summary": "逾期 60 天以上 86 万"
            }
          ]
        }
      ]
    },
    {
      "type": "Card",
      "title": "逾期客户",
      "children": [
        {
          "type": "Table",
          "columns": [
            {
              "key": "customer",
              "label": "客户"
            },
            {
              "key": "invoice",
              "label": "发票"
            },
            {
              "key": "amount",
              "label": "金额（元）",
              "kind": "number"
            },
            {
              "key": "due",
              "label": "到期日"
            },
            {
              "key": "late",
              "label": "逾期",
              "kind": "badge"
            },
            {
              "key": "owner",
              "label": "负责人",
              "kind": "who"
            }
          ],
          "rows": [
            {
              "customer": "Demo Customer C",
              "invoice": "INV-20260812",
              "amount": 860000,
              "due": "08-31",
              "late": {
                "text": "41 天",
                "tone": "bad"
              },
              "owner": {
                "name": "陈静",
                "kind": "person"
              }
            },
            {
              "customer": "Demo Customer D",
              "invoice": "INV-20260903",
              "amount": 720000,
              "due": "09-15",
              "late": {
                "text": "26 天",
                "tone": "warning"
              },
              "owner": {
                "name": "李强",
                "kind": "person"
              }
            },
            {
              "customer": "Demo Customer F",
              "invoice": "INV-20260910",
              "amount": 560000,
              "due": "09-30",
              "late": {
                "text": "11 天",
                "tone": "warning"
              },
              "owner": {
                "name": "销售智能体",
                "kind": "agent"
              }
            }
          ],
          "footer": {
            "customer": "合计",
            "amount": 2140000
          }
        }
      ]
    },
    {
      "type": "Proposal",
      "kind": "Adis 建议",
      "title": "给 3 家逾期客户发催收提醒",
      "summary": "用上次的模板，按逾期天数分两档措辞。你点确认之前不会发出。",
      "items": [
        {
          "label": "客户",
          "value": "Demo Customer C、D、F"
        },
        {
          "label": "合计",
          "value": "¥2,140,000"
        },
        {
          "label": "渠道",
          "value": "邮件 + 企业微信"
        }
      ],
      "confirm": {
        "label": "确认发送",
        "name": "dunning.confirm"
      },
      "cancel": {
        "label": "先不发",
        "name": "dunning.cancel"
      }
    }
  ]
}
