|
@@ -1,8 +1,8 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <van-nav-bar title="体温填报" left-text="返回" left-arrow>
|
|
|
|
|
|
+ <van-nav-bar title="体温填报" left-text="返回" left-arrow >
|
|
<template #right>
|
|
<template #right>
|
|
- <van-icon name="records" size="18" />
|
|
|
|
|
|
+ <van-icon name="records" size="18" @click="tianbao"/>
|
|
</template>
|
|
</template>
|
|
</van-nav-bar>
|
|
</van-nav-bar>
|
|
<div class="contents">
|
|
<div class="contents">
|
|
@@ -26,6 +26,7 @@
|
|
placeholder="请输入35.0~42.0"
|
|
placeholder="请输入35.0~42.0"
|
|
dir="rtl"
|
|
dir="rtl"
|
|
size="14"
|
|
size="14"
|
|
|
|
+ v-model="tiwen"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="contents_four">
|
|
<div class="contents_four">
|
|
@@ -37,26 +38,39 @@
|
|
value="是"
|
|
value="是"
|
|
checked
|
|
checked
|
|
@click="reasons2"
|
|
@click="reasons2"
|
|
|
|
+ v-model="yimiao"
|
|
/>是
|
|
/>是
|
|
- <input type="radio" name="yimiao" value="否" @click="reasons" />否
|
|
|
|
|
|
+ <input
|
|
|
|
+ type="radio"
|
|
|
|
+ name="yimiao"
|
|
|
|
+ value="否"
|
|
|
|
+ @click="reasons"
|
|
|
|
+ v-model="yimiao"
|
|
|
|
+ />否
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="contents_four">
|
|
<div class="contents_four">
|
|
<label for="hesuan">是否做过核酸检测</label>
|
|
<label for="hesuan">是否做过核酸检测</label>
|
|
<div>
|
|
<div>
|
|
- <input type="radio" name="hesuan" value="是" />是
|
|
|
|
- <input type="radio" name="hesuan" value="否" checked />否
|
|
|
|
|
|
+ <input type="radio" name="hesuan" value="是" v-model="hesuan" />是
|
|
|
|
+ <input
|
|
|
|
+ type="radio"
|
|
|
|
+ name="hesuan"
|
|
|
|
+ value="否"
|
|
|
|
+ v-model="hesuan"
|
|
|
|
+ checked
|
|
|
|
+ />否
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="contents" v-show="reason">
|
|
<div class="contents" v-show="reason">
|
|
<p class="contents_five">未接种疫苗原因</p>
|
|
<p class="contents_five">未接种疫苗原因</p>
|
|
-
|
|
|
|
- <textarea class="contents_five">
|
|
|
|
- 我暂时也不知道 我暂时也不知道 我暂时也不知道 我暂时也不知道
|
|
|
|
- 我暂时也不知道
|
|
|
|
- </textarea>
|
|
|
|
|
|
+ <textarea
|
|
|
|
+ placeholder="请说明原因"
|
|
|
|
+ class="textareas"
|
|
|
|
+ v-model="textareas"
|
|
|
|
+ ></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="buttons">
|
|
<div class="buttons">
|
|
<button @click="Submits">提交</button>
|
|
<button @click="Submits">提交</button>
|
|
@@ -71,7 +85,11 @@ export default {
|
|
return {
|
|
return {
|
|
name: "职工姓名",
|
|
name: "职工姓名",
|
|
department: "部门名称",
|
|
department: "部门名称",
|
|
- reason: true,
|
|
|
|
|
|
+ reason: false,
|
|
|
|
+ tiwen: "",
|
|
|
|
+ yimiao: "是",
|
|
|
|
+ hesuan: "否",
|
|
|
|
+ textareas: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -88,13 +106,28 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
reasons() {
|
|
reasons() {
|
|
- // this.reason=true
|
|
|
|
|
|
+ this.reason = true;
|
|
},
|
|
},
|
|
reasons2() {
|
|
reasons2() {
|
|
- // this.reason=false
|
|
|
|
|
|
+ this.reason = false;
|
|
},
|
|
},
|
|
- Submits(){
|
|
|
|
|
|
+ Submits() {
|
|
|
|
+ if (this.tiwen == "") {
|
|
|
|
+ this.$toast('请填写体温');
|
|
|
|
+ } else {
|
|
console.log(this.name);
|
|
console.log(this.name);
|
|
|
|
+ console.log(this.department);
|
|
|
|
+ console.log(this.tiwen);
|
|
|
|
+ console.log(this.yimiao);
|
|
|
|
+ console.log(this.hesuan);
|
|
|
|
+ if (this.reason == true) {
|
|
|
|
+ console.log(this.textareas);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ tianbao(){
|
|
|
|
+ // console.log("123");
|
|
|
|
+ this.$router.push("/zaoquan/yiqing/yiqing-tianbao")
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -214,7 +247,6 @@ input::-webkit-input-placeholder {
|
|
margin-left: 4px;
|
|
margin-left: 4px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
padding: 10px 5px;
|
|
padding: 10px 5px;
|
|
- border: none;
|
|
|
|
}
|
|
}
|
|
.buttons {
|
|
.buttons {
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -228,4 +260,12 @@ input::-webkit-input-placeholder {
|
|
color: #39f;
|
|
color: #39f;
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
|
|
+.textareas {
|
|
|
|
+ border: none;
|
|
|
|
+ margin-left: 8px;
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ width: 95%;
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ resize: none;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|