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
提交
425f450c
提交
425f450c
编写于
5月 24, 2019
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
差异文件
fix merge
上级
24cacef7
4f5afc8e
变更
6
展开全部
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
642 行增加
和
442 行删除
+642
-442
patientsapi.js
src/utils/patients/patientsapi.js
+59
-2
select-patitents.vue
src/views/patients/labels-manage/dialog/select-patitents.vue
+139
-160
labels-detail.vue
src/views/patients/labels-manage/labels-detail.vue
+27
-2
basic-info.vue
src/views/patients/mypatients-manage/basic-info.vue
+6
-29
edit-information.vue
...atients/mypatients-manage/components/edit-information.vue
+404
-239
patient-detail.vue
src/views/patients/mypatients-manage/patient-detail.vue
+7
-10
未找到文件。
src/utils/patients/patientsapi.js
浏览文件 @
425f450c
...
...
@@ -16,8 +16,43 @@ export const getConstants = (params) => {
description
:
'获取常量'
,
})
};
/*获取省市县乡列表*/
export
const
getProvinceList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`basic-data/position/provinces`
),
method
:
'get'
,
params
:
params
,
description
:
'获取省列表'
,
})
};
export
const
getCityList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`basic-data/position/cities`
),
method
:
'get'
,
params
:
params
,
description
:
'获取市列表'
,
})
};
export
const
getCountyList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`basic-data/position/counties`
),
method
:
'get'
,
params
:
params
,
description
:
'获取区县列表'
,
})
};
export
const
getTownList
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`basic-data/position/towns`
),
method
:
'get'
,
params
:
params
,
description
:
'获取乡镇列表'
,
})
};
/*居民管理*/
export
const
getPatientList
=
(
data
)
=>
{
return
fetch
({
...
...
@@ -116,6 +151,18 @@ export const deleteCurrentPatients = data => {
})
}
<<<<<<<
HEAD
=======
export
const
saveLabelsForPatient
=
(
labelId
,
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/labels/
${
labelId
}
/patients`
),
method
:
'post'
,
data
:
data
,
description
:
'分组中添加居民'
,
})
}
>>>>>>>
4
f5afc8ed770a74179b192c64944c2c0c7273804
// 获取七牛上传token
export
const
getQiniuToken
=
(
params
)
=>
{
...
...
@@ -239,3 +286,13 @@ export const getHealthRecordList = (data) => {
description
:
'健康档案记录列表'
,
})
};
/*新的获取居民接口,搜索条件有变化*/
export
const
getPatientInfoList
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/patients/v2/infolist`
),
method
:
'post'
,
data
:
data
,
description
:
'获取居民列表'
,
})
};
src/views/patients/labels-manage/dialog/select-patitents.vue
浏览文件 @
425f450c
此差异已折叠。
点击以展开。
src/views/patients/labels-manage/labels-detail.vue
浏览文件 @
425f450c
...
...
@@ -152,6 +152,7 @@
deleteCurrentLabel
,
changeLabelName
,
deleteCurrentPatients
,
saveLabelsForPatient
,
}
from
'@/utils/patients/patientsapi'
import
SelectPatient
from
'./dialog/select-patitents'
;
...
...
@@ -216,6 +217,7 @@
console
.
log
(
'获取分组详情>> '
,
data
)
if
(
data
.
data
){
this
.
searchData
=
data
.
data
;
this
.
patientIdList
=
data
.
data
.
patientIdList
;
let
list
=
data
.
data
.
patientListsByLabelModels
;
if
(
list
&&
list
.
length
>
0
){
this
.
searchData
.
tableData
=
list
;
...
...
@@ -371,6 +373,7 @@
type
:
'success'
});
this
.
showDeletePatientsDialog
=
false
;
this
.
getDetail
();
}
else
{
this
.
$message
({
message
:
'请求接口失败,请重新再试'
,
...
...
@@ -384,8 +387,30 @@
addPatientsHandler
()
{
this
.
isShowSelectPatient
=
true
;
},
closeSelectPatient
()
{},
sureSelectPatient
(
arg
)
{
closeSelectPatient
(
val
)
{
this
.
isShowSelectPatient
=
val
;
},
sureSelectPatient
()
{
let
getArguments
=
arguments
[
0
];
const
selectPatients
=
getArguments
[
1
];
// 每次选中获取的人
let
labelId
=
this
.
$route
.
query
.
labelId
;
let
patientLen
=
selectPatients
.
length
;
saveLabelsForPatient
(
labelId
,{
newLablelName
:
this
.
$route
.
query
.
labelName
,
oldLabelName
:
this
.
$route
.
query
.
labelName
,
saveLists
:
selectPatients
,
// token:
}).
then
((
data
)
=>
{
if
(
data
.
code
==
'000000'
)
{
setTimeout
(()
=>
{
this
.
$message
.
success
(
`已成功添加
${
patientLen
}
位居民`
)
this
.
isShowSelectPatient
=
getArguments
[
0
];
this
.
getDetail
();
},
500
)
}
else
{
this
.
$message
.
error
(
data
.
message
)
}
})
},
}
...
...
src/views/patients/mypatients-manage/basic-info.vue
浏览文件 @
425f450c
...
...
@@ -8,7 +8,7 @@
</bread-crumb>
<div
class=
"f-main-content screenSet"
>
<div
class=
"header-title"
>
<span>
基本
信息
</span>
<span>
居民
信息
</span>
<p>
<el-button
plain
size=
"small"
@
click=
"cancelEdit"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"saveEdit"
>
保存
</el-button>
...
...
@@ -26,8 +26,7 @@
<
script
>
import
BreadCrumb
from
'@/components/breadcrumb'
import
editInformation
from
'./components/edit-information'
import
{
mapGetters
}
from
'vuex'
import
{
getPatientDetail
,
getRemindPatient
,
savePatientInfo
}
from
'@/utils/patients/patientsapi'
import
{
getPatientDetail
,
savePatientInfo
}
from
'@/utils/patients/patientsapi'
export
default
{
name
:
"basicInfo"
,
components
:
{
...
...
@@ -50,11 +49,7 @@
this
.
patientId
=
String
(
this
.
$route
.
query
.
patientId
);
this
.
init
();
},
computed
:
{
...
mapGetters
([
'_token'
,
])
},
computed
:
{},
methods
:
{
init
()
{
getPatientDetail
(
this
.
patientId
).
then
((
data
)
=>
{
...
...
@@ -72,10 +67,10 @@
addListenSave
(
val
)
{
this
.
checkForm
=
false
;
if
(
val
.
status
)
{
this
.
patientInfo
=
val
.
patientInfoForm
savePatientInfo
(
this
.
patientInfo
).
then
(
data
=>
{
//
this.patientInfo = val.patientInfoForm
savePatientInfo
(
val
.
patientInfoForm
).
then
(
data
=>
{
if
(
data
.
code
==
'000000'
){
this
.
$message
.
success
(
'
保存备注
成功'
)
this
.
$message
.
success
(
'
修改
成功'
)
setTimeout
(()
=>
{
this
.
$router
.
go
(
-
1
);
},
500
)
...
...
@@ -88,24 +83,6 @@
this
.
$message
.
error
(
'请正确填写信息'
);
}
},
//提醒绑定
// remindBind() {
// let remindMobileWechatPara = {
// qrcodeType: 1,
// patientId: this.patientId,
// // deviceInfo: window.getDeviceInfo()
// }
// getRemindPatient({
// ...remindMobileWechatPara
// }).then( data => {
// if(data.code == '000000') {
// this.$message.success(data.data.respMsg);
// }else {
// this.$message.error(data.message);
// }
// })
// },
},
filters
:
{
emptyFilter
:
function
(
value
)
{
...
...
src/views/patients/mypatients-manage/components/edit-information.vue
浏览文件 @
425f450c
此差异已折叠。
点击以展开。
src/views/patients/mypatients-manage/patient-detail.vue
浏览文件 @
425f450c
...
...
@@ -24,7 +24,7 @@
<div><p
class=
"title"
>
身份证:
</p><p
class=
"info"
>
{{
patientInfo
.
idNo
|
emptyFilter
}}
</p></div>
</div>
<div
class=
"item"
>
<div><p
class=
"title"
>
出生
年月:
</p><p
class=
"info"
>
{{
birthTimeDisplay
|
emptyFilter
}}
</p></div>
<div><p
class=
"title"
>
出生
日期:
</p><p
class=
"info"
>
{{
birthTimeDisplay
|
emptyFilter
}}{{
(
patientInfo
.
age
||
patientInfo
.
age
==
0
)
?
`、${patientInfo.age
}
岁`
:
''
}}
<
/p></
div
>
<
div
><
p
class
=
"title"
>
性别:
<
/p><p class="info">{{patientInfo.sex | sexFileter
}}
</
p
><
/div
>
<
/div
>
<
div
class
=
"item"
>
...
...
@@ -53,8 +53,9 @@
<
div
><
p
class
=
"title"
>
工作单位:
<
/p><p class="info">{{patientInfo.workplace | emptyFilter
}}
</
p
><
/div
>
<
div
>
<
p
class
=
"title"
>
微信:
<
/p
>
<p
class=
"info"
v-if=
"patientInfo.isWechatBind == '1'"
>
未绑定
<el-button
type=
"text"
class=
"ml10"
@
click=
"remindBind"
v-if=
"patientInfo.isRemind == '1'"
>
提醒绑定
</el-button><span
class=
"ml10"
v-if=
"patientInfo.isRemind == '2'"
>
已提醒
</span></p>
<p
class=
"info"
v-else-if=
"patientInfo.isWechatBind == '2'"
>
已绑定
<span
class=
"ml10"
>
(微信名:
{{
patientInfo
.
wechatNickname
|
emptyFilter
}}
)
</span></p>
<
p
class
=
"info"
v
-
if
=
"patientInfo.isWechatBind == '1'"
>
未绑定
<
el
-
button
type
=
"text"
class
=
"ml10"
@
click
=
"remindBind"
style
=
"color: #449284;"
v
-
if
=
"patientInfo.isRemind == '1'"
>
提醒绑定
<
/el-button><span class="ml10" v-if="patientInfo.isRemind == '2'">已提醒</
span
><
/p
>
<!--
<
p
class
=
"info"
v
-
else
-
if
=
"patientInfo.isWechatBind == '2'"
>
已绑定
<
span
class
=
"ml10"
>
(微信名:
{{
patientInfo
.
wechatNickname
|
emptyFilter
}}
)
<
/span></
p
>-->
<
p
class
=
"info"
v
-
else
-
if
=
"patientInfo.isWechatBind == '2'"
>
{{
patientInfo
.
wechatNickname
|
emptyFilter
}}
<
/p
>
<
p
class
=
"info"
v
-
else
>-<
/p
>
<
/div
>
<
/div
>
...
...
@@ -228,8 +229,8 @@
}
,
getRecordList
()
{
let
reqPara
=
{
//
patientId: this.patientId,
patientId
:
'99997701'
,
patientId
:
this
.
patientId
,
//
patientId: '99997701',
pageNo
:
this
.
pageNo
,
pageSize
:
this
.
pageSize
,
}
...
...
@@ -257,11 +258,7 @@
}
}
)
}
,
tabChangeHandler
(
tab
)
{
// if(tab.name == 'second'){
// this.getRecordList(true);
// }
},
tabChangeHandler
(
tab
)
{
}
,
deletePatient
()
{
// 把写的提示信息需要换行的地方分成数组 confirmText
const
confirmText
=
[
'您确定要删除此居民吗?'
,
'删除后,您将无法对该居民发送患教和进行随访,重新添加该居民依旧可查看历史发送记录及随访记录'
];
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录