chore: release client-v1.0.70
Deploy Client / build-client-web (push) Successful in 38s
Deploy Client / build-macos (push) Successful in 2m10s
Deploy Client / build-android (push) Successful in 56s
Deploy Client / build-ios (push) Successful in 2m35s
Deploy Client / build-windows (push) Successful in 1m49s
Deploy Client / release-deploy-client (push) Successful in 1m23s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZ4DskSRKsSiheQonFtQvx
This commit is contained in:
wangjia
2026-06-21 19:46:49 +08:00
parent 13a6777a85
commit 9d5bc18de1
8 changed files with 56 additions and 14 deletions
+4 -4
View File
@@ -24,7 +24,7 @@ List<Widget> buildOrderRowActions({
required VoidCallback onApprove,
required VoidCallback onReject,
required VoidCallback onWithdraw,
bool isAdmin = false,
bool canWithdraw = false,
List<Widget> afterPrint = const [],
}) {
TextButton btn(String text, Color color, VoidCallback onPressed, {Key? key}) =>
@@ -51,10 +51,10 @@ List<Widget> buildOrderRowActions({
WriteGuard(
child: btn('拒绝', AppTheme.danger, onReject,
key: Key('btn_reject_$orderId'))),
// 撤回(审核中→草稿)管理员可见
if (isAdmin)
// 撤回(审核中→草稿)管理员/超管任意单、操作员本人单可见,用 warn 样式
if (canWithdraw)
WriteGuard(
child: btn('撤回', AppTheme.accent, onWithdraw,
child: btn('撤回', AppTheme.warning, onWithdraw,
key: Key('btn_withdraw_$orderId'))),
],
];