Commit 5a8a0e11 by nlp97

1.日期默认当天

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