Browse Source

33

shibei_master
dai 3 years ago
parent
commit
60d6243a12
  1. 51
      src/views/modules/base/huji/chusheng/cpts/edit.vue

51
src/views/modules/base/huji/chusheng/cpts/edit.vue

@ -126,14 +126,22 @@
class="item_width_1"
maxlength="50"
show-word-limit
style="width: 200px;margin-right:20px;"
style="width: 200px; margin-right: 20px"
placeholder="请输入姓名 "
v-model="fmData.name"
>
</el-input>
<el-checkbox v-model="fmData.welfare" true-label="1" false-label="0" >享受福利</el-checkbox>
<el-checkbox v-model="fmData.isResiUser" true-label="1" false-label="0">补充居民信息</el-checkbox>
<el-checkbox v-model="fmData.isWelfare" true-label="1" false-label="0"
>享受福利</el-checkbox
>
<el-checkbox
v-model="fmData.isResiUser"
true-label="1"
false-label="0"
@change="checkResiAvailable"
>补充居民信息</el-checkbox
>
</el-form-item>
<el-form-item
@ -380,8 +388,8 @@ function iniFmData() {
name: "",
mobile: "",
idCard: "",
welfare: "", //01
isResiUser: "",
isWelfare: "0", //01
isResiUser: "0",
gender: "",
birthplace: "",
father: "",
@ -473,11 +481,38 @@ export default {
},
methods: {
async checkResiAvailable() {
const {
fmData: { idCard, isResiUser },
} = this;
if (isResiUser == "1" && isCard(idCard)) {
const { data, code, msg } = await requestPost(
"/epmetuser/icresiuser/checkuser",
{
idCard,
agencyId: this.$store.state.user.agencyId,
}
);
if (code === 0) {
if (!data.moveInstatus) {
this.$message({
type: "error",
message: `请联系${data.resiAgencyName}迁出该居民后操作`,
});
}
} else {
this.$message.error(msg);
}
}
},
handleBlurId() {
console.log("33333333333333333333");
const { sex, birth, age } = computedCard(this.fmData.idCard);
this.fmData.birthday = birth;
this.fmData.gender = sex == 1 ? "1" : "2";
if (birth) {
this.fmData.birthday = birth;
this.fmData.gender = sex == 1 ? "1" : "2";
this.checkResiAvailable();
}
},
handleClearVillage() {

Loading…
Cancel
Save