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
提交
9fefab9c
提交
9fefab9c
编写于
5月 14, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed
上级
007d1966
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
78 行增加
和
40 行删除
+78
-40
patientsapi.js
src/utils/patients/patientsapi.js
+0
-1
not-complete-list.vue
src/views/patients/not-complete/not-complete-list.vue
+78
-39
未找到文件。
src/utils/patients/patientsapi.js
浏览文件 @
9fefab9c
...
@@ -46,7 +46,6 @@ export const getNotCompleteList = (params) => {
...
@@ -46,7 +46,6 @@ export const getNotCompleteList = (params) => {
headers
,
headers
,
url
:
getBaseUrl
(
`healths/patients/uncomplate/
${
params
.
pageNo
}
/
${
params
.
pageSize
}
`
),
url
:
getBaseUrl
(
`healths/patients/uncomplate/
${
params
.
pageNo
}
/
${
params
.
pageSize
}
`
),
method
:
'get'
,
method
:
'get'
,
params
:
params
,
description
:
'获取资料不全居民列表'
,
description
:
'获取资料不全居民列表'
,
})
})
};
};
...
...
src/views/patients/not-complete/not-complete-list.vue
浏览文件 @
9fefab9c
...
@@ -7,12 +7,14 @@
...
@@ -7,12 +7,14 @@
<section
class=
"not-complete-content screenSet"
>
<section
class=
"not-complete-content screenSet"
>
<h1
class=
"page-title"
>
资料不全居民
</h1>
<h1
class=
"page-title"
>
资料不全居民
</h1>
<p
class=
"tip"
v-if=
"notCompleteList.length"
>
<p
class=
"tip"
v-if=
"notCompleteList.length"
>
共
<span
class=
"fontGreen"
>
800
位
</span>
居民仅通过微信扫码与您绑定,但未完善姓名、手机号等关键信息。提醒居民完善信息后,您将可以对居民进行消息推送和随访计划设置。
共
<span
class=
"fontGreen"
>
{{
pagination
.
totalRows
}}
位
</span>
居民仅通过微信扫码与您绑定,但未完善姓名、手机号等关键信息。提醒居民完善信息后,您将可以对居民进行消息推送和随访计划设置。
<el-button
type=
"primary"
style=
"float: right;"
size=
"small"
@
click=
"sendCompleteMessage
s
"
>
批量提醒
</el-button>
<el-button
type=
"primary"
style=
"float: right;"
size=
"small"
@
click=
"sendCompleteMessage
Multiple
"
>
批量提醒
</el-button>
</p>
</p>
<el-table
<el-table
v-if=
"notCompleteList.length"
v-if=
"notCompleteList.length"
:data=
"notCompleteList"
:data=
"notCompleteList"
:row-key=
"getRowKeys"
@
selection-change=
"handleSelectionChange"
style=
"width: 100%;"
>
style=
"width: 100%;"
>
<el-table-column
<el-table-column
type=
"selection"
type=
"selection"
...
@@ -47,7 +49,7 @@
...
@@ -47,7 +49,7 @@
label=
"操作"
label=
"操作"
align=
"center"
>
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.isRemind==1"
type=
"text"
@
click=
"send
CompleteMessag
e(scope.row)"
>
提醒完善信息
</el-button>
<el-button
v-if=
"scope.row.isRemind==1"
type=
"text"
@
click=
"send
MessageSingl
e(scope.row)"
>
提醒完善信息
</el-button>
<el-button
v-else-if=
"scope.row.isRemind==2"
type=
"text"
style=
"color: #999"
>
提醒已发送
</el-button>
<el-button
v-else-if=
"scope.row.isRemind==2"
type=
"text"
style=
"color: #999"
>
提醒已发送
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -57,11 +59,11 @@
...
@@ -57,11 +59,11 @@
background
background
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
:current-page=
"
notCompleteList
.pageNo"
:current-page=
"
pagination
.pageNo"
:page-sizes=
"[15, 30, 50, 100
, 200, 500, 700, 1000, 1500, 2000
]"
:page-sizes=
"[15, 30, 50, 100]"
:page-size=
"
notCompleteList
.pageSize"
:page-size=
"
pagination
.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalRows"
>
:total=
"
pagination.
totalRows"
>
</el-pagination>
</el-pagination>
</div>
</div>
<div
v-if=
"!notCompleteList.length"
class=
"blank-wrap"
>
<div
v-if=
"!notCompleteList.length"
class=
"blank-wrap"
>
...
@@ -76,7 +78,7 @@
...
@@ -76,7 +78,7 @@
<
script
>
<
script
>
import
BreadCrumb
from
'../../../components/breadcrumb.vue'
import
BreadCrumb
from
'../../../components/breadcrumb.vue'
import
{
getNotCompleteList
,
sendCompleteMessage
,
getNotCompleteCount
}
from
'../../../utils/patients/patientsapi'
export
default
{
export
default
{
name
:
"not-complete"
,
name
:
"not-complete"
,
components
:
{
components
:
{
...
@@ -87,58 +89,95 @@
...
@@ -87,58 +89,95 @@
curmbFirst
:
'居民管理'
,
curmbFirst
:
'居民管理'
,
curmbSecond
:
'资料不全居民'
,
curmbSecond
:
'资料不全居民'
,
notCompleteList
:
[],
//未完善列表
notCompleteList
:
[],
//未完善列表
pagination
:
{
pageNo
:
1
,
pageSize
:
15
,
},
getRowKeys
(
row
)
{
return
row
.
patientId
;
},
selectList
:
[]
}
}
},
},
created
()
{
created
()
{
//const vm = this;
//const vm = this;
},
},
mounted
()
{
mounted
()
{
this
.
getNotComplete
({
this
.
getNotComplete
()
pageNo
:
1
,
this
.
getNotCompleteNum
()
pageSize
:
10
})
},
},
methods
:
{
methods
:
{
getNotComplete
(
reqData
)
{
handleSelectionChange
(
val
)
{
const
{
pageNo
,
pageSize
}
=
reqData
this
.
selectList
=
val
;
this
.
GET
(
`/healths/patients/uncomplate/
${
pageNo
}
/
${
pageSize
}
`
).
then
((
res
)
=>
{
},
console
.
log
(
res
)
handleSizeChange
(
val
)
{
if
(
res
.
code
==
"000000"
)
{
this
.
pagination
.
pageSize
=
val
this
.
notCompleteList
=
res
.
data
this
.
getNotComplete
()
},
handleCurrentChange
(
val
)
{
this
.
pagination
.
pageNo
=
val
this
.
getNotComplete
()
},
getNotComplete
()
{
//获取未完善居民列表
const
{
pageNo
,
pageSize
}
=
this
.
pagination
getNotCompleteList
({
pageNo
,
pageSize
,
}).
then
((
data
)
=>
{
if
(
data
.
code
==
"000000"
)
{
this
.
notCompleteList
=
data
.
data
console
.
log
(
'1212'
,
this
.
notCompleteList
)
}
}
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
this
.
$message
.
error
(
error
);
this
.
$message
({
message
:
error
,
type
:
'error'
});
});
});
},
},
send
CompleteMessage
(
item
)
{
send
MessageSingle
(
item
)
{
//发送单个提醒
let
params
=
{
sendCompleteMessage
(
{
qrcodeType
:
1
,
//saas 云鹊医平台
qrcodeType
:
1
,
patientId
:
item
.
patientId
,
patientId
:
item
.
patientId
,
}
}).
then
((
data
)
=>
{
this
.
POST
(
'/healths/patients/remind'
,
params
).
then
((
res
)
=>
{
if
(
data
.
code
==
"000000"
)
{
this
.
$message
({
message
:
'已向居民发送提醒'
,
type
:
'success'
});
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
message
:
data
.
message
,
message
:
'操作成功!
'
type
:
'error
'
});
});
}
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
this
.
$message
.
error
(
error
);
this
.
$message
({
message
:
error
,
type
:
'error'
});
});
});
},
},
sendCompleteMessages
(
item
)
{
sendCompleteMessageMultiple
(
item
)
{
let
params
=
{
if
(
!
this
.
selectList
.
length
)
{
qrcodeType
:
1
,
//saas 云鹊医平台
patientId
:
item
.
patientId
,
}
this
.
POST
(
'/healths/patients/remind'
,
params
).
then
((
res
)
=>
{
this
.
$message
({
this
.
$message
({
type
:
'success
'
,
message
:
'请选择居民
'
,
message
:
'操作成功!
'
type
:
'warning
'
});
});
}
},
getNotCompleteNum
()
{
getNotCompleteCount
().
then
((
data
)
=>
{
if
(
data
.
code
==
"000000"
)
{
this
.
pagination
.
totalRows
=
data
.
data
;
}
}).
catch
(
function
(
error
)
{
}).
catch
(
function
(
error
)
{
this
.
$message
.
error
(
error
);
this
.
$message
({
message
:
error
,
type
:
'error'
});
});
});
}
}
}
}
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录