|
@@ -295,6 +295,9 @@ export default {
|
|
|
if (_data[i].id == val) {
|
|
|
this.deptBudgetList.goodsNameKey = _data[i].goodsNameKey
|
|
|
this.deptBudgetList.goodsName = _data[i].goodsName
|
|
|
+ this.deptBudgetList.nowWeight = _data[i].storage
|
|
|
+ this.deptBudgetList.useWeight = _data[i].useStorage
|
|
|
+ return
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -307,7 +310,7 @@ export default {
|
|
|
this.cwNumberList = _data[i].positionInfos.length != 0 ? _data[i].positionInfos : []
|
|
|
this.deptBudgetList.warehouseNo = _data[i].positionInfos.length != 0 ? _data[i].positionInfos[0].binNumber : ''
|
|
|
this.deptBudgetList.warehouseAddress = _data[i].warehousePrivate + _data[i].warehouseCity + _data[i].warehouseArea + _data[i].detailedAddress
|
|
|
- this.goodsList = _data[i].goodsNameInfos.length != 0 ? _data[i].goodsNameInfos : []
|
|
|
+ // this.goodsList = _data[i].goodsNameInfos.length != 0 ? _data[i].goodsNameInfos : []
|
|
|
this.deptBudgetList.nowWeight = _data[i].goodsNameInfos.length != 0 ? _data[i].goodsNameInfos[0].storage : ''
|
|
|
this.deptBudgetList.useWeight = _data[i].goodsNameInfos[0].useStorage
|
|
|
this.deptBudgetList.warehouseId = _data[i].id
|
|
@@ -327,6 +330,21 @@ export default {
|
|
|
this.deptBudgetList.baseId = _data.baseId
|
|
|
}
|
|
|
}
|
|
|
+ this.goodsList = []
|
|
|
+ for(let j = 0 ; j < this.warehouseList.length ; j++){
|
|
|
+ if(this.deptBudgetList.warehouseName == this.warehouseList[j].warehouseName){
|
|
|
+ for(let _num = 0 ; _num < this.warehouseList[j].goodsNameInfos.length; _num++ ){
|
|
|
+ if( this.deptBudgetList.warehouseNo == this.warehouseList[j].goodsNameInfos[_num].binNumber){
|
|
|
+ this.goodsList.push(this.warehouseList[j].goodsNameInfos[_num])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(this.goodsList.length == 0){
|
|
|
+ this.deptBudgetList.goodsName = ""
|
|
|
+ }else{
|
|
|
+ this.deptBudgetList.goodsName = this.goodsList[0].goodsName
|
|
|
+ }
|
|
|
},
|
|
|
getcompList(){
|
|
|
//公司名下拉
|
|
@@ -334,7 +352,8 @@ export default {
|
|
|
.toPromise()
|
|
|
.then((res) => {
|
|
|
this.compOptionList = res
|
|
|
- this.deptBudgetList.renown = res[0].compName
|
|
|
+ // this.deptBudgetList.renown = res[0].compName
|
|
|
+ this.changeCompOptionList(res[0].compId)
|
|
|
})
|
|
|
.catch((err) => {})
|
|
|
},
|