Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
ca2838cd
提交
ca2838cd
编写于
9月 29, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
record-list home uniteValidate
上级
d21995f1
变更
11
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
1536 行增加
和
187 行删除
+1536
-187
common.scss
src/style/common.scss
+20
-1
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+59
-41
form-template copy.vue
src/views/followup/record-manage/form-template copy.vue
+154
-0
form-template.vue
src/views/followup/record-manage/form-template.vue
+0
-2
diabetes.vue
src/views/followup/record-manage/patient-scale/diabetes.vue
+1
-0
hypertension.vue
...ews/followup/record-manage/patient-scale/hypertension.vue
+1
-0
stroke.vue
src/views/followup/record-manage/patient-scale/stroke.vue
+3
-2
record-list copy.vue
src/views/followup/record-manage/record-list copy.vue
+485
-0
record-list.vue
src/views/followup/record-manage/record-list.vue
+96
-60
home copy 2.vue
src/views/home copy 2.vue
+556
-0
home.vue
src/views/home.vue
+161
-81
未找到文件。
src/style/common.scss
浏览文件 @
ca2838cd
...
@@ -235,4 +235,23 @@ html,body{
...
@@ -235,4 +235,23 @@ html,body{
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
{
.el-radio-button__orig-radio
:checked
+
.el-radio-button__inner
{
background-color
:
#449284
!
important
;
background-color
:
#449284
!
important
;
border-color
:
#449284
!
important
;
border-color
:
#449284
!
important
;
}
}
\ No newline at end of file
.prot-dialog
{
.el-dialog__body
{
padding
:
25px
25px
10px
;
}
&
-tips-1
{
margin-top
:
0px
;
}
&
-tips-2
{
margin-top
:
20px
;
font-size
:
12px
;
color
:
#aaa
;
}
&
-tips-3
{
margin-top
:
20px
;
font-size
:
12px
;
color
:
#FF9A4B
;
}
}
\ No newline at end of file
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
ca2838cd
...
@@ -181,9 +181,10 @@
...
@@ -181,9 +181,10 @@
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
}
}
},
},
isShowProtocolDialog
:
fals
e
,
isShowProtocolDialog
:
tru
e
,
isSentedProt
:
false
,
isSentedProt
:
false
,
patientIds
:
[]
patientIds
:
[],
sendMsgPatientIds
:
[]
}
}
},
},
created
()
{
created
()
{
...
@@ -201,11 +202,48 @@
...
@@ -201,11 +202,48 @@
methods
:
{
methods
:
{
...
mapActions
(
'planManage'
,
[
'getTimeNodeList'
,
'getRemarkOption'
,
'getFollowupTemplate'
]),
...
mapActions
(
'planManage'
,
[
'getTimeNodeList'
,
'getRemarkOption'
,
'getFollowupTemplate'
]),
// Add by Anndy Yang
// 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
async
uniteValidateAction
()
{
let
validParams
=
{
scaleNo
:
''
,
patientIds
:
this
.
patientIds
,
// pc端只传这个字段
// planPatientsTimesId: planPatientsTimesId, // app端只传这个字段
protocolType
:
5
,
userType
:
1
,
validateType
:
2
};
let
r
=
await
uniteValidate
(
validParams
).
then
(
res
=>
{
let
result
=
res
;
// 请求成功
if
(
result
.
code
===
'000000'
)
{
let
levelType
=
result
.
data
.
levelType
;
// 没有敏感字段或者居民已经签订过协议,则直接返回
if
(
levelType
===
1
||
levelType
===
2
)
{
return
0
;
}
else
if
(
levelType
===
3
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
false
;
return
1
;
}
else
if
(
levelType
===
4
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
true
;
this
.
sendMsgPatientIds
=
result
.
data
.
ids
;
return
1
;
}
}
});
},
// 发送协议授权短信给居民
// 发送协议授权短信给居民
sendMsgToPatients
()
{
sendMsgToPatients
()
{
authMessage
({
patientIds
:
this
.
p
atientIds
}).
then
(
res
=>
{
authMessage
({
patientIds
:
this
.
sendMsgP
atientIds
}).
then
(
res
=>
{
if
(
res
.
code
===
'000000'
)
{
if
(
res
.
code
===
'000000'
)
{
this
.
$toast
(
'已发送,请尽快联系居民同意授权'
);
this
.
$message
({
message
:
'已发送,请尽快联系居民同意授权'
,
type
:
'success'
});
}
}
});
});
this
.
isShowDialog
=
false
;
this
.
isShowDialog
=
false
;
...
@@ -226,11 +264,11 @@
...
@@ -226,11 +264,11 @@
// 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
//
this.baseInfo.time = (new Date(this.baseInfo.time).getTime())
//
this.baseInfo.time = (new Date(this.baseInfo.time).getTime())
//
console.log(this.baseInfo.time)
//
console.log(this.baseInfo.time)
// 提交
// 提交
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
// 各种校验通过后,提交编辑内容,toast提示
// 各种校验通过后,提交编辑内容,toast提示
this
.
$message
({
this
.
$message
({
...
@@ -273,6 +311,9 @@
...
@@ -273,6 +311,9 @@
this
.
isShowSelectPatient
=
getArguments
[
0
];
this
.
isShowSelectPatient
=
getArguments
[
0
];
const
selectPatients
=
getArguments
[
1
];
// 每次选中获取的人
const
selectPatients
=
getArguments
[
1
];
// 每次选中获取的人
this
.
hasSelectedList
=
selectPatients
;
this
.
hasSelectedList
=
selectPatients
;
this
.
patientIds
=
selectPatients
.
map
(
item
=>
{
return
item
.
patientId
})
// console.log('呵呵呵呵',arguments)
// console.log('呵呵呵呵',arguments)
this
.
baseInfo
.
patientIdList
=
[];
this
.
baseInfo
.
patientIdList
=
[];
selectPatients
.
forEach
((
item
)
=>
{
selectPatients
.
forEach
((
item
)
=>
{
...
@@ -299,43 +340,17 @@
...
@@ -299,43 +340,17 @@
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-list'
})
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-list'
})
});
});
},
},
nextClick
(
formName
)
{
nextClick
(
formName
)
{
// 创建/修改履约计划
// 创建/修改履约计划
// 4、校验居民/医生是否签署协议
// 4、校验居民/医生是否签署协议
alert
(
'创建/修改履约计划'
)
alert
(
'创建/修改履约计划'
)
// return
console
.
log
(
this
.
hasSelectedList
)
if
(
this
.
uniteValidateAction
()
==
1
)
{
// Add by Anndy Yang
return
;
// 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、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;
}
}
});
// return
// 为方便调试,不做校验
// 为方便调试,不做校验
// this.activeTab = 'second';
// this.activeTab = 'second';
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
...
@@ -351,6 +366,9 @@
...
@@ -351,6 +366,9 @@
this
.
resourceId
=
String
(
this
.
baseInfo
.
resourceId
)
this
.
resourceId
=
String
(
this
.
baseInfo
.
resourceId
)
// console.log( this.baseInfo.resourceId)
// console.log( this.baseInfo.resourceId)
if
(
this
.
baseInfo
.
resourceId
){
if
(
this
.
baseInfo
.
resourceId
){
if
(
this
.
uniteValidateAction
()
==
1
)
{
return
;
};
getFollowupTableTemplate
(
this
.
baseInfo
.
resourceId
).
then
(
res
=>
{
getFollowupTableTemplate
(
this
.
baseInfo
.
resourceId
).
then
(
res
=>
{
this
.
isStandedTemplate
=
true
this
.
isStandedTemplate
=
true
this
.
standedTimeNodeList
=
res
.
data
this
.
standedTimeNodeList
=
res
.
data
...
...
src/views/followup/record-manage/form-template copy.vue
0 → 100644
浏览文件 @
ca2838cd
<
template
>
<div
class=
"form-show-scrollY"
>
<div
class=
"form-template"
>
<BreadCrumb
:curmbFirst=
"'履约管理'"
:curmbSecond=
"breadTxt"
:curmbThird=
"'录入量表'"
:jumPathThird=
"jumPathThird"
/>
<div
class=
"resident-content f-main-content screenSet"
>
<el-row
:gutter=
"24"
align=
"middle"
type=
"flex"
class=
"form-header"
>
<el-col
:span=
"18"
>
{{
titleText
}}
</el-col>
<el-col
:span=
"6"
v-if=
"showBtn=='1'"
>
<el-button
type=
"primary"
size=
"small"
class=
"formSubmit"
@
click=
"formSubmit(1)"
>
提交
</el-button>
<el-button
class=
"button-white formTempSave"
size=
"small"
plain
@
click=
"formSubmit(2)"
>
暂存
</el-button>
</el-col>
</el-row>
<div
class=
"title-box"
>
<h1>
{{
titleText
}}
</h1>
<h2>
{{
titleSmText
}}
</h2>
</div>
<!--模板页面除了显示居民基本信息,将病种展示作为组件引入-->
<div
class=
"form-container"
>
<!--脑卒中-->
<stroke
v-if=
"scaleNo=='SCALE0003'"
:showBtn=
"showBtn"
:scaleType=
"scaleNo"
:checkStart=
"checkStart"
@
checkEnd=
"checkEnd"
:saveWay=
"saveWay"
/>
<!--高血压-->
<hypertension
v-if=
"scaleNo=='SCALE0001'"
:showBtn=
"showBtn"
:scaleType=
"scaleNo"
:checkStart=
"checkStart"
@
checkEnd=
"checkEnd"
:saveWay=
"saveWay"
></hypertension>
<!--糖尿病-->
<diabetes
v-if=
"scaleNo=='SCALE0002'"
:showBtn=
"showBtn"
:scaleType=
"scaleNo"
:checkStart=
"checkStart"
@
checkEnd=
"checkEnd"
:saveWay=
"saveWay"
></diabetes>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
BreadCrumb
from
'@/components/breadcrumb'
// 脑卒中
import
stroke
from
'./patient-scale/stroke'
import
hypertension
from
'./patient-scale/hypertension'
import
diabetes
from
'./patient-scale/diabetes'
export
default
{
data
(){
return
{
titleText
:
''
,
titleSmText
:
''
,
breadTxt
:
'录入管理'
,
jumPathThird
:
'/followup/record-manage/record-list'
,
checkStart
:
false
,
showBtn
:
'1'
,
// resourceId: '',
saveWay
:
1
,
scaleNo
:
''
}
},
components
:
{
stroke
,
hypertension
,
BreadCrumb
,
diabetes
,
},
methods
:
{
formSubmit
(
val
){
this
.
saveWay
=
val
this
.
checkStart
=
true
;
},
checkEnd
(
val
){
this
.
checkStart
=
false
}
},
created
(){
this
.
scaleNo
=
this
.
$route
.
query
.
scaleNo
;
console
.
log
(
'scaleNo=>'
,
this
.
scaleNo
)
// 0003 脑卒中、0002 糖尿病、0001 高血压
if
(
this
.
scaleNo
==
'SCALE0003'
){
this
.
titleText
=
'心脑血管病危险因素社区、乡镇人群履约表'
;
this
.
titleSmText
=
'(适用于社区、乡镇脑卒中高危人群满6个月、12个月时履约和中危人群满12个月时履约使用)'
;
}
else
if
(
this
.
scaleNo
==
'SCALE0001'
){
this
.
titleText
=
'高血压患者履约服务记录表'
;
this
.
titleSmText
=
'(本表为高血压患者在接受履约服务时由医生填写)'
;
}
else
if
(
this
.
scaleNo
==
'SCALE0002'
){
this
.
titleText
=
'2 型糖尿病患者履约服务记录表 '
;
this
.
titleSmText
=
'(本表为2型糖尿病患者在接受履约服务时由医生填写)'
;
}
if
(
this
.
$route
.
query
.
showBtn
==
'0'
){
this
.
showBtn
=
String
(
this
.
$route
.
query
.
showBtn
);
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../../style/followup/followup-common'
;
@import
'../../../style/followup/element-reset.css'
;
.form-show-scrollY
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
overflow-y
:
scroll
;
&
:
:-
webkit-scrollbar
{
width
:
8px
;
height
:
8px
;
background
:
#fff
;
}
}
.form-template
{
.form-header
{
/*position: fixed;*/
/*z-index:100000;*/
line-height
:
60px
;
height
:
60px
;
border-bottom
:
1px
solid
#e1e1e1
;
}
.patient-base-info
{
line-height
:
60px
;
height
:
60px
;
border-bottom
:
1px
dashed
#ccc
;
[
class
*=
el-col-
]
{
float
:
left
;
}
}
.title-box
{
padding
:
20px
;
text-align
:
center
;
h1
{
font-size
:
18px
;
font-weight
:
normal
;
}
h2
{
font-size
:
16px
;
font-weight
:
normal
;
margin-top
:
15px
;
}
}
.formSubmit
{
float
:
right
;
margin-left
:
10px
;
}
.formTempSave
{
float
:
right
;
}
.form-container
{
padding
:
0
10px
;
}
}
.title
{
font-weight
:
bold
;
}
</
style
>
src/views/followup/record-manage/form-template.vue
浏览文件 @
ca2838cd
...
@@ -32,8 +32,6 @@
...
@@ -32,8 +32,6 @@
<!--糖尿病-->
<!--糖尿病-->
<diabetes
v-if=
"scaleNo=='SCALE0002'"
:showBtn=
"showBtn"
:scaleType=
"scaleNo"
:checkStart=
"checkStart"
@
checkEnd=
"checkEnd"
:saveWay=
"saveWay"
></diabetes>
<diabetes
v-if=
"scaleNo=='SCALE0002'"
:showBtn=
"showBtn"
:scaleType=
"scaleNo"
:checkStart=
"checkStart"
@
checkEnd=
"checkEnd"
:saveWay=
"saveWay"
></diabetes>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/followup/record-manage/patient-scale/diabetes.vue
浏览文件 @
ca2838cd
...
@@ -116,6 +116,7 @@
...
@@ -116,6 +116,7 @@
})
})
return
;
return
;
}
else
{
}
else
{
// 校验内容是否全部填写
this
.
valid
=
true
;
this
.
valid
=
true
;
}
}
}
}
...
...
src/views/followup/record-manage/patient-scale/hypertension.vue
浏览文件 @
ca2838cd
...
@@ -114,6 +114,7 @@
...
@@ -114,6 +114,7 @@
})
})
return
;
return
;
}
else
{
}
else
{
// 校验内容是否全部填写
this
.
valid
=
true
;
this
.
valid
=
true
;
}
}
}
}
...
...
src/views/followup/record-manage/patient-scale/stroke.vue
浏览文件 @
ca2838cd
<
template
>
<
template
>
<div
class=
"form-wrap"
>
<div
class=
"form-wrap"
v-if=
"canRender"
>
<!--渲染不同的模块表单-->
<!--渲染不同的模块表单-->
<div
v-if=
"canRender"
v-for=
"(item, index) in addComponents
"
>
<div
v-for=
"(item, index) in addComponents"
:key=
"index
"
>
<div
v-if=
"item.showModule"
class=
"content-box"
>
<div
v-if=
"item.showModule"
class=
"content-box"
>
<div
v-if=
"!item.hideTitle"
class=
"title"
>
{{
item
.
title
}}
</div>
<div
v-if=
"!item.hideTitle"
class=
"title"
>
{{
item
.
title
}}
</div>
<el-form
<el-form
...
@@ -116,6 +116,7 @@
...
@@ -116,6 +116,7 @@
})
})
return
;
return
;
}
else
{
}
else
{
// 校验内容是否全部填写
this
.
valid
=
true
;
this
.
valid
=
true
;
}
}
}
}
...
...
src/views/followup/record-manage/record-list copy.vue
0 → 100644
浏览文件 @
ca2838cd
此差异已折叠。
点击以展开。
src/views/followup/record-manage/record-list.vue
浏览文件 @
ca2838cd
...
@@ -176,7 +176,7 @@ import BreadCrumb from "@/components/breadcrumb";
...
@@ -176,7 +176,7 @@ import BreadCrumb from "@/components/breadcrumb";
import
followupDetail
from
"./dialog/followupDetail"
;
import
followupDetail
from
"./dialog/followupDetail"
;
import
ChangeFollowupStatus
from
"./dialog/change-followup-status"
;
import
ChangeFollowupStatus
from
"./dialog/change-followup-status"
;
import
{
getSaasDomain
}
from
"@/utils/index"
;
import
{
getSaasDomain
}
from
"@/utils/index"
;
import
{
getFirstAccess
}
from
'@/utils/followup/followapis'
import
{
getFirstAccess
,
uniteValidate
,
authMessage
}
from
'@/utils/followup/followapis'
import
{
mapState
,
mapGetters
,
mapActions
}
from
"vuex"
;
import
{
mapState
,
mapGetters
,
mapActions
}
from
"vuex"
;
export
default
{
export
default
{
...
@@ -214,7 +214,10 @@ export default {
...
@@ -214,7 +214,10 @@ export default {
isShowProtocolDialog1
:
false
,
isShowProtocolDialog1
:
false
,
isShowProtocolDialog
:
false
,
isShowProtocolDialog
:
false
,
scaleQuery
:
{},
scaleQuery
:
{},
isSentedProt
:
false
isSentedProt
:
false
,
scaleNo
:
''
,
patientIds
:
[],
sendMsgPatientIds
:
[],
};
};
},
},
computed
:
{
computed
:
{
...
@@ -315,6 +318,7 @@ export default {
...
@@ -315,6 +318,7 @@ export default {
async
editRow
(
row
)
{
async
editRow
(
row
)
{
await
this
.
getFormList
(
row
.
fuPlanTimesId
);
//获取量表列表
await
this
.
getFormList
(
row
.
fuPlanTimesId
);
//获取量表列表
//获取量表列表情况
//获取量表列表情况
this
.
patientIds
=
[
row
.
patientId
];
if
(
this
.
formList
.
scalesList
.
length
>
1
)
{
if
(
this
.
formList
.
scalesList
.
length
>
1
)
{
this
.
selectFormShow
=
true
;
this
.
selectFormShow
=
true
;
this
.
ScaleData
=
{
this
.
ScaleData
=
{
...
@@ -322,24 +326,26 @@ export default {
...
@@ -322,24 +326,26 @@ export default {
planPatientsTimesId
:
row
.
fuPlanPatientTimesId
planPatientsTimesId
:
row
.
fuPlanPatientTimesId
};
};
}
else
if
(
this
.
formList
.
scalesList
.
length
===
1
)
{
}
else
if
(
this
.
formList
.
scalesList
.
length
===
1
)
{
this
.
$router
.
push
({
// this.$router.push({
path
:
"/followup/record-manage/form-template"
,
// path: "/followup/record-manage/form-template",
query
:
{
// query: {
doctorId
:
this
.
formList
.
doctorId
,
// doctorId: this.formList.doctorId,
scaleNo
:
this
.
formList
.
scalesList
[
0
].
resourceId
,
// scaleNo: this.formList.scalesList[0].resourceId,
planPatientsTimesId
:
row
.
fuPlanPatientTimesId
,
// planPatientsTimesId: row.fuPlanPatientTimesId,
planTimesId
:
row
.
planTimesId
,
// planTimesId: row.planTimesId,
showBtn
:
1
// showBtn: 1
}
// }
});
// });
// this.scaleQuery = {
this
.
scaleQuery
=
{
// doctorId: this.formList.doctorId,
doctorId
:
this
.
formList
.
doctorId
,
// scaleNo: this.formList.scalesList[0].resourceId,
scaleNo
:
this
.
formList
.
scalesList
[
0
].
resourceId
,
// planPatientsTimesId: row.planPatientTimesId,
planPatientsTimesId
:
row
.
fuPlanPatientTimesId
,
// planTimesId: row.planTimesId,
planTimesId
:
row
.
planTimesId
,
// showBtn: 1
showBtn
:
1
// }
}
// this.needSign()
this
.
scaleNo
=
this
.
formList
.
scalesList
[
0
].
resourceId
;
this
.
uniteValidateAction
()
}
else
{
}
else
{
this
.
$message
.
warning
(
"暂无量表!"
);
this
.
$message
.
warning
(
"暂无量表!"
);
}
}
...
@@ -380,52 +386,82 @@ export default {
...
@@ -380,52 +386,82 @@ export default {
},
},
goFormView
(
item
)
{
goFormView
(
item
)
{
this
.
selectFormShow
=
false
;
this
.
selectFormShow
=
false
;
this
.
$router
.
push
({
// this.$router.push({
path
:
"/followup/record-manage/form-template"
,
// path: "/followup/record-manage/form-template",
query
:
{
// query: {
doctorId
:
this
.
ScaleData
.
doctorId
,
// doctorId: this.ScaleData.doctorId,
scaleNo
:
item
.
resourceId
,
// scaleNo: item.resourceId,
planPatientsTimesId
:
this
.
ScaleData
.
planPatientsTimesId
,
// planPatientsTimesId: this.ScaleData.planPatientsTimesId,
planTimesId
:
item
.
planTimesId
,
// planTimesId: item.planTimesId,
showBtn
:
1
// showBtn: 1
}
// }
});
// });
// this.scaleQuery = {
this
.
scaleQuery
=
{
// doctorId: this.ScaleData.doctorId,
doctorId
:
this
.
ScaleData
.
doctorId
,
// scaleNo: item.resourceId,
scaleNo
:
item
.
resourceId
,
// planPatientsTimesId: this.ScaleData.planPatientsTimesId,
planPatientsTimesId
:
this
.
ScaleData
.
planPatientsTimesId
,
// planTimesId: item.planTimesId,
planTimesId
:
item
.
planTimesId
,
// showBtn: 1
showBtn
:
1
// }
};
// this.needSign()
this
.
scaleNo
=
item
.
resourceId
;
// this.patientIds = [this.ScaleData.patientId];
this
.
uniteValidateAction
();
},
},
closeForm
()
{
closeForm
()
{
this
.
selectFormShow
=
false
;
this
.
selectFormShow
=
false
;
},
},
// 敏感词校验与签署协议逻辑
// 1. 判断量表内是否存在敏感词
// Add by Anndy Yang
// 2. 判断居民是否存签署协议
// 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
// 3. 七天内是否发送过
uniteValidateAction
()
{
needSign
(
scaleId
,
query
)
{
let
validParams
=
{
// let statusConfig =await getStatusByScaleId(scaleId)
scaleNo
:
this
.
scaleNo
,
let
statusConfig
=
{
patientIds
:
this
.
patientIds
,
// pc端只传这个字段
isSensitive
:
1
,
// 量表内是否存在敏感词 0: 否;1: 是
// planPatientsTimesId: planPatientsTimesId, // app端只传这个字段
hasProtocol
:
0
,
// 居民是否存签署协议 0: 否;1: 是
protocolType
:
5
,
hasSented
:
0
// 七天内是否发送过 0: 否;1: 是
userType
:
1
,
validateType
:
1
};
};
if
(
statusConfig
.
isSensitive
==
1
&&
statusConfig
.
hasProtocol
==
0
)
{
this
.
isShowProtocolDialog
=
true
uniteValidate
(
validParams
).
then
(
res
=>
{
this
.
isSentedProt
=
statusConfig
.
hasSented
==
1
let
result
=
res
;
}
else
{
// 请求成功
this
.
jumpToScale
()
if
(
result
.
code
===
'000000'
)
{
}
let
levelType
=
result
.
data
.
levelType
;
// 没有敏感字段或者居民已经签订过协议,则直接返回
if
(
levelType
===
1
||
levelType
===
2
)
{
jumpToScale
();
}
else
if
(
levelType
===
3
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
true
;
}
else
if
(
levelType
===
4
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
false
;
this
.
sendMsgPatientIds
=
result
.
data
.
ids
;
}
}
});
},
// 发送协议授权短信给居民
sendMsgToPatients
()
{
authMessage
({
patientIds
:
this
.
sendMsgPatientIds
}).
then
(
res
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
$message
({
message
:
'已发送,请尽快联系居民同意授权'
,
type
:
'success'
});
}
});
this
.
isShowDialog
=
false
;
},
},
// 统一跳转到量表页面
// 统一跳转到量表页面
jumpToScale
()
{
jumpToScale
()
{
//
this.$router.push({
this
.
$router
.
push
({
//
path: "/followup/record-manage/form-template",
path
:
"/followup/record-manage/form-template"
,
//
query: this.scaleQuery
query
:
this
.
scaleQuery
//
});
});
},
},
// 关闭协议确认窗口
// 关闭协议确认窗口
...
@@ -435,8 +471,8 @@ export default {
...
@@ -435,8 +471,8 @@ export default {
},
},
// 发送短信通知
// 发送短信通知
sendMsg
(
residentId
)
{
sendMsg
()
{
// this.sendMsgToResident(residentId
);
this
.
sendMsgToPatients
(
);
this
.
closeProtocolDialog
()
this
.
closeProtocolDialog
()
},
},
...
...
src/views/home copy 2.vue
0 → 100644
浏览文件 @
ca2838cd
此差异已折叠。
点击以展开。
src/views/home.vue
浏览文件 @
ca2838cd
...
@@ -140,6 +140,8 @@ import ChangeFollowupStatus from "./followup/record-manage/dialog/change-followu
...
@@ -140,6 +140,8 @@ import ChangeFollowupStatus from "./followup/record-manage/dialog/change-followu
import
{
mapGetters
,
mapState
,
mapActions
}
from
"vuex"
;
import
{
mapGetters
,
mapState
,
mapActions
}
from
"vuex"
;
import
*
as
commonUtil
from
"../utils/utils"
;
import
*
as
commonUtil
from
"../utils/utils"
;
import
{
uniteValidate
,
authMessage
}
from
'@/utils/followup/followapis'
let
vm
=
null
;
let
vm
=
null
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -162,7 +164,10 @@ export default {
...
@@ -162,7 +164,10 @@ export default {
ScaleData
:
{},
ScaleData
:
{},
isShowProtocolDialog
:
true
,
isShowProtocolDialog
:
true
,
scaleQuery
:
{},
scaleQuery
:
{},
isSentedProt
:
false
isSentedProt
:
false
,
scaleNo
:
''
,
patientIds
:
[],
sendMsgPatientIds
:
[],
};
};
},
},
created
()
{
created
()
{
...
@@ -264,25 +269,27 @@ export default {
...
@@ -264,25 +269,27 @@ export default {
});
});
},
},
goFormView
(
item
)
{
goFormView
(
item
)
{
this
.
selectFormShow
=
false
;
// this.selectFormShow = false;
this
.
$router
.
push
({
// this.$router.push({
path
:
"/followup/record-manage/form-template"
,
// path: "/followup/record-manage/form-template",
query
:
{
// query: {
doctorId
:
this
.
ScaleData
.
doctorId
,
// doctorId: this.ScaleData.doctorId,
scaleNo
:
item
.
resourceId
,
// scaleNo: item.resourceId,
planPatientsTimesId
:
this
.
ScaleData
.
planPatientsTimesId
,
// planPatientsTimesId: this.ScaleData.planPatientsTimesId,
planTimesId
:
item
.
planTimesId
,
// planTimesId: item.planTimesId,
showBtn
:
1
// showBtn: 1
}
// }
});
// });
// this.scaleQuery = {
this
.
scaleQuery
=
{
// doctorId: this.ScaleData.doctorId,
doctorId
:
this
.
ScaleData
.
doctorId
,
// scaleNo: item.resourceId,
scaleNo
:
item
.
resourceId
,
// planPatientsTimesId: this.ScaleData.planPatientsTimesId,
planPatientsTimesId
:
this
.
ScaleData
.
planPatientsTimesId
,
// planTimesId: item.planTimesId,
planTimesId
:
item
.
planTimesId
,
// showBtn: 1
showBtn
:
1
// }
}
// this.needSign()
this
.
scaleNo
=
item
.
resourceId
;
// this.patientIds = [this.ScaleData.patientId];
this
.
uniteValidateAction
()
},
},
closeForm
()
{
closeForm
()
{
this
.
selectFormShow
=
false
;
this
.
selectFormShow
=
false
;
...
@@ -290,6 +297,7 @@ export default {
...
@@ -290,6 +297,7 @@ export default {
async
goToScale
(
row
)
{
async
goToScale
(
row
)
{
await
this
.
getFormList
(
row
.
planTimesId
);
//获取量表列表
await
this
.
getFormList
(
row
.
planTimesId
);
//获取量表列表
//获取量表列表情况
//获取量表列表情况
this
.
patientIds
=
[
row
.
patientId
];
if
(
this
.
formList
.
scalesList
.
length
>
1
)
{
if
(
this
.
formList
.
scalesList
.
length
>
1
)
{
this
.
selectFormShow
=
true
;
this
.
selectFormShow
=
true
;
this
.
ScaleData
=
{
this
.
ScaleData
=
{
...
@@ -297,24 +305,25 @@ export default {
...
@@ -297,24 +305,25 @@ export default {
planPatientsTimesId
:
row
.
planPatientTimesId
planPatientsTimesId
:
row
.
planPatientTimesId
};
};
}
else
if
(
this
.
formList
.
scalesList
.
length
===
1
)
{
}
else
if
(
this
.
formList
.
scalesList
.
length
===
1
)
{
this
.
$router
.
push
({
// this.$router.push({
path
:
"/followup/record-manage/form-template"
,
// path: "/followup/record-manage/form-template",
query
:
{
// query: {
doctorId
:
this
.
formList
.
doctorId
,
// doctorId: this.formList.doctorId,
scaleNo
:
this
.
formList
.
scalesList
[
0
].
resourceId
,
// scaleNo: this.formList.scalesList[0].resourceId,
planPatientsTimesId
:
row
.
planPatientTimesId
,
// planPatientsTimesId: row.planPatientTimesId,
planTimesId
:
row
.
planTimesId
,
// planTimesId: row.planTimesId,
showBtn
:
1
// showBtn: 1
}
// }
});
// });
// this.scaleQuery = {
this
.
scaleQuery
=
{
// doctorId: this.formList.doctorId,
doctorId
:
this
.
formList
.
doctorId
,
// scaleNo: this.formList.scalesList[0].resourceId,
scaleNo
:
this
.
formList
.
scalesList
[
0
].
resourceId
,
// planPatientsTimesId: row.planPatientTimesId,
planPatientsTimesId
:
row
.
planPatientTimesId
,
// planTimesId: row.planTimesId,
planTimesId
:
row
.
planTimesId
,
// showBtn: 1
showBtn
:
1
// }
}
// this.needSign()
this
.
scaleNo
=
this
.
formList
.
scalesList
[
0
].
resourceId
;
this
.
uniteValidateAction
()
}
else
{
}
else
{
this
.
$message
.
warning
(
"暂无量表!"
);
this
.
$message
.
warning
(
"暂无量表!"
);
}
}
...
@@ -328,31 +337,123 @@ export default {
...
@@ -328,31 +337,123 @@ export default {
};
};
this
.
isShowChangeDialog
=
true
;
this
.
isShowChangeDialog
=
true
;
},
},
// 敏感词校验与签署协议逻辑
// 1. 判断量表内是否存在敏感词
// // Add by Anndy Yang
// 2. 判断居民是否存签署协议
// // 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
// 3. 七天内是否发送过
// uniteValidateAction() {
needSign
(
scaleId
,
query
)
{
// let validParams = {
// let statusConfig =await getStatusByScaleId(scaleId)
// scaleNo: this.scaleNo,
let
statusConfig
=
{
// patientIds: this.patientIds, // pc端只传这个字段
isSensitive
:
1
,
// 量表内是否存在敏感词 0: 否;1: 是
// // planPatientsTimesId: planPatientsTimesId, // app端只传这个字段
hasProtocol
:
0
,
// 居民是否存签署协议 0: 否;1: 是
// protocolType: 5,
hasSented
:
0
// 七天内是否发送过 0: 否;1: 是
// 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) {
// jumpToScale()
// } else if (levelType === 3) {
// this.isShowProtocolDialog = true;
// this.isSentedProt = false;
// } else if (levelType === 4) {
// this.isShowProtocolDialog = true;
// this.isSentedProt = true;
// this.sendMsgPatientIds = result.data.ids;
// }
// }
// });
// },
// // 发送协议授权短信给居民
// sendMsgToPatients() {
// authMessage({ patientIds: this.sendMsgPatientIds }).then(res => {
// if (res.code === '000000') {
// this.$message({
// message: '已发送,请尽快联系居民同意授权',
// type: 'success'
// });
// }
// });
// this.isShowDialog = false;
// },
// // 统一跳转到量表页面
// jumpToScale() {
// // this.$router.push({
// // path: "/followup/record-manage/form-template",
// // query: this.scaleQuery
// // });
// },
// // 关闭协议确认窗口
// closeProtocolDialog() {
// this.isShowProtocolDialog = false
// this.jumpToScale()
// },
// // 发送短信通知
// sendMsg() {
// this.sendMsgToPatients();
// this.closeProtocolDialog()
// },
// Add by Anndy Yang
// 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
uniteValidateAction
()
{
let
validParams
=
{
scaleNo
:
this
.
scaleNo
,
patientIds
:
this
.
patientIds
,
// pc端只传这个字段
// planPatientsTimesId: planPatientsTimesId, // app端只传这个字段
protocolType
:
5
,
userType
:
1
,
validateType
:
1
};
};
if
(
statusConfig
.
isSensitive
==
1
&&
statusConfig
.
hasProtocol
==
0
)
{
this
.
isShowProtocolDialog
=
true
uniteValidate
(
validParams
).
then
(
res
=>
{
this
.
isSentedProt
=
statusConfig
.
hasSented
==
1
let
result
=
res
;
}
else
{
// 请求成功
this
.
jumpToScale
()
if
(
result
.
code
===
'000000'
)
{
}
let
levelType
=
result
.
data
.
levelType
;
// 没有敏感字段或者居民已经签订过协议,则直接返回
if
(
levelType
===
1
||
levelType
===
2
)
{
jumpToScale
();
}
else
if
(
levelType
===
3
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
true
;
}
else
if
(
levelType
===
4
)
{
this
.
isShowProtocolDialog
=
true
;
this
.
isSentedProt
=
false
;
this
.
sendMsgPatientIds
=
result
.
data
.
ids
;
}
}
});
},
// 发送协议授权短信给居民
sendMsgToPatients
()
{
authMessage
({
patientIds
:
this
.
sendMsgPatientIds
}).
then
(
res
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
$message
({
message
:
'已发送,请尽快联系居民同意授权'
,
type
:
'success'
});
}
});
this
.
isShowDialog
=
false
;
},
},
// 统一跳转到量表页面
// 统一跳转到量表页面
jumpToScale
()
{
jumpToScale
()
{
//
this.$router.push({
this
.
$router
.
push
({
//
path: "/followup/record-manage/form-template",
path
:
"/followup/record-manage/form-template"
,
//
query: this.scaleQuery
query
:
this
.
scaleQuery
//
});
});
},
},
// 关闭协议确认窗口
// 关闭协议确认窗口
...
@@ -362,8 +463,8 @@ export default {
...
@@ -362,8 +463,8 @@ export default {
},
},
// 发送短信通知
// 发送短信通知
sendMsg
(
residentId
)
{
sendMsg
()
{
// this.sendMsgToResident(residentId
);
this
.
sendMsgToPatients
(
);
this
.
closeProtocolDialog
()
this
.
closeProtocolDialog
()
},
},
...
@@ -492,27 +593,6 @@ export default {
...
@@ -492,27 +593,6 @@ export default {
}
}
}
}
}
}
.prot-dialog
{
.el-dialog__body
{
padding
:
25px
25px
10px
;
}
&
-tips-1
{
margin-top
:
0px
;
}
&
-tips-2
{
margin-top
:
20px
;
font-size
:
12px
;
color
:
#aaa
;
}
&
-tips-3
{
margin-top
:
20px
;
font-size
:
12px
;
color
:
#FF9A4B
;
}
}
</
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录