|
@@ -198,6 +198,7 @@ export default {
|
|
|
this.warehouseId = this.warehouseList[i].warehouseId
|
|
|
this.purchasePriceList = this.warehouseList[i].warehouseList
|
|
|
this.allowEdit = this.warehouseList[i].allowEdit
|
|
|
+ this.WAREHOUSE.payname = this.warehouseList[i].value
|
|
|
}
|
|
|
}
|
|
|
this.getList()
|
|
@@ -251,9 +252,14 @@ export default {
|
|
|
warehouseList:response[i].purchasePriceList,
|
|
|
allowEdit:response[i].allowEdit
|
|
|
})
|
|
|
+ }
|
|
|
+ this.warehouseName = this.warehouseList[0].value
|
|
|
+ if (this.warehouseId) {
|
|
|
+ this.warehouseName = this.WAREHOUSE.payname
|
|
|
+ } else {
|
|
|
+ this.WAREHOUSE.payname = this.warehouseList[0].value
|
|
|
}
|
|
|
this.allowEdit = this.warehouseList[0].allowEdit
|
|
|
- this.warehouseName = this.warehouseList[0].value
|
|
|
this.warehouseId = this.warehouseList[0].warehouseId
|
|
|
this.purchasePriceList = this.warehouseList[0].warehouseList
|
|
|
this.getList()
|