Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
8d72bdb6
提交
8d72bdb6
编写于
9月 29, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
uniteValidateAction
上级
522ca333
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
40 行增加
和
33 行删除
+40
-33
add-patient-time.vue
src/views/followup/plan-manage/dialog/add-patient-time.vue
+6
-3
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+34
-30
未找到文件。
src/views/followup/plan-manage/dialog/add-patient-time.vue
浏览文件 @
8d72bdb6
...
...
@@ -152,6 +152,9 @@
// Add by Anndy Yang
// 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
uniteValidateAction
()
{
if
(
!
this
.
patientIds
.
length
)
{
return
;
}
let
validParams
=
{
scaleNo
:
''
,
patientIds
:
this
.
patientIds
,
// pc端只传这个字段
...
...
@@ -168,7 +171,7 @@
let
levelType
=
result
.
data
.
levelType
;
// 没有敏感字段或者居民已经签订过协议,则直接返回
if
(
levelType
===
1
||
levelType
===
2
)
{
jumpTo
Scale
();
jumpTo
AddOrModifyPlan
();
}
else
if
(
levelType
===
3
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
true
;
...
...
@@ -195,7 +198,7 @@
},
// 统一跳转到量表页面
jumpTo
Scale
()
{
jumpTo
AddOrModifyPlan
()
{
if
(
this
.
$route
.
name
==
'planModify'
)
{
this
.
$emit
(
'sendJoinTime'
,
this
.
addPatientData
.
joinTime
)
this
.
$emit
(
'closeAddPatientTime'
,
false
)
...
...
@@ -235,7 +238,7 @@
// 关闭协议确认窗口
closeProtocolDialog
()
{
this
.
isShowProtocolDialog
=
false
this
.
jumpTo
Scale
()
this
.
jumpTo
AddOrModifyPlan
()
},
// 发送短信通知
...
...
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
8d72bdb6
...
...
@@ -204,7 +204,10 @@
// Add by Anndy Yang
// 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
async
uniteValidateAction
()
{
uniteValidateAction
()
{
if
(
!
this
.
patientIds
.
length
)
{
return
;
}
let
validParams
=
{
scaleNo
:
''
,
patientIds
:
this
.
patientIds
,
// pc端只传这个字段
...
...
@@ -214,23 +217,21 @@
validateType
:
2
};
let
r
=
await
uniteValidate
(
validParams
).
then
(
res
=>
{
uniteValidate
(
validParams
).
then
(
res
=>
{
let
result
=
res
;
// 请求成功
if
(
result
.
code
===
'000000'
)
{
let
levelType
=
result
.
data
.
levelType
;
// 没有敏感字段或者居民已经签订过协议,则直接返回
if
(
levelType
===
1
||
levelType
===
2
)
{
return
0
;
// return
;
}
else
if
(
levelType
===
3
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
true
;
return
1
;
}
else
if
(
levelType
===
4
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
false
;
this
.
sendMsgPatientIds
=
result
.
data
.
ids
;
return
1
;
}
}
});
...
...
@@ -267,31 +268,34 @@
return
item
.
patientId
})
this
.
uniteValidateAction
()
if
(
val
.
status
){
this
.
baseInfo
.
fPlanTimeReqList
=
val
.
setTimeNodeList
// this.baseInfo.time = (new Date(this.baseInfo.time).getTime())
// console.log(this.baseInfo.time)
// 提交
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
// 各种校验通过后,提交编辑内容,toast提示
this
.
$message
({
message
:
'创建成功'
,
type
:
'success'
});
setTimeout
(()
=>
{
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-list'
})
},
2000
)
}
else
{
this
.
$message
({
message
:
'创建失败,'
+
res
.
message
,
type
:
'error'
});
}
})
}
else
{
if
(
!
this
.
patientIds
.
length
)
{
return
;
}
if
(
val
.
status
){
this
.
baseInfo
.
fPlanTimeReqList
=
val
.
setTimeNodeList
// this.baseInfo.time = (new Date(this.baseInfo.time).getTime())
// console.log(this.baseInfo.time)
// 提交
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
// 各种校验通过后,提交编辑内容,toast提示
this
.
$message
({
message
:
'创建成功'
,
type
:
'success'
});
setTimeout
(()
=>
{
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-list'
})
},
2000
)
}
else
{
this
.
$message
({
message
:
'创建失败,'
+
res
.
message
,
type
:
'error'
});
}
})
}
else
{
this
.
$message
({
message
:
val
.
message
,
type
:
'error'
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录