你的发现是正确的 ✅

## 情况说明

后端API **已经实现**，但还在PR中等待合并：
- **PR**: https://github.com/martinyyang/fetch-china/pull/177
- **分支**: `agent/agent/1f5291c1`
- **状态**: OPEN（未合并到main）
- **提交**: 6bb7b09

这就是为什么你在当前分支找不到这个端点。

## 📋 推荐方案：先用Mock数据开发

不要等待PR合并，可以立即开始前端开发。使用以下mock数据：

### API响应格式

```typescript
interface OrderHistoryResponse {
  order_id: string
  total: number
  limit: number
  offset: number
  history: OrderHistoryItem[]
}

interface OrderHistoryItem {
  id: string
  action_type: string
  description: string
  actor: {
    id: string
    email: string
    role: string
  }
  extra_data: Record<string, any> | null
  created_at: string  // ISO 8601
}
```

### Mock数据示例

```javascript
// frontend/src/services/order.js 中临时使用
async getOrderHistory(orderId, limit = 50, offset = 0) {
  // TODO: 等PR #177合并后替换为真实API
  // return api.get(`/orders/${orderId}/history`, { params: { limit, offset } })
  
  // 临时mock数据
  return {
    data: {
      order_id: orderId,
      total: 5,
      limit: 50,
      offset: 0,
      history: [
        {
          id: "1",
          action_type: "propose_price_change",
          description: "合伙人提出价格调整：¥100.00 → ¥120.00",
          actor: {
            id: "partner-1",
            email: "partner@example.com",
            role: "PARTNER"
          },
          extra_data: {
            old_price_cny: 100.0,
            new_price_cny: 120.0,
            reason: "商品实际价格上涨"
          },
          created_at: "2026-05-23T10:30:00Z"
        },
        {
          id: "2",
          action_type: "confirm_price_change",
          description: "用户确认价格调整：¥100.00 → ¥120.00",
          actor: {
            id: "user-1",
            email: "user@example.com",
            role: "CUSTOMER"
          },
          extra_data: {
            old_price_cny: 100.0,
            new_price_cny: 120.0
          },
          created_at: "2026-05-23T11:00:00Z"
        },
        {
          id: "3",
          action_type: "upload_receiving_photo",
          description: "采购凭证上传成功 by partner@example.com",
          actor: {
            id: "partner-1",
            email: "partner@example.com",
            role: "PARTNER"
          },
          extra_data: {
            image_url: "https://example.com/photo.jpg",
            photo_type: "receiving"
          },
          created_at: "2026-05-23T12:00:00Z"
        }
      ]
    }
  }
}
```

## 🚀 开发步骤

1. **现在开始**：使用上面的mock数据实现前端组件
2. **完成UI**：实现时间线、分页、错误处理等所有功能
3. **等待PR合并**：关注PR #177的合并状态
4. **切换真实API**：PR合并后，删除mock代码，启用真实API调用

## 📝 注意事项

- 在代码中添加 `TODO` 注释标记mock部分
- 确保TypeScript类型定义与后端响应格式一致
- UI实现完成后，切换到真实API应该只需要改一行代码

这样可以并行工作，不会阻塞你的开发进度。PR合并后集成会非常简单。

可以开始了吗？
