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:
parent
f94083df36
commit
599e0ba281
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue