|
|
@@ -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;
|