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
提交
a87fb529
提交
a87fb529
编写于
4月 08, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
变更计划
上级
ba2d3f13
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
44 行增加
和
3 行删除
+44
-3
followapis.js
src/utils/followup/followapis.js
+9
-0
finish-followup.vue
src/views/followup/plan-manage/dialog/finish-followup.vue
+28
-1
resident-detail.vue
src/views/followup/plan-manage/resident-detail.vue
+7
-2
未找到文件。
src/utils/followup/followapis.js
浏览文件 @
a87fb529
...
@@ -117,6 +117,15 @@ export const changePlan = (data) => {
...
@@ -117,6 +117,15 @@ export const changePlan = (data) => {
description
:
'变更计划'
,
description
:
'变更计划'
,
})
})
};
};
export
const
finishPlan
=
(
data
)
=>
{
return
fetch
({
headers
,
url
:
getFollowUpSC
(
`/followup/planPatient/status`
),
method
:
'put'
,
data
:
data
,
description
:
'变更计划'
,
})
};
export
const
deletePlan
=
(
planId
)
=>
{
export
const
deletePlan
=
(
planId
)
=>
{
return
fetch
({
return
fetch
({
headers
,
headers
,
...
...
src/views/followup/plan-manage/dialog/finish-followup.vue
浏览文件 @
a87fb529
...
@@ -28,13 +28,14 @@
...
@@ -28,13 +28,14 @@
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"button-green"
@
click=
"clickClose"
size=
"small"
type=
"primary"
>
取 消
</el-button>
<el-button
class=
"button-green"
@
click=
"clickClose"
size=
"small"
type=
"primary"
>
取 消
</el-button>
<el-button
class=
"button-white"
@
click=
"
clickClose
"
size=
"small"
plain
>
确 定
</el-button>
<el-button
class=
"button-white"
@
click=
"
finishFollowUp
"
size=
"small"
plain
>
确 定
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
finishPlan
}
from
'../../../../utils/followup/followapis'
export
default
{
export
default
{
name
:
"finish-followup"
,
name
:
"finish-followup"
,
props
:
{
props
:
{
...
@@ -66,6 +67,32 @@
...
@@ -66,6 +67,32 @@
clickClose
()
{
clickClose
()
{
this
.
$emit
(
'closeFinishFollowup'
,
false
)
this
.
$emit
(
'closeFinishFollowup'
,
false
)
},
},
finishFollowUp
()
{
const
{
changeCode
,
planId
,
patientIdList
}
=
this
.
finishData
;
finishPlan
({
changeCode
,
planId
,
patientIdList
,
}).
then
((
data
)
=>
{
if
(
data
.
code
==
'000000'
)
{
this
.
$message
({
message
:
'操作成功!'
,
type
:
'success'
});
this
.
clickClose
()
}
else
{
this
.
$message
({
message
:
`
${
data
.
message
}
`
,
type
:
'error'
});
}
}).
then
(()
=>
{
this
.
$message
({
message
:
`
${
data
.
message
}
`
,
type
:
'error'
});
});
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/followup/plan-manage/resident-detail.vue
浏览文件 @
a87fb529
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
<div
class=
"title"
><p>
基本信息
</p></div>
<div
class=
"title"
><p>
基本信息
</p></div>
<div
class=
"h-btn"
>
<div
class=
"h-btn"
>
<el-button
class=
"button-white"
plain
size=
"small"
@
click=
"changePlan"
>
计划变更
</el-button>
<el-button
class=
"button-white"
plain
size=
"small"
@
click=
"changePlan"
>
计划变更
</el-button>
<el-button
class=
"button-white"
plain
size=
"small"
@
click=
"finishFollowup"
>
结束随访
</el-button>
<el-button
v-if=
"status==1"
class=
"button-white"
plain
size=
"small"
@
click=
"finishFollowup"
>
结束随访
</el-button>
<el-button
v-if=
"status==2"
class=
"button-white"
plain
size=
"small"
@
click=
"finishFollowup"
>
恢复随访
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"base-info"
>
<div
class=
"base-info"
>
...
@@ -130,6 +131,7 @@
...
@@ -130,6 +131,7 @@
planChangeData
:
{},
//变更信息
planChangeData
:
{},
//变更信息
finishData
:
{},
//结束信息
finishData
:
{},
//结束信息
planDetails
:
{},
//计划详情
planDetails
:
{},
//计划详情
status
:
null
}
}
},
},
created
()
{
created
()
{
...
@@ -168,10 +170,12 @@
...
@@ -168,10 +170,12 @@
this
.
showChangePlan
=
isShow
this
.
showChangePlan
=
isShow
},
},
finishFollowup
()
{
finishFollowup
()
{
let
patientIdList
=
[];
patientIdList
.
push
(
this
.
residentDetail
.
patientId
)
this
.
finishData
=
{
this
.
finishData
=
{
patientName
:
this
.
residentDetail
.
patientName
,
patientName
:
this
.
residentDetail
.
patientName
,
changeCode
:
this
.
status
,
changeCode
:
this
.
status
,
patientIdList
:
this
.
residentDetail
.
patientId
,
patientIdList
:
patientIdList
,
}
}
this
.
showFinishFollowup
=
true
;
this
.
showFinishFollowup
=
true
;
},
},
...
@@ -189,6 +193,7 @@
...
@@ -189,6 +193,7 @@
},
},
residentDetail
(
val
)
{
residentDetail
(
val
)
{
this
.
planDetails
=
val
.
fPlanDto
this
.
planDetails
=
val
.
fPlanDto
this
.
status
=
val
.
fPlanDto
.
status
}
}
}
}
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录