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
提交
8f13c9c8
提交
8f13c9c8
编写于
4月 09, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
ab4061c4
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
17 行增加
和
15 行删除
+17
-15
plan-modify.vue
src/views/followup/plan-manage/plan-modify.vue
+17
-15
未找到文件。
src/views/followup/plan-manage/plan-modify.vue
浏览文件 @
8f13c9c8
...
...
@@ -16,25 +16,25 @@
<el-button
class=
"button-green"
type=
"primary"
@
click=
"saveModify"
size=
"small"
>
保 存
</el-button>
</div>
</div>
<el-form
ref=
"baseInfo"
:model=
"planDetail"
:rules=
"rules"
label-suffix=
":"
label-width=
"140px"
>
<el-form
ref=
"baseInfo"
:model=
"planDetail
Data
"
:rules=
"rules"
label-suffix=
":"
label-width=
"140px"
>
<el-form-item
label=
"随访计划名称"
prop=
"name"
>
<el-input
v-model=
"planDetail.name"
maxlength=
"20"
style=
"width: 30%"
size=
"small"
clearable
></el-input>
<el-input
v-model=
"planDetail
Data
.name"
maxlength=
"20"
style=
"width: 30%"
size=
"small"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"随访居民"
required
>
<div
class=
"select-patients"
>
<el-button
plain
icon=
"el-icon-plus"
size=
"small"
@
click=
"selectPatientHandler"
>
{{
planDetail
.
patientIdList
?
'继续添加'
:
'选择居民'
}}
</el-button><br>
<el-button
type=
"text"
class=
"mt10"
size=
"small"
@
click=
"seeSelectedHandler"
v-if=
"planDetail.patientIdList"
>
已选
{{
hasSelectedList
.
length
}}
人
<i
class=
"el-icon-arrow-right"
></i></el-button>
<el-button
plain
icon=
"el-icon-plus"
size=
"small"
@
click=
"selectPatientHandler"
>
{{
planDetail
Data
.
patientIdList
?
'继续添加'
:
'选择居民'
}}
</el-button><br>
<el-button
type=
"text"
class=
"mt10"
size=
"small"
@
click=
"seeSelectedHandler"
v-if=
"planDetail
Data
.patientIdList"
>
已选
{{
hasSelectedList
.
length
}}
人
<i
class=
"el-icon-arrow-right"
></i></el-button>
</div>
</el-form-item>
<el-form-item
label=
"随访模板"
prop=
"resourceName"
>
{{
planDetail
.
resourceName
}}
{{
planDetail
Data
.
resourceName
}}
</el-form-item>
<el-form-item
label=
"随访开始时间"
prop=
"timeStr"
>
{{
planDetail
.
timeStr
}}
<el-button
class=
"btn-text"
type=
"text"
@
click=
"goToFollowTime"
size=
"small"
>
查看全部>
</el-button>
{{
planDetail
Data
.
timeStr
}}
<el-button
class=
"btn-text"
type=
"text"
@
click=
"goToFollowTime"
size=
"small"
>
查看全部>
</el-button>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-select
v-model=
"planDetail.remarksStatus"
v-model=
"planDetail
Data
.remarksStatus"
placeholder=
"请选择随访种类"
size=
"small"
clearable
>
...
...
@@ -51,7 +51,7 @@
<set-time-node
:isStandedTemplate=
"isStandedTemplate"
:setTimeNodeList=
"setTimeNodeList"
:patientIdList=
"patientIdList"
:patientIdList=
"p
lanDetailData.p
atientIdList"
@
setTimeNodeListOnCom=
"setTimeNodeListOnCom"
:checkForm=
"checkForm"
:planId=
"planId"
...
...
@@ -61,7 +61,7 @@
</div>
<select-patient
:isShowSelectPatient=
"isShowSelectPatient"
:patientIdList=
"patientIdList"
:patientIdList=
"p
lanDetailData.p
atientIdList"
@
closeSelectPatient=
"closeSelectPatient"
@
sureSelectPatient=
"sureSelectPatient(arguments)"
>
</select-patient>
...
...
@@ -95,6 +95,7 @@
},
data
()
{
return
{
planDetailData
:
{},
planId
:
''
,
isStandedTemplate
:
false
,
// 是否是固定的随访模板
standedTimeNodeList
:
[],
// 如果是国定随访模板,获取固定数据后不可更改,只读
...
...
@@ -175,12 +176,12 @@
this
.
isShowSelectPatient
=
getArguments
[
0
];
const
selectPatients
=
getArguments
[
1
];
// 每次选中获取的人
selectPatients
.
forEach
((
item
)
=>
{
if
(
!
this
.
patientIdList
.
includes
(
item
.
patientId
)){
if
(
!
this
.
p
lanDetailData
.
p
atientIdList
.
includes
(
item
.
patientId
)){
this
.
hasSelectedList
.
push
(
item
)
this
.
patientIdList
.
push
(
item
.
patientId
);
// 页面中数据存储所有选择的人,没有去重
this
.
p
lanDetailData
.
p
atientIdList
.
push
(
item
.
patientId
);
// 页面中数据存储所有选择的人,没有去重
}
})
this
.
hasSelectedNum
=
this
.
patientIdList
.
length
;
this
.
planDetailData
.
hasSelectedNum
=
this
.
patientIdList
.
length
;
},
continueAdd
(
val
)
{
this
.
isShowSelectedDialog
=
val
;
...
...
@@ -228,8 +229,9 @@
if
(
val
){
// 关闭弹层,继续创建
this
.
planDetail
.
joinTime
=
'2019-04-09T16:00:00.000+0000'
// this.setFollowPlan(this.planDetail)
createFollowPlan
(
this
.
planDetail
).
then
(
res
=>
{
this
.
planDetailData
.
fPlanTimeReqList
=
this
.
setTimeNodeList
console
.
log
(
'修改计划前的数据===>>>'
,
this
.
planDetailData
)
createFollowPlan
(
this
.
planDetailData
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
){
this
.
getTimeNodeList
([]);
// 各种校验通过后,提交编辑内容,toast提示
...
...
@@ -266,7 +268,7 @@
watch
:
{
planDetail
(
val
)
{
// console.log(val)
// this.setTimeNodeList = val.fPlanTimeDtoList
this
.
planDetailData
=
val
this
.
setTimeNodeListOnCom
(
val
.
fPlanTimeReqList
)
// console.log(this.setTimeNodeList)
this
.
planId
=
String
(
val
.
id
)
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录