Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
9de22944
提交
9de22944
编写于
9月 27, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
authMessage
上级
77f170d6
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
81 行增加
和
9 行删除
+81
-9
followapis.js
src/utils/followup/followapis.js
+18
-3
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+63
-6
未找到文件。
src/utils/followup/followapis.js
浏览文件 @
9de22944
...
@@ -515,11 +515,26 @@ export const getFirstAccess = () => {
...
@@ -515,11 +515,26 @@ export const getFirstAccess = () => {
}
}
}
}
*/
*/
export
const
uniteValidate
=
(
params
)
=>
{
export
const
uniteValidate
=
(
data
)
=>
{
return
fetch
({
return
fetch
({
url
:
getFollowUpSC
(
`/followup/protocol/uniteValidate`
),
url
:
getFollowUpSC
(
`/followup/protocol/uniteValidate`
),
method
:
'post'
,
method
:
'post'
,
data
:
params
,
data
:
data
,
})
})
};
};
/**
* Add by Anndy Yang
* [批量]医生给居民发送授权短信
* @param {[type]} data {"patientIds":"List<Integer>,居民id集合"}
* @return {[type]} [description]
*/
export
const
authMessage
=
(
data
)
=>
{
return
fetch
({
url
:
getFollowUpSC
(
`/followup/protocol/authMessage`
),
method
:
'post'
,
data
:
data
,
})
};
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
9de22944
...
@@ -106,6 +106,20 @@
...
@@ -106,6 +106,20 @@
@
closeSelectedDialog=
"closeSelectedDialog"
@
closeSelectedDialog=
"closeSelectedDialog"
@
continueAdd=
"continueAdd"
@
continueAdd=
"continueAdd"
/>
/>
<!-- 敏感词及协议校验 -->
<el-dialog
class=
"prot-dialog"
title=
""
:visible
.
sync=
"isShowProtocolDialog"
width=
"30%"
center
:show-close=
false
>
<p
class=
"prot-dialog-tips-1"
>
由于该居民尚未同意《云鹊平台隐私协议》,将导致履约量表部分信息无法录入,为了方便您的工作开展,请您发送短信提醒居民完成授权
</p>
<p
v-show=
"!isSentedProt"
class=
"prot-dialog-tips-2"
>
若您选择暂不发送,您只能录入量表的非敏感信息
</p>
<p
v-show=
"isSentedProt"
class=
"prot-dialog-tips-3"
>
为避免打扰居民,7天内只能发送1次,您已发送过短信,请尽快联系居民同意授权
</p>
<span
v-show=
"!isSentedProt"
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"closeProtocolDialog"
>
暂不发送
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"sendMsgToPatients"
>
发送短信
</el-button>
</span>
<span
v-show=
"isSentedProt"
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"closeProtocolDialog"
>
我知道了
</el-button>
</span>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -115,7 +129,7 @@
...
@@ -115,7 +129,7 @@
import
SelectPatient
from
'@/views/patients/labels-manage/dialog/select-patitents'
;
import
SelectPatient
from
'@/views/patients/labels-manage/dialog/select-patitents'
;
import
HasSelectedPatient
from
'@/views/followup/plan-manage/dialog/has-selected-patient'
;
import
HasSelectedPatient
from
'@/views/followup/plan-manage/dialog/has-selected-patient'
;
import
SetTimeNode
from
'@/views/followup/plan-manage/dialog/set-time-node'
;
import
SetTimeNode
from
'@/views/followup/plan-manage/dialog/set-time-node'
;
import
{
createFollowPlan
,
getFollowupTableTemplate
}
from
'@/utils/followup/followapis'
import
{
createFollowPlan
,
getFollowupTableTemplate
,
uniteValidate
,
authMessage
}
from
'@/utils/followup/followapis'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
export
default
{
export
default
{
...
@@ -166,7 +180,10 @@
...
@@ -166,7 +180,10 @@
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
}
}
}
},
isShowProtocolDialog
:
false
,
isSentedProt
:
false
,
patientIds
:
[]
}
}
},
},
created
()
{
created
()
{
...
@@ -183,6 +200,16 @@
...
@@ -183,6 +200,16 @@
},
},
methods
:
{
methods
:
{
...
mapActions
(
'planManage'
,
[
'getTimeNodeList'
,
'getRemarkOption'
,
'getFollowupTemplate'
]),
...
mapActions
(
'planManage'
,
[
'getTimeNodeList'
,
'getRemarkOption'
,
'getFollowupTemplate'
]),
// 发送协议授权短信给居民
sendMsgToPatients
()
{
authMessage
({
patientIds
:
this
.
patientIds
}).
then
(
res
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
$toast
(
'已发送,请尽快联系居民同意授权'
);
}
});
this
.
isShowDialog
=
false
;
},
// 点击保存
// 点击保存
saveEdit
()
{
saveEdit
()
{
...
@@ -193,11 +220,10 @@
...
@@ -193,11 +220,10 @@
if
(
!
this
.
baseInfo
.
time
){
if
(
!
this
.
baseInfo
.
time
){
this
.
$refs
.
beginDate
.
picker
.
date
=
new
Date
();
this
.
$refs
.
beginDate
.
picker
.
date
=
new
Date
();
}
}
},
},
// 监听保存校验结果
// 监听保存校验结果
addListenSave
(
val
){
addListenSave
(
val
){
//
console.log('监听保存校验结果',val)
//
console.log('监听保存校验结果',val)
this
.
checkForm
=
false
this
.
checkForm
=
false
if
(
val
.
status
){
if
(
val
.
status
){
this
.
baseInfo
.
fPlanTimeReqList
=
val
.
setTimeNodeList
this
.
baseInfo
.
fPlanTimeReqList
=
val
.
setTimeNodeList
...
@@ -279,8 +305,39 @@
...
@@ -279,8 +305,39 @@
alert
(
'创建/修改履约计划'
)
alert
(
'创建/修改履约计划'
)
// return
// return
//为方便调试,不做校验
// Add by Anndy Yang
// this.activeTab = 'second';
// 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
let
validParams
=
{
scaleNo
:
''
,
patientIds
:
this
.
hasSelectedList
,
// pc端只传这个字段
// planPatientsTimesId: planPatientsTimesId, // app端只传这个字段
protocolType
:
5
,
userType
:
1
,
validateType
:
1
};
uniteValidate
(
validParams
).
then
(
res
=>
{
let
result
=
res
;
// 请求成功
if
(
result
.
code
===
'000000'
)
{
let
levelType
=
result
.
data
.
levelType
;
// 没有敏感字段或者居民已经签订过协议,则直接返回
if
(
levelType
===
1
||
levelType
===
2
)
{
return
;
}
else
if
(
levelType
===
3
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
false
;
}
else
if
(
levelType
===
4
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
true
;
// this.patientIds = result.data.ids;
}
}
});
// 为方便调试,不做校验
// this.activeTab = 'second';
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
//用作校验
//用作校验
if
(
!
this
.
baseInfo
.
hasSelectedNum
)
{
if
(
!
this
.
baseInfo
.
hasSelectedNum
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录