Commit 078591ea by nlp97

Merge branch 'feature/单位、上一步' into develop

parents 923a45b4 3f66f7a3
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 17:30:58 * @LastEditTime: 2022-03-21 12:59:01
* @Description: * @Description:
--> -->
<template> <template>
...@@ -29,6 +29,16 @@ ...@@ -29,6 +29,16 @@
block block
type="info" type="info"
native-type="button" native-type="button"
v-if="page != 1 && page != 2 && page != 8"
@click="back()"
>上一步</van-button
>
<van-button
class="index_form_footer_next"
round
block
type="info"
native-type="button"
v-if="page != 1 && page != 2 && page != 7 && page != 8" v-if="page != 1 && page != 2 && page != 7 && page != 8"
@click="next()" @click="next()"
>下一步</van-button >下一步</van-button
...@@ -68,6 +78,10 @@ export default { ...@@ -68,6 +78,10 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { methods: {
back() {
let pageS = this.page;
this.$store.dispatch("user/setpage", pageS - 1);
},
next() { next() {
// let pageS = this.page + 1; // let pageS = this.page + 1;
...@@ -181,7 +195,7 @@ export default { ...@@ -181,7 +195,7 @@ export default {
this.$refs.vantform this.$refs.vantform
.validate([ .validate([
"hasHistoryAllergies", //过敏史 "hasHistoryAllergies", //过敏史
"historyAllergies", //过敏原 // "historyAllergies", //过敏原
"hasHistorySurgery", //手术史 "hasHistorySurgery", //手术史
"historySurgery", //具体内容 "historySurgery", //具体内容
"HasPreviousHistory", //有无既往史 "HasPreviousHistory", //有无既往史
...@@ -258,19 +272,18 @@ export default { ...@@ -258,19 +272,18 @@ export default {
height: 100%; height: 100%;
&_footer { &_footer {
/* position: absolute; */
/* bottom: 20px; */
width: 100%; width: 100%;
padding-top: 30px; padding-top: 30px;
padding-bottom: 30px; padding-bottom: 30px;
display: flex;
flex-direction: row;
justify-content: space-around;
&_next { &_next {
width: 319px; width: 25%;
height: 48px; height: 48px;
background: #0091ff; background: #0091ff;
border-radius: 24px; border-radius: 24px;
margin: 0 auto;
} }
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 17:27:50 * @LastEditTime: 2022-03-21 13:36:08
* @Description: * @Description:
--> -->
<template> <template>
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
required: thirtyDays == '是' ? true : false, required: thirtyDays == '是' ? true : false,
message: '请填写回上海天数', message: '请填写回上海天数',
}, },
{ validator, message: '天数不能大于三十天' },
]" ]"
> >
<template #extra></template></van-field <template #extra></template></van-field
...@@ -224,7 +225,9 @@ ...@@ -224,7 +225,9 @@
label-width="130px" label-width="130px"
type="number" type="number"
:rules="[{ required: true, message: '请填写接种针数' }]" :rules="[{ required: true, message: '请填写接种针数' }]"
></van-field> >
<template #extra></template></van-field
>
<van-field <van-field
v-if="covidVaccine > 0" v-if="covidVaccine > 0"
...@@ -362,6 +365,10 @@ export default { ...@@ -362,6 +365,10 @@ export default {
this.showPurpose = false; this.showPurpose = false;
}, },
validator(val) {
return val < 30 || val == 30;
},
getResource() { getResource() {
this.setLoading(true); this.setLoading(true);
this.$http.get(`/Research/Resource`, {}).then((data) => { this.$http.get(`/Research/Resource`, {}).then((data) => {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 17:33:24 * @LastEditTime: 2022-03-21 13:10:20
* @Description: * @Description:
--> -->
<template> <template>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</template> </template>
</van-field> </van-field>
<van-field <!-- <van-field
v-if="hasHistoryAllergies == '有'" v-if="hasHistoryAllergies == '有'"
colon colon
clearable clearable
...@@ -37,8 +37,40 @@ ...@@ -37,8 +37,40 @@
message: '请填写过敏原', 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>
<van-field <van-field
v-if="hasHistoryAllergies == '有'"
colon
clearable
label-width="125px"
v-model="otherAllergy"
name="otherAllergy"
label="其他过敏原"
placeholder="其他过敏原"
></van-field>
<van-field
colon colon
clearable clearable
name="hasHistorySurgery" name="hasHistorySurgery"
...@@ -238,6 +270,11 @@ export default { ...@@ -238,6 +270,11 @@ export default {
return { return {
hasHistoryAllergies: "无", //过敏史 hasHistoryAllergies: "无", //过敏史
historyAllergies: "", //过敏原 historyAllergies: "", //过敏原
foodAllergy: "", //食物过敏
drugAllergy: "", //药物过敏
otherAllergy: "", //其他过敏
hasHistorySurgery: "无", //手术史 hasHistorySurgery: "无", //手术史
historySurgery: "", //具体内容 historySurgery: "", //具体内容
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-03-17 15:06:50 * @Date: 2022-03-17 15:06:50
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 15:38:30 * @LastEditTime: 2022-03-21 13:40:05
* @Description: * @Description:
*/ */
import http from '@/http/index' import http from '@/http/index'
......
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