personal-manage.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>康复管理</title>
  6. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  7. <link rel="stylesheet" type="text/css" href="../../../css/cross.ui.css" />
  8. <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
  9. <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
  10. <link rel="stylesheet" type="text/css" href="../css/new_recover.css" />
  11. <link rel="stylesheet" type="text/css" href="../css/personal-manage.css" />
  12. <style>
  13. .content {height: 100%}
  14. </style>
  15. </head>
  16. <body class="m0">
  17. <div id="app" class="c-333" v-cloak>
  18. <div class="content ui-grid">
  19. <div class="ui-col-0 c-h100 w350 person_info c-border-r ui-grid ui-grid-vertical plr5">
  20. <h4 class="m0 pl15 lh40 c-border-b c-position-r"><em class="c-position-a set-blue-span"></em>个人基础信息</h4>
  21. <div class="bgc-f5f5fa mt10 ptb10 plr10">
  22. <div class="clearfix">
  23. <div class="fl w-100-66">
  24. <p class="m0 p0 mb10">
  25. <span class="c-999">姓名:</span>{{recoverPatInfo.patientInfo.patientName}}
  26. <span class="c-999 ml20">性别:</span>{{recoverPatInfo.patientInfo.sex == 1 ? "男" : "女"}}
  27. <span class="c-999 ml20">年龄:</span>{{recoverPatInfo.patientInfo.age}}岁
  28. </p>
  29. <p class="m0 p0 mb10">
  30. <span class="c-999">健康情况:</span>{{recoverPatInfo.patientInfo.healthyCondition}}
  31. </p>
  32. <p class="m0 p0 mb10">
  33. <span class="c-999">联系电话:</span><span class="c-12b7f5 cur-pit" v-if="isMobile" @click="changeStatu()">点击查看</span><span v-else>{{recoverPatInfo.patientInfo.mobile}}</span>
  34. </p>
  35. </div>
  36. <div class="fr set-photo">
  37. <img :src="setPatImg(recoverPatInfo.patientInfo.photo)" alt="居民头像" />
  38. </div>
  39. </div>
  40. <p class="m0 p0 mb10">
  41. <span class="c-999">签约社区:</span>{{recoverPatInfo.patientInfo.signHospitalName}}
  42. </p>
  43. <p class="m0 p0">
  44. <span class="c-999">康复机构:</span>{{recoverPatInfo.patientInfo.rehabilitationOrg}}
  45. </p>
  46. </div>
  47. <h4 class="m0 pl15 lh40 c-border-b c-position-r"><em class="c-position-a set-blue-span"></em>服务医生</h4>
  48. <!--<div class="pt10 pb10" style="overflow: hidden; height: 190px;">-->
  49. <div class="pt10 pb10 ui-col-1" style="overflow: hidden; ">
  50. <ul class="p0 m0 c-h100" style="overflow: auto;">
  51. <li class="clearfix plr20 ptb10 doc-li" v-for="(docInfo, index) in recoverPatInfo.serviceDoctorList" :key="index">
  52. <div class="fl set-photo">
  53. <img :src="setPatImg(docInfo.doctorPhoto, 1)" alt="医生头像" />
  54. </div>
  55. <div class="fl ml10 lh18">
  56. <p class="m0 p0 c-f16">{{docInfo.doctorName}}</p>
  57. <p class="m0 p0 mt10 c-999">{{docInfo.type}}</p>
  58. </div>
  59. <div class="fr w100 ml40 lh18">
  60. <p class="m0 p0">完成项目:<span class="c-orange">{{docInfo.finishedItem}}</span></p>
  61. <p class="m0 p0 mt10">服务次数:<span class="c-orange">{{docInfo.serviceCount}}</span></p>
  62. </div>
  63. </li>
  64. </ul>
  65. </div>
  66. <!--<h4 class="m0 pl10 lh40 c-border-b">出院小结</h4>
  67. <div class="ptb10" style="overflow: hidden; height: calc(100% - 481px);">
  68. <ul class="m0 p0 c-border b-r-3 c-h100" style="overflow: auto;">
  69. <li class="pt5 plr10">
  70. <p class="c-999 lh40 clearfix">
  71. <span class="fl">冠心病诊断</span>
  72. <span class="fr">2018-08-01</span>
  73. </p>
  74. <div class="bgc-f5f5fa plr5 ptb10" style="line-height: 20px;">
  75. &emsp;&emsp;这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容这是诊断内容
  76. </div>
  77. </li>
  78. </ul>
  79. </div>-->
  80. </div>
  81. <div class="ui-col-1 c-h100 w-100-350 ui-grid">
  82. <div class="ui-col-1 c-h100 ui-grid ui-grid-vertical">
  83. <!--<div class="plr5">-->
  84. <div class="m0 pl15 lh40 c-border-b c-position-r clearfix">
  85. <em class="c-position-a set-blue-span"></em>
  86. <span class="fl">康复计划</span>
  87. <span class="fl plr20 ml20 c-f12 bgc-12b7f5 c-fff cur-pit" @click="gotoNewplan()" v-if="doctorType == 1">新建计划</span>
  88. <span class="fr w80 c-333 c-f12 c-t-center">进行中:{{recoverPatInfo.planUnderway}}</span>
  89. <span class="fr w80 c-333 c-f12 c-t-center">已完成:{{recoverPatInfo.planFinish}}</span>
  90. </div>
  91. <div class="pb10" style="overflow: hidden; height: 230px;">
  92. <ul class="p0 plr5 m0 c-h100" style="overflow: auto;">
  93. <li class="plr5 ptb10 mt10 plan-li cur-pit c-border b-r-3 ui-grid" v-for="(plan, index) in recoverPatInfo.planList" :key="index" @click="jumpPlan(plan)">
  94. <div class="ui-col-1">
  95. <p class="p0 m0 lh22 clearfix">
  96. <span class="fl">{{plan.planTypeName}}</span>
  97. <span class="fr c-999">{{plan.time}}</span>
  98. </p>
  99. <div class="ui-grid">
  100. <p class="ui-col-1 bgc-c1c1c1 lh22 b-r-11 c-position-r c-t-center">
  101. <span class="c-position-a bgc-orange lh22 b-r-11 c-t-center c-fff" :style="{width: setPercent(plan), left: 0}"></span>
  102. <span class="c-position-r w-100 c-t-center">{{setPercent(plan)}}</span>
  103. </p>
  104. <div class="ui-col-0 ml10 c-999 lh22">{{plan.allFinishCount}}/{{plan.allCount}}</div>
  105. </div>
  106. </div>
  107. <div class="ui-col-0 ml15 c-007cd9 lh40">{{plan.statusName}}</div>
  108. </li>
  109. <li class="ptb10 c-t-center" v-if="!recoverPatInfo.planList || !recoverPatInfo.planList.length">暂无相关计划</li>
  110. </ul>
  111. </div>
  112. <!--</div>-->
  113. <h4 class="m0 pl15 pr5 lh40 c-border-tb clearfix c-position-r"><em class="c-position-a set-blue-span"></em>康复相关记录<span class="fr w80 c-333 c-f12 c-t-center">已完成:{{finishData.planDetailFinish}}</span></h4>
  114. <div class="ui-col-1" style="overflow: hidden; overflow-y: scroll;">
  115. <ul class="p0 m0 c-h100 c-999">
  116. <li class="clearfix plr10 cur-pit record-li" v-for="(plan, index) in planDetailList" :class="{'bgc-dff5fc c-12b7f5':plan.istaDay}" @click="lookProject(plan)">
  117. <div class="fl w80 ptb10 c-t-right">
  118. <p class="p0 m0 lh18">{{plan.executeTime}}</p>
  119. </div>
  120. <div class="fl set-dianxian plr20 ptb10 clerfix">
  121. <span class="fl set-taday mt8 c-t-center c-fff" v-if="plan.istaDay">今</span>
  122. <span class="fl mlr5 mt13 set-row bgc-e1e1e1" v-else></span>
  123. </div>
  124. <div class="fl ptb10 w-100-220">
  125. <p class="p0 m0 lh18">{{plan.title}}</p>
  126. <p class="p0 m0 lh18 txt-ells">{{plan.content}}</p>
  127. </div>
  128. <div class="fr ptb10 w60 c-t-center">
  129. <p class="p0 m0 lh18">已完成</p>
  130. <p class="p0 m0 lh18">查看</p>
  131. </div>
  132. </li>
  133. <li class="plr20" v-if="isFinishMore">
  134. <div class="c-border lh40 b-r-3 c-t-center cur-pit" @click="addEventPage()">点击查看更早时间</div>
  135. </li>
  136. <li class="ptb10 c-t-center c-333" v-if="!planDetailList.length">暂无相关记录</li>
  137. </ul>
  138. </div>
  139. </div>
  140. <div class="ui-col-0 w300 c-h100 c-border-l">
  141. <div class="plr5 c-h100">
  142. <h4 class="m0 pl15 pr5 lh40 c-border-b clearfix c-position-r"><em class="c-position-a set-blue-span"></em>就诊记录</h4>
  143. <div class="lh30 c-border-b c-t-center clearfix">
  144. <span class="fl w96 cur-pit" :class="{'active':eventType == 1}" @click="selectType(1)">门诊</span>
  145. <span class="fl w96 cur-pit c-border-l" :class="{'active':eventType == 2}" @click="selectType(2)">住院</span>
  146. <span class="fl w96 cur-pit c-border-l" :class="{'active':eventType == 3}" @click="selectType(3)">体检</span>
  147. </div>
  148. <div style="overflow: hidden; height: calc(100% - 72px);">
  149. <ul class="c-h100 p0 m0" style="overflow: auto;">
  150. <li class="clearfix" v-for="(record, index) in seeRecord" :key="index">
  151. <div class="fl set-dianxian h73 plr10 pt20 clerfix">
  152. <span class="fl mlr5 set-row bgc-red" v-if="record.eventType == 2"></span>
  153. <span class="fl mlr5 set-row bgc-green" v-if="record.eventType == 3"></span>
  154. <span class="fl mlr5 set-row bgc-orange" v-if="record.eventType == 1"></span>
  155. </div>
  156. <div class="fl w-100-60 pt15">
  157. <div class=" c-border b-r-3">
  158. <p class="m0 p0 plr5 c-fff bgc-red lh22 clearfix" v-if="record.eventType == 2">住院<span class="fr">{{record.eventDate}}</span></p>
  159. <p class="m0 p0 plr5 c-fff bgc-green lh22 clearfix" v-if="record.eventType == 3">体检<span class="fr">{{record.eventDate}}</span></p>
  160. <p class="m0 p0 plr5 c-fff bgc-orange lh22 clearfix" v-if="record.eventType == 1">门诊<span class="fr">{{record.eventDate}}</span></p>
  161. <p class="m0 p0 plr5 pt5 lh22">{{record.dianosis}}</p>
  162. <p class="m0 p0 pr5 pb5 pl20 set-hospital">{{record.orgName}}</p>
  163. </div>
  164. </div>
  165. </li>
  166. <li class="c-t-center c-12b7f5" v-if="hasMoreRecord">查看更多</li>
  167. <li class="c-t-center ptb10" v-if="!seeRecord.length">无就诊记录</li>
  168. </ul>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  177. <script src="../../../js/jquery-2.2.4.js"></script>
  178. <script src="../../../plugins/layer/layer.min.js"></script>
  179. <script src="../../../plugins/toastr/toastr.min.js"></script>
  180. <script src="../../../js/bootstrap.min.js"></script>
  181. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  182. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  183. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  184. <script src="../../../api/http-request.js" type="text/javascript"></script>
  185. <script src="../../../api/recover_api.js" type="text/javascript"></script>
  186. <script type="text/javascript">
  187. var doctorType = (JSON.parse(window.localStorage.getItem('wlyyAgent'))||{}).doctorType
  188. var httpData=GetRequest()
  189. function showSuccessMessage(msg) {
  190. layer.msg(msg, {
  191. icon: 1
  192. })
  193. }
  194. function showErrorMessage(msg) {
  195. layer.msg(msg, {
  196. icon: 5
  197. })
  198. }
  199. function showWarningMessage(msg) {
  200. layer.msg(msg, {
  201. icon: 2
  202. })
  203. }
  204. function showInfoMessage(msg) {
  205. layer.msg(msg, {
  206. icon: 6
  207. })
  208. }
  209. var nowDate = new Date().format("yyyy/MM/dd")
  210. recoverVue = new Vue({
  211. el: "#app",
  212. data: {
  213. doctorType: doctorType,
  214. isMobile: true,
  215. recoverPatInfo: null,
  216. finishData: null,
  217. seeRecord: [],
  218. planDetailList: [],
  219. isFinishMore: false,
  220. page: 1,
  221. eventPage: 1,
  222. eventType: 1,
  223. hasMoreRecord: null
  224. },
  225. mounted: function() {
  226. this.patientRehabilitationDetail()
  227. this.recentPlanDetailRecord()
  228. this.archivesEvent()
  229. },
  230. methods: {
  231. changeStatu: function() {
  232. this.isMobile = false
  233. },
  234. gotoNewplan: function() {
  235. location.href = "new_recover.html?patient=" + httpData.patientCode
  236. },
  237. jumpPlan: function(plan) {
  238. location.href = "../../rehabilitation/html/rehabilitation_management.html?planId=" + plan.planId
  239. },
  240. lookProject: function(obj) {
  241. layer.open({
  242. type: 2,
  243. area: ['600px', '500px'],
  244. shade: 0.5,
  245. title: '服务项目内容',
  246. closeBtn: 1,
  247. shift: 5,
  248. shadeClose: false, //点击遮罩关闭层
  249. content: "project-detail.html?planId=" + obj.id
  250. });
  251. },
  252. patientRehabilitationDetail: function() {
  253. var vm = this,
  254. loadding = layer.load(0, {shade: false}),
  255. params = {
  256. patientCode: httpData.patientCode || "e040dd6814b648ceb3ba8d8a04f9f22c"
  257. }
  258. recoverAPI.patientRehabilitationDetail(params).then(function(res) {
  259. layer.close(loadding)
  260. if(res.status == 200) {
  261. vm.recoverPatInfo = res.data
  262. } else {
  263. showErrorMessage(res.msg);
  264. }
  265. })
  266. },
  267. recentPlanDetailRecord: function() {
  268. var vm = this,
  269. loadding = layer.load(0, {shade: false}),
  270. params = {
  271. patientCode: httpData.patientCode || "e040dd6814b648ceb3ba8d8a04f9f22c",
  272. page: vm.eventPage,
  273. pageSize: 10
  274. }
  275. recoverAPI.recentPlanDetailRecord(params).then(function(res) {
  276. layer.close(loadding)
  277. if(res.status == 200) {
  278. vm.finishData = res.data
  279. vm.planDetailList = vm.planDetailList.concat(vm.finishData.planDetailList)
  280. vm.planDetailList = $.each(vm.planDetailList, function(index, o) {
  281. if(nowDate == o.executeTime.split(" ")[0]) {
  282. o.istaDay = true
  283. }
  284. return o
  285. });
  286. if(vm.finishData.planDetailList.length >= 10) {
  287. vm.isFinishMore = true
  288. } else {
  289. vm.isFinishMore = false
  290. }
  291. } else {
  292. showErrorMessage(res.msg);
  293. }
  294. })
  295. },
  296. selectType: function(type) {
  297. this.eventType = type
  298. this.seeRecord = []
  299. this.page = 1
  300. this.archivesEvent()
  301. },
  302. archivesEvent: function() {
  303. var vm = this,
  304. loadding = layer.load(0, {shade: false}),
  305. params = {
  306. patient: httpData.patientCode || "e040dd6814b648ceb3ba8d8a04f9f22c",
  307. type: vm.eventType,
  308. page: vm.page,
  309. pageSize: 20
  310. }
  311. recoverAPI.archivesEvent(params).then(function(res) {
  312. layer.close(loadding)
  313. if(res.status == 200) {
  314. this.hasMoreRecord = res.data.length == 20 ? true : false
  315. vm.seeRecord = vm.seeRecord.concat(res.data)
  316. } else {
  317. showErrorMessage(res.msg);
  318. }
  319. })
  320. },
  321. setPatImg: function(src, doc) {
  322. if(!src) {
  323. if(doc) {
  324. return "../../../images/d-default.png"
  325. } else {
  326. return "../../../images/p-female.png"
  327. }
  328. } else {
  329. var str = httpRequest.getImgUrl(src);
  330. return str
  331. }
  332. },
  333. addEventPage: function() {
  334. this.eventPage++;
  335. this.recentPlanDetailRecord()
  336. },
  337. addPage: function() {
  338. this.page++;
  339. this.archivesEvent()
  340. },
  341. setPercent: function(plan) {
  342. return Math.floor(plan.allFinishCount / plan.allCount * 100) + "%"
  343. }
  344. }
  345. })
  346. </script>
  347. </body>
  348. </html>