rehabilitation_management.html 24 KB

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