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
提交
b727df53
提交
b727df53
编写于
4月 10, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
2640171b
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
111 行增加
和
88 行删除
+111
-88
select-cartoon.vue
src/views/followup/plan-manage/dialog/select-cartoon.vue
+1
-1
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+109
-86
plan-modify.vue
src/views/followup/plan-manage/plan-modify.vue
+1
-1
未找到文件。
src/views/followup/plan-manage/dialog/select-cartoon.vue
浏览文件 @
b727df53
...
...
@@ -161,10 +161,10 @@
this
.
$emit
(
'closeSelectCartoon'
,
this
.
sendObj
)
},
sureSelect
()
{
console
.
log
(
this
.
sendObj
)
this
.
$emit
(
'closeSelectCartoon'
,
this
.
sendObj
);
},
changeComent
(
item
){
console
.
log
(
item
)
this
.
$emit
(
'pushConmentMsg'
,
item
)
}
},
...
...
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
b727df53
...
...
@@ -26,32 +26,32 @@
:style=
"(index == activeTab)?'background:#3190e8;':''"
style=
"float:left;border:1px solid orange;padding:5px 10px;margin:0 5px;position: relative;"
>
{{
isStandedTemplate
?
item
.
timeStr
:
'开始后'
+
String
(
item
.
timeNo
)
+
timeUnitStr
}}
<i
class=
"deletelist el-icon-circle-close-outline"
@
click
=
"deleteTimeNode"
v-if=
"
setTimeNodeList.length>0"
></i></div>
<i
class=
"deletelist el-icon-circle-close-outline"
@
click
.
stop=
"deleteTimeNode(item, index)"
v-if=
"item.change &&
setTimeNodeList.length>0"
></i></div>
</div>
</div>
<!--查看时间节点-->
<div
class=
"form-div"
>
<div
class=
"form-div"
>
测试是否查看时间节点,记得去掉!!!
<div
v-show=
"index == activeTab"
v-for=
"(item, index) in setTimeNodeList"
v-for=
"(item
TimeForm
, index) in setTimeNodeList"
:key=
"index"
:label=
"index"
>
<el-form
:ref=
"item
.formRef"
:model=
"ite
m"
:rules=
"timeFormRules"
label-suffix=
":"
label-width=
"140px"
:inline-message=
"true"
size=
"small"
>
<el-form
:ref=
"item
TimeForm.formRef"
:model=
"itemTimeFor
m"
:rules=
"timeFormRules"
label-suffix=
":"
label-width=
"140px"
:inline-message=
"true"
size=
"small"
>
<el-form-item
label=
"本次随访时间"
required
>
<div
style=
"display: flex;"
>
<el-form-item
prop=
"timeNo"
>
<el-input
v-model=
"item.timeNo"
v-model=
"item
TimeForm
.timeNo"
type=
"tel"
size=
"small"
placeholder=
"请输入"
:disabled=
"isStandedTemplate"
:disabled=
"isStandedTemplate
|| !itemTimeForm.change
"
maxlength=
"2"
clearable
/>
</el-form-item>
<el-form-item
prop=
"timeUnit"
class=
"ml20"
>
<el-select
v-model=
"item
.timeUnit"
placeholder=
"请选择"
:disabled=
"item.isDisabled
"
>
<el-select
v-model=
"item
TimeForm.timeUnit"
placeholder=
"请选择"
:disabled=
"itemTimeForm.isDisabled || !itemTimeForm.change
"
>
<el-option
v-for=
"(item,index) in markOptions"
:key=
"index"
...
...
@@ -63,16 +63,16 @@
</div>
</el-form-item>
<el-form-item
label=
"随访方式"
prop=
"type"
>
<el-radio-group
v-model=
"item.type"
size=
"small"
>
<el-radio
v-for=
"(item,index) in followTypeList"
:key=
"index"
:label=
"item.no"
:disabled=
"isStandedTemplate"
>
{{
item
.
value
}}
</el-radio>
<el-radio-group
v-model=
"item
TimeForm
.type"
size=
"small"
>
<el-radio
v-for=
"(item,index) in followTypeList"
:key=
"index"
:label=
"item.no"
:disabled=
"isStandedTemplate
|| !itemTimeForm.change
"
>
{{
item
.
value
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"提醒医生预约居民"
>
<el-select
v-model=
"item.remindDay"
v-model=
"item
TimeForm
.remindDay"
multiple
:multiple-limit=
3
:disabled=
"isStandedTemplate"
:disabled=
"isStandedTemplate
|| !itemTimeForm.change
"
@
change=
"changeRemindDay"
placeholder=
"请选择"
>
<el-option
...
...
@@ -88,10 +88,10 @@
<div
style=
"display: flex"
>
<el-select
v-model=
"item.pushDay"
v-model=
"item
TimeForm
.pushDay"
placeholder=
"选择推送时间"
clearable
:disabled=
"isStandedTemplate"
:disabled=
"isStandedTemplate
|| !itemTimeForm.change
"
>
<el-option
v-for=
"(item,index) in pushTimeOptions"
...
...
@@ -101,25 +101,25 @@
</el-option>
</el-select>
<el-button
plain
class=
"ml20"
@
click=
"goSelectCartoon"
v-if=
"
!item.hasSelected && !isStandedTemplate && !
planId"
>
选择健康漫画
</el-button>
<div
class=
"selected-div ml20"
v-if=
"item.hasSelected"
>
<span>
《
{{
item
.
comentMsg
.
header_name
}}
》
</span>
<el-button
type=
"text"
@
click=
"goSelectCartoon"
v-if=
"!isStandedTemplate
&& !planId
"
>
重选
</el-button>
<el-button
type=
"text"
@
click=
"deleteClick"
v-if=
"!isStandedTemplate
&& !planId
"
>
删除
</el-button>
<el-button
plain
class=
"ml20"
@
click=
"goSelectCartoon"
v-if=
"
itemTimeForm.change && !itemTimeForm.hasSelected && !isStandedTemplate &&
planId"
>
选择健康漫画
</el-button>
<div
class=
"selected-div ml20"
v-if=
"item
TimeForm
.hasSelected"
>
<span>
《
{{
item
TimeForm
.
comentMsg
.
header_name
}}
》
</span>
<el-button
type=
"text"
@
click=
"goSelectCartoon"
v-if=
"!isStandedTemplate"
>
重选
</el-button>
<el-button
type=
"text"
@
click=
"deleteClick"
v-if=
"!isStandedTemplate"
>
删除
</el-button>
</div>
</div>
</el-form-item>
<div
class=
"tips-contnt"
v-if=
"item.hasSelected"
>
<p
class=
"yellow-font"
>
当前计划中共
{{
item
.
totalNumber
}}
位居民(微信:
{{
item
.
wechatPatientNum
}}
位,短信:
{{
item
.
messagePatientNum
}}
位),本次定时推送任务在发送当日预计需要
{{
item
.
messagePatientNum
}}
条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。
</p>
<div
class=
"tips-contnt"
v-if=
"item
TimeForm
.hasSelected"
>
<p
class=
"yellow-font"
>
当前计划中共
{{
totalNumber
}}
位居民(微信:
{{
wechatPatientNum
}}
位,短信:
{{
messagePatientNum
}}
位),本次定时推送任务在发送当日预计需要
{{
messagePatientNum
}}
条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。
</p>
<p>
需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877
</p>
</div>
<el-form-item
label=
"随访登记表"
>
<el-select
v-model=
"item.followResourceId"
v-model=
"item
TimeForm
.followResourceId"
multiple
:multiple-limit=
3
@
change=
"changeFollowId"
:disabled=
"isStandedTemplate"
:disabled=
"isStandedTemplate
|| !itemTimeForm.change
"
placeholder=
"请选择"
>
<el-option
v-for=
"(item_sub,index) in formOptions"
...
...
@@ -216,7 +216,7 @@
</div>
</el-form-item>
<div
class=
"tips-contnt"
v-if=
"timeForm.hasSelected"
>
<p
class=
"yellow-font"
>
当前计划中共
{{
t
imeForm
.
totalNumber
}}
位居民(微信:
{{
timeForm
.
wechatPatientNum
}}
位,短信:
{{
timeForm
.
messagePatientNum
}}
位),本次定时推送任务在发送当日预计需要
{{
timeForm
.
messagePatientNum
}}
条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。
</p>
<p
class=
"yellow-font"
>
当前计划中共
{{
t
otalNumber
}}
位居民(微信:
{{
wechatPatientNum
}}
位,短信:
{{
messagePatientNum
}}
位),本次定时推送任务在发送当日预计需要
{{
messagePatientNum
}}
条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。
</p>
<p>
需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877
</p>
</div>
<el-form-item
label=
"随访登记表"
>
...
...
@@ -298,6 +298,9 @@
pushTimeOptions
:
[],
formOptions
:
[],
wechatPatientNum
:
0
,
messagePatientNum
:
0
,
totalNumber
:
0
,
}
},
props
:
{
...
...
@@ -314,13 +317,13 @@
// setTimeNodeList1(){
// return this.sortKey(this.setTimeNodeList,'timeNo')
// },
item
()
{
if
(
this
.
setTimeNodeList
.
length
==
0
)
{
return
;
}
else
{
return
this
.
setTimeNodeList1
[
0
].
timeUnit
;
}
},
//
item() {
//
if(this.setTimeNodeList.length == 0) {
//
return;
//
}else {
//
return this.setTimeNodeList1[0].timeUnit;
//
}
//
},
},
created
()
{
this
.
setTimeNodeList
=
this
.
standedTimeNodeList
...
...
@@ -340,27 +343,29 @@
},
setTimeNodeList
(
val
){
this
.
setTimeNodeList
=
val
// console.log(this.setTimeNodeList)
if
(
this
.
setTimeNodeList
.
length
>
0
)
{
this
.
timeUnit
=
this
.
setTimeNodeList
[
0
].
timeUnit
this
.
setTimeNodeList
.
forEach
(
item
=>
{
item
.
isDisabled
=
true
;
item
.
timeUnit
=
this
.
setTimeNodeList
[
0
].
timeUnit
if
(
item
.
remindList
&&
item
.
remindList
.
length
>
0
){
// remindDay
if
(
item
.
remindList
&&
item
.
remindList
.
length
>
0
){
// remindDay
提醒医生预约提前天数
item
.
remindDay
=
[]
item
.
remindList
.
forEach
((
kkk
)
=>
{
item
.
remindDay
.
push
(
kkk
.
startDays
)
})
}
if
(
item
.
pushContentList
&&
item
.
pushContentList
.
length
){
//pushDay
if
(
item
.
pushContentList
&&
item
.
pushContentList
.
length
>
0
){
//pushDay 推送患教提前天数
let
pushData
=
item
.
pushContentList
[
0
]
item
.
hasSelected
=
true
item
.
pushDay
=
pushData
.
startDays
item
.
comentMsg
=
{
id
:
pushData
.
resourceId
,
header_name
:
pushData
.
sendContent
}
}
if
(
item
.
followupList
&&
item
.
followupList
.
length
>
0
){
//followResourceId
if
(
item
.
followupList
&&
item
.
followupList
.
length
>
0
){
//followResourceId
随访量表
item
.
followResourceId
=
[]
item
.
followupList
.
forEach
((
kkk
)
=>
{
if
(
this
.
isStandedTemplate
){
...
...
@@ -376,11 +381,35 @@
}
});
console
.
log
(
this
.
setTimeNodeList
)
if
(
!
this
.
isStandedTemplate
){
this
.
setTimeNodeList
[
0
].
isDisabled
=
false
;
}
}
},
patientIdList
(
val
){
if
(
this
.
planId
){
//如果是修改计划,发送人数共享给各个时间节点
// 获取微信和短信用户数量
getPatientNumber
({
patientIdList
:
val
}).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
wechatPatientNum
=
res
.
data
.
wechatPatientNum
;
this
.
messagePatientNum
=
res
.
data
.
messagePatientNum
;
this
.
totalNumber
=
this
.
wechatPatientNum
+
this
.
messagePatientNum
}
else
{
this
.
$notify
.
success
({
title
:
'提交失败'
,
message
:
res
.
message
,
showClose
:
false
});
}
})
}
},
checkForm
(
val
){
// console.log('触发 保存按钮的 校验',val)
// 触发 保存 校验
...
...
@@ -465,20 +494,20 @@
// this.timeForm = val
console
.
log
(
'表单父组件的数据'
,
this
.
timeForm
)
},
setTimeNodeList1
(
val
)
{
if
(
val
.
length
>
0
){
this
.
setTimeNodeList1
.
map
(
item
=>
{
item
.
isDisabled
=
true
;
item
.
timeUnit
=
this
.
setTimeNodeList1
[
0
].
timeUnit
this
.
markOptions
.
forEach
((
ob
)
=>
{
if
(
item
.
timeUnit
==
ob
.
no
){
item
.
timeUnitStr
=
ob
.
value
}
})
});
this
.
setTimeNodeList1
[
0
].
isDisabled
=
false
;
}
},
//
setTimeNodeList1(val) {
//
if(val.length > 0){
//
this.setTimeNodeList1.map(item=>{
//
item.isDisabled = true;
//
item.timeUnit = this.setTimeNodeList1[0].timeUnit
//
this.markOptions.forEach((ob)=>{
//
if(item.timeUnit==ob.no){
//
item.timeUnitStr = ob.value
//
}
//
})
//
});
//
this.setTimeNodeList1[0].isDisabled = false;
//
}
//
},
},
methods
:
{
// 一次性获取常量接口数据
...
...
@@ -614,9 +643,40 @@
goSelectCartoon
()
{
this
.
isSelectCartoon
=
true
;
},
//关闭漫画
closeSelectCartoon
(
val
)
{
this
.
isSelectCartoon
=
val
.
closeStatus
;
this
.
timeForm
.
hasSelected
=
val
.
hasSelected
;
// this.timeForm.comentMsg = val.hasSelected;
console
.
log
(
'当前的tab是'
,
this
.
activeTab
)
this
.
pushConmentMsg
(
val
.
hasSelected
)
},
// 接收漫画选择信息
pushConmentMsg
(
val
){
this
.
timeForm
.
comentMsg
=
val
console
.
log
(
'选择的漫画信息'
,
this
.
timeForm
.
comentMsg
)
let
obj
=
{
startDays
:
this
.
timeForm
.
pushDay
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
,
sendContent
:
this
.
timeForm
.
comentMsg
.
header_name
}
this
.
timeForm
.
pushContentList
[
0
]
=
obj
// activeTab
// getPatientNumber({
// patientIdList: this.patientIdList
// }).then(res=>{
// if(res.code=='000000'){
// this.timeForm.wechatPatientNum = res.data.wechatPatientNum;
// this.timeForm.messagePatientNum = res.data.messagePatientNum;
// this.timeForm.totalNumber = this.timeForm.wechatPatientNum + this.timeForm.messagePatientNum
// }else{
// this.$notify.success({
// title: '提交失败',
// message: res.message,
// showClose: false
// });
// }
// })
},
deleteClick
()
{
this
.
timeForm
.
hasSelected
=
''
;
...
...
@@ -630,7 +690,6 @@
this
.
activeTab
=
'setNewRef'
;
this
.
showSetBtn
=
true
;
this
.
initNewForm
();
}
else
{
}
this
.
$forceUpdate
();
//强制刷新,解决页面不会重新渲染的问题
},
...
...
@@ -653,10 +712,10 @@
},
changePushDay
(
val
){
console
.
log
(
val
)
// console.log(this.timeForm.comentMsg)
let
obj
=
{
startDays
:
val
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
resourceId
:
this
.
timeForm
.
comentMsg
.
id
,
sendContent
:
this
.
timeForm
.
comentMsg
.
header_name
}
this
.
timeForm
.
pushContentList
[
0
]
=
obj
},
...
...
@@ -669,42 +728,6 @@
})
})
},
goSelectCartoon
()
{
this
.
isSelectCartoon
=
true
;
},
closeSelectCartoon
(
val
)
{
this
.
isSelectCartoon
=
val
.
closeStatus
;
this
.
timeForm
.
hasSelected
=
val
.
hasSelected
;
},
deleteClick
()
{
this
.
timeForm
.
hasSelected
=
''
;
},
pushConmentMsg
(
val
){
this
.
timeForm
.
comentMsg
=
val
// console.log(val)
// console.log(this.timeForm.comentMsg)
let
obj
=
{
startDays
:
this
.
timeForm
.
pushDay
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
}
this
.
timeForm
.
pushContentList
[
0
]
=
obj
getPatientNumber
({
patientIdList
:
this
.
patientIdList
}).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
timeForm
.
wechatPatientNum
=
res
.
data
.
wechatPatientNum
;
this
.
timeForm
.
messagePatientNum
=
res
.
data
.
messagePatientNum
;
this
.
timeForm
.
totalNumber
=
this
.
timeForm
.
wechatPatientNum
+
this
.
timeForm
.
messagePatientNum
}
else
{
this
.
$notify
.
success
({
title
:
'提交失败'
,
message
:
res
.
message
,
showClose
:
false
});
}
})
},
getNowTime
()
{
const
date
=
new
Date
();
...
...
src/views/followup/plan-manage/plan-modify.vue
浏览文件 @
b727df53
...
...
@@ -266,7 +266,7 @@
},
watch
:
{
planDetail
(
val
)
{
console
.
log
(
val
)
//
console.log(val)
this
.
planDetailData
=
val
this
.
setTimeNodeList
=
val
.
fPlanTimeReqList
if
(
this
.
planDetailData
.
resourceId
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录