|
@@ -233,7 +233,7 @@ export default {
|
|
|
// this.warehouseList = response
|
|
|
// this.warehouseNameKey = this.warehouseList[0].id
|
|
|
// this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
- // this.WAREHOUSE.payname = this.warehouseList[0].warehouseName
|
|
|
+ // this.WAREHOUSE[3].payname = this.warehouseList[0].warehouseName
|
|
|
// this.getList()
|
|
|
// })
|
|
|
this.getWarehouse()
|
|
@@ -247,12 +247,12 @@ export default {
|
|
|
.toPromise()
|
|
|
.then(response => {
|
|
|
this.warehouseList = response
|
|
|
- console.log(this.WAREHOUSE.payname)
|
|
|
+ console.log(this.WAREHOUSE[3].payname)
|
|
|
this.warehouseNameKey = this.warehouseList[0].id
|
|
|
if (this.warehouseName) {
|
|
|
- this.warehouseNameKey = this.WAREHOUSE.payname
|
|
|
+ this.warehouseNameKey = this.WAREHOUSE[3].payname
|
|
|
} else {
|
|
|
- this.WAREHOUSE.payname = this.warehouseList[0].id
|
|
|
+ this.WAREHOUSE[3].payname = this.warehouseList[0].id
|
|
|
}
|
|
|
|
|
|
// this.getList()
|
|
@@ -560,7 +560,7 @@ export default {
|
|
|
for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
if (this.warehouseList[i].id == this.warehouseNameKey) {
|
|
|
this.warehouseName = this.warehouseList[i].warehouseName
|
|
|
- this.WAREHOUSE.payname = this.warehouseList[i].id
|
|
|
+ this.WAREHOUSE[3].payname = this.warehouseList[i].id
|
|
|
}
|
|
|
}
|
|
|
this.getList()
|