Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
2bdfc289
提交
2bdfc289
编写于
8月 16, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
居民详情编辑修改,选择居民的诊断检索修改
上级
81d652ec
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
93 行增加
和
26 行删除
+93
-26
patientsapi.js
src/utils/patients/patientsapi.js
+2
-2
select-patitents.vue
src/views/patients/labels-manage/dialog/select-patitents.vue
+56
-7
edit-information.vue
...atients/mypatients-manage/components/edit-information.vue
+15
-8
patient-detail.vue
src/views/patients/mypatients-manage/patient-detail.vue
+14
-4
patients-list.vue
src/views/patients/mypatients-manage/patients-list.vue
+6
-5
未找到文件。
src/utils/patients/patientsapi.js
浏览文件 @
2bdfc289
...
...
@@ -455,8 +455,8 @@ export const goToSearch = params => {
export
const
getIcdList
=
params
=>
{
return
fetch
({
headers
,
//
url: getBaseUrl(`healths/icd/list`),
url
:
'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/46/healths/icd/list'
,
url
:
getBaseUrl
(
`healths/icd/list`
),
//
url: 'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/46/healths/icd/list',
method
:
'get'
,
params
:
params
,
description
:
'选择或搜索诊断'
,
...
...
src/views/patients/labels-manage/dialog/select-patitents.vue
浏览文件 @
2bdfc289
...
...
@@ -54,7 +54,7 @@
</el-select>
</el-form-item>
<el-form-item
prop=
"diseaseId"
>
<el-select
<
!--
<
el-select
v-model=
"searchData.diseaseId"
multiple
collapse-tags
...
...
@@ -67,8 +67,26 @@
:key=
"index"
:label=
"item.diseaseName"
:value=
"item.diseaseId"
>
</el-option>
</el-select>
</el-option>
-->
<!--
</el-select>
-->
<el-select
v-model=
"searchData.icdCodeList"
multiple
filterable
remote
reserve-keyword
placeholder=
"请选择或搜索诊断"
:remote-method=
"getDiseaseData"
:loading=
"loading"
class=
"set-width"
>
<el-option
v-for=
"item in icdOptions"
:key=
"item.icdCode"
:label=
"item.diseaseName"
:value=
"item.icdCode"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
prop=
"labelId"
>
<el-select
...
...
@@ -229,7 +247,7 @@
<
script
>
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
getConstants
,
getPatientInfoList
,
getDiseasesList
,
getLabelList
}
from
'@/utils/patients/patientsapi'
import
{
getConstants
,
getPatientInfoList
,
getDiseasesList
,
getLabelList
,
getIcdList
}
from
'@/utils/patients/patientsapi'
import
{
getPlanList
}
from
'@/utils/followup/followapis'
export
default
{
components
:
{},
...
...
@@ -248,7 +266,8 @@
diseaseId
:
[],
labelId
:
[],
fuPlanIdList
:
[],
searchCondition
:
''
searchCondition
:
''
,
icdCodeList
:
[],
},
paginationSet
:
{
pageNum
:
1
,
...
...
@@ -272,6 +291,8 @@
newSelects
:
[],
//新选中的人
oldPatientList
:
[],
showReloadModal
:
false
,
loading
:
false
,
icdOptions
:
[],
getRowKeys
(
row
)
{
return
row
.
patientId
;
},
...
...
@@ -292,6 +313,8 @@
isShowSelectPatient
(
val
){
if
(
val
){
this
.
getPatientsList
()
//获取搜索诊断
this
.
getDiseaseData
();
// 获取常量 性别、年龄
getConstants
({
numList
:
'P057,P006'
...
...
@@ -342,6 +365,29 @@
return
row
.
disableNum
}
},
getDiseaseData
(
query
)
{
if
(
query
!==
''
)
{
let
params
=
{
icdName
:
query
?
query
:
''
,
pageSize
:
200
,
pageNum
:
1
,
};
this
.
loading
=
true
;
getIcdList
(
params
).
then
(
data
=>
{
this
.
loading
=
false
;
if
(
data
.
code
==
"000000"
)
{
this
.
icdOptions
=
data
.
data
;
}
}).
catch
((
error
)
=>
{
this
.
$message
({
message
:
error
,
type
:
'error'
});
});
}
else
{
this
.
icdOptions
=
[];
}
},
getPatientsList
(){
const
data
=
{
pageSize
:
this
.
paginationSet
.
pageSize
,
...
...
@@ -355,6 +401,7 @@
addType
:
this
.
selectPatientType
,
//随访是1,分组是2,患教是3
fuPlanIdList
:
this
.
searchData
.
fuPlanIdList
||
[],
sourceId
:
this
.
sourceId
,
//若是随访的话,传planId;若是分组的话,传labeledId;
icdCodeList
:
this
.
searchData
.
icdCodeList
}
getPatientInfoList
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
patientList
){
...
...
@@ -486,7 +533,8 @@
diseaseId
:
[],
labelId
:
[],
fuPlanIdList
:
[],
searchCondition
:
''
searchCondition
:
''
,
icdCodeList
:
[],
}
this
.
$emit
(
'closeSelectPatient'
,
false
)
},
...
...
@@ -499,7 +547,8 @@
diseaseId
:
[],
labelId
:
[],
fuPlanIdList
:
[],
searchCondition
:
''
searchCondition
:
''
,
icdCodeList
:
[],
}
this
.
$emit
(
'sureSelectPatient'
,
false
,
this
.
newSelects
,
this
.
oldPatientList
)
}
else
{
...
...
src/views/patients/mypatients-manage/components/edit-information.vue
浏览文件 @
2bdfc289
...
...
@@ -51,7 +51,7 @@
</el-select>
-->
<el-button
icon=
"el-icon-plus"
@
click=
"handleAddDiagnose"
>
添加诊断
</el-button>
<ul
class=
"final-diagnose-list"
v-if=
"selectedDiagList && selectedDiagList.length > 0"
>
<li
v-for=
"diagnose in selectedDiagList"
v-html=
"diagnose.
n
ame+'; '"
></li>
<li
v-for=
"diagnose in selectedDiagList"
v-html=
"diagnose.
diseaseN
ame+'; '"
></li>
</ul>
</el-form-item>
</el-col>
...
...
@@ -384,7 +384,8 @@
this
.
patientInfoForm
=
val
;
this
.
baseInfoEdit
=
this
.
patientInfoForm
.
baseInfoEdit
;
let
customLabels
=
this
.
patientInfoForm
.
customLabels
;
let
diseases
=
this
.
patientInfoForm
.
diseases
;
// let diseases = this.patientInfoForm.diseases;
let
icdList
=
this
.
patientInfoForm
.
icdList
;
if
(
customLabels
&&
customLabels
.
length
>
0
){
customLabels
.
forEach
((
kkk
)
=>
{
this
.
labelIdList
.
push
(
Number
(
kkk
.
labelId
))
...
...
@@ -392,12 +393,17 @@
}
else
{
this
.
labelIdList
=
[];
}
if
(
diseases
&&
diseases
.
length
>
0
)
{
diseases
.
forEach
((
dis
)
=>
{
this
.
diseaseIdList
.
push
(
Number
(
dis
.
diseaseId
))
}
)
// if(diseases && diseases.length > 0)
{
// diseases.forEach((dis)=>
{
// this.diseaseIdList.push(Number(dis.diseaseId))
//
}
)
//
}
else
{
// this.diseaseIdList = [];
//
}
if
(
icdList
&&
icdList
.
length
>
0
)
{
this
.
$store
.
dispatch
(
'patientsDiagnose/changeDiagnoseList'
,
icdList
)
}
else
{
this
.
diseaseIdList
=
[];
this
.
$store
.
dispatch
(
'patientsDiagnose/changeDiagnoseList'
,
[])
}
if
(
this
.
patientInfoForm
.
idNo
)
{
this
.
hasIdNo
=
true
;
...
...
@@ -487,7 +493,8 @@
cityId
:
null
,
countyId
:
null
,
townId
:
null
,
}
}
;
this
.
$store
.
dispatch
(
'patientsDiagnose/changeDiagnoseList'
,
[])
}
,
// 点击 添加诊断
handleAddDiagnose
()
{
...
...
src/views/patients/mypatients-manage/patient-detail.vue
浏览文件 @
2bdfc289
...
...
@@ -185,7 +185,8 @@
if
(
this
.
patientInfo
){
this
.
doctorId
=
this
.
patientInfo
.
doctorId
;
let
customLabels
=
this
.
patientInfo
.
customLabels
;
let
diseases
=
this
.
patientInfo
.
diseases
;
// let diseases = this.patientInfo.diseases;
let
icdList
=
this
.
patientInfo
.
icdList
;
let
groupLabelNames
=
[];
let
groupDiseaseNames
=
[];
//对出生日期的处理
...
...
@@ -206,9 +207,18 @@
}
else
{
this
.
showLabelName
=
''
;
}
// 对诊断疾病的处理
if
(
diseases
)
{
diseases
.
forEach
(
item
=>
{
// 对诊断疾病的处理(老版诊断)
// if(diseases)
{
// diseases.forEach(item =>
{
// groupDiseaseNames.push(item.diseaseName)
//
}
);
// this.showDiseaseName = groupDiseaseNames.join(';');
//
}
else
{
// this.showDiseaseName = '';
//
}
// 对诊断疾病的处理(新版诊断)
if
(
icdList
)
{
icdList
.
forEach
(
item
=>
{
groupDiseaseNames
.
push
(
item
.
diseaseName
)
}
);
this
.
showDiseaseName
=
groupDiseaseNames
.
join
(
';'
);
...
...
src/views/patients/mypatients-manage/patients-list.vue
浏览文件 @
2bdfc289
...
...
@@ -49,11 +49,12 @@
placeholder=
"请选择或搜索诊断"
:remote-method=
"getDiseaseData"
:loading=
"loading"
size=
"small"
>
<el-option
v-for=
"item in options"
:key=
"item.icdCode"
:label=
"item.
icd
Name"
:label=
"item.
disease
Name"
:value=
"item.icdCode"
>
</el-option>
</el-select>
...
...
@@ -225,14 +226,14 @@
if
(
query
!==
''
)
{
let
params
=
{
icdName
:
query
?
query
:
''
,
pageSize
:
1
,
pageNum
:
200
,
pageSize
:
200
,
pageNum
:
1
,
};
this
.
loading
=
true
;
getIcdList
(
params
).
then
(
data
=>
{
this
.
loading
=
false
;
if
(
data
.
code
==
"000000"
)
{
this
.
options
=
data
.
data
.
icdList
;
this
.
options
=
data
.
data
;
}
}).
catch
((
error
)
=>
{
this
.
$message
({
...
...
@@ -306,7 +307,7 @@
//转化疾病
if
(
item
.
patientTypeModels
)
{
item
.
patientTypeModels
.
forEach
(
item
=>
{
diseaseNames
.
push
(
item
.
n
ame
)
diseaseNames
.
push
(
item
.
diseaseN
ame
)
})
item
.
showDiseaseNames
=
diseaseNames
.
join
(
'、'
);
}
else
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录