rehabilitation_management.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>康复管理</title>
  6. <link rel="shortcut icon" href="../../favicon.ico">
  7. <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  9. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  10. <link rel="stylesheet" href="../../../plugins/toastr/toastr.min.css">
  11. <link rel="stylesheet" href="../../../plugins/element-ui/element-ui.css" />
  12. <link rel="stylesheet" type="text/css" href="../css/date.css" />
  13. <link rel="stylesheet" href="../css/common.css" />
  14. <link rel="stylesheet" href="../css/rehabilitation_management.css" />
  15. <style>
  16. .plr11{
  17. padding-left: 11px;
  18. padding-right: 11px;
  19. }
  20. .div-line{
  21. width: 4px; height: 20px;background: #12b7f5;
  22. margin-right: 9px;
  23. margin-top: 5px;
  24. }
  25. .lh30{
  26. height: 30px;
  27. line-height: 30px;
  28. }
  29. .mr21{
  30. margin-right: 21px;
  31. }
  32. .c-ff9630{
  33. color: #ff9630;
  34. }
  35. .pb23{
  36. padding-bottom: 23px;
  37. }
  38. .plr13{
  39. padding-left: 13px;
  40. padding-right: 13px;
  41. }
  42. .dialos-textarea{
  43. padding: 25px 10px 25px 15px;
  44. min-height: 140px;
  45. width: 100%;
  46. background: #F5F5FA;
  47. border: 0;
  48. margin-top: 5px;
  49. text-indent: 28px;
  50. resize: none;
  51. line-height: 28px;
  52. }
  53. .bgc-2dbe55 {background-color: #2dbe55;}
  54. .layui-layer-loading{
  55. margin-left: auto;
  56. margin-right: auto;
  57. }
  58. </style>
  59. </head>
  60. <body>
  61. <div class="c-container ui-grid ui-grid-vertical" id="app" v-cloak>
  62. <div class="page-title flex-box ui-col-0" style="justify-content: flex-start">
  63. <div class="flex-box-item mw400" flex-grow="2">
  64. <span class="page-title-name">康复计划</span>
  65. <a class="icon icon-back icon-16 mr10" href="javascript:history.back();"></a><i class="icon icon-shuaxin icon-16" @click="refreshPage"></i>
  66. </div>
  67. <div v-if="!showServerItemDetail" class="flex-box-item text-center" flex-grow="5">
  68. <div class="div-kuaisu-task" @click="changeSearch(1)" v-show="tabStatus!=3">快速找任务</div>
  69. <div class="pull-right switch-list" v-show="tabStatus!=3">
  70. <span class="rili" :class="{active:(tabStatus==1)}" @click="tabStatus=1"><i class="icon icon-rili icon-20"></i></span>
  71. <span class="shijianzhou" :class="{active:(tabStatus==2)}" @click="tabStatus=2"><i class="icon icon-liebiao icon-20"></i></span>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="rehabilition c-position-r bgc-f5f5f5 ui-col-1" style="margin: 0 !important">
  76. <div class="search-left w400 c-position-a">
  77. <span class="c-position-a set-close" @click="changeSearch(-1)"></span>
  78. <div class="search-condition">
  79. <p>快速找任务</p>
  80. <ul class="task-list">
  81. <li :class="{'active':(searchTask===task.code)}" v-for="task in taskArr" @click="changeTask(task)">{{task.name}}</li>
  82. </ul>
  83. <p>任务状态</p>
  84. <ul class="task-list">
  85. <li :class="{'active':(status===sts.code)}" v-for="sts in statusArr" @click="changeStatus(sts)">{{sts.name}}</li>
  86. </ul>
  87. </div>
  88. <div class="text-center">
  89. <button class="btn btn-search" @click="confirmSearch">确认</button>
  90. </div>
  91. </div>
  92. <div class="ui-grid c-h100">
  93. <div class="div-left ui-col-0 plr11" style="position: fixed;height: calc(100% - 50px);overflow: auto;padding-bottom: 10px;">
  94. <div class="ui-grid c-border-b lh30">
  95. <div class="ui-col-0 div-line"></div>
  96. <div class="ui-col-1 c-f16 c-333">居民信息</div>
  97. </div>
  98. <div class="ui-grid c-border-b pb15 pt15">
  99. <div class="ui-col-0 mr10">
  100. <img :src="setImgSrc(planInfo.patientPhoto)" width="40" class="c-images-cycle">
  101. </div>
  102. <div class="ui-col-1">
  103. <div class="mt10"><span class="c-f16 mr5">{{planInfo.patientName}}</span><span class="c-f16 c-999">({{planInfo.sex}} {{planInfo.age}}岁)</span></div>
  104. <div class="tag mt10 tag-1 ml20"></div>
  105. </div>
  106. <div class="ui-col-0 div-patient-home c-f14 c-333">进入居民首页</div>
  107. </div>
  108. <div class="ui-grid mt15 pb15">
  109. <div class="ui-col-1 c-f16 c-333">康复计划</div>
  110. <div class="ui-col-1 c-f14 c-999">总进度:</div>
  111. <div class="ui-col-0 div-patient-comfirm c-f14 c-fff bgc-12b7f5" v-show="planInfo.status==2 && !planInfo.patientImg" @tap="weiXinConfirmClick">邀请居民确认</div>
  112. </div>
  113. <div class="ui-grid">
  114. <div class="ui-col-1">
  115. <div class="progress-bar">
  116. <span class="progress bgc-ff9526" :style="{width: (planInfo.finishedCount/planInfo.allCount*100)+'%'}"></span>
  117. <span class="p-text">{{planInfo.finishedCount}}/{{planInfo.allCount}}</span>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="ui-grid c-border-b lh30 mt15">
  122. <div class="ui-col-0 div-line"></div>
  123. <div class="ui-col-1 c-f16 c-333">服务医生</div>
  124. </div>
  125. <div class="ui-grid pt15" v-for="(doc, index) in docList" :key="index">
  126. <div class="ui-col-0 ml30 mr21">
  127. <img :src="setImgSrc(doc.photo)" width="40" class="c-images-cycle">
  128. </div>
  129. <div class="ui-col-0" style="width: 150px;">
  130. <div class="c-f16 c-333">{{doc.name}}</div>
  131. <div class="c-f14 c-999">{{doc.levelName}}</div>
  132. </div>
  133. <!-- <div class="ui-col-1" style="width: 200px;">
  134. <div class="c-f14 c-333">完成项目:<span class="c-f14 c-ff9630">{{doc.finishedItem}}</span></div>
  135. <div class="c-f14 c-333">服务次数:<span class="c-f14 c-ff9630">{{doc.serviceCount}}</span></div>
  136. </div> -->
  137. </div>
  138. <div class="ui-grid c-border-b lh30 mt15">
  139. <div class="ui-col-0 div-line"></div>
  140. <div class="ui-col-1 c-f16 c-333">康复建议</div>
  141. </div>
  142. <div class="ui-grid">
  143. <textarea placeholder="此处内容是康复建议" readonly class="m0 p10 c-333 mt10 bg-f5f5fa" style="width: 100%;outline: 0;height: 200px;border: 1px solid rgb(225, 225, 225); resize: none;">{{planInfo.adviceContent}}</textarea>
  144. </div>
  145. <div class="ui-grid c-border-b lh30 mt15">
  146. <div class="ui-col-0 div-line"></div>
  147. <div class="ui-col-1 c-f16 c-333">住院病历</div>
  148. </div>
  149. <div>
  150. <div v-for="(o, i) in medicalRecordsList" class="w-row flex vc c-f14 c-border plr10 ptb5 link-control mt10" @click="viewMedicalDetail(o)">
  151. <span class="c-666 mr15">
  152. {{o&&o.admissionTime?formatter(o.admissionTime):formatter(o.createTime)}}
  153. </span>
  154. <div class="flex1 c-12b7f5 ellipsis-1">
  155. {{o&&o.hospitalName?o.hospitalName:''}}
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="nav-content-center bgc-fff c-position-r c-h100 div-right ui-col-1" style="margin-left: 460px;height: 100%;" v-show="tabStatus==3">
  161. <iframe id="framePage" src="" style="width: 100%;height: 100%;border: 0;"></iframe>
  162. </div>
  163. <div class="nav-content-center bgc-fff c-position-r c-h100 div-right ui-col-1" style="margin-left: 460px;" v-show="tabStatus!=3">
  164. <div v-if="!showServerItemDetail" style="position: absolute;top: 15px;left: 101px;">
  165. <span v-if="!isFastSearch">
  166. <i class="icon icon-prev icon-20" @click="preMonth"></i>
  167. <span class="currentDay">{{currentDay}}</span>
  168. <i class="icon icon-next icon-20" @click="nextMonth"></i></span>
  169. </div>
  170. <div v-show="!showServerItemDetail&&tabStatus==1" class="calendar-content ui-grid ui-grid-vertical">
  171. <div class="calendar-descript">
  172. <span>图例注释: </span><i class="icon icon-blue"></i> <span>专科团队</span>&emsp;<i class="icon icon-green"></i> <span>家医团队</span>&emsp; <i class="icon icon-flag"></i> <span>我的任务</span>
  173. </div>
  174. <!--快速查找-->
  175. <div class="ui-col-1 c-border-t" style="overflow: hidden; overflow-y: scroll;" v-if="isFastSearch">
  176. <div v-if="searchData.length>0" class="calendar-days" v-for="searchData1 in searchData">
  177. <div v-for="items in searchData1" class="flex-box clearfix">
  178. <div class="fl flex-box calendar-day c-fff c-f28 bgc-2dbe55">
  179. <p class="p0">{{items[0].mounth}}月</p>
  180. </div>
  181. <div class="fl calendar-day" v-for="item in items" @click="viewDetail(item.planDetailIds)" :is-future="item.future">
  182. <span class="day-number">{{item.day}}</span>
  183. <div class="task-icon">
  184. <i v-if="item.myTaskFlag" class="icon icon-flag icon-20"></i>
  185. <i v-if="item.finishFlag" class="icon icon-check"></i>
  186. </div>
  187. <div class="coloured-box">
  188. <span v-if="item.specialist" class="coloured-ribbon coloured-ribbon-blue">专<br />科</span>
  189. <span v-if="item.family" class="coloured-ribbon coloured-ribbon-green">家<br />医</span>
  190. </div>
  191. <div class="progress-box">
  192. <div class="progress" :style="{opacity:item.specialist?'1':'0'}">
  193. <span>{{(item.specialist && item.specialist.finish)+'/'+(item.specialist && item.specialist.all)}}</span>
  194. <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" :style="{width: (item.specialist?(item.specialist.finish/item.specialist.all):0)*100+'%'}"></div>
  195. </div>
  196. <div class="progress" :style="{opacity:item.family?'1':'0'}">
  197. <span>{{(item.family && item.family.finish)+'/'+(item.family && item.family.all)}}</span>
  198. <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" :style="{width: (item.family?(item.family.finish/item.family.all):0)*100+'%'}"></div>
  199. </div>
  200. <p v-if="!item.noService" class="mb0 f12" :class="{'visibility-hide':!curTask}" style="line-height: 1;">{{curTaskName || '&emsp;'}}</p>
  201. </div>
  202. <p v-if="item.noService" class="no-server">无服务项</p>
  203. </div>
  204. </div>
  205. </div>
  206. <div v-else-if="!searchData[0].mouth" class="f16 ptb10 text-center">
  207. <img src="../../../images/wushuju_img.png" class="mt50"/>
  208. <p class="c-666">暂无数据</p>
  209. </div>
  210. </div>
  211. <!--无快速查找-->
  212. <div class="ui-col-1" style="overflow: hidden; overflow-y: scroll;" v-if="!isFastSearch">
  213. <div class="calendar-week">
  214. <div class="flex-box text-center">
  215. <div class="flex-box-item">
  216. 周一
  217. </div>
  218. <div class="flex-box-item">
  219. 周二
  220. </div>
  221. <div class="flex-box-item">
  222. 周三
  223. </div>
  224. <div class="flex-box-item">
  225. 周四
  226. </div>
  227. <div class="flex-box-item">
  228. 周五
  229. </div>
  230. <div class="flex-box-item">
  231. 周六
  232. </div>
  233. <div class="flex-box-item">
  234. 周日
  235. </div>
  236. </div>
  237. </div>
  238. <div class="calendar-days">
  239. <div v-for="items in calendarData" class="flex-box">
  240. <div class="calendar-day" v-for="item in items" @click="viewDetail(item.planDetailIds)" :is-future="item.future">
  241. <span class="day-number">{{item.day}}</span>
  242. <div class="task-icon">
  243. <i v-if="item.myTaskFlag" class="icon icon-flag icon-20"></i>
  244. <i v-if="item.finishFlag" class="icon icon-check"></i>
  245. </div>
  246. <div class="coloured-box">
  247. <span v-if="item.specialist" class="coloured-ribbon coloured-ribbon-blue">专<br />科</span>
  248. <span v-if="item.family" class="coloured-ribbon coloured-ribbon-green">家<br />医</span>
  249. </div>
  250. <div class="progress-box">
  251. <div class="progress" :style="{opacity:item.specialist?'1':'0'}">
  252. <span>{{(item.specialist && item.specialist.finish)+'/'+(item.specialist && item.specialist.all)}}</span>
  253. <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" :style="{width: (item.specialist?(item.specialist.finish/item.specialist.all):0)*100+'%'}"></div>
  254. </div>
  255. <div class="progress" :style="{opacity:item.family?'1':'0'}">
  256. <span>{{(item.family && item.family.finish)+'/'+(item.family && item.family.all)}}</span>
  257. <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" :style="{width: (item.family?(item.family.finish/item.family.all):0)*100+'%'}"></div>
  258. </div>
  259. <p v-if="!item.noService" class="mb0 f12" :class="{'visibility-hide':!curTask}" style="line-height: 1;">{{curTaskName || '&emsp;'}}</p>
  260. </div>
  261. <p v-if="item.noService" class="no-server">无服务项</p>
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. <div v-show="!showServerItemDetail&&tabStatus==2" class="mt50" style="height:calc(100% - 50px); overflow-y: auto">
  268. <div class="time-axis" style="max-height: calc(100% - 200px); overflow-y: auto">
  269. <div>
  270. <table class="table">
  271. <tr>
  272. <th style="padding-right: 50px;text-align: right;">时间</th>
  273. <th>项目</th>
  274. <th>执行人员</th>
  275. <th>执行地点</th>
  276. <th class="text-center">相关记录</th>
  277. <th class="text-center">状态</th>
  278. </tr>
  279. <tr v-for="item in timeAxisData" :is-future="item.future">
  280. <td class="time text-right time-box">
  281. <p class="mb5">{{item.date}}</p>
  282. <p class="mb0">{{item.time}}</p>
  283. <span class="cur-status">{{item.html}}</span>
  284. </td>
  285. <td class="project-name mw400">
  286. <p class="mt10">{{item.name}}</p>
  287. <p class="ellipsis mb0">{{item.content}}</p>
  288. </td>
  289. <td class="executor">{{item.doctor_name}}</td>
  290. <td class="place-of-execution">{{item.hospital_name}}</td>
  291. <td class="view-task" @click="viewDetail(item.id,1)">查看</td>
  292. <td class="task-status" :class="item.future==-1?'c-ff3b30':(item.status==0?'c-666':'')">{{item.status==0?'未完成':(item.status==1?'已完成':'已预约')}}</td>
  293. </tr>
  294. <tr v-if="!timeAxisData.length">
  295. <td colspan="6" class="f16 ptb10 text-center">
  296. <img src="../../../images/wushuju_img.png" class="mt50"/>
  297. <p class="c-666">暂无数据</p>
  298. </td>
  299. </tr>
  300. </table>
  301. </div>
  302. </div>
  303. <div class="plr10 pb10">
  304. <div v-for="(o, i) in limitlessItems" class="flex vc c-f14 c-border plr10 ptb5 mt10 link-control" @click="viewServerItemsDetail(o)">
  305. <div class="flex1 c-12b7f5 ellipsis-1">
  306. {{o.name}}
  307. </div>
  308. <div style="width: 250px;">
  309. <div class="flex lh28">
  310. <span>完成情况:</span>
  311. <div class="flex1" v-if="!o.frequency_code"><span class="c-FF0000">{{o.compeletTotal}}</span>次</div>
  312. <div class="flex1" v-else><span class="c-FF0000">{{o.compeletTotal}}/{{o.total}}</span></div>
  313. </div>
  314. <div v-if="o.code!='3'" class="flex lh28">
  315. <span>上次完成:</span>
  316. <div class="flex1">{{o.firstDate?o.firstDate:'--'}}</div>
  317. </div>
  318. <div v-if="o.frequency_code" class="flex lh28">
  319. <span>下次计划:</span>
  320. <div class="flex1">{{o.lastDate?o.lastDate:'--'}}</div>
  321. </div>
  322. <div v-if="o.code=='3'" class="flex lh28">
  323. <!-- o.type 1: 血糖 2: 血压 -->
  324. <span>最近体征:</span>
  325. <div v-if="!o.type || o.compeletTotal==0" class="">--</div>
  326. <div v-else-if="o.type==1">
  327. <span class="zhibiao_icon" :class="{'low':o.levelClazz1=='low', 'high':o.levelClazz1=='high'}">{{o.levelName}}血糖:{{o.value1}}</span>
  328. </div>
  329. <div v-else-if="o.type==2" class="flex vc">
  330. <span class="zhibiao_icon" :class="{'low':o.levelClazz1=='low', 'high':o.levelClazz1=='high'}">收缩压:{{o.value1}}</span>
  331. <span class="zhibiao_icon" :class="{'low':o.levelClazz2=='low', 'high':o.levelClazz2=='high'}">舒张压:{{o.value2}}</span>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. <server-items-detail ref="serverItemsDetail" v-if="showServerItemDetail" :patientname="planInfo.patientName" :patientcode="planInfo.patientCode" :planid="planId" :plandetailid="serverItemInfo.id" @onclose="showServerItemDetail=false"></server-items-detail>
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. <script type="text/javascript" src="../../../js/vue.js"></script>
  344. <script type="text/javascript" src="../../../js/jquery-2.2.4.js"></script>
  345. <script type="text/javascript" src="../../../js/es6-promise.js" charset="utf-8"></script>
  346. <script type="text/javascript" src="../../../plugins/toastr/toastr.min.js"></script>
  347. <script type="text/javascript" src="../../../plugins/element-ui/element-ui.js"></script>
  348. <script type="text/javascript" src="../../../api/http-request.js"></script>
  349. <script type="text/javascript" src="../../../plugins/layer/layer.min.js"></script>
  350. <script type="text/javascript" src="../../../api/rehabilitation-api.js"></script>
  351. <script type="text/javascript" src="../../../api/recover_api.js"></script>
  352. <script type="text/javascript" src="../../../js/underscore-1.9.1.js"></script>
  353. <script type="text/javascript" src="../../../component/rehabilitation/server-items-detail.js"></script>
  354. <script type="text/javascript" src="../../../js/util.js" charset="utf-8"></script>
  355. <script type="text/javascript" src="../js/rehabilitation_management.js"></script>
  356. </body>
  357. </html>