Commit d210644a by 李伟康

fix(usedCarManagement): 修改车辆来源门店字段名和错误处理逻辑

将车辆来源门店的字段名从 'sourceStore' 更改为 'sourceStoreName',
并修复错误处理逻辑中的条件判断,确保在字段值不为 null 或为真值时
都能正确清除错误状态。
1 parent 5d3374f9
......@@ -493,7 +493,7 @@ export default {
},
{
label: '车辆来源门店',
key: 'sourceStore'
key: 'sourceStoreName'
},
{
label: '车辆创建时间',
......@@ -595,7 +595,7 @@ export default {
handler (val) {
let { errorList } = this
Object.keys(errorList).forEach(key => {
if (val[key] != null) errorList[key] = false
if (val[key] != null || val[key]) errorList[key] = false
})
},
deep: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!