|
@@ -172,7 +172,7 @@
|
|
|
let _WarehouseName = localStorage.getItem('houseSelfCollect_house1')
|
|
|
_WarehouseName = JSON.parse(_WarehouseName)
|
|
|
if(_WarehouseName){
|
|
|
- this.warehouseNameChange(_WarehouseName.value)
|
|
|
+ this.warehouseNameChange(_WarehouseName.value)
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -223,6 +223,7 @@
|
|
|
this.cangid = this.warehouseList[i].warehouseId
|
|
|
this.allowEdit = this.warehouseList[i].allowEdit
|
|
|
this.WAREHOUSE[1].payname = this.warehouseList[i].value
|
|
|
+ this.warehouseList[i].compId = localStorage.getItem('ws-pf_compId')
|
|
|
localStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
|
|
|
}
|
|
|
}
|
|
@@ -275,25 +276,29 @@
|
|
|
this.warehouseList = []
|
|
|
let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
|
|
|
_wareHouse = JSON.parse(_wareHouse)
|
|
|
- if (_wareHouse) {
|
|
|
- this.cangid = _wareHouse.warehouseId
|
|
|
- this.warehouseName = _wareHouse.value
|
|
|
- this.warehouseNo = _wareHouse.No
|
|
|
- this.warehouseCount = _wareHouse.count
|
|
|
- this.allowEdit = _wareHouse.allowEdit
|
|
|
- }
|
|
|
for (let i = 0; i < response.length; i++) {
|
|
|
if(_wareHouse && response[i].warehouseName==_wareHouse.value){
|
|
|
this.warehouseCount = response[i].count
|
|
|
this.allowEdit = response[i].allowEdit
|
|
|
+ this.cangid = _wareHouse.warehouseId
|
|
|
+ this.warehouseName = response[i].warehouseName
|
|
|
+ this.warehouseNo = response[i].commonWarehouseNo
|
|
|
}
|
|
|
this.warehouseList.push({
|
|
|
value: response[i].warehouseName,
|
|
|
warehouseId: response[i].id,
|
|
|
count: response[i].count,
|
|
|
No: response[i].commonWarehouseNo,
|
|
|
- allowEdit:response[i].allowEdit
|
|
|
+ allowEdit:response[i].allowEdit,
|
|
|
+ compId:localStorage.getItem('ws-pf_compId')
|
|
|
})
|
|
|
+ // if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
|
|
|
+ // this.cangid = _wareHouse.warehouseId
|
|
|
+ // this.warehouseName = response[i].warehouseName
|
|
|
+ // this.warehouseNo = response[i].commonWarehouseNo
|
|
|
+ // this.warehouseCount = response[i].count
|
|
|
+ // this.allowEdit = response[i].allowEdit
|
|
|
+ // }
|
|
|
if (!_wareHouse) {
|
|
|
if (this.cangid && this.cangid == response[i].id) {
|
|
|
this.warehouseName = response[i].warehouseName
|