feat(split): 添加批量查询手动分账覆盖和变更历史功能

- 新增 SplitManualService::orderIdsWithOverride 方法用于批量查询存在手动覆盖的订单
- 新增 SplitManualService::orderIdsWithLog 方法用于批量查询存在变更历史的订单
- 在订单列表页面优化性能,批量查询订单的手动覆盖和变更历史状态
- 添加 can_view_manual_history 权限控制,允许成功/失败后查看变更历史
- 更新前端界面显示逻辑,优化变更历史查看权限判断
- 增强操作提示文案,说明变更历史查看功能
```
这个提交包含在:
可乐加冰
2026-10-23 00:15:38 +08:00
父节点 af08af8d47
当前提交 d2f22d7ecf
共有 4 个文件被更改,包括 55 次插入 和 3 次删除

查看文件

@@ -377,7 +377,7 @@
<el-table-column label="操作" width="200" fixed="right">
<template slot-scope="s">
<el-button type="text" size="small" v-if="s.row.can_edit_manual" @click="openManualDialog(s.row)">指定接收方</el-button>
<el-button type="text" size="small" v-if="s.row.can_edit_manual && (s.row.has_manual_override || s.row.split_source === 'manual')" @click="openHistoryDrawer(s.row)">变更历史</el-button>
<el-button type="text" size="small" v-if="s.row.can_view_manual_history" @click="openHistoryDrawer(s.row)">变更历史</el-button>
<el-button type="text" size="small" v-if="s.row.status == 4" @click="retry(s.row)">重试</el-button>
<el-button type="text" size="small" @click="query(s.row.id)">同步</el-button>
</template>
@@ -395,7 +395,7 @@
@size-change="onSizeChange">
</el-pagination>
</div>
<p class="op-hint">失败汇付单可「指定接收方」改人改金额后重试;「同步」只更新状态,不会重复扣款。</p>
<p class="op-hint">失败汇付单可「指定接收方」改人改金额后重试;分账成功或失败后均可点「变更历史」查看每次改人记录。「同步」只更新状态,不会重复扣款。</p>
</div>
<!-- 指定接收方弹窗 -->
@@ -452,6 +452,7 @@
</div>
<span slot="footer">
<el-button size="small" @click="manualDialogVisible = false">取消</el-button>
<el-button size="small" type="text" v-if="manualRow && manualRow.order_id" @click="openHistoryDrawer(manualRow)">查看变更历史</el-button>
<el-button size="small" v-if="manualContext.has_manual" @click="clearManualOverride">清除手动指定</el-button>
<el-button size="small" type="primary" plain :loading="manualSaving" @click="saveManual(false)">仅保存</el-button>
<el-button size="small" type="primary" :loading="manualSaving" @click="saveManual(true)">保存并重试</el-button>