Commit 45d9531a authored by Marcus's avatar Marcus

positionList空判断

parent 5e9a7c39
......@@ -106,7 +106,7 @@ export default {
warehouse.selected = true
// 区域被选,清空该区域下的位置
warehouse.positionList.forEach(g => {
if(warehouse.positionList) warehouse.positionList.forEach(g => {
g.children.forEach(k => {
k.selected = false
})
......@@ -154,7 +154,7 @@ export default {
e.children.forEach(f => {
// 区域
f.selected = false
f.positionList.forEach(g => {
if(f.positionList) f.positionList.forEach(g => {
// 位置
g.children.forEach(k => {
// 子位置
......@@ -177,7 +177,7 @@ export default {
e.children.forEach(f => {
// 区域
if (f.selected) result.push(f.code)
f.positionList.forEach(g => {
else if(f.positionList) f.positionList.forEach(g => {
// 位置
if (g.selected) result.push(k.code)
g.children.forEach(k => {
......@@ -202,7 +202,7 @@ export default {
wareId: f.pid,
areaId: f.id
})
else f.positionList.forEach(g => {
else if(f.positionList) f.positionList.forEach(g => {
// 位置
if (g.selected) result.push({
orderId: this.orderId,
......
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