guide_the_message.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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"
  175. @click="openFollowRecordForm"
  176. style="width: auto">
  177. 记录随访表单
  178. </button>
  179. <button class="btn btn-12b7f5" v-if="service.type==6 && service.status==1" @click="openFollowRecordForm" style="width: auto">查看随访结果</button>
  180. <button
  181. class="btn btn-yuyue"
  182. v-if="service.type==7 && service.status!=1 && selectCheckTyperadio!=1 && !service.appointmentTime && service.isMyTask==1"
  183. @click="sendSpecialistWeixinMessage(7)">
  184. 提醒患者
  185. </button>
  186. <button
  187. class="btn btn-12b7f5"
  188. v-if="service.type==7 && service.status!=1 && selectCheckTyperadio==0 && !service.appointmentTime && service.isMyTask==1"
  189. @click="rehabilitationReservation()">
  190. 代预约
  191. </button>
  192. <button class="btn btn-12b7f5" v-if="selectCheckTyperadio==1 && showAppointHelpCheckBtn" @click="$refs.datePicker.pickerVisible = true">预约协诊</button>
  193. <div class="setPicker" style="visibility: hidden">
  194. <el-date-picker
  195. v-model="appointDate"
  196. type="date"
  197. ref="datePicker"
  198. @change="$refs.timePicker.pickerVisible = true"
  199. value-format="yyyy-MM-dd"
  200. :picker-options="pickerOptions"></el-date-picker>
  201. </div>
  202. <div class="setPicker" style="visibility: hidden">
  203. <el-time-select
  204. v-model="appointHour"
  205. :picker-options="{
  206. step: '00:05',
  207. minTime:startTime,
  208. start:'08:00',
  209. end:'20:00'
  210. }"
  211. value-format="HH:mm"
  212. @change="appointHelpCheck(service)"
  213. ref="timePicker"
  214. placeholder="选择时间"></el-time-select>
  215. </div>
  216. <button
  217. class="btn btn-12b7f5"
  218. v-if="(!service.appointmentTime && selectCheckTyperadio==1 &&!showAppointHelpCheckBtn && doctorlevel==2 && service.isMyTask==1) || (service.appointmentTime && service.isMyTask==1 && !service.completeTime && !showRecordFinished && doctorlevel==2)"
  219. @click="openHelpCheck">
  220. 开启协诊
  221. </button>
  222. <button
  223. class="btn btn-12b7f5"
  224. v-if="(!service.appointmentTime && selectCheckTyperadio==1 &&!showAppointHelpCheckBtn && service.isMyTask==1 ) || (service.appointmentTime && service.isMyTask==1 && !showRecordFinished && !service.completeTime)"
  225. style="width: auto"
  226. @click="recordFinished">
  227. 记录完成情况
  228. </button>
  229. <!-- 复诊的确认完成 -->
  230. <button
  231. class="btn btn-zhidao"
  232. v-if="islimit&&service.planStatus!=0 && service.status!=1 && service.isMyTask==1 && service.type==7 && showRecordFinished && showRecordFinished"
  233. @click="qrwc(service.patient,service.type)">
  234. 确认完成
  235. </button>
  236. </div>
  237. <div v-if="!islimit&&service.planStatus!=0" class="flex-box btns-group clearfix">
  238. <!-- 不限制频次 -->
  239. <button
  240. class="btn btn-12b7f5"
  241. v-if="service.type==6 && service.recordStatus!=1 && service.isMyTask==1 && service.operate==1"
  242. @click="openFollowRecordForm"
  243. style="width: auto">
  244. 记录随访表单
  245. </button>
  246. <button class="btn btn-12b7f5" v-if="service.type==6 && service.recordStatus==1" @click="qwapp" style="width: auto">查看随访结果</button>
  247. </div>
  248. </div>
  249. <div class="complete-info" v-if="(islimit&&service.status==1)||(!islimit&&service.recordStatus==1)">
  250. <div class="complete-title">完成情况</div>
  251. <div class="ptb10">
  252. <p class="f14 mb5">
  253. <span class="c-999">完成时间:</span>
  254. {{service.completeTime}}
  255. </p>
  256. <p class="f14 mb5">
  257. <span class="c-999">执行医生:</span>
  258. {{service.operatorDoctorName}}
  259. </p>
  260. </div>
  261. </div>
  262. <div class="note-info pt10" v-if="service.type==1">
  263. <p class="f14 c-333">服务完成笔记</p>
  264. <textarea
  265. v-if="((islimit&&service.status!=1) || (!islimit&&service.recordStatus!=1)) && service.isMyTask==1"
  266. class="form-control"
  267. style="resize: none"
  268. rows="4"
  269. placeholder="可备注您的服务记录"
  270. v-model="service.node"></textarea>
  271. <div v-else>{{service.node || '暂无服务记录'}}</div>
  272. </div>
  273. <div class="note-info ptb10" v-if="service.type==1 && ((islimit&&service.status!=1) || (!islimit&&service.recordStatus!=1)) && service.isMyTask==1">
  274. <p class="f14 c-333">相关记录</p>
  275. <ul class="upload-box">
  276. <li class="flex-box" v-for="(img,index) in upImgs">
  277. <div class="upload-img-box">
  278. <img :src="img.baseUrl" />
  279. </div>
  280. <a class="delete-img" @click="deleteImg(index)">&times;</a>
  281. </li>
  282. <li class="flex-box" v-if="upImgs.length<5">
  283. <span class="add-img">+</span>
  284. <input type="file" @change="upLoadImgToBase64" class="upload-img" />
  285. </li>
  286. </ul>
  287. </div>
  288. <div class="note-info ptb10" v-if="service.type==1&& ((islimit&&service.status==1) || (!islimit&&service.recordStatus==1))">
  289. <p class="f14 c-333">相关记录</p>
  290. <ul class="upload-box" v-if="service.relationRecordImg && service.relationRecordImg.length">
  291. <li class="flex-box" v-for="img in service.relationRecordImg">
  292. <div class="upload-img-box">
  293. <img :src="img | getImgUrl" />
  294. </div>
  295. </li>
  296. </ul>
  297. <div class="upload-box" v-else>
  298. <p>暂无相关记录</p>
  299. </div>
  300. </div>
  301. <!-- type 服务项 1 电话/短信关怀 2康复咨询 3远程健康监测 4 上门服务 5康复指导 6 康复随访 7 复诊 -->
  302. <div class="note-info pt10" v-if="(service.type==4 || service.type==5 || service.type==7) && service.status==1">
  303. <p class="f14 c-333">关联记录</p>
  304. <div class="ptb10" v-if="service.type==4&&service.relationList&&service.relationList.length>0">
  305. <div v-for="(o, i) in service.relationList">
  306. <p class="f14 mb5">
  307. <span class="c-999">服务时间:</span>
  308. {{o.patientExpectedServeTime}}
  309. </p>
  310. <p class="f14 mb5">
  311. <span class="c-999">服务地址:</span>
  312. {{o.serveAddress}}
  313. </p>
  314. <p class="f14 mb5">
  315. <span class="c-999">服务描述:</span>
  316. {{o.serveDesc}}
  317. </p>
  318. <p class="f14 mb5">
  319. <span class="c-999">服务医生:</span>
  320. {{o.doctorName}}
  321. </p>
  322. </div>
  323. </div>
  324. <div class="pt10" v-if="service.type==5&&service.relationList&&service.relationList.length>0">
  325. <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)">
  326. <div class="ui-col-1 c-666">{{o.attachedTitle}}</div>
  327. <div class="ui-col-0 c-999">{{o.czrq}}</div>
  328. <img src="../images/arrow_icon.png" width="7px" height="14px" class="ml10" />
  329. </div>
  330. </div>
  331. <div class="ptb10" v-if="service.type==7&&service.relationList&&service.relationList.length>0">
  332. <div v-for="(o, i) in service.relationList">
  333. <p class="f14 mb5">
  334. <span class="c-999">预约医院:</span>
  335. {{o.orgName}}
  336. </p>
  337. <p class="f14 mb5">
  338. <span class="c-999">预约科室:</span>
  339. {{o.deptName}}
  340. </p>
  341. <p class="f14 mb5">
  342. <span class="c-999">预约医生:</span>
  343. {{o.doctorName}}
  344. </p>
  345. <p class="f14 mb5">
  346. <span class="c-999">就诊时间:</span>
  347. {{o.startTime}}
  348. </p>
  349. <p class="f14 mb5">
  350. <span class="c-999">挂号时间:</span>
  351. {{o.czrq}}
  352. </p>
  353. </div>
  354. </div>
  355. <div v-if="!service.relationList || service.relationList.length==0" class="guanlian-list c-999">暂无关联记录</div>
  356. </div>
  357. <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">
  358. <div id="innerdiv" style="position: absolute">
  359. <img id="bigimg" style="border: 5px solid #fff" src="" />
  360. </div>
  361. </div>
  362. <div class="text-center ptb50" v-if="islimit&&service.planStatus!=0 && service.status!=1 && service.isMyTask==1 && service.type==1">
  363. <button class="btn btn-zhidao" @click="qrwc(service.patient,service.type)">确认完成</button>
  364. </div>
  365. </div>
  366. </div>
  367. <script type="text/javascript" src="../../../js/vue.js"></script>
  368. <script type="text/javascript" src="../../../js/jquery-2.2.4.js"></script>
  369. <script src="../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  370. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  371. <script src="../../../js/jsencrypt.js" type="text/javascript" charset="utf-8"></script>
  372. <script src="../../../plugins/toastr/toastr.min.js"></script>
  373. <script type="text/javascript" src="../../../plugins/layer/layer.min.js"></script>
  374. <script type="text/javascript" src="../../../api/http-request.js"></script>
  375. <script type="text/javascript" src="../../../api/rehabilitation-api.js"></script>
  376. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  377. <script type="text/javascript" src="../../../plugins/layer/layer.min.js"></script>
  378. <script type="text/javascript" src="../js/guide_the_message.js"></script>
  379. </body>
  380. </html>