|
@@ -268,8 +268,8 @@
|
|
|
checkWarehouseDetailList({pageNo:1,pageSize:1000,checkWarehouseSn:this.checkWarehouseSn}).then(res => {
|
|
|
console.log(res,'已添加产品列表')
|
|
|
if(res.status == 200){
|
|
|
- this.detailList = res.data.list
|
|
|
- const curProduct = this.detailList.find(item => item.qrCode == this.code)
|
|
|
+ this.detailList = res.data.list
|
|
|
+ const curProduct = this.detailList.find(item => item.qrCode == this.code || item.productCode == this.productCode)
|
|
|
this.curProduct = curProduct || null
|
|
|
}
|
|
|
})
|