fix(finance): 移除资金审核取消按钮,避免提现冻结资金未退回
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -61,7 +61,7 @@ type FinanceConfigFormValues = {
|
||||
}
|
||||
}
|
||||
|
||||
type FinanceReviewAction = 'approved' | 'rejected' | 'cancelled'
|
||||
type FinanceReviewAction = 'approved' | 'rejected'
|
||||
type FinanceRequestDateType = 'created' | 'reviewed'
|
||||
|
||||
export default function FinancePanel() {
|
||||
@@ -320,9 +320,8 @@ export default function FinancePanel() {
|
||||
<Button type="primary" onClick={() => openReviewModal(row, 'approved')}>
|
||||
通过
|
||||
</Button>
|
||||
<Button onClick={() => openReviewModal(row, 'rejected')}>拒绝</Button>
|
||||
<Button danger onClick={() => openReviewModal(row, 'cancelled')}>
|
||||
取消
|
||||
<Button danger onClick={() => openReviewModal(row, 'rejected')}>
|
||||
拒绝
|
||||
</Button>
|
||||
</Space>
|
||||
) : (
|
||||
@@ -709,9 +708,7 @@ function mapFinanceConfigToFormValues(config?: WorkerFinanceConfig): FinanceConf
|
||||
}
|
||||
|
||||
function formatFinanceReviewAction(action: FinanceReviewAction) {
|
||||
if (action === 'approved') return '通过'
|
||||
if (action === 'rejected') return '拒绝'
|
||||
return '取消'
|
||||
return action === 'approved' ? '通过' : '拒绝'
|
||||
}
|
||||
|
||||
function formatFinanceRequestType(requestType: string) {
|
||||
|
||||
Reference in New Issue
Block a user