Commit 1415d361 authored by 黄媛媛's avatar 黄媛媛

1

parent f5a2b9fc
...@@ -184,8 +184,9 @@ ...@@ -184,8 +184,9 @@
var scanMsg = {}; var scanMsg = {};
var data2 = JSON.parse(JSON.stringify(this.tableData)); var data2 = JSON.parse(JSON.stringify(this.tableData));
this.orderNum=0; this.orderNum=0;
data2.forEach(x => { data2.forEach(x => {
if ((myData.GoodsId == x.GoodsId) && (myData.SpecificationKey == x.SpecificationSort)) { if ((myData.GoodsId == x.GoodsId) && (myData.SpecificationKey == x.NewSpecificationSort)) {
this.orderNum++; this.orderNum++;
if(x.nowBound<x.NewNumber){ if(x.nowBound<x.NewNumber){
x.nowBound++; x.nowBound++;
...@@ -194,6 +195,8 @@ ...@@ -194,6 +195,8 @@
scanMsg.MaterialId = myData.SuppliesId; scanMsg.MaterialId = myData.SuppliesId;
scanMsg.CostMoney = myData.UnitPrice; scanMsg.CostMoney = myData.UnitPrice;
scanMsg.OrderGoodsId = x.OrderGoodsId; scanMsg.OrderGoodsId = x.OrderGoodsId;
scanMsg.NewSpecification = x.NewSpecification;
scanMsg.NewSpecificationSort = x.NewSpecificationSort;
scanMsg.StockInId = myData.StockInId; scanMsg.StockInId = myData.StockInId;
this.sureMsg.WarehouseOutGoodsDetailList.push(scanMsg); this.sureMsg.WarehouseOutGoodsDetailList.push(scanMsg);
}else{ }else{
......
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