Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
0f230b01
提交
0f230b01
编写于
5月 16, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加接口
上级
a5336279
变更
5
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
322 行增加
和
177 行删除
+322
-177
element-reset.css
src/style/patients-style/element-reset.css
+44
-0
patientsapi.js
src/utils/patients/patientsapi.js
+12
-3
basic-info.vue
src/views/patients/mypatients-manage/basic-info.vue
+9
-17
edit-information.vue
...atients/mypatients-manage/components/edit-information.vue
+205
-103
patient-detail.vue
src/views/patients/mypatients-manage/patient-detail.vue
+52
-54
未找到文件。
src/style/patients-style/element-reset.css
浏览文件 @
0f230b01
...
...
@@ -22,3 +22,47 @@
padding-left
:
20px
;
padding-right
:
20px
;
}
/*重置单选按钮样式*/
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
{
background-color
:
#449284
;
border-color
:
#449284
;
box-shadow
:
-1px
0
0
0
#449284
;
}
.el-radio-button__inner
:hover
{
color
:
#449284
;
}
/*重置输入框,选择框样式*/
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
,
.el-select
.el-input.is-focus
.el-input__inner
,
.el-input__inner
:focus
{
border-color
:
#449284
;
}
.el-select-dropdown__item.selected
{
color
:
#449284
;
}
.el-select
.el-input__inner
:focus
{
border-color
:
#449284
;
}
/*重置文字按钮样式*/
.el-button--text
{
color
:
#606266
;
}
.el-button--text
:focus
,
.el-button--text
:hover
{
color
:
#449284
;
}
/*重置表格选择框*/
.el-checkbox__input.is-checked
.el-checkbox__inner
,
.el-checkbox__input.is-indeterminate
.el-checkbox__inner
{
border-color
:
#449284
;
background-color
:
#449284
;
}
.el-checkbox__inner
{
border-color
:
#DCDFE6
!important
;
}
.el-checkbox__input.is-focus
,
.el-checkbox__inner
:hover
,
.el-checkbox__inner.is-focus
{
border-color
:
#449284
!important
;
}
/*重置textarea聚焦样式*/
.el-textarea__inner
:focus
{
border-color
:
#449284
!important
;
}
src/utils/patients/patientsapi.js
浏览文件 @
0f230b01
...
...
@@ -152,12 +152,21 @@ export const savePatientInfo = (data) => {
description
:
'保存居民信息'
,
})
};
export
const
get
Label
sList
=
(
params
)
=>
{
export
const
get
Nation
sList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`
healths/labels/
`
),
url
:
getBaseUrl
(
`
resident/constants/nations
`
),
method
:
'get'
,
params
:
params
,
description
:
'获取分组列表'
,
description
:
'获取56个民族列表'
,
})
};
export
const
getHealthRecordList
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`followup/entering/health/records`
),
method
:
'post'
,
data
:
data
,
description
:
'健康档案记录列表'
,
})
};
src/views/patients/mypatients-manage/basic-info.vue
浏览文件 @
0f230b01
...
...
@@ -9,9 +9,9 @@
<div
class=
"f-main-content screenSet"
>
<div
class=
"header-title"
>
<span>
基本信息
</span>
<p><el-button
plain
size=
"small"
>
取消
</el-button><el-button
type=
"primary"
size=
"small"
>
保存
</el-button></p>
<p><el-button
plain
size=
"small"
>
取消
</el-button><el-button
type=
"primary"
size=
"small"
@
click=
"saveEdit"
>
保存
</el-button></p>
</div>
<edit-information></edit-information>
<edit-information
:patientInfoObj=
"patientInfo"
:checkForm=
"checkForm"
></edit-information>
</div>
</div>
</
template
>
...
...
@@ -20,7 +20,7 @@
import
BreadCrumb
from
'@/components/breadcrumb'
import
editInformation
from
'./components/edit-information'
import
{
mapGetters
}
from
'vuex'
import
{
get
DiseasesList
,
get
PatientDetail
,
getRemindPatient
,
deletePatient
,
savePatientInfo
}
from
'@/utils/patients/patientsapi'
import
{
getPatientDetail
,
getRemindPatient
,
deletePatient
,
savePatientInfo
}
from
'@/utils/patients/patientsapi'
export
default
{
name
:
"basicInfo"
,
components
:
{
...
...
@@ -34,35 +34,24 @@
curmbSecond
:
'我的居民'
,
curmbThird
:
'居民详情'
,
jumPathThird
:
'/patients-manage/mypatients-manage/patients-list'
,
patientId
:
'
99997786
'
,
//暂时写死一个居民的patientId
patientId
:
''
,
//暂时写死一个居民的patientId
patientInfo
:
{
isWechatBind
:
1
,
remark
:
''
,
},
showLabelName
:
''
,
showDiseaseName
:
''
,
birthTimeDisplay
:
''
,
recordList
:
[{}],
checkForm
:
false
}
},
created
()
{
this
.
patientId
=
this
.
$route
.
query
.
patientId
;
this
.
init
();
// getDiseasesList().then(({data}) => {
// console.log('获取所有疾病',data)
// })
},
computed
:
{
// ...mapState('planManage',{
// remarkOption: state => state.remarkOption,
// templateOptions: state => state.templateOptions,
// })
...
mapGetters
([
'_token'
,
])
},
methods
:
{
// ...mapActions('planManage', ['getTimeNodeList','getRemarkOption','getFollowupTemplate']),
init
()
{
getPatientDetail
(
this
.
patientId
).
then
((
data
)
=>
{
if
(
data
.
code
==
'000000'
)
{
...
...
@@ -103,6 +92,9 @@
}
})
},
saveEdit
()
{
this
.
checkForm
=
true
;
},
//提醒绑定
remindBind
()
{
let
remindMobileWechatPara
=
{
...
...
src/views/patients/mypatients-manage/components/edit-information.vue
浏览文件 @
0f230b01
此差异已折叠。
点击以展开。
src/views/patients/mypatients-manage/patient-detail.vue
浏览文件 @
0f230b01
...
...
@@ -80,45 +80,28 @@
</el-tab-pane>
<el-tab-pane
label=
"健康记录"
name=
"second"
>
<div
class=
"health-record-list"
v-if=
"recordList.length"
>
<div
class=
"item"
>
<div
class=
"record-date"
>
2019-3-20
</div>
<div
class=
"record-content"
>
<div
class=
"record-title"
>
<p>
长海医院2型糖尿病18年随访计划-第3次随访
</p>
<span>
门诊随访
</span>
</div>
<div
class=
"list-visit"
>
<span
class=
"left-label"
>
患教内容:
</span>
<div
class=
"right-item"
>
健康漫画标题
</div>
</div>
<div
class=
"list-visit"
>
<span
class=
"left-label"
>
随访量表:
</span>
<div
class=
"right-item"
>
<p>
高血压随访量表
<span
class=
"check-btn"
@
click=
"openScaleDetail"
>
查看量表
</span></p>
<p>
糖尿病随访量表
<span
class=
"check-btn"
@
click=
"openScaleDetail"
>
查看量表
</span></p>
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"record-date"
>
2019-2-20
</div>
<div
class=
"item"
v-for=
"(item, index) in recordList"
:key=
"index"
>
<div
class=
"record-date"
>
{{
item
.
finishedTime
}}
</div>
<div
class=
"record-content"
>
<div
class=
"record-title"
>
<p>
长海医院2型糖尿病18年随访计划-第3
次随访
</p>
<span>
门诊随访
</span>
<p>
{{
item
.
name
}}
-第
{{
item
.
seqNo
}}
次随访
</p>
<span>
{{
item
.
fuTypeValue
}}
</span>
</div>
<div
class=
"list-visit"
>
<span
class=
"left-label"
>
患教内容:
</span>
<div
class=
"right-item"
>
健康漫画标题
</div>
<div
class=
"right-item"
>
{{
item
.
sendContent
|
emptyFilter
}}
</div>
</div>
<div
class=
"list-visit"
>
<span
class=
"left-label"
>
随访量表:
</span>
<div
class=
"right-item"
>
<p>
高血压随访量表
<span
class=
"check-btn"
@
click=
"openScaleDetail"
>
查看量表
</span></p>
<p
v-for=
"(item2, index2) in item.scaleSimpleDtos"
:key=
"index2"
>
{{
item2
.
name
}}
<!--
<span
class=
"check-btn"
@
click=
"openScaleDetail(item2.url)"
>
查看量表
</span>
-->
</p>
</div>
</div>
</div>
</div>
<p
style=
"text-align: center;padding:10px 0;cursor: pointer"
>
点击加载更多
</p>
</div>
<div
class=
"no-record-content"
v-if=
"!recordList.length"
>
<div>
...
...
@@ -136,7 +119,7 @@
<
script
>
import
BreadCrumb
from
'@/components/breadcrumb'
import
{
mapGetters
}
from
'vuex'
import
{
getDiseasesList
,
getPatientDetail
,
getRemindPatient
,
deletePatient
,
savePatientInfo
}
from
'@/utils/patients/patientsapi'
import
{
getDiseasesList
,
getPatientDetail
,
getRemindPatient
,
deletePatient
,
savePatientInfo
,
getHealthRecordList
}
from
'@/utils/patients/patientsapi'
export
default
{
name
:
"patientDetail"
,
components
:
{
...
...
@@ -151,6 +134,7 @@
jumPathThird
:
'/patients-manage/mypatients-manage/patients-list'
,
activeName
:
'first'
,
patientId
:
''
,
doctorId
:
''
,
patientInfo
:
{
isWechatBind
:
1
,
remark
:
''
,
...
...
@@ -158,33 +142,28 @@
showLabelName
:
''
,
showDiseaseName
:
''
,
birthTimeDisplay
:
''
,
recordList
:
[{}],
recordList
:
[],
hasMore
:
true
,
}
},
created
()
{
this
.
patientId
=
this
.
$route
.
query
.
patientId
;
this
.
init
();
// getDiseasesList().then(({data}) => {
// console.log('获取所有疾病',data)
// })
},
mounted
()
{
},
computed
:
{
// ...mapState('planManage',{
// remarkOption: state => state.remarkOption,
// templateOptions: state => state.templateOptions,
// })
...
mapGetters
([
'_token'
,
])
},
methods
:
{
// ...mapActions('planManage', ['getTimeNodeList','getRemarkOption','getFollowupTemplate']),
init
()
{
getPatientDetail
(
this
.
patientId
).
then
((
data
)
=>
{
if
(
data
.
code
==
'000000'
)
{
this
.
patientInfo
=
data
.
data
;
if
(
this
.
patientInfo
){
this
.
doctorId
=
this
.
patientInfo
.
doctorId
;
let
customLabels
=
this
.
patientInfo
.
customLabels
;
let
diseases
=
this
.
patientInfo
.
diseases
;
let
groupLabelNames
=
[];
...
...
@@ -220,11 +199,30 @@
}
})
},
getRecordList
(
pageNo
,
pageSize
)
{
let
reqPara
=
{
doctorId
:
'101281458'
,
// patientId: this.patientId,
patientId
:
'99997701'
,
pageNo
:
pageNo
,
pageSize
:
pageSize
,
}
getHealthRecordList
(
reqPara
).
then
((
data
)
=>
{
if
(
data
.
code
==
'000000'
){
this
.
recordList
=
data
.
data
.
healthRecordDtos
;
// let total = data.data.count;
}
else
{
this
.
$message
.
error
(
data
.
message
)
}
})
},
tabChangeHandler
(
tab
)
{
// console.log(tab);
if
(
tab
.
name
==
'second'
){
this
.
getRecordList
(
1
,
2
);
}
},
deletePatient
()
{
// 把写的提示信
心
需要换行的地方分成数组 confirmText
// 把写的提示信
息
需要换行的地方分成数组 confirmText
const
confirmText
=
[
'您确定要删除此居民吗?'
,
'删除后,您将无法对该居民发送患教和进行随访,重新添加该居民依旧可查看历史发送记录及随访记录'
];
const
newDatas
=
[];
const
h
=
this
.
$createElement
;
...
...
@@ -241,7 +239,6 @@
let
reqParam
=
{
patientIdList
:
[
this
.
patientId
],
token
:
this
.
_token
,
// token: 'AB2BEE40C5AD452E93688D31A14E8C12',
};
deletePatient
(
reqParam
).
then
(
data
=>
{
if
(
data
.
code
==
'000000'
)
{
...
...
@@ -268,7 +265,14 @@
});
});
},
editPatient
()
{},
editPatient
()
{
this
.
$router
.
push
({
path
:
'/patients-manage/mypatients-manage/basic-info'
,
query
:
{
patientId
:
this
.
patientId
}
})
},
//提醒绑定
remindBind
()
{
let
remindMobileWechatPara
=
{
...
...
@@ -281,6 +285,7 @@
}).
then
(
data
=>
{
if
(
data
.
code
==
'000000'
)
{
this
.
$message
.
success
(
data
.
data
.
respMsg
);
this
.
init
();
}
else
{
this
.
$message
.
error
(
data
.
message
);
}
...
...
@@ -291,26 +296,17 @@
savePatientInfo
(
this
.
patientInfo
).
then
(
data
=>
{
if
(
data
.
code
==
'000000'
){
this
.
$message
.
success
(
'保存备注成功'
)
this
.
init
();
}
else
{
this
.
$message
.
error
(
data
.
message
);
}
})
},
//查看量表详情
openScaleDetail
()
{
console
.
log
(
'打开量表'
);
// this.$router.push({
// path: '/followup/record-manage/form-template',
// query: {
// doctorId: val.doctorId,
// scaleNo: val.resourceId,
// planPatientsTimesId:
// val.planPatientsTimesId,
// showBtn: 0
// }
// });
// window.open()
openScaleDetail
(
url
)
{
window
.
open
(
url
)
},
},
filters
:
{
emptyFilter
:
function
(
value
)
{
...
...
@@ -391,6 +387,8 @@
}
}
.health-record-list
{
height
:
500px
;
overflow-y
:
scroll
;
.item
{
width
:
100%
;
margin-bottom
:
15px
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录