guide_the_message.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>完成项目服务</title>
  6. <link rel="stylesheet" href="../../../css/bootstrap.min.css" />
  7. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  9. <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet" />
  10. <link rel="stylesheet" type="text/css" href="../../../css/element-ui.css" />
  11. <link rel="stylesheet" href="../css/guide_the_message.css" />
  12. </head>
  13. <body>
  14. <div id="app" v-cloak role="tablist" aria-multiselectable="true">
  15. <div class="panelcurPage">
  16. <div class="panel-heading" style="border-bottom: 1px solid #d7dce6" role="tab">
  17. <h4 class="panel-title">
  18. <a role="button" class="flex-box">
  19. <div class="flex-box-item service-top">
  20. <p class="service-name">
  21. <!--<span class="service-index">1</span>-->
  22. <span>{{service.title}}</span>
  23. </p>
  24. <div v-if="islimit" class="label-group">
  25. <span class="pull-right mt5" v-if="service.statusName=='已完成'">
  26. <i class="icon icon-gouxuan icon-18 mr5"></i>
  27. {{service.statusName}}
  28. </span>
  29. <span class="label-blue" v-if="service.shortExecuteTime">{{service.shortExecuteTime}}</span>
  30. <span class="label-blue" v-for="doctor in service.executeDoctorList">{{doctor}}</span>
  31. </div>
  32. <div v-else class="label-group">
  33. <span class="pull-right mt5" v-if="service.recordStatus==1">
  34. <i class="icon icon-gouxuan icon-18 mr5"></i>
  35. {{service.recordStatus==1?'已完成':'未完成'}}
  36. </span>
  37. <span class="label-blue" v-if="service.shortCompleteTime">{{service.shortCompleteTime}}</span>
  38. <span class="label-blue" v-for="doctor in service.executeDoctorList">{{doctor}}</span>
  39. </div>
  40. </div>
  41. <!--<span class="icon icon-arrow-down ml50"></span>-->
  42. </a>
  43. </h4>
  44. </div>
  45. <div v-if="islimit && service.type==7" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  46. <div class="panel-body">
  47. <div class="pb20 c-border-b">为居民提供康复后的复诊提醒或代预约服务</div>
  48. </div>
  49. </div>
  50. <div class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  51. <div class="panel-body" style="padding-top: 0">
  52. <div v-if="service.type!=7" class="service-content pt20">{{service.content}}</div>
  53. <div class="service-address ptb20">
  54. <div class="flex-box">
  55. <div class="flex-box-item">
  56. <p class="m0">服务地点:{{service.hospitalName}}</p>
  57. <p class="m0">服务时间:{{service.executeTime | formatDate}}</p>
  58. </div>
  59. <div class="flex-box-item">
  60. <p class="m0 yslb">
  61. 执行人:
  62. <span v-for="(doctor,index) in service.executeDoctorList">{{doctor}}</span>
  63. </p>
  64. <p class="m0">服务收费:{{service.expense}}元</p>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="panel-body">
  72. <div class="service-operation">
  73. <div style="border-bottom: 1px solid #d7d4f0">
  74. <div class="pb10">
  75. 指导与汇报记录&emsp;
  76. <span class="view-detail" v-if="service.messageList && service.messageList.length" :class="{active:isCollapse}" @click="chakan">
  77. <i class="icon icon-check mr5 icon-16"></i>
  78. {{isCollapse?'收起详情':'查看详情'}}
  79. </span>
  80. <div class="pull-right" v-if="(service.isMyTask==1 || service.isCreate || service.isCK) && service.planStatus!=0">
  81. <span
  82. class="view-detail"
  83. @click="zdly(service)"
  84. v-if="service.isCreate && (service.isMyTask!=1) && ((islimit&&service.status!=1)||(!islimit&&service.recordStatus!=1))">
  85. 指导留言
  86. </span>
  87. <span class="view-detail" @click="zdly(service)" v-if="service.isCK && service.isMyTask==1">查看留言</span>
  88. </div>
  89. </div>
  90. <div class="record-list mb10" :class="{active:isCollapse}">
  91. <div class="record-item" v-for="item in service.messageList">
  92. <div class="flex-box c-999 f14">
  93. <div class="flex-box-item">{{item.adminTeamName}}</div>
  94. <div class="flex-box-item">{{item.createTime}}</div>
  95. </div>
  96. <div class="f14 c-333" v-html="getContent(item.content,item.contentType)"></div>
  97. </div>
  98. </div>
  99. <p class="c-999" style="margin-top: -10px" v-if="service.messageList && !service.messageList.length">暂无记录</p>
  100. </div>
  101. <!-- 协诊信息 -->
  102. <div>
  103. <div class="setRadio mt40" v-if="showAppointHelpCheckBtn && !service.appointmentTime && service.type==7 && service.status!=1 && service.isMyTask==1">
  104. <el-radio-group v-model="selectCheckTyperadio">
  105. <el-radio :label="0">线下复诊--预约至专家医院进行复诊</el-radio>
  106. <el-radio :label="1">远程协诊--家庭医生与专科医生协同会诊</el-radio>
  107. <el-radio :label="2">线上复诊--入驻互联网医院提供线上复诊开方咨询</el-radio>
  108. </el-radio-group>
  109. </div>
  110. <div v-if="(selectCheckTyperadio==1 &&!showAppointHelpCheckBtn) || service.appointmentTime" class="ptb10">
  111. <div class="pb10 c-f14 c-333">协诊信息</div>
  112. <div class="flex-box-item">
  113. <p class="m0">预约时间:{{service.appointmentTime || appointTime}}</p>
  114. <p class="m0">预约医生:{{service.appointmentDoctorName || service.specialistDoctorName}}</p>
  115. <p class="m0">预约项目:远程协诊</p>
  116. </div>
  117. </div>
  118. </div>
  119. <div
  120. class="note-info pt10"
  121. v-if="(service.type==7 && (islimit&&service.status==1) && service.reservationType!=1 && service.reservationType!=2) ||((islimit&&service.status!=1) && service.isMyTask==1 && showRecordFinished)">
  122. <p class="f14 c-333">服务完成笔记</p>
  123. <textarea
  124. v-if="(islimit&&service.status!=1) && service.isMyTask==1 && showRecordFinished"
  125. class="form-control"
  126. style="resize: none"
  127. rows="4"
  128. placeholder="可备注您的服务记录"
  129. v-model="service.node"></textarea>
  130. <div v-if="service.type==7 && (islimit && service.status==1) && service.reservationType!=1 && service.reservationType!=2">{{service.node || '暂无服务记录'}}</div>
  131. </div>
  132. <div class="note-info ptb10" v-if="service.type==7 && (islimit&&service.status!=1) && service.isMyTask==1 && showRecordFinished">
  133. <p class="f14 c-333">相关记录</p>
  134. <ul class="upload-box">
  135. <li class="flex-box" v-for="(img,index) in upImgs">
  136. <div class="upload-img-box">
  137. <img :src="img.baseUrl" />
  138. </div>
  139. <a class="delete-img" @click="deleteImg(index)">&times;</a>
  140. </li>
  141. <li class="flex-box" v-if="upImgs.length<5">
  142. <span class="add-img">+</span>
  143. <input type="file" @change="upLoadImgToBase64" class="upload-img" />
  144. </li>
  145. </ul>
  146. </div>
  147. <div class="note-info ptb10" v-if="service.type==7 && (islimit&&service.status==1) && service.reservationType!=1 && service.reservationType!=2">
  148. <p class="f14 c-333">相关记录</p>
  149. <ul class="upload-box" v-if="service.relationRecordImg && service.relationRecordImg.length">
  150. <li class="flex-box" v-for="img in service.relationRecordImg">
  151. <div class="upload-img-box">
  152. <img :src="img | getImgUrl" />
  153. </div>
  154. </li>
  155. </ul>
  156. <div class="upload-box" v-else>
  157. <p>暂无相关记录</p>
  158. </div>
  159. </div>
  160. <!-- operate: 是否完成任务 0 未完成 1 已完成 isMyTask: 0 不是自己的任务 1是自己的任务 status: 0 未完成 1已完成 2已预约-->
  161. <!-- planStatus:计划的状态 0 已终止 1进行中 2已完成 -->
  162. <!-- type: 服务项code 1 电话/短信关怀 2康复咨询 3远程健康监测 4 上门服务 5康复指导 6 康复随访 7 复诊-->
  163. <!-- selectCheckTyperadio 0 线下复诊 1远程协诊 2线上复诊 -->
  164. <div v-if="islimit&&service.planStatus!=0" class="flex-box btns-group clearfix" style="position: relative">
  165. <!-- 限制频次 -->
  166. <button class="btn btn-yuyue" v-if="service.type==4 && service.status!=1 && service.isMyTask==1" @click="sendSpecialistWeixinMessage(4)">提醒患者</button>
  167. <button class="btn btn-12b7f5" v-if="service.type==4 && service.status!=1 && service.isMyTask==1" @click="toDoorDialog">代预约</button>
  168. <button class="btn btn-yuyue" v-if="service.type==5 && service.status!=1 && service.isMyTask==1" @click="kfzd()">发送指导</button>
  169. <button class="btn btn-yuyue" v-if="service.type==6 && service.status!=1&& service.operate==0 && service.isMyTask==1" @click="sfjh()" style="width: auto">
  170. 创建随访计划
  171. </button>
  172. <button
  173. class="btn btn-12b7f5"
  174. v-if="service.type==6 && service.status!=1 && service.operate==1 && service.isMyTask==1&&(service.visitCount!=1&&service.visitCount!=3)"
  175. @click="openFollowRecordForm"
  176. style="width: auto">
  177. 记录随访表单
  178. </button>
  179. <button
  180. class="btn btn-12b7f5"
  181. v-if="service.type==6 && service.status!=1 && service.operate==1 && service.isMyTask==1&&(service.visitCount==1||service.visitCount==3)"
  182. @click="sendDx"
  183. style="width: auto">
  184. 发送消息提醒
  185. </button>
  186. <button
  187. class="btn btn-12b7f5"
  188. v-if="service.type==6 && service.status==1&&(service.visitCount!=1&&service.visitCount!=3)"
  189. @click="openFollowRecordForm"
  190. style="width: auto">
  191. 查看随访结果
  192. </button>
  193. <button
  194. class="btn btn-yuyue"
  195. v-if="service.type==7 && service.status!=1 && selectCheckTyperadio!=1 && !service.appointmentTime && service.isMyTask==1"
  196. @click="sendSpecialistWeixinMessage(7)">
  197. 提醒患者
  198. </button>
  199. <button
  200. class="btn btn-12b7f5"
  201. v-if="service.type==7 && service.status!=1 && selectCheckTyperadio==0 && !service.appointmentTime && service.isMyTask==1"
  202. @click="rehabilitationReservation()">
  203. 代预约
  204. </button>
  205. <button class="btn btn-12b7f5" v-if="selectCheckTyperadio==1 && showAppointHelpCheckBtn" @click="$refs.datePicker.pickerVisible = true">预约协诊</button>
  206. <div class="setPicker" style="visibility: hidden">
  207. <el-date-picker
  208. v-model="appointDate"
  209. type="date"
  210. ref="datePicker"
  211. @change="$refs.timePicker.pickerVisible = true"
  212. value-format="yyyy-MM-dd"
  213. :picker-options="pickerOptions"></el-date-picker>
  214. </div>
  215. <div class="setPicker" style="visibility: hidden">
  216. <el-time-select
  217. v-model="appointHour"
  218. :picker-options="{
  219. step: '00:05',
  220. minTime:startTime,
  221. start:'08:00',
  222. end:'20:00'
  223. }"
  224. value-format="HH:mm"
  225. @change="appointHelpCheck(service)"
  226. ref="timePicker"
  227. placeholder="选择时间"></el-time-select>
  228. </div>
  229. <button
  230. class="btn btn-12b7f5"
  231. v-if="(!service.appointmentTime && selectCheckTyperadio==1 &&!showAppointHelpCheckBtn && doctorlevel==2 && service.isMyTask==1) || (service.appointmentTime && service.isMyTask==1 && !service.completeTime && !showRecordFinished && doctorlevel==2)"
  232. @click="openHelpCheck">
  233. 开启协诊
  234. </button>
  235. <button
  236. class="btn btn-12b7f5"
  237. v-if="(!service.appointmentTime && selectCheckTyperadio==1 &&!showAppointHelpCheckBtn && service.isMyTask==1 ) || (service.appointmentTime && service.isMyTask==1 && !showRecordFinished && !service.completeTime)"
  238. style="width: auto"
  239. @click="recordFinished">
  240. 记录完成情况
  241. </button>
  242. <!-- 复诊的确认完成 -->
  243. <button
  244. class="btn btn-zhidao"
  245. v-if="islimit&&service.planStatus!=0 && service.status!=1 && service.isMyTask==1 && service.type==7 && showRecordFinished && showRecordFinished"
  246. @click="qrwc(service.patient,service.type)">
  247. 确认完成
  248. </button>
  249. </div>
  250. <div v-if="!islimit&&service.planStatus!=0" class="flex-box btns-group clearfix">
  251. <!-- 不限制频次 -->
  252. <button
  253. class="btn btn-12b7f5"
  254. v-if="service.type==6 && service.recordStatus!=1 && service.isMyTask==1 && service.operate==1"
  255. @click="openFollowRecordForm"
  256. style="width: auto">
  257. 记录随访表单2
  258. </button>
  259. <button class="btn btn-12b7f5" v-if="service.type==6 && service.recordStatus==1" @click="qwapp" style="width: auto">查看随访结果</button>
  260. </div>
  261. </div>
  262. <div class="complete-info" v-if="(islimit&&service.status==1)||(!islimit&&service.recordStatus==1)">
  263. <div class="complete-title">完成情况</div>
  264. <div class="ptb10">
  265. <p class="f14 mb5">
  266. <span class="c-999">完成时间:</span>
  267. {{service.completeTime}}
  268. </p>
  269. <p class="f14 mb5">
  270. <span class="c-999">执行医生:</span>
  271. {{service.operatorDoctorName}}
  272. </p>
  273. </div>
  274. </div>
  275. <div class="note-info pt10" v-if="service.type==1||service.type==6||service.type==7">
  276. <p class="f14 c-333">服务完成笔记</p>
  277. <textarea
  278. v-if="((islimit&&service.status!=1) || (!islimit&&service.recordStatus!=1)) && service.isMyTask==1"
  279. class="form-control"
  280. style="resize: none"
  281. rows="4"
  282. placeholder="可备注您的服务记录"
  283. v-model="service.node"></textarea>
  284. <div v-else>{{service.node || '暂无服务记录'}}</div>
  285. </div>
  286. <div class="note-info ptb10" v-if="service.type==1 && ((islimit&&service.status!=1) || (!islimit&&service.recordStatus!=1)) && service.isMyTask==1">
  287. <p class="f14 c-333">相关记录</p>
  288. <ul class="upload-box">
  289. <li class="flex-box" v-for="(img,index) in upImgs">
  290. <div class="upload-img-box">
  291. <img :src="img.baseUrl" />
  292. </div>
  293. <a class="delete-img" @click="deleteImg(index)">&times;</a>
  294. </li>
  295. <li class="flex-box" v-if="upImgs.length<5">
  296. <span class="add-img">+</span>
  297. <input type="file" @change="upLoadImgToBase64" class="upload-img" />
  298. </li>
  299. </ul>
  300. </div>
  301. <div class="note-info ptb10" v-if="service.type==1&& ((islimit&&service.status==1) || (!islimit&&service.recordStatus==1))">
  302. <p class="f14 c-333">相关记录</p>
  303. <ul class="upload-box" v-if="service.relationRecordImg && service.relationRecordImg.length">
  304. <li class="flex-box" v-for="img in service.relationRecordImg">
  305. <div class="upload-img-box">
  306. <img :src="img | getImgUrl" />
  307. </div>
  308. </li>
  309. </ul>
  310. <div class="upload-box" v-else>
  311. <p>暂无相关记录</p>
  312. </div>
  313. </div>
  314. <!-- type 服务项 1 电话/短信关怀 2康复咨询 3远程健康监测 4 上门服务 5康复指导 6 康复随访 7 复诊 -->
  315. <div class="note-info pt10" v-if="(service.type==4 || service.type==5 || service.type==7) && service.status==1">
  316. <p class="f14 c-333">关联记录</p>
  317. <div class="ptb10" v-if="service.type==4&&service.relationList&&service.relationList.length>0">
  318. <div v-for="(o, i) in service.relationList">
  319. <p class="f14 mb5">
  320. <span class="c-999">服务时间:</span>
  321. {{o.patientExpectedServeTime}}
  322. </p>
  323. <p class="f14 mb5">
  324. <span class="c-999">服务地址:</span>
  325. {{o.serveAddress}}
  326. </p>
  327. <p class="f14 mb5">
  328. <span class="c-999">服务描述:</span>
  329. {{o.serveDesc}}
  330. </p>
  331. <p class="f14 mb5">
  332. <span class="c-999">服务医生:</span>
  333. {{o.doctorName}}
  334. </p>
  335. </div>
  336. </div>
  337. <div class="pt10" v-if="service.type==5&&service.relationList&&service.relationList.length>0">
  338. <div v-for="(o, i) in service.relationList" class="ui-grid mb20 pb5" style="border-bottom: 1px solid #d7dce6; align-items: center" @click="viewGuidance(o)">
  339. <div class="ui-col-1 c-666">{{o.attachedTitle}}</div>
  340. <div class="ui-col-0 c-999">{{o.czrq}}</div>
  341. <img src="../images/arrow_icon.png" width="7px" height="14px" class="ml10" />
  342. </div>
  343. </div>
  344. <div class="ptb10" v-if="service.type==7&&service.relationList&&service.relationList.length>0">
  345. <div v-for="(o, i) in service.relationList">
  346. <p class="f14 mb5">
  347. <span class="c-999">预约医院:</span>
  348. {{o.orgName}}
  349. </p>
  350. <p class="f14 mb5">
  351. <span class="c-999">预约科室:</span>
  352. {{o.deptName}}
  353. </p>
  354. <p class="f14 mb5">
  355. <span class="c-999">预约医生:</span>
  356. {{o.doctorName}}
  357. </p>
  358. <p class="f14 mb5">
  359. <span class="c-999">就诊时间:</span>
  360. {{o.startTime}}
  361. </p>
  362. <p class="f14 mb5">
  363. <span class="c-999">挂号时间:</span>
  364. {{o.czrq}}
  365. </p>
  366. </div>
  367. </div>
  368. <div v-if="!service.relationList || service.relationList.length==0" class="guanlian-list c-999">暂无关联记录</div>
  369. </div>
  370. <div id="outerdiv" style="position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, 0.7); z-index: 2; width: 100%; height: 100%; display: none">
  371. <div id="innerdiv" style="position: absolute">
  372. <img id="bigimg" style="border: 5px solid #fff" src="" />
  373. </div>
  374. </div>
  375. <div class="text-center ptb50" v-if="islimit&&service.planStatus!=0 && service.status!=1 && service.isMyTask==1 && service.type==1">
  376. <button class="btn btn-zhidao" @click="qrwc(service.patient,service.type)">确认完成</button>
  377. </div>
  378. </div>
  379. <el-dialog title="消息提醒" :visible.sync="messageVisible" @close="closeMessageDialog" width="540px">
  380. <div v-html="messTxt"></div>
  381. <span slot="footer" class="dialog-footer">
  382. <el-button @click="messageVisible = false">取消</el-button>
  383. <el-button type="primary" @click="messageWarn">确定</el-button>
  384. </span>
  385. </el-dialog>
  386. </div>
  387. <script type="text/javascript" src="../../../js/vue.js"></script>
  388. <script type="text/javascript" src="../../../js/jquery-2.2.4.js"></script>
  389. <script src="../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  390. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  391. <script src="../../../js/jsencrypt.js" type="text/javascript" charset="utf-8"></script>
  392. <script src="../../../plugins/toastr/toastr.min.js"></script>
  393. <script type="text/javascript" src="../../../plugins/layer/layer.min.js"></script>
  394. <script type="text/javascript" src="../../../api/http-request.js"></script>
  395. <script type="text/javascript" src="../../../api/rehabilitation-api.js"></script>
  396. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  397. <script type="text/javascript" src="../../../plugins/layer/layer.min.js"></script>
  398. <script type="text/javascript" src="../js/guide_the_message.js"></script>
  399. </body>
  400. </html>