|
@@ -747,7 +747,9 @@ export default {
|
|
}else{
|
|
}else{
|
|
for(let i =0 ; i<this.warehouseList.length;i++){
|
|
for(let i =0 ; i<this.warehouseList.length;i++){
|
|
if(this.warehouseList[i].warehouseName == e){
|
|
if(this.warehouseList[i].warehouseName == e){
|
|
- for(let j = 0;j<this.warehouseList[i].goodsNameInfos.length;j++){//构造数据,合并重复货名
|
|
|
|
|
|
+ console.log(this.warehouseList[i])
|
|
|
|
+ if(this.warehouseList[i].goodsNameInfos){
|
|
|
|
+ for(let j = 0;j<this.warehouseList[i].goodsNameInfos.length;j++){//构造数据,合并重复货名
|
|
if(j==0){
|
|
if(j==0){
|
|
this.goodsList.push(this.warehouseList[i].goodsNameInfos[j])
|
|
this.goodsList.push(this.warehouseList[i].goodsNameInfos[j])
|
|
}else{
|
|
}else{
|
|
@@ -764,10 +766,15 @@ export default {
|
|
//
|
|
//
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+
|
|
this.baseId = this.warehouseList[i].id
|
|
this.baseId = this.warehouseList[i].id
|
|
break
|
|
break
|
|
}
|
|
}
|
|
- this.reserve=this.reserve.toFixed(3)
|
|
|
|
|
|
+ // console.log(this.reserve)
|
|
|
|
+ if(this.reserves){
|
|
|
|
+ this.reserves=this.reserves.toFixed(3)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.goodsName= '0'
|
|
this.goodsName= '0'
|
|
this.reserves = ''
|
|
this.reserves = ''
|