{
  "name": "feishu_unified_reimbursement_template_draft",
  "version": "0.1.0",
  "updated_at": "2026-06-08",
  "status": "draft_not_created_in_feishu_yet",
  "scope": "new unified reimbursement approval template; old templates remain unchanged",
  "recommended_template_names": {
    "test": "公司统一报销申请（测试）",
    "production": "公司统一报销申请"
  },
  "do_not_modify_existing_templates": true,
  "old_reimbursement_templates_kept_as_legacy": [
    "点绛报销专用",
    "云汉寻真报销专用",
    "万物有灵公共账报销专用",
    "万物有灵相关项目组报销专用"
  ],
  "test_flow": {
    "approver": {
      "name": "钱丽云",
      "user_id": "d4dadg34",
      "open_id": "ou_1a05bfd489b0bb436d92f2f415281860"
    },
    "handler": {
      "name": "钱丽云",
      "user_id": "d4dadg34",
      "open_id": "ou_1a05bfd489b0bb436d92f2f415281860"
    },
    "cc": []
  },
  "fields": [
    {
      "key": "owner_subject",
      "label": "公司主体",
      "control": "radioV2",
      "required": true,
      "system_mapping": "owner_subject_id",
      "options": ["万物有灵", "云汉寻真", "点绛", "秘色破茧", "其他/待确认"]
    },
    {
      "key": "owner_project",
      "label": "归属项目/公共账",
      "control": "radioV2_or_select",
      "required": true,
      "system_mapping": "project_id",
      "options": ["公共经营/公共账", "AIGC组", "电商业务", "国博业务", "良渚业务", "产品开发/打样", "行政/办公", "其他/待确认"]
    },
    {
      "key": "applicant",
      "label": "报销人",
      "control": "contact_or_user",
      "required": true,
      "default": "submitter",
      "system_mapping": "applicant_subject_id"
    },
    {
      "key": "payee",
      "label": "收款人",
      "control": "contact_or_text",
      "required": true,
      "default": "applicant",
      "system_mapping": "payee_subject_id"
    },
    {
      "key": "expense_date",
      "label": "发生日期",
      "control": "date",
      "required": true,
      "system_mapping": "items[].expense_date",
      "known_create_api_format": "YYYY-MM-DDT00:00:00+08:00"
    },
    {
      "key": "expense_type",
      "label": "报销类型",
      "control": "radioV2",
      "required": true,
      "system_mapping": "items[].expense_category_id",
      "options": ["日常采买", "差旅费", "住宿费", "交通费", "招待费", "团建费", "通讯费", "软件/会员/订阅", "办公设备", "样品/打样/产品开发", "服务费", "其他"]
    },
    {
      "key": "amount",
      "label": "报销金额",
      "control": "amount_or_number",
      "required": true,
      "system_mapping": "total_amount"
    },
    {
      "key": "description",
      "label": "报销内容",
      "control": "textarea",
      "required": true,
      "system_mapping": "items[].description"
    },
    {
      "key": "line_items",
      "label": "明细说明",
      "control": "fieldList_or_textarea",
      "required": false,
      "system_mapping": "items[]"
    },
    {
      "key": "external_refs",
      "label": "订单号/交易号",
      "control": "input",
      "required": false,
      "system_mapping": "external_refs[]"
    },
    {
      "key": "invoice_status",
      "label": "发票状态",
      "control": "radioV2",
      "required": true,
      "system_mapping": "items[].invoice_status",
      "options": ["有发票", "暂无发票，后续补票", "无发票，进入个人账/内部核销", "不需要发票", "待确认"]
    },
    {
      "key": "invoice_type",
      "label": "发票类型",
      "control": "radioV2",
      "required": false,
      "system_mapping": "invoice.type",
      "options": ["数电票", "普票", "专票", "无", "待确认"]
    },
    {
      "key": "invoice_no",
      "label": "发票号码",
      "control": "input",
      "required": false,
      "system_mapping": "invoice.invoice_no"
    },
    {
      "key": "invoice_amount",
      "label": "发票金额",
      "control": "amount_or_number",
      "required": false,
      "system_mapping": "invoice.amount_total"
    },
    {
      "key": "attachments",
      "label": "附件",
      "control": "attachmentV2",
      "required": true,
      "system_mapping": "attachments[]",
      "create_api_note": "Upload approval attachment first, then bind returned file code array."
    },
    {
      "key": "payment_plan",
      "label": "付款/报销方式",
      "control": "radioV2",
      "required": true,
      "system_mapping": "payment_plan",
      "options": ["审批通过后打款", "先进入公司个人账", "已由公司账户支付，仅补资料", "暂不打款，仅登记", "待确认"]
    },
    {
      "key": "payee_account_note",
      "label": "收款账户说明",
      "control": "input_or_textarea",
      "required": "conditional_when_payment_needed",
      "system_mapping": "payee_account_note",
      "security_note": "Avoid exposing full bank account in general dashboard; store securely or redact where possible."
    },
    {
      "key": "remark",
      "label": "备注",
      "control": "textarea",
      "required": false,
      "system_mapping": "remark"
    }
  ],
  "backend_mapping_rules": [
    "description maps to reimbursement_item.description and is the primary reimbursement content field.",
    "remark is whole-order remark and must not replace item description.",
    "owner_subject + owner_project resolve subject/project; do not infer department from project.",
    "approval approved does not mean paid; payment status is updated by fund transaction or reimbursement payment flow.",
    "attachments should enter source-file/audit chain and be visible from dashboard source modal."
  ],
  "next_steps": [
    "Confirm field list and options with user.",
    "Create new Feishu test template only; do not alter legacy templates.",
    "Map new approval_code after template creation.",
    "Run one test approval routed only to 钱丽云.",
    "Wire backend approval start/callback to unified mapping after template is stable."
  ]
}
