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
提交
b84eebdb
提交
b84eebdb
编写于
4月 08, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增量表列表接口
上级
e032c65c
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
81 行增加
和
50 行删除
+81
-50
recordManage.js
src/store/followup/recordManage.js
+10
-9
followapis.js
src/utils/followup/followapis.js
+9
-0
new-plan.vue
src/views/followup/plan-manage/new-plan.vue
+6
-0
record-list.vue
src/views/followup/record-manage/record-list.vue
+56
-41
未找到文件。
src/store/followup/recordManage.js
浏览文件 @
b84eebdb
import
{
getEnteringList
,
getEnteringInfo
}
from
'../../utils/followup/followapis'
import
{
getEnteringList
,
getEnteringInfo
,
getFormList
}
from
'../../utils/followup/followapis'
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
...
@@ -6,6 +6,7 @@ export default {
...
@@ -6,6 +6,7 @@ export default {
recordList
:
{},
//录入列表
recordList
:
{},
//录入列表
enteringInfo
:
{},
//单条信息查看
enteringInfo
:
{},
//单条信息查看
constantsData
:
{},
//获取常量
constantsData
:
{},
//获取常量
formList
:
[],
//获取量表列表
},
},
mutations
:
{
mutations
:
{
GET_RECORD_LIST
(
state
,
payload
)
{
GET_RECORD_LIST
(
state
,
payload
)
{
...
@@ -17,6 +18,9 @@ export default {
...
@@ -17,6 +18,9 @@ export default {
GET_CONSTANS_DATA
(
state
,
payload
)
{
GET_CONSTANS_DATA
(
state
,
payload
)
{
state
.
constantsData
=
payload
state
.
constantsData
=
payload
},
},
GET_FORM_LIST
(
state
,
payload
)
{
state
.
formList
=
payload
},
},
},
actions
:
{
actions
:
{
async
getRecordList
(
context
,
payload
)
{
async
getRecordList
(
context
,
payload
)
{
...
@@ -31,14 +35,11 @@ export default {
...
@@ -31,14 +35,11 @@ export default {
context
.
commit
(
'GET_ENTERING_INFO'
,
data
);
context
.
commit
(
'GET_ENTERING_INFO'
,
data
);
});
});
},
},
// async getConstantsData(context, payload) {
getFormList
(
context
,
payload
)
{
// await followApi.getBasicData({
getFormList
(
payload
).
then
(({
data
})
=>
{
// ...payload
context
.
commit
(
'GET_FORM_LIST'
,
data
)
// }).then(({data}) => {
})
// context.commit('GET_CONSTANS_DATA', data)
}
// })
// },
},
},
}
}
src/utils/followup/followapis.js
浏览文件 @
b84eebdb
...
@@ -200,6 +200,15 @@ export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => {
...
@@ -200,6 +200,15 @@ export const getEnteringInfo = (patientId, fuPlanPatientTimesId) => {
description
:
'随访单条信息查看'
,
description
:
'随访单条信息查看'
,
},)
},)
}
}
export
const
getFormList
=
(
planTimesId
)
=>
{
return
fetch
({
headers
,
url
:
getFollowUpSC
(
`/followup/entering/scale/
${
planTimesId
}
/list`
),
method
:
'get'
,
// params: params,
description
:
'获取量表列表'
,
},)
}
//获取新建计划居民列表
//获取新建计划居民列表
export
const
getPlanPatientsList
=
(
data
)
=>
{
export
const
getPlanPatientsList
=
(
data
)
=>
{
...
...
src/views/followup/plan-manage/new-plan.vue
浏览文件 @
b84eebdb
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
v-model=
"baseInfo.time"
v-model=
"baseInfo.time"
type=
"date"
type=
"date"
placeholder=
"请选择随访开始时间"
placeholder=
"请选择随访开始时间"
:picker-options=
"pickerOptions"
clearable
clearable
style=
"width:380px;"
>
style=
"width:380px;"
>
</el-date-picker>
</el-date-picker>
...
@@ -148,6 +149,11 @@
...
@@ -148,6 +149,11 @@
resourceId
:
[{
required
:
true
,
message
:
'请选择随访模板'
,
trigger
:
'change'
}],
resourceId
:
[{
required
:
true
,
message
:
'请选择随访模板'
,
trigger
:
'change'
}],
time
:
[{
required
:
true
,
message
:
'请选择随访开始时间'
,
trigger
:
'change'
}],
time
:
[{
required
:
true
,
message
:
'请选择随访开始时间'
,
trigger
:
'change'
}],
},
},
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
}
}
}
}
},
},
created
()
{
created
()
{
...
...
src/views/followup/record-manage/record-list.vue
浏览文件 @
b84eebdb
...
@@ -84,7 +84,18 @@
...
@@ -84,7 +84,18 @@
</div>
</div>
</div>
</div>
<followup-detail
:dialogFormVisible=
"dialogDetailShow"
@
closeDetail=
"closeDetail"
:enteringInfo=
"enteringInfo"
></followup-detail>
<followup-detail
:dialogFormVisible=
"dialogDetailShow"
@
closeDetail=
"closeDetail"
:enteringInfo=
"enteringInfo"
></followup-detail>
<change-followup-status
:isShowChangeDialog=
"isShowChangeDialog"
:statusForm=
"statusForm"
@
closeChangeStatus=
"closeChangeStatus()"
></change-followup-status>
<change-followup-status
:isShowChangeDialog=
"isShowChangeDialog"
:statusForm=
"statusForm"
@
closeChangeStatus=
"closeChangeStatus"
></change-followup-status>
<el-dialog
title=
"选择量表"
:visible
.
sync=
"selectFormShow"
center
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
width=
"400px"
:before-close=
"closeForm"
>
<div
class=
"list-content"
>
<p
v-for=
"(item, index) in formList"
:key=
"index"
@
click=
"goFormView(item)"
>
{{item.sendContent}}
</p>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -125,15 +136,14 @@
...
@@ -125,15 +136,14 @@
dialogDetailShow
:
false
,
dialogDetailShow
:
false
,
isShowChangeDialog
:
false
,
isShowChangeDialog
:
false
,
hasData
:
false
,
hasData
:
false
,
selectFormShow
:
false
,
}
}
},
},
computed
:
{
computed
:
{
// ...mapState('reservationManage',{
// constantsData: state => state.constantsData,
// }),
...
mapState
(
'recordManage'
,{
...
mapState
(
'recordManage'
,{
recordList
:
state
=>
state
.
recordList
,
recordList
:
state
=>
state
.
recordList
,
enteringInfo
:
state
=>
state
.
enteringInfo
,
enteringInfo
:
state
=>
state
.
enteringInfo
,
formList
:
state
=>
state
.
formList
,
}),
}),
...
mapGetters
([
...
mapGetters
([
'_token'
,
'_token'
,
...
@@ -142,14 +152,9 @@
...
@@ -142,14 +152,9 @@
created
()
{
created
()
{
this
.
search
(
1
);
this
.
search
(
1
);
},
},
mounted
()
{
mounted
()
{},
// this.getConstantsData({
// numList: 'P216'
// })
},
methods
:
{
methods
:
{
// ...mapActions('reservationManage', ['getConstantsData']),
...
mapActions
(
'recordManage'
,
[
'getRecordList'
,
'getEnteringInfo'
,
'getFormList'
]),
...
mapActions
(
'recordManage'
,
[
'getRecordList'
,
'getEnteringInfo'
]),
async
search
(
currentPage
){
async
search
(
currentPage
){
if
(
this
.
timeRangeList
)
{
if
(
this
.
timeRangeList
)
{
this
.
searchData
.
beginTime
=
this
.
timeRangeList
[
0
];
this
.
searchData
.
beginTime
=
this
.
timeRangeList
[
0
];
...
@@ -205,12 +210,27 @@
...
@@ -205,12 +210,27 @@
this
.
search
(
1
);
this
.
search
(
1
);
},
},
editRow
(
row
){
editRow
(
row
){
this
.
getFormList
(
row
.
fuPlanTimesId
);
//获取量表列表
//获取量表列表情况
if
(
this
.
formList
.
length
>
1
){
this
.
selectFormShow
=
true
}
else
if
(
this
.
formList
.
length
===
1
){
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'formTemplate'
,
name
:
'formTemplate'
,
params
:
{
params
:
{
data
:
row
data
:
formList
[
0
]
}
}
})
})
}
else
{
this
.
$message
.
warning
(
'暂不支持录入量表!'
)
}
// 不区分量表列表长度问题,直接调试量表录入
// this.$router.push({
// name: 'formTemplate',
// params: {
// data: row
// }
// })
},
},
changeStatusRow
(
row
){
changeStatusRow
(
row
){
this
.
statusForm
=
row
;
this
.
statusForm
=
row
;
...
@@ -237,6 +257,18 @@
...
@@ -237,6 +257,18 @@
// this.isShowChangeDialog = getArguments[0];
// this.isShowChangeDialog = getArguments[0];
// this.statusForm = getArguments[1];
// this.statusForm = getArguments[1];
},
},
goFormView
(
item
)
{
this
.
selectFormShow
=
false
this
.
$router
.
push
({
name
:
'formTemplate'
,
params
:
{
data
:
item
}
})
},
closeForm
()
{
this
.
selectFormShow
=
false
;
},
},
},
filters
:
{
filters
:
{
statusFileter
:
function
(
value
)
{
statusFileter
:
function
(
value
)
{
...
@@ -271,30 +303,13 @@
...
@@ -271,30 +303,13 @@
color
:
$picaGreen
;
color
:
$picaGreen
;
}
}
}
}
/*.form-content{
.list-content
{
.item-div{
p
{
display: flex;
cursor
:
pointer
;
align-items: center;
line-height
:
30px
;
color: #606266;
text-decoration
:
underline
;
min-height: 40px;
color
:
$picaGreen
;
font-size: 14px;
&.textarea-add{
align-items: flex-start;
margin-top: 20px;
}
.left-title{
width: 120px;
text-align: right;
padding-right: 12px;
}
.right-item{
flex: 1;
}
.required-mark{
color: #F56C6C;
margin-right: 3px;
}
}
}
}
}*/
}
}
</
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录