Browse Source

增加接种间隔查询条件

origin/feature/monitoring
zhangyuan 4 years ago
parent
commit
efb4493fef
  1. 2
      src/views/modules/epidemic/regist.vue
  2. 38
      src/views/modules/vim/vaccinationinfo.vue

2
src/views/modules/epidemic/regist.vue

@ -276,7 +276,7 @@ export default {
this.maxDose = res.data.maxDose this.maxDose = res.data.maxDose
this.doseAble = false this.doseAble = false
}).catch(() => { }) }).catch(() => { })
if (this.dataForm.companyId !== this.historyCompanyId) { if (this.dataForm.companyId !== this.historyCompanyId && this.historyCompanyId != 0) {
this.dataForm.vaccinationState = 1 this.dataForm.vaccinationState = 1
return this.$message.warning('与上次接种疫苗厂家不同') return this.$message.warning('与上次接种疫苗厂家不同')
} else { } else {

38
src/views/modules/vim/vaccinationinfo.vue

@ -24,8 +24,32 @@
placeholder="请输入手机号" placeholder="请输入手机号"
clearable></el-input> clearable></el-input>
</el-form-item> </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-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-form-item> <!-- <el-form-item>
<el-button type="primary" <el-button type="primary"
@ -163,6 +187,8 @@ export default {
id: '', id: '',
realName: '', realName: '',
identityNo: '', identityNo: '',
vaccNo: 0,
vaccTime: 0,
mobile: '' mobile: ''
}, },
options: [], options: [],
@ -179,6 +205,14 @@ export default {
this.getcompantyOptions() this.getcompantyOptions()
}, },
methods: { 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 () { getOptions () {
this.$http this.$http
.get(`/sys/vaccinetype/getVaccineList`) .get(`/sys/vaccinetype/getVaccineList`)
@ -242,7 +276,7 @@ export default {
btKeyUpIdentityNo (e) { btKeyUpIdentityNo (e) {
e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '') e.target.value = e.target.value.replace(/[`~!@#$%^&*()_+=<>?:"{}|·~!@#¥%……&*()——+={}|《》?:“”【】、;‘’,。、]/g, '')
this.dataForm.identityNo = e.target.value this.dataForm.identityNo = e.target.value
}, }
} }
} }
</script> </script>

Loading…
Cancel
Save