|
@@ -203,9 +203,11 @@
|
|
|
},
|
|
|
// 获取当前操作行
|
|
|
getCurRow(){
|
|
|
- const curProduct = this.detailList.find(item => item.dealerProductEntity.qrCode == this.code)
|
|
|
+ const curProduct = this.detailList.find(item => item.dealerProductEntity&&item.dealerProductEntity.qrCode == this.code)
|
|
|
this.curProduct = curProduct || null
|
|
|
- this.curProduct.packQty = this.curProduct.dealerProductEntity.packQty || 0
|
|
|
+ if(curProduct){
|
|
|
+ this.curProduct.packQty = this.curProduct.dealerProductEntity&&this.curProduct.dealerProductEntity.packQty || 0
|
|
|
+ }
|
|
|
return curProduct
|
|
|
},
|
|
|
// 修改仓库
|