refactor(admin-web): default to offline settlement mode for special deduction

Change default mode from "指定金额扣减" to "全额线下结算扣减"
to match batch create behavior where empty/0 amount means offline settlement.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-04 07:30:33 -08:00
parent f94083df36
commit 599e0ba281
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ export default function PendingActionsPage() {
const [specialDeductionForm, setSpecialDeductionForm] = useState({ const [specialDeductionForm, setSpecialDeductionForm] = useState({
amount: '', amount: '',
reason: '', reason: '',
isOfflineSettlement: false, // 是否为全额线下结算模式 isOfflineSettlement: true, // 默认为全额线下结算模式
}); });
// 单个操作编辑时使用的表单 // 单个操作编辑时使用的表单
@ -175,7 +175,7 @@ export default function PendingActionsPage() {
actionParamsMap: {}, actionParamsMap: {},
expiresAt: '', expiresAt: '',
}); });
setSpecialDeductionForm({ amount: '', reason: '', isOfflineSettlement: false }); setSpecialDeductionForm({ amount: '', reason: '', isOfflineSettlement: true });
setShowCreateModal(true); setShowCreateModal(true);
}; };