账户库中介风险等级固定为高

This commit is contained in:
wjj
2026-07-10 17:46:51 +08:00
parent 486a499af7
commit 2c6c982ed3
6 changed files with 191 additions and 8 deletions

View File

@@ -370,7 +370,7 @@
</el-col>
<el-col :span="6">
<el-form-item label="风险等级">
<el-select v-model="form.txnRiskLevel" style="width: 100%" :disabled="analysisReadonly">
<el-select v-model="form.txnRiskLevel" style="width: 100%" :disabled="riskLevelReadonly">
<el-option label="LOW" value="LOW" />
<el-option label="MEDIUM" value="MEDIUM" />
<el-option label="HIGH" value="HIGH" />
@@ -503,6 +503,12 @@ function createEmptyForm() {
}
}
function applyIntermediaryRiskLevel(form) {
if (form.ownerType === 'INTERMEDIARY') {
form.txnRiskLevel = 'HIGH'
}
}
export default {
name: 'CcdiAccountInfo',
components: { ImportResultDialog },
@@ -587,6 +593,9 @@ export default {
isRelationOwner() {
return this.form.ownerType === 'RELATION'
},
isIntermediaryOwner() {
return this.form.ownerType === 'INTERMEDIARY'
},
isInternalOwner() {
return this.isEmployeeOwner || this.isRelationOwner
},
@@ -602,6 +611,9 @@ export default {
analysisReadonly() {
return this.dialogMode === 'detail' || this.form.bankScope === 'INTERNAL'
},
riskLevelReadonly() {
return this.analysisReadonly || this.isIntermediaryOwner
},
dialogTitle() {
if (this.dialogMode === 'detail') return '账户详情'
if (this.dialogMode === 'edit') return '编辑账户'
@@ -750,6 +762,9 @@ export default {
relationId: data.relationId || undefined,
invalidDate: data.invalidDate || ''
})
if (mode !== 'detail') {
applyIntermediaryRiskLevel(this.form)
}
this.dialogVisible = true
this.$nextTick(() => this.clearDialogValidate())
},
@@ -776,6 +791,7 @@ export default {
this.form.accountName = ''
this.form.ownerId = ''
}
applyIntermediaryRiskLevel(this.form)
},
async handleStaffChange(staffId) {
const staff = this.staffOptions.find(item => item.staffId === staffId)
@@ -802,6 +818,7 @@ export default {
this.form.accountName = relation.relationName
},
buildPayload() {
applyIntermediaryRiskLevel(this.form)
return {
id: this.form.id,
ownerType: this.form.ownerType,