|
|
@ -121,6 +121,7 @@ |
|
|
|
longitude: '', |
|
|
|
latitude: '', |
|
|
|
lngAndLat: '', |
|
|
|
belongingPlace: '', |
|
|
|
usageStatus: 1, |
|
|
|
address: '', |
|
|
|
squareMeter: '', |
|
|
@ -182,7 +183,7 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.submitdisabled = true |
|
|
|
req.saveWarehouse(this.formobj) |
|
|
|
.then(resp => { |
|
|
|
if (resp.success) { |
|
|
@ -194,9 +195,12 @@ |
|
|
|
this.handleReturn('true') |
|
|
|
} else { |
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
this.submitdisabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => {}) |
|
|
|
.catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleReturn(isreload) { |
|
|
|
if (isreload === 'true') this.$emit('reloadlist') |
|
|
@ -211,6 +215,7 @@ |
|
|
|
longitude: '', |
|
|
|
latitude: '', |
|
|
|
lngAndLat: '', |
|
|
|
belongingPlace: '', |
|
|
|
usageStatus: 1, |
|
|
|
address: '', |
|
|
|
squareMeter: '', |
|
|
@ -222,6 +227,7 @@ |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
createOrgSid: window.sessionStorage.getItem('orgSid'), |
|
|
|
} |
|
|
|
this.submitdisabled = false |
|
|
|
this.$emit('doback') |
|
|
|
}, |
|
|
|
showAdd() {}, |
|
|
@ -248,6 +254,7 @@ |
|
|
|
console.log('backData:', value) |
|
|
|
this.formobj.address = value.address |
|
|
|
this.formobj.lngAndLat = value.lngAndLat |
|
|
|
this.formobj.belongingPlace = value.belongingPlace |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|