|
@@ -166,13 +166,6 @@ export default {
|
|
|
activated() {
|
|
|
this.getList()
|
|
|
this.warehouses()
|
|
|
- this.firstinventory()
|
|
|
- this.inquiry()
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.getList()
|
|
|
- this.warehouses()
|
|
|
- this.firstinventory()
|
|
|
this.inquiry()
|
|
|
},
|
|
|
methods: {
|
|
@@ -239,8 +232,9 @@ export default {
|
|
|
handleClose(done) {
|
|
|
this.dialogVisible = false
|
|
|
},
|
|
|
- firstinventory() {
|
|
|
- information(0).then(response => {
|
|
|
+ firstinventory(fId) {
|
|
|
+ console.log(this.warehouse)
|
|
|
+ information(fId).then(response => {
|
|
|
this.chart = response.data
|
|
|
if (this.chart.whouseList.length !== 0) {
|
|
|
for (let index of this.chart.corpsListWhouse) {
|
|
@@ -351,6 +345,8 @@ export default {
|
|
|
fWarehouseid: index.fWarehouseid
|
|
|
})
|
|
|
}
|
|
|
+ console.log(this.warehouse)
|
|
|
+ this.firstinventory(this.warehouse[0].fWarehouseid)
|
|
|
})
|
|
|
},
|
|
|
goTarget(href) {
|