|
@@ -250,12 +250,15 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
selectWarehouse(){
|
|
selectWarehouse(){
|
|
|
|
+ let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
|
|
|
|
+ _wareHouse = JSON.parse(_wareHouse)
|
|
selectWarehouseSelf({
|
|
selectWarehouseSelf({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.warehouseList = []
|
|
this.warehouseList = []
|
|
|
|
+
|
|
for (let i = 0; i < response.length; i++) {
|
|
for (let i = 0; i < response.length; i++) {
|
|
this.warehouseList.push({
|
|
this.warehouseList.push({
|
|
value: response[i].warehouseName,
|
|
value: response[i].warehouseName,
|
|
@@ -264,6 +267,16 @@ export default {
|
|
monitorUrl1:response[i].monitorUrl1,
|
|
monitorUrl1:response[i].monitorUrl1,
|
|
monitorUrl2:response[i].monitorUrl2
|
|
monitorUrl2:response[i].monitorUrl2
|
|
})
|
|
})
|
|
|
|
+ if (_wareHouse) {
|
|
|
|
+
|
|
|
|
+ this.cangid = _wareHouse.id
|
|
|
|
+ this.warehouseName = _wareHouse.warehouseName
|
|
|
|
+ this.common.name=_wareHouse.warehouseName
|
|
|
|
+ this.warehouseId=_wareHouse.id
|
|
|
|
+ this.warehouseNo =_wareHouse.commonWarehouseNo
|
|
|
|
+ this.monitorUrl1=_wareHouse.monitorUrl1
|
|
|
|
+ this.monitorUrl2=_wareHouse.monitorUrl2
|
|
|
|
+ } else {
|
|
if (this.cangid&&this.cangid == response[i].id) {
|
|
if (this.cangid&&this.cangid == response[i].id) {
|
|
this.warehouseName = response[i].warehouseName
|
|
this.warehouseName = response[i].warehouseName
|
|
this.allowEdit = response[i].allowEdit
|
|
this.allowEdit = response[i].allowEdit
|
|
@@ -273,7 +286,7 @@ export default {
|
|
this.monitorUrl1 = response[i].monitorUrl1
|
|
this.monitorUrl1 = response[i].monitorUrl1
|
|
this.monitorUrl2 = response[i].monitorUrl2
|
|
this.monitorUrl2 = response[i].monitorUrl2
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+
|
|
if(this.warehouseList.length > 0 && !this.cangid){
|
|
if(this.warehouseList.length > 0 && !this.cangid){
|
|
this.warehouseName = this.warehouseList[0].value
|
|
this.warehouseName = this.warehouseList[0].value
|
|
this.cangid = this.warehouseList[0].warehouseId
|
|
this.cangid = this.warehouseList[0].warehouseId
|
|
@@ -282,8 +295,11 @@ export default {
|
|
this.common.name = this.warehouseList[0].value
|
|
this.common.name = this.warehouseList[0].value
|
|
this.monitorUrl1 = this.warehouseList[0].monitorUrl1
|
|
this.monitorUrl1 = this.warehouseList[0].monitorUrl1
|
|
this.monitorUrl2 = this.warehouseList[0].monitorUrl2
|
|
this.monitorUrl2 = this.warehouseList[0].monitorUrl2
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
sessionStorage.setItem('ck',this.common.name)
|
|
sessionStorage.setItem('ck',this.common.name)
|
|
|
|
+ console.log(this.warehouseList)
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
},
|
|
},
|