Commit 7d1d589b by nlp97

增加 食物过敏、药物过敏、药品过敏

parent ca6ca2ca
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-21 12:44:37
* @LastEditTime: 2022-03-21 12:59:01
* @Description:
-->
<template>
......@@ -195,7 +195,7 @@ export default {
this.$refs.vantform
.validate([
"hasHistoryAllergies", //过敏史
"historyAllergies", //过敏原
// "historyAllergies", //过敏原
"hasHistorySurgery", //手术史
"historySurgery", //具体内容
"HasPreviousHistory", //有无既往史
......
......@@ -224,7 +224,9 @@
label-width="130px"
type="number"
:rules="[{ required: true, message: '请填写接种针数' }]"
></van-field>
>
<template #extra></template></van-field
>
<van-field
v-if="covidVaccine > 0"
......
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 17:33:24
* @LastEditTime: 2022-03-21 13:10:20
* @Description:
-->
<template>
......@@ -22,7 +22,7 @@
</template>
</van-field>
<van-field
<!-- <van-field
v-if="hasHistoryAllergies == '有'"
colon
clearable
......@@ -37,8 +37,40 @@
message: '请填写过敏原',
},
]"
></van-field> -->
<van-field
v-if="hasHistoryAllergies == '有'"
colon
clearable
label-width="125px"
v-model="foodAllergy"
name="foodAllergy"
label="食物过敏原"
placeholder="食物过敏原"
></van-field>
<van-field
v-if="hasHistoryAllergies == '有'"
colon
clearable
label-width="125px"
v-model="drugAllergy"
name="drugAllergy "
label="药物过敏原"
placeholder="食物过敏原"
></van-field>
<van-field
v-if="hasHistoryAllergies == '有'"
colon
clearable
label-width="125px"
v-model="otherAllergy"
name="otherAllergy"
label="其他过敏原"
placeholder="其他过敏原"
></van-field>
<van-field
colon
clearable
name="hasHistorySurgery"
......@@ -238,6 +270,11 @@ export default {
return {
hasHistoryAllergies: "无", //过敏史
historyAllergies: "", //过敏原
foodAllergy: "", //食物过敏
drugAllergy: "", //药物过敏
otherAllergy: "", //其他过敏
hasHistorySurgery: "无", //手术史
historySurgery: "", //具体内容
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment