|
@@ -169,6 +169,13 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
inspectInfo(row, index) {
|
|
|
+ console.log(this.warehouseList,"仓库")
|
|
|
+ console.log( this.WAREHOUSE[1].payname)
|
|
|
+ for(let i = 0 ; i < this.warehouseList.length ; i++){
|
|
|
+ if(this.WAREHOUSE[1].payname == this.warehouseList[i].value){
|
|
|
+ this.cangid = this.warehouseList[i].id
|
|
|
+ }
|
|
|
+ }
|
|
|
//添加,编辑,查看
|
|
|
this.$router.push({
|
|
|
path: 'inspectInfo',
|
|
@@ -250,10 +257,10 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
if(this.warehouseList.length > 0){
|
|
|
- this.warehouseName = this.warehouseList[0].value
|
|
|
+ this.warehouseName = this.warehouseList[0].value
|
|
|
if (this.cangid) {
|
|
|
this.warehouseName = this.WAREHOUSE[1].payname
|
|
|
- }
|
|
|
+ }
|
|
|
else {
|
|
|
this.WAREHOUSE[1].payname = this.warehouseList[0].value
|
|
|
}
|
|
@@ -264,7 +271,6 @@ export default {
|
|
|
this.getList()
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
getList() {
|
|
|
getinspectList({
|