|
@ -123,8 +123,6 @@ |
|
|
> |
|
|
> |
|
|
<el-input |
|
|
<el-input |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
maxlength="50" |
|
|
|
|
|
show-word-limit |
|
|
|
|
|
style="margin-right: 20px" |
|
|
style="margin-right: 20px" |
|
|
placeholder="请输入姓名 " |
|
|
placeholder="请输入姓名 " |
|
|
v-model="fmData.name" |
|
|
v-model="fmData.name" |
|
@ -213,16 +211,16 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="迁入时间" |
|
|
label="迁入日期" |
|
|
prop="inTime" |
|
|
prop="inTime" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block" |
|
|
> |
|
|
> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="fmData.inTime" |
|
|
v-model="fmData.inTime" |
|
|
type="date" |
|
|
type="datetime" |
|
|
placeholder="迁入时间" |
|
|
placeholder="迁入时间" |
|
|
value-format="yyyy-MM-dd" |
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
> |
|
|
> |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
@ -288,27 +286,26 @@ |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="户主姓名" |
|
|
label="户主姓名" |
|
|
prop="houseHolderName" |
|
|
prop="householderName" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block" |
|
|
> |
|
|
> |
|
|
<el-input |
|
|
<el-input |
|
|
class="item_width_1" |
|
|
class="item_width_1" |
|
|
placeholder="请输入户主姓名" |
|
|
placeholder="请输入户主姓名" |
|
|
:disabled="fmData.alreadyHaveMaster" |
|
|
v-model="fmData.householderName" |
|
|
v-model="fmData.houseName" |
|
|
|
|
|
> |
|
|
> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="与户主关系" |
|
|
label="与户主关系" |
|
|
prop="houseHolderRelation" |
|
|
prop="householderRelation" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="display: block" |
|
|
style="display: block" |
|
|
> |
|
|
> |
|
|
<el-select |
|
|
<el-select |
|
|
v-model.trim="fmData.houseRelation" |
|
|
v-model.trim="fmData.householderRelation" |
|
|
placeholder="与户主关系" |
|
|
placeholder="与户主关系" |
|
|
size="small" |
|
|
size="small" |
|
|
clearable |
|
|
clearable |
|
@ -365,9 +362,11 @@ function iniFmData() { |
|
|
address: '', |
|
|
address: '', |
|
|
sourceAddressPathCode: '', |
|
|
sourceAddressPathCode: '', |
|
|
sourceAddressCode: '', |
|
|
sourceAddressCode: '', |
|
|
houseName: '', |
|
|
householderName: '', |
|
|
houseRelation: '', |
|
|
moveNumber: '', |
|
|
alreadyHaveMaster: false |
|
|
householderRelation: '', |
|
|
|
|
|
alreadyHaveMaster: false, |
|
|
|
|
|
isReplace: '0' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -401,7 +400,8 @@ export default { |
|
|
// checkStrictly: true, |
|
|
// checkStrictly: true, |
|
|
lazy: true, |
|
|
lazy: true, |
|
|
lazyLoad: this.lzayLoadArea |
|
|
lazyLoad: this.lzayLoadArea |
|
|
} |
|
|
}, |
|
|
|
|
|
userInfo: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: {}, |
|
|
components: {}, |
|
@ -489,7 +489,9 @@ export default { |
|
|
type: 'error', |
|
|
type: 'error', |
|
|
message: `请联系${data.resiAgencyName}迁出该居民后操作` |
|
|
message: `请联系${data.resiAgencyName}迁出该居民后操作` |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.btnDisable = true |
|
|
} |
|
|
} |
|
|
|
|
|
this.userInfo = { ...data } |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(msg) |
|
|
this.$message.error(msg) |
|
|
} |
|
|
} |
|
@ -500,15 +502,15 @@ export default { |
|
|
console.log('label-----', this.$refs.nowArea.getCheckedNodes()) |
|
|
console.log('label-----', this.$refs.nowArea.getCheckedNodes()) |
|
|
if (val.length > 0) { |
|
|
if (val.length > 0) { |
|
|
const labels = this.$refs.nowArea.getCheckedNodes()[0].pathLabels |
|
|
const labels = this.$refs.nowArea.getCheckedNodes()[0].pathLabels |
|
|
this.fmData.presentAddressCode = val[val.length - 1] |
|
|
this.fmData.sourceAddressCode = val[val.length - 1] |
|
|
this.fmData.presentAddress = labels.join('-') |
|
|
this.fmData.sourceAddress = labels.join('-') |
|
|
this.fmData.presentAddressPathCode = val.join(',') |
|
|
this.fmData.sourceAddressPathCode = val.join(',') |
|
|
console.log('presentAddress', this.formData.presentAddress) |
|
|
console.log('sourceAddress', this.fmData.sourceAddressPathCode) |
|
|
this.$refs.ref_form.clearValidate('presentAddress') |
|
|
this.$refs.ref_form.clearValidate('sourceAddress') |
|
|
} else { |
|
|
} else { |
|
|
this.fmData.presentAddressCode = '' |
|
|
this.fmData.sourceAddressCode = '' |
|
|
this.fmData.presentAddress = '' |
|
|
this.fmData.sourceAddress = '' |
|
|
this.fmData.presentAddressPathCode = '' |
|
|
this.fmData.sourceAddressPathCode = '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleBlurId(val) { |
|
|
handleBlurId(val) { |
|
@ -707,9 +709,10 @@ export default { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} else { |
|
|
} else { |
|
|
console.log('获取户主信息成功', res.data) |
|
|
console.log('获取户主信息成功', res.data) |
|
|
|
|
|
|
|
|
|
|
|
if (res.data) { |
|
|
const { name } = res.data |
|
|
const { name } = res.data |
|
|
if (name) { |
|
|
this.fmData.householderName = name |
|
|
this.fmData.houseHolderName = name |
|
|
|
|
|
this.alreadyHaveMaster = true |
|
|
this.alreadyHaveMaster = true |
|
|
} else { |
|
|
} else { |
|
|
this.alreadyHaveMaster = false |
|
|
this.alreadyHaveMaster = false |
|
@ -725,8 +728,14 @@ export default { |
|
|
this.$refs.ref_form.resetFields() |
|
|
this.$refs.ref_form.resetFields() |
|
|
|
|
|
|
|
|
this.formType = type |
|
|
this.formType = type |
|
|
|
|
|
|
|
|
if (id) { |
|
|
if (id) { |
|
|
this.getDatail(id) |
|
|
await this.getDatail(id) |
|
|
|
|
|
} |
|
|
|
|
|
if (this.formType != 'add') { |
|
|
|
|
|
this.getBuildList() |
|
|
|
|
|
this.getUniList() |
|
|
|
|
|
this.getHouseList() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
async getDatail(moveInId) { |
|
|
async getDatail(moveInId) { |
|
@ -735,17 +744,18 @@ export default { |
|
|
const params = { |
|
|
const params = { |
|
|
moveInId: moveInId || '' |
|
|
moveInId: moveInId || '' |
|
|
} |
|
|
} |
|
|
const { data, code, msg } = await requestPost(url, this.fmData) |
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.fmData = { ...data } |
|
|
this.fmData = { ...data } |
|
|
|
|
|
this.nowAllCode = data.sourceAddressPathCode && data.sourceAddressPathCode.split(',') |
|
|
} else this.$message.error(msg) |
|
|
} else this.$message.error(msg) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async handleComfirm() { |
|
|
async handleComfirm() { |
|
|
this.btnDisable = true |
|
|
this.btnDisable = true |
|
|
setTimeout(() => { |
|
|
// setTimeout(() => { |
|
|
this.btnDisable = false |
|
|
// this.btnDisable = false |
|
|
}, 10000) |
|
|
// }, 10000) |
|
|
this.$refs['ref_form'].validate((valid, messageObj) => { |
|
|
this.$refs['ref_form'].validate((valid, messageObj) => { |
|
|
if (!valid) { |
|
|
if (!valid) { |
|
|
app.util.validateRule(messageObj) |
|
|
app.util.validateRule(messageObj) |
|
@ -763,9 +773,27 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async submit() { |
|
|
async submit() { |
|
|
|
|
|
if (this.fmData.isCHeck && this.userInfo && this.userInfo.resiHomeId) { |
|
|
|
|
|
const { user } = this.$store.state |
|
|
|
|
|
if (user.agencyId == this.userInfo.resiAgencyId) { |
|
|
|
|
|
if (this.userInfo.resiHomeId !== this.fmData.homeId) { |
|
|
|
|
|
this.$confirm('居民信息中房屋信息与当前选择房屋不一致,是否更新?', '提示', { |
|
|
|
|
|
confirmButtonText: '更新', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.fmData.isReplace = '1' |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.fmData.isReplace = '0' |
|
|
|
|
|
}); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
let url = '' |
|
|
let url = '' |
|
|
if (this.formType === 'add') { |
|
|
if (this.formType === 'add') { |
|
|
url = '/epmetuser/icMoveIn/save' |
|
|
url = '/epmetuser/icMoveIn/add' |
|
|
} else { |
|
|
} else { |
|
|
url = '/epmetuser/icMoveIn/edit' |
|
|
url = '/epmetuser/icMoveIn/edit' |
|
|
|
|
|
|
|
@ -795,6 +823,7 @@ export default { |
|
|
resetData() { |
|
|
resetData() { |
|
|
this.orgId = '' |
|
|
this.orgId = '' |
|
|
this.nowAllCode = [] |
|
|
this.nowAllCode = [] |
|
|
|
|
|
this.btnDisable = false |
|
|
this.fmData = iniFmData() |
|
|
this.fmData = iniFmData() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|