miaofuhao 1 год назад
Родитель
Сommit
cc27078f72

BIN
CMS1.0/src/assets/images/echarts1.png


BIN
CMS1.0/src/assets/images/echarts2.png


+ 17 - 6
CMS1.0/src/views/main/followUp/followUpTask/cpns/visitDetails.vue

@@ -43,10 +43,16 @@
43 43
                     <div v-if="planDetail.way === 2">
44 44
                         <div style="margin-bottom: 10px;"><el-text tag="b">短信内容</el-text></div>
45 45
                         <div>
46
-                            <el-tag type="primary">患者姓名</el-tag>
47
-                            您好!我是开封市医院回访专员<el-tag type="primary">坐席昵称</el-tag>。
46
+                            <el-tag type="primary">{{planDetail.name}}</el-tag>
47
+                            您好!我是开封市医院回访专员<el-tag type="primary">{{taskDetail.seatCode}}</el-tag>。
48 48
                             现邀请您对我们医院进行评价,辛苦您动动小手,点击下方链接填写问卷,
49
-                            祝您生活愉快!<el-tag type="danger" @click="questionHandle">问卷</el-tag>
49
+                            祝您生活愉快!
50
+                            
51
+                            <el-tag type="danger" v-if="planDetail.messageType ==1 " @click="questionHandle(planDetail.questionnaire)">问卷</el-tag>
52
+                            <el-link type="danger" v-if="planDetail.messageType ==2 "  :href="planDetail.messageParameter" target="_blank">链接</el-link>
53
+                            <question v-if="planDetail.messageType ==1" ref="questionRef2"
54
+                                :surveyId="Number(planDetail.messageParameter)" :userId="taskDetail.patientFiles"></question>
55
+                           
50 56
                         </div>
51 57
                     </div>
52 58
                 </div>
@@ -72,6 +78,7 @@ import { Message, Phone } from '@element-plus/icons-vue'
72 78
 import useSocketStore from '@/store/modules/socket';
73 79
 import { Send } from '@/utils/telWebsocket';
74 80
 import { getPhoneFix } from '@/api/main/main';
81
+import useUserStore from '@/store/modules/user'
75 82
 
76 83
 
77 84
 const router = useRouter();
@@ -136,7 +143,7 @@ function initMethod(props) {
136 143
                 const initStatus = taskResults.find((o) => { return !!o.checked });
137 144
                 if (initStatus) form.value.state = initStatus.value
138 145
             }
139
-
146
+            taskDetail.value.seatCode = res.data.seatCode?res.data.seatCode:useUserStore().name
140 147
             isParentMounted.value = true;
141 148
         }
142 149
     })
@@ -146,8 +153,12 @@ const taskStatusMap = ArrayToMap(taskStatus, 'value');
146 153
 
147 154
 // 提交结果
148 155
 const submit = () => {
149
-
150
-    let params = questionRef.value.getParams();
156
+    let params
157
+    if (planDetail.value.messageType ==1) {
158
+        params = questionRef2.value.getParams();
159
+    }else{
160
+        params = questionRef.value.getParams();
161
+    }
151 162
     if (!params) return;
152 163
     
153 164
     params.entername = taskDetail.value.name;

+ 6 - 4
CMS1.0/src/views/main/homePage/cpns/followUpReport.vue

@@ -36,8 +36,8 @@
36 36
                         <div class="header-text2">
37 37
                             {{followSituationData.SfTask}}
38 38
                         </div>
39
-                        <div class="header-text3">
40
-                            缩率图
39
+                        <div >
40
+                            <el-image style="width: 100%; height: 20px" :src="echarts1Url" :fit="fit" />
41 41
                         </div>
42 42
                         <template #footer>
43 43
                             今日任务量<span style="margin-left: 15px;">
@@ -50,8 +50,8 @@
50 50
                     <el-card >
51 51
                         <div class="header-text1">已完成量</div>
52 52
                         <div class="header-text2">{{followSituationData.SfTaskComplete}}</div>
53
-                        <div class="header-text3">
54
-                            缩率图
53
+                        <div>
54
+                            <el-image style="width: 100%; height: 20px" :src="echarts2Url" :fit="fit" />
55 55
                         </div>
56 56
                         <template #footer>
57 57
                             今日完成量<span style="margin-left: 15px;">{{followSituationData.SfTaskDayComplete}}</span>
@@ -138,6 +138,8 @@ import {
138 138
 import { getPageListData } from '@/api/main/system/system';
139 139
 import * as echarts from 'echarts';
140 140
 import moment from 'moment';
141
+const echarts1Url = new URL('@/assets/images/echarts1.png', import.meta.url).href
142
+const echarts2Url = new URL('@/assets/images/echarts2.png', import.meta.url).href
141 143
 
142 144
 let chartDom1
143 145
 let chartDom2

BIN
CMS1.0/src/views/main/homePage/cpns/images/echarts1.png


BIN
CMS1.0/src/views/main/homePage/cpns/images/echarts2.png