Commit 5a8a0e11 by nlp97

1.日期默认当天

2、默认值为无
3、既往史有肺结核 ,出现既往史时间
parent fa3d6443
...@@ -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-19 20:37:01 * @LastEditTime: 2022-03-20 09:31:45
* @Description: * @Description:
--> -->
<template> <template>
...@@ -74,6 +74,7 @@ export default { ...@@ -74,6 +74,7 @@ export default {
// this.$store.dispatch("user/setpage", pageS); // this.$store.dispatch("user/setpage", pageS);
//page3 //page3
// AgreementMode
// inpatientNumber: "", //入院号 // inpatientNumber: "", //入院号
// agreementFloor: "", //楼层 // agreementFloor: "", //楼层
// bedNumber: "", //床号 // bedNumber: "", //床号
......
...@@ -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-19 17:46:03 * @LastEditTime: 2022-03-20 09:47:37
* @Description: * @Description:
--> -->
<template> <template>
...@@ -102,8 +102,13 @@ export default { ...@@ -102,8 +102,13 @@ export default {
showSignHandleVue: false, showSignHandleVue: false,
}; };
}, },
mounted() {}, mounted() {
this.setleaveDate();
},
methods: { methods: {
setleaveDate() {
this.leaveDate = formatDate(new Date(), "yyyy-MM-dd");
},
onCancel(val) { onCancel(val) {
console.log(val); console.log(val);
this.leaveSign = val; this.leaveSign = val;
......
...@@ -2,18 +2,37 @@ ...@@ -2,18 +2,37 @@
* @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-19 20:37:13 * @LastEditTime: 2022-03-20 09:34:04
* @Description: * @Description:
--> -->
<template> <template>
<div class="page3"> <div class="page3">
<div class="page3_header">本人决定选择以下方式:</div> <div class="page3_header">本人决定选择以下方式:</div>
<div class="page3_text"> <van-field colon name="AgreementMode">
1、向贵院出具授权委托书指定代理人;<br /> <template #input>
2、向贵院出具户籍等相关证明,明确法定伐理人; <br /> <van-radio-group v-model="AgreementMode">
3、本人決定不委托代理人,如本人疾病出现危急情况或不可预知情況,授权经治医师決定治疗方案,如有医疗风险和不良后果,由本人自行负责。<br /> <van-cell-group>
</div> <van-cell>
<van-radio name="向贵院出具授权委托书指定代理人"
>向贵院出具授权委托书指定代理人</van-radio
>
</van-cell>
<van-cell>
<van-radio name="向贵院出具户籍等相关证明,明确法定伐理人"
>向贵院出具户籍等相关证明,明确法定伐理人</van-radio
>
</van-cell>
<van-cell>
<van-radio
name="本人決定不委托代理人,如本人疾病出现危急情况或不可预知情況,授权经治医师決定治疗方案,如有医疗风险和不良后果,由本人自行负责。"
>本人決定不委托代理人,如本人疾病出现危急情况或不可预知情況,授权经治医师決定治疗方案,如有医疗风险和不良后果,由本人自行负责。</van-radio
>
</van-cell>
</van-cell-group>
</van-radio-group>
</template>
</van-field>
<van-field <van-field
colon colon
...@@ -106,7 +125,7 @@ export default { ...@@ -106,7 +125,7 @@ export default {
name: "page3", name: "page3",
data() { data() {
return { return {
AgreementMode: "", AgreementMode: "向贵院出具授权委托书指定代理人",
inpatientNumber: "", //入院号 inpatientNumber: "", //入院号
agreementFloor: "", //楼层 agreementFloor: "", //楼层
bedNumber: "", //床号 bedNumber: "", //床号
...@@ -118,8 +137,15 @@ export default { ...@@ -118,8 +137,15 @@ export default {
showSignHandleVue: false, showSignHandleVue: false,
}; };
}, },
mounted() {}, mounted() {
this.setAgreementDate();
},
methods: { methods: {
// 设置默认时间
setAgreementDate() {
this.agreementDate = formatDate(new Date(), "yyyy-MM-dd");
},
onCancel(val) { onCancel(val) {
this.agreementSign = val; this.agreementSign = val;
this.showSignHandleVue = false; this.showSignHandleVue = false;
......
...@@ -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-19 17:25:44 * @LastEditTime: 2022-03-20 10:04:43
* @Description: * @Description:
--> -->
<template> <template>
...@@ -10,6 +10,20 @@ ...@@ -10,6 +10,20 @@
<van-field <van-field
colon colon
clearable clearable
name="HasOnlineClass"
label-width="125px"
label="是否上网课"
>
<template #input>
<van-radio-group v-model="HasOnlineClass" direction="horizontal">
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field
colon
clearable
name="purpose" name="purpose"
label="来沪目的" label="来沪目的"
label-width="125px" label-width="125px"
...@@ -155,10 +169,26 @@ ...@@ -155,10 +169,26 @@
</van-checkbox-group> </van-checkbox-group>
</template> </template>
</van-field> </van-field>
<!-- -->
<van-field <van-field
colon colon
clearable clearable
name="HasCOVIDVaccine"
label-width="125px"
label="是否接种过疫苗"
>
<template #input>
<van-radio-group v-model="HasCOVIDVaccine" direction="horizontal">
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
</van-radio-group>
</template>
</van-field>
<van-field
v-if="HasCOVIDVaccine == '是'"
colon
clearable
v-model="covidVaccine" v-model="covidVaccine"
name="covidVaccine" name="covidVaccine"
label="接种针数" label="接种针数"
...@@ -229,15 +259,16 @@ export default { ...@@ -229,15 +259,16 @@ export default {
name: "page5", name: "page5",
data() { data() {
return { return {
HasOnlineClass: "否", //是否上网课
purpose: "学习", // 来沪目的 purpose: "学习", // 来沪目的
LeaveShangHai: "", //多少天未出上海 LeaveShangHai: "", //多少天未出上海
unusualDate: "", //核酸检测异常时间 unusualDate: "", //核酸检测异常时间
normalDate: "", //未发生异常时间 normalDate: "", //未发生异常时间
inHospitalDate: "", //120转运时间 inHospitalDate: "", //120转运时间
HasSymptom: "是", //有无症状 HasSymptom: "是", //有无症状
symptom: [], //患者症状 symptom: [], //患者症状
HasCOVIDVaccine: "是",
covidVaccine: 0, //接种针数 covidVaccine: 0, //接种针数
vaccineType: "", //疫苗公司 vaccineType: "", //疫苗公司
vaccineDate: "", //最后一次接种日期 vaccineDate: "", //最后一次接种日期
...@@ -257,8 +288,17 @@ export default { ...@@ -257,8 +288,17 @@ export default {
}, },
mounted() { mounted() {
this.getResource(); this.getResource();
this.setDefDate();
}, },
methods: { methods: {
setDefDate() {
this.unusualDate = formatDate(new Date(), "yyyy-MM-dd"); //核酸检测异常时间
this.normalDate = formatDate(new Date(), "yyyy-MM-dd"); //未发生异常时间
this.inHospitalDate = formatDate(new Date(), "yyyy-MM-dd"); //120转运时间
this.vaccineDate = formatDate(new Date(), "yyyy-MM-dd"); //最后一次接种日期
},
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-19 17:37:46 * @LastEditTime: 2022-03-20 10:17:21
* @Description: * @Description:
--> -->
<template> <template>
...@@ -79,8 +79,8 @@ ...@@ -79,8 +79,8 @@
> >
<template #input> <template #input>
<van-radio-group v-model="HasPreviousHistory" direction="horizontal"> <van-radio-group v-model="HasPreviousHistory" direction="horizontal">
<van-radio name="是"></van-radio> <van-radio name="有"></van-radio>
<van-radio name="否"></van-radio> <van-radio name="无"></van-radio>
</van-radio-group> </van-radio-group>
</template> </template>
</van-field> </van-field>
...@@ -91,10 +91,10 @@ ...@@ -91,10 +91,10 @@
name="previousHistory" name="previousHistory"
label-width="125px" label-width="125px"
label="既往史" label="既往史"
v-if="HasPreviousHistory != ''" v-if="HasPreviousHistory != ''"
:rules="[ :rules="[
{ {
required: HasPreviousHistory != '' ? true : false, required: HasPreviousHistory != '' ? true : false,
message: '请选择既往史', message: '请选择既往史',
}, },
]" ]"
...@@ -118,10 +118,13 @@ ...@@ -118,10 +118,13 @@
readonly readonly
clickable clickable
label-width="125px" label-width="125px"
v-if="HasPreviousHistory != '否'" v-if="HasPreviousHistory != '无' && previousHistory.includes('肺结核')"
:rules="[ :rules="[
{ {
required: HasPreviousHistory != '否' ? true : false, required:
HasPreviousHistory != '无' && previousHistory.includes('肺结核')
? true
: false,
message: '请选择既往史发生时间', message: '请选择既往史发生时间',
}, },
]" ]"
...@@ -152,14 +155,14 @@ ...@@ -152,14 +155,14 @@
> >
<template #input> <template #input>
<van-radio-group v-model="ChestCT" direction="horizontal"> <van-radio-group v-model="ChestCT" direction="horizontal">
<van-radio name="是"></van-radio> <van-radio name="有"></van-radio>
<van-radio name="否"></van-radio> <van-radio name="无"></van-radio>
</van-radio-group> </van-radio-group>
</template> </template>
</van-field> </van-field>
<van-field <van-field
v-if="ChestCT == ''" v-if="ChestCT == ''"
colon colon
clearable clearable
readonly readonly
...@@ -172,7 +175,7 @@ ...@@ -172,7 +175,7 @@
@click="showCalendar = true" @click="showCalendar = true"
:rules="[ :rules="[
{ {
required: ChestCT == '' ? true : false, required: ChestCT == '' ? true : false,
message: '请选择新冠肺炎CT拍照时间', message: '请选择新冠肺炎CT拍照时间',
}, },
]" ]"
...@@ -198,15 +201,15 @@ export default { ...@@ -198,15 +201,15 @@ export default {
name: "page6", name: "page6",
data() { data() {
return { return {
hasHistoryAllergies: "", //过敏史 hasHistoryAllergies: "", //过敏史
historyAllergies: "", //过敏原 historyAllergies: "", //过敏原
hasHistorySurgery: "", //手术史 hasHistorySurgery: "", //手术史
historySurgery: "", //具体内容 historySurgery: "", //具体内容
HasPreviousHistory: "", //有无既往史 HasPreviousHistory: "", //有无既往史
previousHistory: [], //既往史 previousHistory: [], //既往史
tuberculosisDate: "", //既往史发生时间 tuberculosisDate: "", //既往史发生时间
ChestCT: "", //有无CT ChestCT: "", //有无CT
ChestCTDate: "", //CT拍照时间 ChestCTDate: "", //CT拍照时间
previousHistoryList: [], previousHistoryList: [],
...@@ -219,8 +222,12 @@ export default { ...@@ -219,8 +222,12 @@ export default {
}, },
mounted() { mounted() {
this.getResource(); this.getResource();
this.setChestCTDate();
}, },
methods: { methods: {
setChestCTDate() {
this.ChestCTDate = formatDate(new Date(), "yyyy-MM-dd");
},
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: 2022-03-17 15:06:50 * @Date: 2022-03-17 15:06:50
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-19 19:37:12 * @LastEditTime: 2022-03-19 22:20:18
* @Description: * @Description:
*/ */
import http from '@/http/index' import http from '@/http/index'
...@@ -13,7 +13,7 @@ const state = { ...@@ -13,7 +13,7 @@ const state = {
token: '', token: '',
name: '', name: '',
userInfo: {}, userInfo: {},
page: 3, page: 1,
} }
const mutations = { const mutations = {
......
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