| | |
| | | var add = true ,sameItem = false |
| | | for (var i = 0; i < len; i++) { |
| | | if (mat.matnr == this.dataList[i].matnr) { |
| | | for (var j = 0; j < len; j++) { |
| | | if (mat.batch == this.dataList[j].batch) { |
| | | sameItem = true |
| | | } |
| | | } |
| | | // for (var j = 0; j < len; j++) { |
| | | // if (mat.batch == this.dataList[j].batch) { |
| | | // sameItem = true |
| | | // } |
| | | // } |
| | | // 相同物料 不同批号 新加列表 |
| | | if (mat.batch != this.dataList[i].batch) { |
| | | if (mat.batch != this.dataList[i].batch || mat.itemNum != this.dataList[i].itemNum) { |
| | | this.$forceUpdate() // 强制刷新 |
| | | if (sameItem) { |
| | | add = false |