refactor(saleFlowProImprove): 优化受益人和被保人信息处理逻辑

- 将受益人信息保存任务改为异步调用
- 使用严格相等运算符替换松散比较
- 删除空媒体数据字段以避免无效提交
This commit is contained in:
hz
2025-11-25 10:58:12 +08:00
parent a15b25711c
commit fe2859610e
2 changed files with 3 additions and 3 deletions

View File

@@ -284,8 +284,8 @@ export default {
const taskID = 'saveBeneficiary' const taskID = 'saveBeneficiary'
this.nextStepProcesserContainer.registerMainTask( this.nextStepProcesserContainer.registerMainTask(
taskID, taskID,
() => { async () => {
return this.nextStep() return await this.nextStep()
}, },
this.preTasks this.preTasks
) )

View File

@@ -1801,7 +1801,7 @@ export default {
} }
} }
} }
if (this.userInfo.mediaDTOS == '') { if (this.userInfo.mediaDTOS === '') {
delete this.userInfo.mediaDTOS delete this.userInfo.mediaDTOS
} }
params.orderDTO.insuredDTOs = [this.userInfo] params.orderDTO.insuredDTOs = [this.userInfo]