Commit 9a30bf01 by 李伟康

fix(sales): 修复销售合同步骤二底部条件组件初始化逻辑

- 在保证配置为空时同时重置includesConditionList数组
- 确保组件状态初始化的一致性
- 避免因数组未重置导致的数据残留问题
1 parent 92681657
......@@ -106,11 +106,14 @@ export default {
if (val && val.length) {
this.guaranteeConfigs = val
this.includesConditionList = val.map(item => item.guaranteeIndex)
} else this.guaranteeConfigs = [{
guaranteeIndex: '',
guaranteeStandard: null,
compensationMode: 0
}]
} else {
this.guaranteeConfigs = [{
guaranteeIndex: '',
guaranteeStandard: null,
compensationMode: 0
}]
this.includesConditionList = []
}
},
immediate: true,
deep: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!