select-project.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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/select-patient.css" />
  11. </head>
  12. <body class="m0">
  13. <div id="app" class="p10 c-333" v-cloak>
  14. <div class="c-border mb20">
  15. <h4 class="p0 m0 plr10 ptb5 lh22 c-999 c-border-b bgc-f2fcfe">项目名称</h4>
  16. <p class="p0 m0 plr10 ptb5 lh22">{{proDetail.specialistServiceItemDO.title}}</p>
  17. </div>
  18. <div class="c-border mb20">
  19. <h4 class="p0 m0 plr10 ptb5 lh22 c-999 c-border-b bgc-f2fcfe">项目内涵</h4>
  20. <p class="p0 m0 plr10 ptb5 lh22">{{proDetail.specialistServiceItemDO.content}}</p>
  21. </div>
  22. <div class="c-border mb20">
  23. <h4 class="p0 m0 plr10 ptb5 lh22 c-999 c-border-b bgc-f2fcfe">项目类型</h4>
  24. <p class="p0 m0 plr10 ptb5 lh22">{{proDetail.specialistServiceItemDO.itemType == 1 ? '诊疗服务' : '健康服务'}}</p>
  25. </div>
  26. <div class="c-border mb20">
  27. <h4 class="p0 m0 plr10 ptb5 lh22 c-999 c-border-b bgc-f2fcfe">服务机构</h4>
  28. <p class="p0 m0 plr10 ptb5 lh22">{{proDetail.hospitalName}}</p>
  29. </div>
  30. <div class="c-border">
  31. <h4 class="p0 m0 plr10 ptb5 lh22 c-999 c-border-b bgc-f2fcfe">服务地点</h4>
  32. <p class="p0 m0 plr10 ptb5 lh22">{{proDetail.hospitalDo.address}}</p>
  33. </div>
  34. <div class="c-t-center mb20 mt30" v-if="isLook">
  35. <span class="btn bgc-12b7f5 lh22 c-fff ptb5 plr10 b-r-3 cur-pit" @click="addProject()">添加至计划</span>
  36. </div>
  37. </div>
  38. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  39. <script src="../../../js/jquery-2.2.4.js"></script>
  40. <script src="../../../plugins/layer/layer.min.js"></script>
  41. <script src="../../../plugins/toastr/toastr.min.js"></script>
  42. <script src="../../../js/bootstrap.min.js"></script>
  43. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  44. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  45. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  46. <script src="../../../api/http-request.js" type="text/javascript"></script>
  47. <script src="../../../api/recover_api.js" type="text/javascript"></script>
  48. <script type="text/javascript">
  49. var doctorType = (JSON.parse(window.localStorage.getItem('wlyyAgent'))||{}).doctorType
  50. var httpData=GetRequest()
  51. console.log(httpData)
  52. function showSuccessMessage(msg) {
  53. layer.msg(msg, {
  54. icon: 1
  55. })
  56. }
  57. function showErrorMessage(msg) {
  58. layer.msg(msg, {
  59. icon: 5
  60. })
  61. }
  62. function showWarningMessage(msg) {
  63. layer.msg(msg, {
  64. icon: 2
  65. })
  66. }
  67. function showInfoMessage(msg) {
  68. layer.msg(msg, {
  69. icon: 6
  70. })
  71. }
  72. selectVue = new Vue({
  73. el: "#app",
  74. data: {
  75. isLook: httpData.isLook || false,
  76. proDetail: null
  77. },
  78. mounted: function() {
  79. this.selectByIds()
  80. },
  81. methods: {
  82. selectByIds: function() {
  83. var vm = this,
  84. arr = [httpData.projectId],
  85. loadding = layer.load(0, {shade: false}),
  86. params = {
  87. ids: JSON.stringify(arr)
  88. }
  89. recoverAPI.selectByIds(params).then(function(res) {
  90. layer.close(loadding)
  91. if(res.status == 200) {
  92. vm.proDetail = res.data[0]
  93. } else {
  94. showErrorMessage(res.msg);
  95. }
  96. })
  97. },
  98. addProject: function() {
  99. top.recoverVue.addProject(httpData.index, httpData.index2, httpData.index3)
  100. top.layer.close(top.selectPatientIndex)
  101. }
  102. }
  103. })
  104. </script>
  105. </body>
  106. </html>