|
|
@ -200,7 +200,6 @@ |
|
|
|
let pack = result.package; |
|
|
|
let childBalance = result.balance.childBalance; |
|
|
|
let parentBalance = result.balance.parentBalance[0]; |
|
|
|
|
|
|
|
//1.先判断是否重复扫描 |
|
|
|
if (this.itemCode) { |
|
|
|
var item = this.detailSource.find(res => res.itemCode == pack.itemCode) |
|
|
@ -240,6 +239,17 @@ |
|
|
|
this.setPackageData(childBalance[0], pack); |
|
|
|
} |
|
|
|
} else { |
|
|
|
//扫描的是没有父包装的,自己就是子包装 |
|
|
|
if(pack.subList.length==0){ |
|
|
|
this.getTransactionList(pack.number, transactionRes => { |
|
|
|
if (transactionRes.length == 0) { |
|
|
|
this.setPackageData(childBalance[0], pack); |
|
|
|
} else { |
|
|
|
this.showErrorMessage("箱码[" + pack.number + "批次[" + pack.batch + |
|
|
|
"]已经发过料") |
|
|
|
} |
|
|
|
}); |
|
|
|
}else { |
|
|
|
let packparams = ''; |
|
|
|
pack.subList.forEach(pack => { |
|
|
|
packparams = packparams + pack.number + ',' |
|
|
@ -268,7 +278,7 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|