提交 f408b563 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

add 量表

上级 d96f22fb
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<el-table-column prop="fuTypeStr" label="随访方式" align="center"></el-table-column> <el-table-column prop="fuTypeStr" label="随访方式" align="center"></el-table-column>
<el-table-column prop="content" label="操作" align="center"> <el-table-column prop="content" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="text-btn">随访录入</span> | <span class="text-btn" @click="changeFollowStatus(scope.row)">变更随访状态</span> <span class="text-btn" @click="goToScale(scope.row)">随访录入</span> | <span class="text-btn" @click="changeFollowStatus(scope.row)">变更随访状态</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -72,6 +72,17 @@ ...@@ -72,6 +72,17 @@
</el-row> </el-row>
</div> </div>
<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>
<script> <script>
...@@ -100,6 +111,7 @@ export default { ...@@ -100,6 +111,7 @@ export default {
appointBtn: true, appointBtn: true,
isShowChangeDialog: false, isShowChangeDialog: false,
statusForm: {}, statusForm: {},
selectFormShow: false,
} }
}, },
created() { created() {
...@@ -123,7 +135,10 @@ export default { ...@@ -123,7 +135,10 @@ export default {
todayPlansList: state => state.todayPlansList, todayPlansList: state => state.todayPlansList,
todayAppointsList: state => state.todayAppointsList, todayAppointsList: state => state.todayAppointsList,
todayOverview: state => state.todayOverview, todayOverview: state => state.todayOverview,
}) }),
...mapState('recordManage',{
formList: state => state.formList,
}),
}, },
// 挂载到Dom完成时 // 挂载到Dom完成时
mounted: function() { mounted: function() {
...@@ -131,6 +146,7 @@ export default { ...@@ -131,6 +146,7 @@ export default {
}, },
methods: { methods: {
...mapActions('workbench', ['getTodayPlansList', 'getTodayAppointsList', 'getTodayOverview']), ...mapActions('workbench', ['getTodayPlansList', 'getTodayAppointsList', 'getTodayOverview']),
...mapActions('recordManage', ['getFormList']),
// 查看更多 // 查看更多
lookMore(type) { lookMore(type) {
if(type==1) { if(type==1) {
...@@ -186,6 +202,34 @@ export default { ...@@ -186,6 +202,34 @@ export default {
status: status status: status
}) })
}, },
goFormView(item) {
this.selectFormShow = false
this.$router.push({
name: 'formTemplate',
params: {
data: item
}
})
},
closeForm() {
this.selectFormShow = false;
},
goToScale(row) {
this.getFormList(row.planPatientTimesId); //获取量表列表
//获取量表列表情况
if(this.formList.length > 1){
this.selectFormShow = true
}else if(this.formList.length === 1){
this.$router.push({
name: 'formTemplate',
params: {
data: this.formList[0]
}
})
}else {
this.$message.warning('暂不支持录入量表!')
}
},
changeFollowStatus(row) { changeFollowStatus(row) {
this.statusForm = { this.statusForm = {
fuPlanPatientTimesId: row.planPatientTimesId, fuPlanPatientTimesId: row.planPatientTimesId,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册