|
|
@ -40,81 +40,90 @@ |
|
|
|
label-width="150px" |
|
|
|
style="display: block" |
|
|
|
> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.villageId" |
|
|
|
placeholder="请选择小区" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
class="resi-cell-select" |
|
|
|
@clear="handleClearVillage" |
|
|
|
@change="handleChangeV" |
|
|
|
:disabled="formType === 'edit'" |
|
|
|
style="margin-right: 8px; width: 120px" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsV" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
<el-input |
|
|
|
v-if="formType == 'detail'" |
|
|
|
class="item_width_2" |
|
|
|
placeholder="请输入来源地" |
|
|
|
disabled |
|
|
|
v-model="fmData.allName" |
|
|
|
/> |
|
|
|
<template v-else> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.villageId" |
|
|
|
placeholder="请选择小区" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
class="resi-cell-select" |
|
|
|
@clear="handleClearVillage" |
|
|
|
@change="handleChangeV" |
|
|
|
:disabled="formType === 'edit'" |
|
|
|
style="margin-right: 8px; width: 120px" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.buildId" |
|
|
|
placeholder="楼号" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="margin-right: 8px; width: 120px" |
|
|
|
class="resi-cell-select" |
|
|
|
:disabled="changeVDisabled || formType === 'edit'" |
|
|
|
@clear="handleClearBuild" |
|
|
|
@change="handleChangeB" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsB" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
<el-option |
|
|
|
v-for="item in optionsV" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.buildId" |
|
|
|
placeholder="楼号" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="margin-right: 8px; width: 120px" |
|
|
|
class="resi-cell-select" |
|
|
|
:disabled="changeVDisabled || formType === 'edit'" |
|
|
|
@clear="handleClearBuild" |
|
|
|
@change="handleChangeB" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.unitId" |
|
|
|
:disabled="changeBDisabled || formType === 'edit'" |
|
|
|
placeholder="单元" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="margin-right: 8px; width: 120px" |
|
|
|
class="resi-cell-select" |
|
|
|
@click="handleClearDan" |
|
|
|
@change="handleChangeD" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsD" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
<el-option |
|
|
|
v-for="item in optionsB" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.unitId" |
|
|
|
:disabled="changeBDisabled || formType === 'edit'" |
|
|
|
placeholder="单元" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
style="margin-right: 8px; width: 120px" |
|
|
|
class="resi-cell-select" |
|
|
|
@click="handleClearDan" |
|
|
|
@change="handleChangeD" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.homeId" |
|
|
|
:disabled="changeDDisabled || formType === 'edit'" |
|
|
|
placeholder="房号" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
@change="handleChangeH" |
|
|
|
style="width: 120px" |
|
|
|
class="resi-cell-select" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsH" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
<el-option |
|
|
|
v-for="item in optionsD" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-select |
|
|
|
v-model.trim="fmData.homeId" |
|
|
|
:disabled="changeDDisabled || formType === 'edit'" |
|
|
|
placeholder="房号" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
@change="handleChangeH" |
|
|
|
style="width: 120px" |
|
|
|
class="resi-cell-select" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<el-option |
|
|
|
v-for="item in optionsH" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item |
|
|
@ -256,16 +265,17 @@ |
|
|
|
label-width="150px" |
|
|
|
style="display: block" |
|
|
|
> |
|
|
|
<el-cascader ref="nowArea" class="item_width_1" :props="areaProps" |
|
|
|
v-model="nowAllCode" clearable @change="handleNowArea"></el-cascader> |
|
|
|
<!-- <el-input |
|
|
|
class="item_width_1" |
|
|
|
<el-input |
|
|
|
v-if="formType == 'detail'" |
|
|
|
class="item_width_2" |
|
|
|
placeholder="请输入来源地" |
|
|
|
disabled |
|
|
|
v-model="fmData.sourceAddress" |
|
|
|
> --> |
|
|
|
</el-input> |
|
|
|
/> |
|
|
|
<el-cascader v-else ref="nowArea" class="item_width_1" :props="areaProps" |
|
|
|
v-model="nowAllCode" clearable @change="handleNowArea"></el-cascader> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item |
|
|
|
label="详细地址" |
|
|
|
prop="address" |
|
|
@ -500,7 +510,7 @@ export default { |
|
|
|
message: `请联系${data.resiAgencyName}迁出该居民后操作` |
|
|
|
}) |
|
|
|
this.btnDisable = true |
|
|
|
} |
|
|
|
} else this.btnDisable = false |
|
|
|
this.userInfo = { ...data } |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
@ -771,13 +781,13 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async handleComfirm() { |
|
|
|
this.btnDisable = true |
|
|
|
|
|
|
|
// setTimeout(() => { |
|
|
|
// this.btnDisable = false |
|
|
|
// }, 10000) |
|
|
|
this.$refs['ref_form'].validate((valid, messageObj) => { |
|
|
|
if (!valid) { |
|
|
|
app.util.validateRule(messageObj) |
|
|
|
// app.util.validateRule(messageObj) |
|
|
|
this.btnDisable = false |
|
|
|
} else { |
|
|
|
if (!formVltHelper.userOrMobile(this.fmData.mobile)) { |
|
|
@ -786,6 +796,7 @@ export default { |
|
|
|
message: '手机号格式有误' |
|
|
|
}) |
|
|
|
} |
|
|
|
this.btnDisable = true |
|
|
|
if (this.fmData.isCheck && this.userInfo && this.userInfo.resiHomeId) { |
|
|
|
const { user } = this.$store.state |
|
|
|
if (user.agencyId == this.userInfo.resiAgencyId) { |
|
|
@ -804,8 +815,8 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else this.submit() |
|
|
|
} |
|
|
|
this.submit() |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
@ -846,6 +857,7 @@ export default { |
|
|
|
this.orgId = '' |
|
|
|
this.nowAllCode = [] |
|
|
|
this.btnDisable = false |
|
|
|
this.userInfo = {} |
|
|
|
this.fmData = iniFmData() |
|
|
|
} |
|
|
|
} |
|
|
|