| | |
| | | this.subDataList = []; |
| | | } |
| | | //查看是不是采购的计数 |
| | | if(this.subDataList.find(item=>item.isWeight === 0)){ |
| | | if(this.subDataList.find(item=>item.isWeight === 0 || item.isWeight === 2)){ |
| | | this.isNumOk = true; |
| | | this.value = 1; |
| | | } else{ |
| | |
| | | if(this.isNumOk){ |
| | | let tempArr = []; |
| | | this.subDataList.forEach(item=>{ |
| | | tempArr.push(item.productId + ':' + item.surplusQuant); |
| | | tempArr.push(item.id + ':' + item.surplusQuant); |
| | | this.isWeighing = item.isWeight; |
| | | this.orderType = item.orderType; |
| | | }) |
| | |
| | | this.subDataList.forEach(item=>{ |
| | | this.checkList.forEach(val=>{ |
| | | if(item.id === val){ |
| | | tempArr.push(item.productId + ':' + item.nums); |
| | | tempArr.push(item.id + ':' + item.nums); |
| | | } |
| | | |
| | | }) |