From 10dd6bb358d88bf4bdad0bd70ffe0ddb55d69fa3 Mon Sep 17 00:00:00 2001 From: shidongli Date: Tue, 9 Apr 2024 16:20:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=B7=A5=E9=9A=8F=E8=AE=BF=E5=BE=85?= =?UTF-8?q?=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/followupsee.js | 22 ++ src/store/modules/user.js | 6 + src/views/system/followup/index.vue | 102 ++++++- src/views/system/followupsee/index.vue | 381 ++++++++++++++++++++++--- 4 files changed, 457 insertions(+), 54 deletions(-) create mode 100644 src/api/system/followupsee.js diff --git a/src/api/system/followupsee.js b/src/api/system/followupsee.js new file mode 100644 index 0000000..787cca8 --- /dev/null +++ b/src/api/system/followupsee.js @@ -0,0 +1,22 @@ +import request from '@/utils/request' +export function selectFollowPatientInfo(id) { + return request({ + url: '/manage/signroute/selectFollowPatientInfo/'+id, + method: 'get', + }) +} +// 问卷量表 +export function question(id) { + return request({ + url: '/system/question/'+id, + method: 'get', + }) +} +//保存 +export function addPatientQuestionResult(data) { + return request({ + url: '/manage/signroute/addPatientQuestionResult', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 324c99f..ba84d65 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -1,5 +1,6 @@ import { login, logout, getInfo } from '@/api/login' import { getToken, setToken, removeToken } from '@/utils/auth' +import Cookies from 'js-cookie' const user = { state: { @@ -51,6 +52,11 @@ const user = { return new Promise((resolve, reject) => { getInfo().then(res => { const user = res.user + console.log(user,'user') + Cookies.set("userId",user.userId) + Cookies.set("userName",user.userName) + + // localStorage.setItem("userId",user.userId); const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar; localStorage.setItem('user', JSON.stringify(user)) if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组 diff --git a/src/views/system/followup/index.vue b/src/views/system/followup/index.vue index f593c54..ecb538d 100644 --- a/src/views/system/followup/index.vue +++ b/src/views/system/followup/index.vue @@ -128,13 +128,21 @@ v-model="queryParams.visitMethod" placeholder="请选择就诊类型" clearable + @change="change" > + + @@ -148,7 +156,7 @@ - + @@ -327,7 +336,7 @@ /> - + - \ No newline at end of file diff --git a/src/views/system/followupsee/index.vue b/src/views/system/followupsee/index.vue index 70cf6f3..55e66b9 100644 --- a/src/views/system/followupsee/index.vue +++ b/src/views/system/followupsee/index.vue @@ -24,8 +24,12 @@ {{ list.age }}
-
保存
-
取消
+
+ 保存 +
+
+ 取消 +
@@ -42,34 +46,167 @@
-
+
+ + + + + +
问卷模板: Barthel指数评定问卷
您好!本问卷用于评估日常生活能力,请根据自身日常实际表现选择合适的选项。
-
- 1.进食【单选题】 - - 备选项 - 备选项 - 备选项 +
+ {{ index + 1 }}.{{ item.questionName }} + (单选题) + (多选题) + (打分题) + (组合单选题) + (组合多选题) + (组合填空题) + (填空题) + (组合打分题) + (日期填空题) + (时间填空题) + + {{ aitem.optionName }} + + + {{ aitem.optionName }} + + +
+ + +
+ +
+ + +
+ +
+ + +
-
-
电话外呼
-
话术名称
-
+
+
电话外呼
+
话术名称
+
-
+
人工随访模板: 神经内科人工随访
**您好!
@@ -78,13 +215,20 @@
1.进食【单选题】 - 备选项 + + {{ item.label }} + +
- @@ -92,42 +236,183 @@
- + - \ No newline at end of file