|
|
@ -153,7 +153,7 @@ |
|
|
|
>补充居民信息</el-checkbox |
|
|
|
> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<el-checkbox |
|
|
|
v-else |
|
|
|
v-model="fmData.isCheck" |
|
|
@ -183,14 +183,14 @@ |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item |
|
|
|
label="身份证号" |
|
|
|
label="证件号" |
|
|
|
prop="idCard" |
|
|
|
label-width="150px" |
|
|
|
style="display: block" |
|
|
|
> |
|
|
|
<el-input |
|
|
|
class="item_width_1" |
|
|
|
placeholder="请输入身份证号" |
|
|
|
placeholder="请输入身份证号或护照号" |
|
|
|
v-model="fmData.idCard" |
|
|
|
:disabled="formType === 'edit'" |
|
|
|
@blur="handleBlurId" |
|
|
@ -282,9 +282,9 @@ |
|
|
|
disabled |
|
|
|
v-model="fmData.sourceAddress" |
|
|
|
/> |
|
|
|
<el-cascader v-else ref="nowArea" class="item_width_1" :props="areaProps" |
|
|
|
<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="详细地址" |
|
|
@ -439,10 +439,10 @@ export default { |
|
|
|
dataRule() { |
|
|
|
let checkIdCard = (rule, value, callback) => { |
|
|
|
if (value === '') { |
|
|
|
callback(new Error('请输入身份证')) |
|
|
|
callback(new Error('请输入证件号')) |
|
|
|
} else { |
|
|
|
if (!isCard(value)) { |
|
|
|
callback(new Error('身份证号格式不正确')) |
|
|
|
callback(new Error('证件号格式不正确')) |
|
|
|
} |
|
|
|
callback() |
|
|
|
} |
|
|
@ -457,7 +457,7 @@ export default { |
|
|
|
], |
|
|
|
name: [{ required: true, message: '姓名不能为空', trigger: 'blur' }], |
|
|
|
idCard: [ |
|
|
|
{ required: true, message: '身份证号不能为空', trigger: 'blur' }, |
|
|
|
{ required: true, message: '证件号不能为空', trigger: 'blur' }, |
|
|
|
{ required: true, validator: checkIdCard, trigger: 'blur' } |
|
|
|
], |
|
|
|
inTime: [ |
|
|
@ -491,7 +491,7 @@ export default { |
|
|
|
async mounted() { |
|
|
|
console.log('mounted-----我执行了') |
|
|
|
await this.getGridList() |
|
|
|
|
|
|
|
|
|
|
|
this.getRelationList() |
|
|
|
}, |
|
|
|
|
|
|
@ -616,7 +616,7 @@ export default { |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
const nodes = data.map(item => ({ |
|
|
|
value: item.areaCode, // |
|
|
|
value: item.areaCode, // |
|
|
|
label: item.areaName, |
|
|
|
code: item.areaCode, |
|
|
|
level: item.level, |
|
|
@ -748,7 +748,7 @@ export default { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取户主信息成功', res.data) |
|
|
|
|
|
|
|
|
|
|
|
if (res.data) { |
|
|
|
const { name } = res.data |
|
|
|
this.fmData.householderName = name |
|
|
@ -767,7 +767,7 @@ export default { |
|
|
|
this.$refs.ref_form.resetFields() |
|
|
|
|
|
|
|
this.formType = type |
|
|
|
|
|
|
|
|
|
|
|
if (id) { |
|
|
|
await this.getDatail(id) |
|
|
|
} |
|
|
@ -780,7 +780,7 @@ export default { |
|
|
|
}, |
|
|
|
async getDatail(moveInId) { |
|
|
|
let url = '/epmetuser/icMoveIn/detail' |
|
|
|
|
|
|
|
|
|
|
|
const params = { |
|
|
|
moveInId: moveInId || '' |
|
|
|
} |
|
|
@ -793,7 +793,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
async handleComfirm() { |
|
|
|
|
|
|
|
|
|
|
|
// setTimeout(() => { |
|
|
|
// this.btnDisable = false |
|
|
|
// }, 10000) |
|
|
@ -821,21 +821,21 @@ export default { |
|
|
|
this.fmData.isReplace = '1' |
|
|
|
this.submit() |
|
|
|
}).catch(() => { |
|
|
|
this.fmData.isReplace = '0' |
|
|
|
this.submit() |
|
|
|
this.fmData.isReplace = '0' |
|
|
|
this.submit() |
|
|
|
}); |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.submit() |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
async submit() { |
|
|
|
|
|
|
|
|
|
|
|
let url = '' |
|
|
|
if (this.formType === 'add') { |
|
|
|
url = '/epmetuser/icMoveIn/add' |
|
|
|