Commit 31366cb1 authored by dragondean@qq.com's avatar dragondean@qq.com

储位偶发被全选的情况

parent 9c3e4172
......@@ -289,7 +289,8 @@ export default {
// 用于储位回显选中
isSelected(warehouse, area, position = 0){
return !!this.value.find(e => {
return warehouse === e.wareId && area === e.areaId && (position === e.locationId || !e.locationId)
// 最后一个条件不能用!e.locationId来判断,会导致选择了没有locationId的全部被选中,上次改这里忘记什么原因了,下次复现再来调整
return warehouse === e.wareId && area === e.areaId && (position === e.locationId || e.locationId == undefined)
})
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment