|
|
|
@ -1256,8 +1256,8 @@ export default { |
|
|
|
console.log(error, `获取 ${dictType} 字典`); |
|
|
|
} |
|
|
|
}, |
|
|
|
getResiDetail() { |
|
|
|
this.$http |
|
|
|
async getResiDetail() { |
|
|
|
await this.$http |
|
|
|
.get(`/actual/base/residentIntegratedInfo/detail/masked/${this.resiId}`) |
|
|
|
.then(async (res) => { |
|
|
|
if (res.data.code === 0) { |
|
|
|
@ -1382,38 +1382,31 @@ export default { |
|
|
|
this.menuList.push({name:'死亡信息',id:'deathDto'}); |
|
|
|
this.expandList.push({title:'死亡信息',scrollId:'deathDto',children:[{label:'死亡时间',value:this.resiDetailObj.baseInfoDto.deathDate}]}) |
|
|
|
} |
|
|
|
if (localStorage.getItem('baseInfoDtoName')&&(localStorage.getItem('baseInfoDtonameID').replace(/^"([^"]*)"$/, '$1')===this.resiDetailObj.baseInfoDto.resiId.toString())) { |
|
|
|
const expiry = localStorage.getItem('data_expiry'); |
|
|
|
if (expiry && Date.now() < parseInt(expiry)) { |
|
|
|
const name = JSON.parse(localStorage.getItem('baseInfoDtoName')) |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "name", name); |
|
|
|
this.showFlagnameBtn = false |
|
|
|
} |
|
|
|
} |
|
|
|
if (localStorage.getItem('baseInfoDtoidNum')&& |
|
|
|
(localStorage.getItem('baseInfoDtoidCardID').replace(/^"([^"]*)"$/, '$1')===this.resiDetailObj.baseInfoDto.resiId)) { |
|
|
|
|
|
|
|
const expiry = localStorage.getItem('data_expiryidNum'); |
|
|
|
console.log(expiry); |
|
|
|
|
|
|
|
if (expiry && Date.now() < parseInt(expiry)) { |
|
|
|
const name = JSON.parse(localStorage.getItem('baseInfoDtoidNum')) |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "idNum", name); |
|
|
|
this.showFlagIdCardBtn = false |
|
|
|
} |
|
|
|
} |
|
|
|
if (localStorage.getItem('baseInfoDtomobile')&&localStorage.getItem('baseInfoDtomobileID').replace(/^"([^"]*)"$/, '$1')===this.resiDetailObj.baseInfoDto.resiId) { |
|
|
|
const expiry = localStorage.getItem('data_expirymobile'); |
|
|
|
if (expiry && Date.now() < parseInt(expiry)) { |
|
|
|
const name = JSON.parse(localStorage.getItem('baseInfoDtomobile')) |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "mobile", name); |
|
|
|
this.showFlagMobileBtn = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
}); |
|
|
|
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${this.resiId}`; |
|
|
|
let parm = { |
|
|
|
}; |
|
|
|
const { data, code, msg } = await requestPost(url, parm); |
|
|
|
if (data) { |
|
|
|
const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.resiId}`; |
|
|
|
let parm = { |
|
|
|
password, |
|
|
|
}; |
|
|
|
const { data, code, msg } = await requestPost(url, parm); |
|
|
|
if (code === 0) { |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "mobile", data.mobile); |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "idNum", data.idNum); |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "name", data.name); |
|
|
|
this.showFlagMobileBtn = !this.showFlagMobileBtn; |
|
|
|
this.showFlagIdCardBtn = !this.showFlagIdCardBtn; |
|
|
|
this.showFlagnameBtn = !this.showFlagnameBtn; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
@ -1491,11 +1484,16 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handelCLickShowCheckPassword(type) { |
|
|
|
this.form.password = ""; |
|
|
|
this.checkType = "view"; |
|
|
|
if (type === "idCard") { |
|
|
|
if (this.showFlagIdCardBtn) { |
|
|
|
async handelCLickShowCheckPassword(type) { |
|
|
|
const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${this.resiId}`; |
|
|
|
let parm = { |
|
|
|
}; |
|
|
|
const { data, code, msg } = await requestPost(url, parm); |
|
|
|
if (!data) { |
|
|
|
this.form.password = ""; |
|
|
|
this.checkType = "view"; |
|
|
|
if (type === "idCard") { |
|
|
|
if (this.showFlagIdCardBtn) { |
|
|
|
this.showCheckPassword = true; |
|
|
|
} else { |
|
|
|
this.showFlagIdCardBtn = true; |
|
|
|
@ -1535,6 +1533,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.tuominType = type; |
|
|
|
}else{ |
|
|
|
this.checkType = "view" |
|
|
|
this.handleSaveTuomin() |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
nationalityText() { |
|
|
|
let text = "--"; |
|
|
|
@ -1597,29 +1600,14 @@ export default { |
|
|
|
}; |
|
|
|
const { data, code, msg } = await requestPost(url, parm); |
|
|
|
if (code === 0) { |
|
|
|
this.showCheckPassword=false |
|
|
|
if (this.checkType == "view") { |
|
|
|
if (this.tuominType === "mobile") { |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "mobile", data.mobile); |
|
|
|
this.showFlagMobileBtn = !this.showFlagMobileBtn; |
|
|
|
localStorage.setItem('baseInfoDtomobile', JSON.stringify(data.mobile)); |
|
|
|
localStorage.setItem('baseInfoDtomobileID', JSON.stringify(data.id)); |
|
|
|
localStorage.setItem('data_expirymobile', Date.now() + 2 * 60 * 60 * 1000); |
|
|
|
} |
|
|
|
if (this.tuominType === "idCard") { |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "idNum", data.idNum); |
|
|
|
this.showFlagIdCardBtn = !this.showFlagIdCardBtn; |
|
|
|
localStorage.setItem('baseInfoDtoidNum', JSON.stringify(data.idNum)); |
|
|
|
localStorage.setItem('baseInfoDtoidCardID', JSON.stringify(data.id)); |
|
|
|
localStorage.setItem('data_expiryidNum', Date.now() + 2 * 60 * 60 * 1000); |
|
|
|
} |
|
|
|
if (this.tuominType === "name") { |
|
|
|
this.$set(this.resiDetailObj.baseInfoDto, "name", data.name); |
|
|
|
this.showFlagMobileBtn = !this.showFlagMobileBtn; |
|
|
|
this.showFlagIdCardBtn = !this.showFlagIdCardBtn; |
|
|
|
this.showFlagnameBtn = !this.showFlagnameBtn; |
|
|
|
localStorage.setItem('baseInfoDtoName', JSON.stringify(data.name)); |
|
|
|
localStorage.setItem('baseInfoDtonameID', JSON.stringify(data.id)); |
|
|
|
localStorage.setItem('data_expiry', Date.now() + 2 * 60 * 60 * 1000); |
|
|
|
} |
|
|
|
this.showCheckPassword = false; |
|
|
|
} else if (this.checkType == "edit") { |
|
|
|
this.showCheckPassword = false; |
|
|
|
this.$router.push({ |
|
|
|
|