Commit cd916b7f authored by 黄媛媛's avatar 黄媛媛

1

parent a6058a5f
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
data2.forEach(x => { data2.forEach(x => {
if ((myData.GoodsId == x.GoodsId) && (myData.SpecificationKey == x.SpecificationSort)) { if ((myData.GoodsId == x.GoodsId) && (myData.SpecificationKey == x.SpecificationSort)) {
this.orderNum++; this.orderNum++;
if(x.nowBound<x.Number){ if(x.nowBound<x.NewNumber){
x.nowBound++; x.nowBound++;
this.tableData = data2; this.tableData = data2;
this.scanData.unshift(myData); this.scanData.unshift(myData);
...@@ -197,7 +197,7 @@ ...@@ -197,7 +197,7 @@
scanMsg.StockInId = myData.StockInId; scanMsg.StockInId = myData.StockInId;
this.sureMsg.WarehouseOutGoodsDetailList.push(scanMsg); this.sureMsg.WarehouseOutGoodsDetailList.push(scanMsg);
}else{ }else{
this.Error('超过了购买数量'); this.Error('超过了出库数量');
} }
} }
}) })
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
sureOutband() { sureOutband() {
var buyNum = 0; var buyNum = 0;
this.tableData.forEach(x => { this.tableData.forEach(x => {
buyNum += x.Number; buyNum += x.NewNumber;
}) })
if (this.scanData.length != buyNum) { if (this.scanData.length != buyNum) {
this.Error('出库数量与列表数据不符'); this.Error('出库数量与列表数据不符');
......
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