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
此差异已折叠。
点击以展开。
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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录