|
|
@ -24,8 +24,32 @@ |
|
|
|
placeholder="请输入手机号" |
|
|
|
clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="生产企业" |
|
|
|
prop="companyId"> |
|
|
|
<el-select v-model="dataForm.companyId" clearable |
|
|
|
placeholder="请选择"> |
|
|
|
<el-option v-for="item in compantyOptions" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<br/> |
|
|
|
<el-form-item label="已接种至" |
|
|
|
prop="vaccNo"> |
|
|
|
<el-input-number v-model="dataForm.vaccNo" |
|
|
|
:min="0" clearable |
|
|
|
label="已接种至"></el-input-number> 针 |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="已接种满" label-width="90px" |
|
|
|
prop="vaccTime"> |
|
|
|
<el-input-number v-model="dataForm.vaccTime" |
|
|
|
:min="0" clearable |
|
|
|
label="已接种满"></el-input-number> 日 |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="getDataList()">{{ $t('query') }}</el-button> |
|
|
|
<el-button type="primary" @click="beforeGetDataList()">{{ $t('query') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
<!-- <el-form-item> |
|
|
|
<el-button type="primary" |
|
|
@ -163,6 +187,8 @@ export default { |
|
|
|
id: '', |
|
|
|
realName: '', |
|
|
|
identityNo: '', |
|
|
|
vaccNo: 0, |
|
|
|
vaccTime: 0, |
|
|
|
mobile: '' |
|
|
|
}, |
|
|
|
options: [], |
|
|
@ -179,6 +205,14 @@ export default { |
|
|
|
this.getcompantyOptions() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
beforeGetDataList () { |
|
|
|
if (this.dataForm.vaccNo === 0 && this.dataForm.vaccTime > 0) { |
|
|
|
return this.$message.error("请填写已接种至剂次") |
|
|
|
} else if (this.dataForm.vaccNo > 0 && this.dataForm.vaccTime === 0) { |
|
|
|
return this.$message.error("请填写已接种满时日") |
|
|
|
} |
|
|
|
this.getDataList() |
|
|
|
}, |
|
|
|
getOptions () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/vaccinetype/getVaccineList`) |
|
|
@ -242,7 +276,7 @@ export default { |
|
|
|
btKeyUpIdentityNo (e) { |
|
|
|
e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '') |
|
|
|
this.dataForm.identityNo = e.target.value |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|