Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ShanghaiGongwei
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
ShanghaiGongwei
Commits
5a8a0e11
Commit
5a8a0e11
authored
Mar 20, 2022
by
nlp97
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.日期默认当天
2、默认值为无 3、既往史有肺结核 ,出现既往史时间
parent
fa3d6443
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
110 additions
and
31 deletions
+110
-31
src/components/index.vue
+2
-1
src/components/leaveHospital.vue
+7
-2
src/components/page3.vue
+34
-8
src/components/page5.vue
+43
-3
src/components/page6.vue
+22
-15
src/store/modules/user.js
+2
-2
No files found.
src/components/index.vue
View file @
5a8a0e11
...
...
@@ -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: "", //床号
...
...
src/components/leaveHospital.vue
View file @
5a8a0e11
...
...
@@ -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
;
...
...
src/components/page3.vue
View file @
5a8a0e11
...
...
@@ -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
;
...
...
src/components/page5.vue
View file @
5a8a0e11
...
...
@@ -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
)
=>
{
...
...
src/components/page6.vue
View file @
5a8a0e11
...
...
@@ -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
)
=>
{
...
...
src/store/modules/user.js
View file @
5a8a0e11
...
...
@@ -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
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment