{
  "$schema": "https://www.ai-dc.ai/developer/schemas/aidc-ui.schema.json",
  "aidcUi": "1.0",
  "title": "差旅与报销",
  "body": [
    {
      "type": "PageHeader",
      "title": "差旅与报销",
      "description": "拍照上传票据，Adis 识别、按制度检查、填好报销单。",
      "actions": [
        {
          "label": "新建报销",
          "name": "expense.create"
        }
      ]
    },
    {
      "type": "Stats",
      "items": [
        {
          "label": "待提交",
          "value": 2,
          "unit": "张"
        },
        {
          "label": "审批中",
          "value": 1,
          "unit": "张"
        },
        {
          "label": "本月已报",
          "value": "¥6,420"
        },
        {
          "label": "预计到账",
          "value": "10-15",
          "hint": "EX-0928"
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "报销单 EX-0932",
          "description": "Adis 已按票据填好，你核对后提交。",
          "children": [
            {
              "type": "Form",
              "name": "expense",
              "fields": [
                {
                  "name": "reason",
                  "label": "事由",
                  "value": "上海客户拜访",
                  "required": true
                },
                {
                  "name": "kind",
                  "label": "类型",
                  "kind": "select",
                  "value": "travel",
                  "options": [
                    {
                      "value": "travel",
                      "label": "差旅"
                    },
                    {
                      "value": "traffic",
                      "label": "交通"
                    },
                    {
                      "value": "meal",
                      "label": "招待"
                    },
                    {
                      "value": "office",
                      "label": "办公"
                    }
                  ]
                },
                {
                  "name": "date",
                  "label": "日期",
                  "kind": "date",
                  "value": "2026-10-08"
                },
                {
                  "name": "amount",
                  "label": "金额（元）",
                  "kind": "number",
                  "value": 2759
                },
                {
                  "name": "note",
                  "label": "说明",
                  "kind": "textarea",
                  "placeholder": "超标的部分写一句原因"
                }
              ],
              "submit": {
                "label": "提交",
                "name": "expense.submit",
                "payload": {
                  "id": "EX-0932"
                }
              },
              "cancel": {
                "label": "存草稿",
                "name": "expense.draft",
                "payload": {
                  "id": "EX-0932"
                }
              }
            }
          ]
        },
        {
          "type": "Card",
          "title": "识别出的票据",
          "description": "4 张 · 合计 ¥2,759",
          "children": [
            {
              "type": "List",
              "items": [
                {
                  "title": "高铁 北京南 → 上海虹桥",
                  "subtitle": "10-08 · 二等座",
                  "meta": "¥553",
                  "badge": {
                    "text": "合规",
                    "tone": "good"
                  }
                },
                {
                  "title": "酒店 上海 2 晚",
                  "subtitle": "10-08 至 10-10",
                  "meta": "¥1,160",
                  "badge": {
                    "text": "超标 ¥160",
                    "tone": "warning"
                  }
                },
                {
                  "title": "出租车 3 张",
                  "subtitle": "10-08 至 10-10",
                  "meta": "¥186",
                  "badge": {
                    "text": "合规",
                    "tone": "good"
                  }
                },
                {
                  "title": "招待餐 Demo Customer B",
                  "subtitle": "4 人",
                  "meta": "¥860",
                  "badge": {
                    "text": "要写说明",
                    "tone": "signal"
                  }
                }
              ]
            },
            {
              "type": "Alert",
              "tone": "warning",
              "title": "酒店超标 ¥160",
              "description": "制度：上海每晚 ¥500。写一句原因，或者超出的部分自己承担。"
            }
          ]
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "我的报销",
          "children": [
            {
              "type": "Table",
              "columns": [
                {
                  "key": "id",
                  "label": "单号"
                },
                {
                  "key": "reason",
                  "label": "事由"
                },
                {
                  "key": "amount",
                  "label": "金额（元）",
                  "kind": "number"
                },
                {
                  "key": "status",
                  "label": "状态",
                  "kind": "badge"
                }
              ],
              "rows": [
                {
                  "id": "EX-0932",
                  "reason": "上海客户拜访",
                  "amount": 2759,
                  "status": {
                    "text": "待提交",
                    "tone": "signal"
                  }
                },
                {
                  "id": "EX-0928",
                  "reason": "9 月市内交通",
                  "amount": 642,
                  "status": {
                    "text": "审批中",
                    "tone": "neutral"
                  }
                },
                {
                  "id": "EX-0915",
                  "reason": "展会物料",
                  "amount": 3018,
                  "status": {
                    "text": "已到账",
                    "tone": "good"
                  }
                }
              ]
            }
          ]
        },
        {
          "type": "Card",
          "title": "审批进度：EX-0928",
          "children": [
            {
              "type": "Timeline",
              "items": [
                {
                  "time": "10-09 18:02",
                  "title": "提交",
                  "who": {
                    "name": "王敏",
                    "kind": "person"
                  }
                },
                {
                  "time": "10-09 18:03",
                  "title": "按制度检查通过",
                  "who": {
                    "name": "财务智能体",
                    "kind": "agent"
                  },
                  "tone": "good"
                },
                {
                  "time": "10-10 09:20",
                  "title": "部门经理批准",
                  "who": {
                    "name": "刘洋",
                    "kind": "person"
                  },
                  "tone": "good"
                },
                {
                  "time": "进行中",
                  "title": "财务复核",
                  "detail": "预计 10-15 到账",
                  "tone": "signal"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
