feat(订单历史): 添加售后退货理由支持

在订单历史模块中,新增了售后退货理由的功能。具体修改包括:
1. 在 `CanteenExtraPriceSetting` 模型中添加 `afterSaleReturnReasons` 字段。
2. 新增 `refundDialog` 组件,用于显示退货理由选择对话框。
3. 在 `OrderHistoryController` 中,更新支付设置时获取并存储退货理由,并在退款时使用。

这些改动旨在为用户提供更详细的退款原因选择,提升用户体验。
This commit is contained in:
dzc committed 2025-05-16 10:36:07 +08:00
1 parent f0a6316c86
commit d03926a1a6
4 files changed
+158 -26

No files matched your search

@@ -222,6 +222,9 @@ class CanteenExtraPriceSetting extends Equatable {
/// 超过的倍数
double payAmountMealTimes;
/// 售后的退货理由
String? afterSaleReturnReasons;
// 商户支付规则列表
List<ServiceMchRule>? mchRoleList;
@@ -229,6 +232,7 @@ class CanteenExtraPriceSetting extends Equatable {
required this.payAmountEnable,
required this.payAmountMealLimit,
required this.payAmountMealTimes,
this.afterSaleReturnReasons,
this.mchRoleList,
});
@@ -237,6 +241,7 @@ class CanteenExtraPriceSetting extends Equatable {
payAmountEnable,
payAmountMealLimit,
payAmountMealTimes,
afterSaleReturnReasons,
mchRoleList,
];