|
@ -33,11 +33,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-form-item label="身份证" label-width="80px" prop="idCard"> |
|
|
<el-form-item label="身份证" label-width="80px" prop="idCard"> |
|
|
<el-input v-model="checnInForm.idCard" placeholder="请输入用户名称" clearable style="width: 240px" /> |
|
|
<el-input v-model.trim="checnInForm.idCard" e placeholder="请输入用户名称" clearable style="width: 240px" maxlength="18"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="手机号" label-width="80px" prop="phone"> |
|
|
<el-form-item label="手机号" label-width="80px" prop="phone"> |
|
|
<el-input v-model="checnInForm.phone" placeholder="请输入手机号" clearable style="width: 240px" /> |
|
|
<el-input v-model.trim="checnInForm.phone" placeholder="请输入手机号" clearable style="width: 240px" maxlength="11"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button> |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button> |
|
@ -276,6 +276,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
async handleQuery(refresh) { |
|
|
async handleQuery(refresh) { |
|
|
try { |
|
|
try { |
|
|
|
|
|
if(!this.checnInForm.idCard && !this.checnInForm.phone){ |
|
|
|
|
|
this.$message.error('请输入身份证或手机号') |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
const res = await getResidentInfo({ |
|
|
const res = await getResidentInfo({ |
|
|
idCard: this.checnInForm.idCard, // 身份证 |
|
|
idCard: this.checnInForm.idCard, // 身份证 |
|
|
phone: this.checnInForm.phone, // 手机号 |
|
|
phone: this.checnInForm.phone, // 手机号 |
|
@ -289,7 +293,7 @@ export default { |
|
|
if(this.userInfo.checkInRecId){ |
|
|
if(this.userInfo.checkInRecId){ |
|
|
this.getCheckInRecInfo() |
|
|
this.getCheckInRecInfo() |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else if(!res.data){ |
|
|
this.$message.error("查询失败") |
|
|
this.$message.error("查询失败") |
|
|
} |
|
|
} |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|