# Order Management Specification

## ADDED Requirements

### Requirement: Order Voucher Upload Feedback

The system SHALL make the payment voucher upload state explicit during order creation and MUST prevent submission until the upload finishes.

#### Scenario: Submit button reflects voucher upload in progress

- **GIVEN** 用户正在创建线下支付订单
- **AND** 用户已经选择支付凭证图片
- **WHEN** 前端正在获取上传地址或正在上传图片文件
- **THEN** 提交按钮 MUST 显示 `图片上传中...`
- **AND** 提交按钮 MUST 被禁用，或以其他方式阻止创建订单请求发出

#### Scenario: Submit button returns to normal after upload completes

- **GIVEN** 用户正在创建线下支付订单
- **WHEN** 支付凭证上传成功完成
- **THEN** 系统 MUST 保存返回的 `payment_voucher_key`
- **AND** 提交按钮 MUST 恢复为 `提交`
- **AND** 用户 MAY 继续提交订单

#### Scenario: Upload failure or removal clears pending submit state

- **GIVEN** 用户正在创建线下支付订单
- **WHEN** 支付凭证上传失败，或用户移除了已选择的支付凭证
- **THEN** 系统 MUST 清理失效的凭证状态
- **AND** 上传中状态 MUST 结束
- **AND** 系统 MUST 保持订单未提交
