Commit 693a8fa7 authored by 黄卓's avatar 黄卓

入仓储位选择提交后,货物列表没有回显

http://zentao.jdshangmen.com/bug-view-1044.html
parent 8ff58146
...@@ -143,19 +143,23 @@ export default { ...@@ -143,19 +143,23 @@ export default {
this.activeWarehouse = warehouse this.activeWarehouse = warehouse
if (!!warehouse.selected) { if (!!warehouse.selected) {
warehouse.selected = false warehouse.selected = false
return
} else if(this.activeWarehouseId !== warehouse.id) { } else if(this.activeWarehouseId !== warehouse.id) {
this.activeWarehouseId = warehouse.id this.activeWarehouseId = warehouse.id
} else { console.log(this.inputValue.find(e => e.areaId === warehouse.id), warehouse.id)
warehouse.selected = true if (this.inputValue.find(e => e.areaId === warehouse.id)){
return
}
}
warehouse.selected = true
// 区域被选,清空该区域下的位置 // 区域被选,清空该区域下的位置
if(warehouse.positionList) warehouse.positionList?.forEach(g => { if(warehouse.positionList) warehouse.positionList?.forEach(g => {
g.selected = false g.selected = false
g.children?.forEach(k => { g.children?.forEach(k => {
k.selected = false k.selected = false
})
}) })
} })
}, },
handleSelectPositionChild(position) { handleSelectPositionChild(position) {
if (!!position.selected) { if (!!position.selected) {
......
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