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
提交
2d690998
提交
2d690998
编写于
4月 10, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
df2a9c2d
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
601 行增加
和
181 行删除
+601
-181
select-cartoon.vue
src/views/followup/plan-manage/dialog/select-cartoon.vue
+1
-0
set-time-form.vue
src/views/followup/plan-manage/dialog/set-time-form.vue
+2
-13
set-time-node.vue
src/views/followup/plan-manage/dialog/set-time-node.vue
+580
-146
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+12
-17
plan-modify.vue
src/views/followup/plan-manage/plan-modify.vue
+6
-5
未找到文件。
src/views/followup/plan-manage/dialog/select-cartoon.vue
浏览文件 @
2d690998
...
@@ -164,6 +164,7 @@
...
@@ -164,6 +164,7 @@
this
.
$emit
(
'closeSelectCartoon'
,
this
.
sendObj
);
this
.
$emit
(
'closeSelectCartoon'
,
this
.
sendObj
);
},
},
changeComent
(
item
){
changeComent
(
item
){
console
.
log
(
item
)
this
.
$emit
(
'pushConmentMsg'
,
item
)
this
.
$emit
(
'pushConmentMsg'
,
item
)
}
}
},
},
...
...
src/views/followup/plan-manage/dialog/set-time-form.vue
浏览文件 @
2d690998
<
template
>
<
template
>
<div>
<div>
<
el-form
:ref=
"timeForm.formRef"
:model=
"timeForm"
:rules=
"timeFormRules"
label-suffix=
":"
label-width=
"140px"
:inline-message=
"true"
size=
"small"
>
<
!--
<el-form
:ref=
"timeForm.formRef"
:model=
"timeForm"
:rules=
"timeFormRules"
label-suffix=
":"
label-width=
"140px"
:inline-message=
"true"
size=
"small"
>
--
>
<el-form-item
label=
"本次随访时间"
required
>
<el-form-item
label=
"本次随访时间"
required
>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
<el-form-item
prop=
"timeNo"
>
<el-form-item
prop=
"timeNo"
>
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<
/el-form
>
<
!--
</el-form>
--
>
<select-cartoon
<select-cartoon
:isSelectCartoon=
"isSelectCartoon"
:isSelectCartoon=
"isSelectCartoon"
@
closeSelectCartoon=
"closeSelectCartoon"
@
closeSelectCartoon=
"closeSelectCartoon"
...
@@ -292,17 +292,6 @@
...
@@ -292,17 +292,6 @@
}
}
})
})
},
},
getNowTime
()
{
const
date
=
new
Date
();
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
const
day
=
date
.
getDate
();
const
hour
=
date
.
getHours
();
const
minute
=
date
.
getMinutes
();
const
second
=
date
.
getSeconds
();
let
formName
=
`form
${
year
}${
month
}${
day
}${
hour
}${
minute
}${
second
}
`
;
return
formName
;
},
goSelectCartoon
()
{
goSelectCartoon
()
{
this
.
isSelectCartoon
=
true
;
this
.
isSelectCartoon
=
true
;
},
},
...
...
src/views/followup/plan-manage/dialog/set-time-node.vue
浏览文件 @
2d690998
<
template
>
<
template
>
<div>
<div>
<p><el-button
plain
icon=
"el-icon-plus"
size=
"small"
round
v-if=
"!isStandedTemplate"
@
click=
"addNewNode"
>
新增时间节点
</el-button><br></p>
<!--新增时间节点-->
<div
v-if=
"!isStandedTemplate"
>
<el-button
size=
"small"
@
click=
"addNewNode"
>
新增时间节点
<i
class=
"el-icon-circle-close-outline"
@
click=
"deleteAddNode"
v-if=
"setTimeNodeList.length>0"
></i>
</el-button>
</div>
<div
class=
"add-time-content"
>
<div
class=
"add-time-content"
>
<!--tab层-->
<div
class=
"time-line-scroll"
>
<div
class=
"time-line-scroll"
>
<!--
<el-row
:gutter=
"20"
v-model=
"activeTab"
>
-->
<div
<!--
<el-col
:span=
"6"
v-if=
"setTimeNodeList.length > 0"
--
>
v-if=
"showSetBtn && !isStandedTemplate"
>
设置随访时间
<!--v-for="(item, index) in setTimeNodeList1"-->
<i
class=
"el-icon-circle-close-outline"
@
click=
"deleteAddNode"
v-if=
"setTimeNodeList.length>0"
></i>
<!--:key="index"-->
</div>
<!--:label="index">开始后
{{
String
(
item
.
timeNo
)
+
item
.
timeUnitStr
}}
>
<div
@
click=
"changeTab(index)"
class=
"grid-content bg-purple"
></div></el-col>
-->
<div
v-model=
"activeTab"
type=
"card"
closable
@
tab-remove=
"deleteTimeNode(item, index)"
>
<!--
</el-row>
-->
<div
<div
:gutter=
"20"
v-model=
"activeTab"
>
v-for=
"(item, index) in setTimeNodeList"
<div
@
click=
"changeTab(index)"
:span=
"6"
v-if=
"setTimeNodeList.length > 0"
v-for=
"(item, index) in setTimeNodeList1"
:key=
"index"
:key=
"index"
:label=
"index"
>
开始后
{{
String
(
item
.
timeNo
)
+
item
.
timeUnitStr
}}
>
</div>
@
click=
"changeTabNew(index)"
v-text=
"isStandedTemplate ? item.timeStr : '开始后'+String(item.timeNo) + item.timeUnitStr"
:style=
"(index == activeTab)?'background:#3190e8;':''"
style=
"float:left;border:1px solid orange;padding:5px 10px;margin:0 5px;"
></div>
</div>
</div>
<!--
<el-radio-group
v-model=
"activeTab"
@
change=
"changeTab"
size=
"small"
>
-->
<!--
<el-radio-button-->
<!--v-if="setTimeNodeList.length > 0"-->
<!--v-for="(item, index) in setTimeNodeList1"-->
<!--:key="index"-->
<!--:label="index">开始后
{{
String
(
item
.
timeNo
)
+
item
.
timeUnitStr
}}
-->
<!--
<i
class=
"el-icon-circle-close-outline"
v-if=
"!isStandedTemplate"
@
click=
"deleteTimeNode(item, index)"
></i>
-->
<!--
</el-radio-button>
-->
<!--
<el-radio-button-->
<!--label="setNewRef"-->
<!--v-if="showSetBtn && !isStandedTemplate">设置随访时间-->
<!--
<i
class=
"el-icon-circle-close-outline"
@
click=
"deleteAddNode"
v-if=
"setTimeNodeList.length>0"
></i>
-->
<!--
</el-radio-button>
-->
<!--
</el-radio-group>
-->
</div>
</div>
<!--查看时间节点-->
<!--查看时间节点-->
<div
class=
"form-div"
v-if=
"activeTab != 'setNewRef'"
>
<div
class=
"form-div"
>
<div
<div
v-for=
"(timeFormHas, index) in setTimeNodeList1"
v-if=
"index == activeTab"
v-for=
"(item, index) in setTimeNodeList"
:key=
"index"
:key=
"index"
:label=
"index"
:label=
"index"
>
>
<set-time-form
<el-form
:ref=
"item.formRef"
:model=
"item"
:rules=
"timeFormRules"
label-suffix=
":"
label-width=
"140px"
:inline-message=
"true"
size=
"small"
>
v-if=
"index == activeTab"
<el-form-item
label=
"本次随访时间"
required
>
:isStandedTemplate=
"isStandedTemplate"
<div
style=
"display: flex;"
>
:planId=
"planId"
<el-form-item
prop=
"timeNo"
>
:timeForm=
"timeFormHas"
<el-input
:valBegin=
"valBegin"
v-model=
"item.timeNo"
:saveValiedBegin=
"saveValiedBegin"
type=
"tel"
:markOptions=
"markOptions"
size=
"small"
:remindOptions=
"remindOptions"
placeholder=
"请输入"
:pushTimeOptions=
"pushTimeOptions"
:disabled=
"isStandedTemplate"
:followTypeList=
"followTypeList"
maxlength=
"2"
:formOptions=
"formOptions"
clearable
/>
:patientIdList=
"patientIdList"
</el-form-item>
@
checkValid=
"checkValid"
<el-form-item
prop=
"timeUnit"
class=
"ml20"
>
<el-select
v-model=
"item.timeUnit"
placeholder=
"请选择"
:disabled=
"item.isDisabled"
>
<el-option
v-for=
"(item,index) in markOptions"
:key=
"index"
:label=
"item.value"
:value=
"item.no"
>
</el-option>
</el-select>
<!--
<el-select
v-if=
"isStandedTemplate || planId"
v-model=
"item.timeUnit"
placeholder=
"请选择"
:disabled=
"isStandedTemplate"
>
-->
<!--
<el-option-->
<!--v-for="(item,index) in markOptions"-->
<!--:key="index"-->
<!--:label="item.value"-->
<!--:value="item.no">-->
<!--
</el-option>
-->
<!--
</el-select>
-->
</el-form-item>
</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>
</el-form-item>
<el-form-item
label=
"提醒医生预约居民"
>
<el-select
v-model=
"item.remindDay"
multiple
:multiple-limit=
3
:disabled=
"isStandedTemplate"
@
change=
"changeRemindDay"
placeholder=
"请选择"
>
<el-option
v-for=
"(item,index) in remindOptions"
:key=
"index"
:label=
"item.value"
:value=
"item.no"
>
</el-option>
</el-select>
<!--固定模板需要填充-->
<!--
<el-select-->
<!--v-if="isStandedTemplate"-->
<!--v-model="timeForm.remindDay"-->
<!--multiple-->
<!--:multiple-limit=3-->
<!--:disabled="isStandedTemplate"-->
<!--placeholder="请选择">-->
<!--
<el-option-->
<!--v-for="(item,index) in remindOptionsCopy"-->
<!--:key="index"-->
<!--:label="item.startDaysStr"-->
<!--:value="item.startDays">-->
<!--
</el-option>
-->
<!--
</el-select>
-->
</el-form-item>
<el-form-item
label=
"推送患教"
>
<div
style=
"display: flex"
>
<el-select
v-model=
"item.pushDay"
placeholder=
"选择推送时间"
clearable
:disabled=
"isStandedTemplate"
>
<el-option
v-for=
"(item,index) in pushTimeOptions"
:key=
"index"
:label=
"item.value"
:value=
"item.no"
>
</el-option>
</el-select>
<!--固定模板需要填充-->
<!--
<el-select-->
<!--v-if="isStandedTemplate"-->
<!--v-model="timeForm.pushDay"-->
<!--placeholder="选择推送时间"-->
<!--clearable-->
<!--:disabled="isStandedTemplate"-->
<!-->-->
<!--
<el-option-->
<!--:label="timeForm.startDaysStr"-->
<!--:value="timeForm.pushDay">-->
<!--
</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>
</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>
<p>
需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877
</p>
</div>
<el-form-item
label=
"随访登记表"
>
<el-select
v-model=
"item.followResourceId"
multiple
:multiple-limit=
3
@
change=
"changeFollowId"
:disabled=
"isStandedTemplate"
placeholder=
"请选择"
>
<el-option
v-for=
"(item_sub,index) in formOptions"
:key=
"index"
:label=
"item_sub.name"
:value=
"item_sub.scaleNo"
>
</el-option>
</el-select>
<!--固定模板需要填充-->
<!--
<el-select-->
<!--v-if="isStandedTemplate"-->
<!--v-model="item.followResourceId"-->
<!--multiple-->
<!--:multiple-limit=3-->
<!--@change="changeFollowId"-->
<!--:disabled="isStandedTemplate"-->
<!--placeholder="请选择">-->
<!--
<el-option-->
<!--v-for="(item,index) in formOptionsCopy"-->
<!--:key="index"-->
<!--:label="item.sendContent"-->
<!--:value="item.resourceId">-->
<!--
</el-option>
-->
<!--
</el-select>
-->
</el-form-item>
<select-cartoon
:isSelectCartoon=
"isSelectCartoon"
@
closeSelectCartoon=
"closeSelectCartoon"
@
pushConmentMsg=
"pushConmentMsg"
/>
/>
</el-form>
</div>
</div>
</div>
</div>
<!--新增时间节点-->
<!--新增时间节点-->
<div
class=
"form-div"
v-if=
"activeTab == 'setNewRef'"
>
<div
class=
"form-div"
v-if=
"activeTab == 'setNewRef'"
>
<set-time-form
<el-form
:ref=
"timeForm.formRef"
:model=
"timeForm"
:rules=
"timeFormRules"
label-suffix=
":"
label-width=
"140px"
:inline-message=
"true"
size=
"small"
>
:planId=
"planId"
<el-form-item
label=
"本次随访时间"
required
>
:timeForm=
"timeForm"
<div
style=
"display: flex;"
>
:valBegin=
"valBegin"
<el-form-item
prop=
"timeNo"
>
:saveValiedBegin=
"saveValiedBegin"
<el-input
:markOptions=
"markOptions"
v-model=
"timeForm.timeNo"
:remindOptions=
"remindOptions"
type=
"tel"
:pushTimeOptions=
"pushTimeOptions"
size=
"small"
:followTypeList=
"followTypeList"
placeholder=
"请输入"
:formOptions=
"formOptions"
:disabled=
"isStandedTemplate"
:patientIdList=
"patientIdList"
maxlength=
"2"
@
checkValid=
"checkValid"
clearable
/>
</el-form-item>
<el-form-item
prop=
"timeUnit"
class=
"ml20"
>
<el-select
v-if=
"!isStandedTemplate && !planId"
v-model=
"timeForm.timeUnit"
placeholder=
"请选择"
:disabled=
"timeForm.isDisabled"
>
<el-option
v-for=
"(item,index) in markOptions"
:key=
"index"
:label=
"item.value"
:value=
"item.no"
>
</el-option>
</el-select>
</el-form-item>
</div>
</el-form-item>
<el-form-item
label=
"随访方式"
prop=
"type"
>
<el-radio-group
v-model=
"timeForm.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>
</el-form-item>
<el-form-item
label=
"提醒医生预约居民"
>
<el-select
v-if=
"!isStandedTemplate"
v-model=
"timeForm.remindDay"
multiple
:multiple-limit=
3
@
change=
"changeRemindDay"
placeholder=
"请选择"
>
<el-option
v-for=
"(item,index) in remindOptions"
:key=
"index"
:label=
"item.value"
:value=
"item.no"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"推送患教"
>
<div
style=
"display: flex"
>
<el-select
v-if=
"!isStandedTemplate"
v-model=
"timeForm.pushDay"
@
change=
"changePushDay"
placeholder=
"选择推送时间"
clearable
>
<el-option
v-for=
"(item,index) in pushTimeOptions"
:key=
"index"
:label=
"item.value"
:value=
"item.no"
>
</el-option>
</el-select>
<el-button
plain
class=
"ml20"
@
click=
"goSelectCartoon"
v-if=
"!timeForm.hasSelected && !isStandedTemplate && !planId"
>
选择健康漫画
</el-button>
<div
class=
"selected-div ml20"
v-if=
"timeForm.hasSelected"
>
<span>
《
{{
timeForm
.
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>
</div>
</div>
</el-form-item>
<div
class=
"tips-contnt"
v-if=
"timeForm.hasSelected"
>
<p
class=
"yellow-font"
>
当前计划中共
{{
timeForm
.
totalNumber
}}
位居民(微信:
{{
timeForm
.
wechatPatientNum
}}
位,短信:
{{
timeForm
.
messagePatientNum
}}
位),本次定时推送任务在发送当日预计需要
{{
timeForm
.
messagePatientNum
}}
条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。
</p>
<p>
需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877
</p>
</div>
<el-form-item
label=
"随访登记表"
>
<el-select
v-if=
"!isStandedTemplate"
v-model=
"timeForm.followResourceId"
multiple
:multiple-limit=
3
@
change=
"changeFollowId"
placeholder=
"请选择"
>
<el-option
v-for=
"(item_sub,index) in formOptions"
:key=
"index"
:label=
"item_sub.name"
:value=
"item_sub.scaleNo"
>
</el-option>
</el-select>
</el-form-item>
<select-cartoon
:isSelectCartoon=
"isSelectCartoon"
@
closeSelectCartoon=
"closeSelectCartoon"
@
pushConmentMsg=
"pushConmentMsg"
/>
/>
</el-form>
</div>
</div>
</div>
</div>
<
select-cartoon
:isSelectCartoon=
"isSelectCartoon"
@
closeSelectCartoon=
"closeSelectCartoon"
></select-cartoon
>
<
!--
<select-cartoon
:isSelectCartoon=
"isSelectCartoon"
@
closeSelectCartoon=
"closeSelectCartoon"
></select-cartoon>
--
>
</div>
</div>
</
template
>
</
template
>
...
@@ -85,7 +303,7 @@
...
@@ -85,7 +303,7 @@
import
_
from
'lodash'
;
import
_
from
'lodash'
;
import
SelectCartoon
from
'@/views/followup/plan-manage/dialog/select-cartoon'
;
import
SelectCartoon
from
'@/views/followup/plan-manage/dialog/select-cartoon'
;
import
SetTimeForm
from
'@/views/followup/plan-manage/dialog/set-time-form'
;
import
SetTimeForm
from
'@/views/followup/plan-manage/dialog/set-time-form'
;
import
{
getFormOptions
}
from
'@/utils/followup/followapis'
import
{
getFormOptions
,
getPatientNumber
,
getBasicData
}
from
'@/utils/followup/followapis'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mapState
,
mapActions
}
from
'vuex'
...
@@ -96,26 +314,42 @@
...
@@ -96,26 +314,42 @@
SetTimeForm
SetTimeForm
},
},
data
()
{
data
()
{
const
checkDay
=
(
rule
,
value
,
callback
)
=>
{
const
num
=
parseFloat
(
value
)
if
(
num
<
1
||
num
>
99
){
return
callback
(
new
Error
(
'日期不能大于99天或小于0天'
));
}
callback
();
}
return
{
return
{
timeFormRules
:
{
timeNo
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
},{
validator
:
checkDay
,
trigger
:
'blur'
}],
timeUnit
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
type
:
[{
required
:
true
,
message
:
'请选择随访方式'
,
trigger
:
'change'
}],
},
tabIndex
:
2
,
setTimeNodeList
:
[],
timeIsRepeat
:
false
,
//验证时间是否重复
timeIsRepeat
:
false
,
//验证时间是否重复
valBegin
:
false
,
valBegin
:
false
,
saveValiedBegin
:
false
,
// isSelectCartoon: false,
// saveValiedBegin: false,
isSelectCartoon
:
false
,
isSelectCartoon
:
false
,
activeTab
:
null
,
activeTab
:
'setNewRef'
,
currentFormRef
:
1
,
currentFormRef
:
1
,
showSetBtn
:
true
,
showSetBtn
:
true
,
timeForm
:
{
timeForm
:
{
formRef
:
''
},
timeFormRules
:
{
timeNo
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
timeUnit
:
[{
required
:
true
,
message
:
'请添加随访时间'
,
trigger
:
'change'
}],
type
:
[{
required
:
true
,
message
:
'请选择随访方式'
,
trigger
:
'change'
}],
},
},
markOptions
:
[],
followTypeList
:
[],
remindOptions
:
[],
pushTimeOptions
:
[],
formOptions
:
[],
}
}
},
},
props
:
{
props
:
{
s
et
TimeNodeList
:
Array
,
s
tanded
TimeNodeList
:
Array
,
patientIdList
:
Array
,
patientIdList
:
Array
,
checkForm
:
Boolean
,
checkForm
:
Boolean
,
isStandedTemplate
:
Boolean
,
isStandedTemplate
:
Boolean
,
...
@@ -123,15 +357,11 @@
...
@@ -123,15 +357,11 @@
},
},
computed
:
{
computed
:
{
...
mapState
(
'planManage'
,{
...
mapState
(
'planManage'
,{
markOptions
:
state
=>
state
.
markOptions
,
followTypeList
:
state
=>
state
.
followTypeList
,
remindOptions
:
state
=>
state
.
remindOptions
,
pushTimeOptions
:
state
=>
state
.
pushTimeOptions
,
formOptions
:
state
=>
state
.
formOptions
,
}),
}),
setTimeNodeList1
(){
//
setTimeNodeList1(){
return
this
.
sortKey
(
this
.
setTimeNodeList
,
'timeNo'
)
//
return this.sortKey(this.setTimeNodeList,'timeNo')
},
//
},
item
()
{
item
()
{
if
(
this
.
setTimeNodeList
.
length
==
0
)
{
if
(
this
.
setTimeNodeList
.
length
==
0
)
{
return
;
return
;
...
@@ -141,41 +371,123 @@
...
@@ -141,41 +371,123 @@
},
},
},
},
created
()
{
created
()
{
this
.
setTimeNodeList
=
this
.
standedTimeNodeList
this
.
initNewForm
();
this
.
initNewForm
();
this
.
getConstData
()
this
.
getConstData
();
// 如果是固定模板
if
(
this
.
isStandedTemplate
||
this
.
planId
){
this
.
activeTab
=
0
;
}
//初始化一个随访时间节点
//初始化一个随访时间节点
this
.
activeTab
=
'setNewRef'
;
// this.activeTab = 'setNewRef';
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
// this.timeForm.formRef = this.getNowTime();
// this.setTimeNodeList.push(this.timeForm)
// console.log(this.isStandedTemplate)
// console.log(this.standedTimeNodeList)
},
},
watch
:
{
watch
:
{
standedTimeNodeList
(
val
){
this
.
setTimeNodeList
=
val
},
setTimeNodeList
(
val
){
setTimeNodeList
(
val
){
this
.
setTimeNodeList
=
val
this
.
setTimeNodeList
=
val
console
.
log
(
this
.
setTimeNodeList
)
if
(
this
.
setTimeNodeList
.
length
>
0
)
{
if
(
this
.
setTimeNodeList
.
length
>
0
)
{
if
(
this
.
timeForm
){
if
(
this
.
timeForm
){
this
.
timeForm
.
isDisabled
=
true
;
this
.
timeForm
.
isDisabled
=
true
;
this
.
timeForm
.
timeUnit
=
this
.
setTimeNodeList
[
0
].
timeUnit
;
this
.
timeForm
.
timeUnit
=
this
.
setTimeNodeList
[
0
].
timeUnit
;
// console.log(this.isStandedTemplate)
// if(this.isStandedTemplate || this.planId){
if
(
this
.
isStandedTemplate
||
this
.
planId
){
// this.deleteAddNode()
this
.
deleteAddNode
()
// }
}
this
.
setTimeNodeList
.
forEach
(
item
=>
{
item
.
isDisabled
=
true
;
item
.
timeUnit
=
this
.
setTimeNodeList
[
0
].
timeUnit
//
if
(
item
.
remindList
&&
item
.
remindList
.
length
>
0
){
// remindDay
item
.
remindDay
=
[]
item
.
remindList
.
forEach
((
kkk
)
=>
{
item
.
remindDay
.
push
(
kkk
.
startDays
)
// if(this.isStandedTemplate){
// this.remindOptions = [
// {
// no: kkk.resourceId,
// value: kkk.sendContent
// }
// ]
// }
})
}
if
(
item
.
pushContentList
&&
item
.
pushContentList
.
length
){
//pushDay
let
pushData
=
item
.
pushContentList
[
0
]
item
.
pushDay
=
pushData
.
startDays
// this.timeForm.startDaysStr = pushData.startDaysStr
item
.
comentMsg
=
{
id
:
pushData
.
resourceId
,
header_name
:
pushData
.
sendContent
}
// this.closeSelectCartoon({
// closeStatus: false,
// hasSelected: this.timeForm.comentMsg
// })
}
if
(
item
.
followupList
&&
item
.
followupList
.
length
>
0
){
//followResourceId
item
.
followResourceId
=
[]
item
.
followupList
.
forEach
((
kkk
)
=>
{
// item.sendContent = kkk.sendContent
if
(
this
.
isStandedTemplate
){
this
.
formOptions
=
[
{
scaleNo
:
kkk
.
resourceId
,
name
:
kkk
.
sendContent
}
]
}
item
.
followResourceId
.
push
(
kkk
.
resourceId
)
})
}
}
});
if
(
!
this
.
isStandedTemplate
){
this
.
setTimeNodeList
[
0
].
isDisabled
=
false
;
}
}
}
}
},
},
checkForm
(
val
){
checkForm
(
val
){
//
console.log('触发 保存 校验',val)
console
.
log
(
'触发 保存 校验'
,
val
)
// 触发 保存 校验
// 触发 保存 校验
this
.
saveValiedBegin
=
val
// this.saveValiedBegin = val
if
(
val
){
if
(
this
.
isStandedTemplate
){
// 固定模板,无法修改
this
.
$emit
(
'addListenSave'
,{
status
:
true
,
setTimeNodeList
:
this
.
setTimeNodeList
})
}
else
{
this
.
addNewNode
(
'isSave'
)
}
}
},
},
timeForm
(
val
)
{
timeForm
(
val
)
{
if
(
this
.
setTimeNodeList
.
length
>
0
)
{
//
if(this.setTimeNodeList.length>0) {
this
.
timeForm
.
isDisabled
=
true
;
//
this.timeForm.isDisabled = true;
this
.
timeForm
.
timeUnit
=
this
.
setTimeNodeList
[
0
].
timeUnit
;
//
this.timeForm.timeUnit = this.setTimeNodeList[0].timeUnit;
}
//
}
this
.
timeForm
=
val
//
this.timeForm = val
// console.log('表单父组件的数据',this.timeForm)
// console.log('表单父组件的数据',this.timeForm)
},
},
setTimeNodeList1
(
val
)
{
setTimeNodeList1
(
val
)
{
...
@@ -195,29 +507,39 @@
...
@@ -195,29 +507,39 @@
},
},
},
},
methods
:
{
methods
:
{
...
mapActions
(
'planManage'
,
[
//
...mapActions('planManage', [
'getDateUnit'
,
//
'getDateUnit',
'getFollowTypeList'
,
//
'getFollowTypeList',
'getRemindOptions'
,
//
'getRemindOptions',
'getPushTimeOptions'
,
//
'getPushTimeOptions',
'getFormOptions'
//
'getFormOptions'
]),
//
]),
// 一次性获取常量接口数据
// 一次性获取常量接口数据
getConstData
(){
getConstData
(){
// 随访时间节点单位
// 随访时间节点单位
this
.
getDateUnit
()
getBasicData
({
numList
:
'P017'
}).
then
(
res
=>
{
this
.
markOptions
=
res
.
data
.
P017
})
// 随访方式
// 随访方式
this
.
getFollowTypeList
()
getBasicData
({
numList
:
'P212'
}).
then
(
res
=>
{
this
.
followTypeList
=
res
.
data
.
P212
})
// 提醒医生天数
// 提醒医生天数
this
.
getRemindOptions
()
getBasicData
({
numList
:
'P213'
}).
then
(
res
=>
{
this
.
remindOptions
=
res
.
data
.
P213
})
// 推送患教提醒天数
// 推送患教提醒天数
this
.
getPushTimeOptions
()
getBasicData
({
numList
:
'P214'
}).
then
(
res
=>
{
this
.
pushTimeOptions
=
res
.
data
.
P214
})
// 获取量表
// 获取量表
this
.
getFormOptions
()
getFormOptions
().
then
(
res
=>
{
this
.
formOptions
=
res
.
data
})
},
},
// 校验通过之后,需要新增一个新的初始化的表单
// 校验通过之后,需要新增一个新的初始化的表单
checkValid
(
obj
){
checkValid
(
obj
){
console
.
log
(
'!!!!!!!!!!!!!!!!!!!!!'
)
console
.
log
(
'校验结果'
,
obj
.
valid
)
console
.
log
(
'校验结果'
,
obj
.
valid
)
// 校验结束
// 校验结束
this
.
valBegin
=
false
this
.
valBegin
=
false
...
@@ -289,7 +611,7 @@
...
@@ -289,7 +611,7 @@
}
else
{
}
else
{
this
.
initNewForm
();
this
.
initNewForm
();
// console.log('初始化过之后activeTab=====> ',this.activeTab)
// console.log('初始化过之后activeTab=====> ',this.activeTab)
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
//
this.timeForm.formRef = this.getNowTime();
this
.
timeForm
.
isDisabled
=
true
;
this
.
timeForm
.
isDisabled
=
true
;
}
}
...
@@ -328,14 +650,14 @@
...
@@ -328,14 +650,14 @@
this
.
setTimeNodeList
.
push
(
this
.
timeForm
);
this
.
setTimeNodeList
.
push
(
this
.
timeForm
);
}
}
this
.
$emit
(
'setTimeNodeListOnCom'
,
this
.
setTimeNodeList
)
this
.
$emit
(
'setTimeNodeListOnCom'
,
this
.
setTimeNodeList
)
console
.
log
(
'addListenSave'
,
this
.
setTimeNodeList
)
//
console.log('addListenSave',this.setTimeNodeList)
// 保存按钮发起的校验
// 保存按钮发起的校验
if
(
obj
.
type
==
'save'
){
if
(
obj
.
type
==
'save'
){
this
.
$emit
(
'addListenSave'
,
true
)
this
.
$emit
(
'addListenSave'
,
true
)
}
else
{
}
else
{
this
.
initNewForm
();
this
.
initNewForm
();
// console.log('初始化过之后activeTab=====> ',this.activeTab)
// console.log('初始化过之后activeTab=====> ',this.activeTab)
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
//
this.timeForm.formRef = this.getNowTime();
this
.
timeForm
.
isDisabled
=
true
;
this
.
timeForm
.
isDisabled
=
true
;
}
}
}
}
...
@@ -401,31 +723,58 @@
...
@@ -401,31 +723,58 @@
}
}
},
},
// 点击 新增时间节点
addNewNode
()
{
checkCurrentForm
(
form
){
// console.log('是否新增一个新的时间节点 ' + (this.activeTab == 'setNewRef'))
let
validback
;
this
.
checkTimeIsRepeat
()
if
(
this
.
timeIsRepeat
){
this
.
$refs
[
form
].
validate
((
valid
)
=>
{
this
.
$notify
.
success
({
console
.
log
(
'新的new校验结果'
+
valid
)
title
:
'时间节点重复'
,
validback
=
valid
message
:
'时间节点重复'
,
showClose
:
false
});
});
}
else
{
// 新增,则进行校验表单字段 触发校验
return
validback
if
(
this
.
activeTab
==
'setNewRef'
)
{
},
// 校验开始
changeTabNew
(
index
){
this
.
valBegin
=
true
console
.
log
(
'点击了下标'
,
index
)
}
else
{
this
.
activeTab
=
index
// 否则切换 已经新增的表单至新增节点表单
console
.
log
(
this
.
setTimeNodeList
)
this
.
activeTab
=
'setNewRef'
;
this
.
timeForm
=
this
.
setTimeNodeList
[
index
]
},
// 点击 新增时间节点
addNewNode
(
str
)
{
if
(
this
.
activeTab
!=
'setNewRef'
&&
str
!=
'isSave'
){
this
.
initNewForm
();
this
.
activeTab
=
'setNewRef'
}
this
.
showSetBtn
=
true
;
this
.
showSetBtn
=
true
;
this
.
initNewForm
()
this
.
$nextTick
(()
=>
{
const
isValied
=
this
.
checkCurrentForm
(
this
.
timeForm
.
formRef
);
if
(
isValied
){
// 验证时间数量是否重复
this
.
checkTimeIsRepeat
(()
=>
{
this
.
activeTab
=
this
.
setTimeNodeList
.
length
;
this
.
timeForm
.
formRef
=
'form'
+
this
.
activeTab
;
this
.
setTimeNodeList
.
push
(
this
.
timeForm
)
// 验证完成后,判断如果是保存,告诉上层发送请求保存
if
(
str
==
'isSave'
){
this
.
$emit
(
'addListenSave'
,{
status
:
true
,
setTimeNodeList
:
this
.
setTimeNodeList
})
}
}
this
.
initNewForm
();
this
.
activeTab
=
'setNewRef'
;
})
}
else
{
this
.
$emit
(
'addListenSave'
,{
status
:
false
,
setTimeNodeList
:
[]
})
}
}
})
},
},
// 验证是否重复
// 验证是否重复
checkTimeIsRepeat
(){
checkTimeIsRepeat
(
callback
){
this
.
timeIsRepeat
=
false
;
this
.
timeIsRepeat
=
false
;
if
(
this
.
setTimeNodeList
.
length
>
0
){
if
(
this
.
setTimeNodeList
.
length
>
0
){
if
(
this
.
showSetBtn
){
if
(
this
.
showSetBtn
){
...
@@ -444,11 +793,30 @@
...
@@ -444,11 +793,30 @@
})
})
}
}
}
}
if
(
this
.
timeIsRepeat
){
this
.
$notify
.
success
({
title
:
'时间节点重复'
,
message
:
'时间节点重复'
,
showClose
:
false
});
}
else
{
callback
();
// // 新增,则进行校验表单字段 触发校验
// if(this.activeTab == 'setNewRef') {
// // 校验开始
// this.valBegin = true
// }else {
// // 否则切换 已经新增的表单至新增节点表单
// this.activeTab = 'setNewRef';
// this.showSetBtn = true;
// this.initNewForm()
// }
}
},
},
// 初始化新的表单
// 初始化新的表单
initNewForm
(){
initNewForm
(){
const
timeFormInit
=
{
const
timeFormInit
=
{
formRef
:
this
.
getNowTime
()
,
formRef
:
'formsetNewRef'
,
type
:
''
,
//随访方式
type
:
''
,
//随访方式
timeNo
:
''
,
//随访时间
timeNo
:
''
,
//随访时间
timeUnit
:
''
,
//随访时间单位
timeUnit
:
''
,
//随访时间单位
...
@@ -467,7 +835,6 @@
...
@@ -467,7 +835,6 @@
messagePatientNum
:
0
messagePatientNum
:
0
};
};
this
.
timeForm
=
timeFormInit
;
this
.
timeForm
=
timeFormInit
;
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
},
},
goSelectCartoon
()
{
goSelectCartoon
()
{
this
.
isSelectCartoon
=
true
;
this
.
isSelectCartoon
=
true
;
...
@@ -479,21 +846,21 @@
...
@@ -479,21 +846,21 @@
deleteClick
()
{
deleteClick
()
{
this
.
timeForm
.
hasSelected
=
''
;
this
.
timeForm
.
hasSelected
=
''
;
},
},
changeTab
(
val
){
//
changeTab(val){
debugger
//
debugger
console
.
log
(
'当前的 activeTab '
,
val
)
//
console.log('当前的 activeTab ',val)
this
.
activeTab
=
val
;
//
this.activeTab = val;
console
.
log
(
this
.
setTimeNodeList
)
//
console.log(this.setTimeNodeList)
console
.
log
(
this
.
setTimeNodeList1
)
//
console.log(this.setTimeNodeList1)
// this.setTimeNodeList1 = this.setTimeNodeList
//
//
this.setTimeNodeList1 = this.setTimeNodeList
// this.timeForm = this.setTimeNodeList[val];
//
//
this.timeForm = this.setTimeNodeList[val];
// this.timeForm.formRef = this.getNowTime();
//
//
this.timeForm.formRef = this.getNowTime();
//
//
if
(
val
==
'setNewRef'
)
{
//
if(val == 'setNewRef') {
this
.
initNewForm
();
//
this.initNewForm();
}
//
}
},
//
},
deleteTimeNode
(
item
,
index
)
{
deleteTimeNode
(
item
,
index
)
{
this
.
setTimeNodeList
.
splice
(
index
,
1
)
this
.
setTimeNodeList
.
splice
(
index
,
1
)
this
.
activeTab
=
0
;
this
.
activeTab
=
0
;
...
@@ -508,8 +875,75 @@ console.log(this.setTimeNodeList)
...
@@ -508,8 +875,75 @@ console.log(this.setTimeNodeList)
this
.
showSetBtn
=
false
;
this
.
showSetBtn
=
false
;
this
.
activeTab
=
0
;
this
.
activeTab
=
0
;
this
.
timeForm
=
this
.
setTimeNodeList
[
0
];
this
.
timeForm
=
this
.
setTimeNodeList
[
0
];
this
.
timeForm
.
formRef
=
this
.
getNowTime
();
// this.timeForm.formRef = this.getNowTime();
},
changeRemindDay
(
val
){
console
.
log
(
val
)
this
.
timeForm
.
remindList
=
[]
val
.
forEach
((
item
)
=>
{
this
.
timeForm
.
remindList
.
push
({
startDays
:
item
})
})
},
changePushDay
(
val
){
console
.
log
(
val
)
// console.log(this.timeForm.comentMsg)
let
obj
=
{
startDays
:
val
,
resourceId
:
this
.
timeForm
.
comentMsg
.
id
}
this
.
timeForm
.
pushContentList
[
0
]
=
obj
},
changeFollowId
(
val
){
console
.
log
(
val
)
this
.
timeForm
.
followupList
=
[]
val
.
forEach
((
item
)
=>
{
this
.
timeForm
.
followupList
.
push
({
resourceId
:
item
})
})
},
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
()
{
getNowTime
()
{
const
date
=
new
Date
();
const
date
=
new
Date
();
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
...
@@ -536,7 +970,7 @@ console.log(this.setTimeNodeList)
...
@@ -536,7 +970,7 @@ console.log(this.setTimeNodeList)
padding-top
:
20px
;
padding-top
:
20px
;
.time-line-scroll
{
.time-line-scroll
{
width
:
100%
;
width
:
100%
;
height
:
60px
;
/*height: 60px;*/
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background-color
:
#F0F2F5
;
background-color
:
#F0F2F5
;
padding
:
10px
;
padding
:
10px
;
...
...
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
2d690998
...
@@ -81,8 +81,8 @@
...
@@ -81,8 +81,8 @@
<div
class=
"edit-plan-content"
v-if=
"activeTab === 'second'"
>
<div
class=
"edit-plan-content"
v-if=
"activeTab === 'second'"
>
<set-time-node
<set-time-node
ref=
"getTimeNodeList"
ref=
"getTimeNodeList"
:standedTimeNodeList=
"standedTimeNodeList"
:isStandedTemplate=
"isStandedTemplate"
:isStandedTemplate=
"isStandedTemplate"
:setTimeNodeList=
"setTimeNodeList"
@
setTimeNodeListOnCom=
"setTimeNodeListOnCom"
@
setTimeNodeListOnCom=
"setTimeNodeListOnCom"
:patientIdList=
"baseInfo.patientIdList"
:patientIdList=
"baseInfo.patientIdList"
:checkForm=
"checkForm"
:checkForm=
"checkForm"
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
},
},
data
()
{
data
()
{
return
{
return
{
setTimeNodeList
:
[],
//重写后的setTimeNodeList
isStandedTemplate
:
false
,
// 是否是固定的随访模板
isStandedTemplate
:
false
,
// 是否是固定的随访模板
standedTimeNodeList
:
[],
// 如果是国定随访模板,获取固定数据后不可更改,只读
standedTimeNodeList
:
[],
// 如果是国定随访模板,获取固定数据后不可更改,只读
checkForm
:
false
,
checkForm
:
false
,
...
@@ -174,7 +175,7 @@
...
@@ -174,7 +175,7 @@
},
},
computed
:
{
computed
:
{
...
mapState
(
'planManage'
,{
...
mapState
(
'planManage'
,{
setTimeNodeList
:
state
=>
state
.
setTimeNodeList
,
//
setTimeNodeList: state => state.setTimeNodeList,
remarkOption
:
state
=>
state
.
remarkOption
,
remarkOption
:
state
=>
state
.
remarkOption
,
templateOptions
:
state
=>
state
.
templateOptions
,
templateOptions
:
state
=>
state
.
templateOptions
,
})
})
...
@@ -189,14 +190,14 @@
...
@@ -189,14 +190,14 @@
},
},
// 监听保存校验结果
// 监听保存校验结果
addListenSave
(
val
){
addListenSave
(
val
){
//
console.log('监听保存校验结果',val)
console
.
log
(
'监听保存校验结果'
,
val
)
this
.
checkForm
=
false
this
.
checkForm
=
false
if
(
val
){
if
(
val
.
status
){
this
.
baseInfo
.
fPlanTimeReqList
=
this
.
setTimeNodeList
this
.
baseInfo
.
fPlanTimeReqList
=
val
.
setTimeNodeList
// 提交
// 提交
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
createFollowPlan
(
this
.
baseInfo
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
if
(
res
.
code
==
'000000'
){
this
.
getTimeNodeList
([]);
//
this.getTimeNodeList([]);
// 各种校验通过后,提交编辑内容,toast提示
// 各种校验通过后,提交编辑内容,toast提示
this
.
$notify
.
success
({
this
.
$notify
.
success
({
title
:
''
,
title
:
''
,
...
@@ -216,10 +217,6 @@
...
@@ -216,10 +217,6 @@
});
});
}
}
})
})
// console.log('保存setTimeNodeList1',this.$refs.getTimeNodeList.setTimeNodeList1)
// console.log('store中的setTimeNodeList数据为=>',JSON.stringify(this.setTimeNodeList))
}
else
{
// console.log('点击保存按钮之后校验失败')
}
}
},
},
setTimeNodeListOnCom
(
val
){
setTimeNodeListOnCom
(
val
){
...
@@ -262,15 +259,13 @@
...
@@ -262,15 +259,13 @@
// 关闭弹层,继续创建
// 关闭弹层,继续创建
}).
catch
(()
=>
{
}).
catch
(()
=>
{
// 确定放弃,跳出当前编辑页面
// 确定放弃,跳出当前编辑页面
this
.
getTimeNodeList
([])
//
this.getTimeNodeList([])
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-list'
})
this
.
$router
.
push
({
path
:
'/followup/plan-manage/plan-list'
})
});
});
},
},
nextClick
(
formName
)
{
nextClick
(
formName
)
{
// this.getTimeNodeList([]);
//为方便调试,不做校验
//为方便调试,不做校验
// this.activeTab = 'second';
// this.activeTab = 'second';
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
//用作校验
//用作校验
if
(
!
this
.
baseInfo
.
hasSelectedNum
)
{
if
(
!
this
.
baseInfo
.
hasSelectedNum
)
{
...
@@ -280,19 +275,19 @@
...
@@ -280,19 +275,19 @@
this
.
noChoice
=
false
this
.
noChoice
=
false
}
}
if
(
valid
)
{
if
(
valid
)
{
// this.$refs['statusForm'].resetFields();
console
.
log
(
'当前选择的随访模板id为'
,
this
.
baseInfo
.
resourceId
)
// console.log('当前选择的随访模板id为',this.baseInfo.resourceId)
if
(
this
.
baseInfo
.
resourceId
){
if
(
this
.
baseInfo
.
resourceId
){
this
.
isStandedTemplate
=
true
this
.
isStandedTemplate
=
true
getFollowupTableTemplate
(
this
.
baseInfo
.
resourceId
).
then
(
res
=>
{
getFollowupTableTemplate
(
this
.
baseInfo
.
resourceId
).
then
(
res
=>
{
this
.
standedTimeNodeList
=
res
.
data
this
.
standedTimeNodeList
=
res
.
data
this
.
getTimeNodeList
(
this
.
standedTimeNodeList
)
this
.
activeTab
=
'second'
;
})
})
}
else
{
}
else
{
this
.
isStandedTemplate
=
false
this
.
isStandedTemplate
=
false
this
.
activeTab
=
'second'
;
}
}
this
.
activeTab
=
'second'
;
}
else
{
}
else
{
return
false
;
return
false
;
}
}
...
...
src/views/followup/plan-manage/plan-modify.vue
浏览文件 @
2d690998
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<div
class=
"edit-plan-content"
>
<div
class=
"edit-plan-content"
>
<set-time-node
<set-time-node
:isStandedTemplate=
"isStandedTemplate"
:isStandedTemplate=
"isStandedTemplate"
:s
et
TimeNodeList=
"setTimeNodeList"
:s
tanded
TimeNodeList=
"setTimeNodeList"
:patientIdList=
"planDetailData.patientIdList"
:patientIdList=
"planDetailData.patientIdList"
@
setTimeNodeListOnCom=
"setTimeNodeListOnCom"
@
setTimeNodeListOnCom=
"setTimeNodeListOnCom"
:checkForm=
"checkForm"
:checkForm=
"checkForm"
...
@@ -95,6 +95,7 @@
...
@@ -95,6 +95,7 @@
},
},
data
()
{
data
()
{
return
{
return
{
setTimeNodeList
:
[],
planDetailData
:
{},
planDetailData
:
{},
planId
:
''
,
planId
:
''
,
isStandedTemplate
:
false
,
// 是否是固定的随访模板
isStandedTemplate
:
false
,
// 是否是固定的随访模板
...
@@ -142,7 +143,7 @@
...
@@ -142,7 +143,7 @@
nodeTimeList
:
state
=>
state
.
nodeTimeList
,
nodeTimeList
:
state
=>
state
.
nodeTimeList
,
residentList
:
state
=>
state
.
residentList
,
residentList
:
state
=>
state
.
residentList
,
remarkOption
:
state
=>
state
.
remarkOption
,
remarkOption
:
state
=>
state
.
remarkOption
,
setTimeNodeList
:
state
=>
state
.
setTimeNodeList
,
//
setTimeNodeList: state => state.setTimeNodeList,
selectResidentList
:
state
=>
state
.
selectResidentList
selectResidentList
:
state
=>
state
.
selectResidentList
})
})
},
},
...
@@ -264,10 +265,10 @@
...
@@ -264,10 +265,10 @@
},
},
watch
:
{
watch
:
{
planDetail
(
val
)
{
planDetail
(
val
)
{
//
console.log(val)
console
.
log
(
val
)
this
.
planDetailData
=
val
this
.
planDetailData
=
val
this
.
setTimeNodeListOnCom
(
val
.
fPlanTimeReqList
)
//
this.setTimeNodeListOnCom(val.fPlanTimeReqList)
// console.log(this.setTimeNodeList)
this
.
setTimeNodeList
=
val
.
fPlanTimeReqList
this
.
planId
=
String
(
val
.
id
)
this
.
planId
=
String
(
val
.
id
)
if
(
val
.
resourceId
){
if
(
val
.
resourceId
){
this
.
isStandedTemplate
=
true
this
.
isStandedTemplate
=
true
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录