ProCaseList.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <template>
  2. <div class="container">
  3. <div class="bgimg"></div>
  4. <div class="content">
  5. <div class="title">方案列表</div>
  6. <!-- <div class="loginForm"> -->
  7. <!-- <div @click="showDetail(item.id)" v-for="(item,index) in list" style="height: 100%;border-bottom: 1px solid #ccc;padding-bottom:1rem;">
  8. <div class="rowfont">姓名:{{item.name}}</div>
  9. <div class="rowfont">ID:{{item.code}}</div>
  10. <div class="rowfont">年龄:{{item.age}}</div>
  11. <div class="rowfont">体重:{{item.bltz}}</div>
  12. <div class="rowfont">产品:{{item.ckmpro}}</div>
  13. <div class="rowfont">频次:{{item.ckmfreq}}</div>
  14. <div class="rowfont">剂量(IU):{{item.ckzsjl}}</div>
  15. <div class="rowfont">方案医生:{{item.doctor_name}}</div>
  16. <div class="rowfont">方案时间:{{item.ctime}}</div>
  17. </div> -->
  18. <div class="patCaseForm baseInfo" v-if="list.length>0" style="padding-bottom:1rem;">
  19. <mt-cell :title="'姓名:'+list[0].name" :value="'ID:'+list[0].code"></mt-cell>
  20. <mt-cell :title="'年龄:'+list[0].age" :value="'性别:'+list[0].sex"></mt-cell>
  21. </div>
  22. <!-- 方案 -->
  23. <div class="patCaseForm baseInfo" v-for="(item,index) in list">
  24. <!-- <mt-cell :title="'姓名:'+item.name" :value="'ID:'+item.code"></mt-cell>
  25. <mt-cell :title="'年龄:'+item.age" :value="'性别:'+item.sex"></mt-cell> -->
  26. <mt-cell :title="'产品:'+item.ckmpro" :value="'剂量(IU):'+item.ckzsjl"></mt-cell>
  27. <mt-cell :title="'频次:'+item.ckmfreq" :value="'体重(KG):'+item.bltz"></mt-cell>
  28. <mt-cell :title="'方案医生:'+item.doctor_name"></mt-cell>
  29. <div style="font-size:1.2rem;text-align:left;padding-left:10px;">
  30. 方案时间:{{item.ctime}}
  31. <mt-button type="primary" size="small" @click="showDetail(item.id)">详情</mt-button>
  32. </div>
  33. </div>
  34. <!-- </div> -->
  35. <div class="footer">
  36. <div class="jbbtn" @click="goPage(-1)">返回</div>
  37. </div>
  38. </div>
  39. </div>
  40. </template>
  41. <script>
  42. import {
  43. Field,
  44. Picker,
  45. Search,
  46. Button
  47. } from 'mint-ui'
  48. export default {
  49. name: 'Index',
  50. components: {
  51. Field,
  52. Picker,
  53. Search,
  54. Button
  55. },
  56. data() {
  57. return {
  58. form: {},
  59. list: []
  60. }
  61. },
  62. methods: {
  63. goPage(path) {
  64. if(path==-1){
  65. this.$router.go(-1)
  66. }else{
  67. this.$router.push(path)
  68. }
  69. },
  70. showDetail(id) {
  71. this.$router.push({
  72. 'path': '/diagcalcshow',
  73. query: {
  74. id: id,
  75. role: 2,
  76. show: 1
  77. }
  78. })
  79. },
  80. getData() {
  81. let id = this.$route.query.id
  82. this.$api.getPatientCaseList().then(res => {
  83. if (!res.data.code) {
  84. this.list = res.data.data.list
  85. }
  86. })
  87. }
  88. },
  89. created() {
  90. this.getData()
  91. }
  92. }
  93. </script>
  94. <style scoped lang="scss">
  95. hr {
  96. margin: 1rem 0;
  97. }
  98. .bgimg {
  99. width: 100%;
  100. height: 10rem;
  101. top: -5vh;
  102. position: absolute;
  103. background-image: url("../assets/images/commonbg.png");
  104. background-size: 100% 100%;
  105. z-index: 2;
  106. }
  107. /deep/ .loginForm {
  108. width: 84%;
  109. margin: auto;
  110. margin-top: 2rem !important;
  111. background: #fff;
  112. padding: 1rem;
  113. padding-bottom: 2.2rem;
  114. border-radius: 5px;
  115. position: relative;
  116. .formTitle {
  117. height: 1rem;
  118. line-height: 1rem;
  119. text-align: left;
  120. color: #2882F4;
  121. padding-bottom: 0.5rem;
  122. border-bottom: 1px solid #2882F4;
  123. font-weight: bold;
  124. }
  125. }
  126. /deep/ .rowfont {
  127. font-size: 1.4rem;
  128. height: 100%!important;
  129. }
  130. .patCaseForm {
  131. width: 84%;
  132. margin: auto;
  133. margin-top: 1rem;
  134. background: #fff;
  135. padding: 1rem;
  136. border-radius: 5px;
  137. position: relative;
  138. padding-bottom:2rem;
  139. .mint-button--small {
  140. height: 1.6rem;
  141. position: absolute;
  142. left: 78%;
  143. }
  144. .mint-cell {
  145. min-height: 1.8rem;
  146. }
  147. /deep/ .mint-cell .mint-cell-title {
  148. width: 60%;
  149. text-align: left;
  150. }
  151. /deep/ .mint-cell .mint-cell-value {
  152. width: 45%;
  153. text-align: right;
  154. }
  155. /deep/ .mint-cell .mint-cell-wrapper {
  156. font-size: 1.1rem;
  157. background-image: none;
  158. }
  159. .footer {
  160. .jbbtn {
  161. margin-top: 1rem;
  162. height: 2rem;
  163. line-height: 2rem;
  164. font-size: 1.2rem;
  165. width: 40%;
  166. }
  167. }
  168. }
  169. /deep/ .mint-cell-value{
  170. color:#000;
  171. }
  172. /deep/ .mint-cell:last-child{
  173. background-image: none;
  174. }
  175. </style>