PatInjectionList.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="container">
  3. <div class="bgimg"></div>
  4. <div class="content">
  5. <div class="title">注射记录</div>
  6. <div class="injectionListForm baseInfo">
  7. <div style="width:90%;font-size:1.2rem;text-align: center;margin:1rem auto;font-weight: bold;">姓名:{{patinfo.name}}</div>
  8. <div class="listItemContainer">
  9. <div class="listItem" style="width:70%;background:#6DA2FE;color:#fff;">打卡时间</div>
  10. <div class="listItem" style="background:#6DA2FE;color:#fff;">使用产品</div>
  11. <div class="listItem" style="background:#6DA2FE;color:#fff;">使用剂量</div>
  12. </div>
  13. <div class="listItemContainer" v-for="(item,index) in recordsList">
  14. <div class="listItem" style="width:70%;">{{item.zssjt0}}</div>
  15. <div class="listItem">{{item.mpro}}</div>
  16. <div class="listItem">{{item.mdose}}</div>
  17. </div>
  18. </div>
  19. <div class="footer">
  20. <div class="jbbtn" @click="goPage('/patindex')">确定</div>
  21. <div class="jbbtn" @click="goPage('/patclockin')">开始注射打卡</div>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. import {
  28. Field,
  29. Picker,
  30. Search,
  31. Button
  32. } from 'mint-ui'
  33. export default {
  34. name: 'Index',
  35. components: {
  36. Field,
  37. Picker,
  38. Search,
  39. Button
  40. },
  41. data() {
  42. return {
  43. form: {},
  44. patinfo:{},
  45. recordsList: []
  46. }
  47. },
  48. methods: {
  49. goPage(path) {
  50. this.$router.push(path)
  51. },
  52. getData() {
  53. let id = this.$route.query.id
  54. this.$api.getPatientRecordsList(this.queryForm).then(res => {
  55. if (!res.data.code) {
  56. this.recordsList = res.data.data.list
  57. }
  58. })
  59. this.$api.getAccountInfo().then(res => {
  60. if (!res.data.code) {
  61. this.patinfo = res.data.data
  62. }
  63. })
  64. }
  65. },
  66. created() {
  67. this.getData()
  68. }
  69. }
  70. </script>
  71. <style scoped lang="scss">
  72. .injectionListForm {
  73. width: 84%;
  74. margin: auto;
  75. margin-top: 1rem;
  76. background: #fff;
  77. padding: 1rem;
  78. border-radius: 5px;
  79. position: relative;
  80. }
  81. .footer {
  82. display: flex;
  83. .jbbtn {
  84. width: 42%;
  85. }
  86. }
  87. .listItemContainer {
  88. display: flex;
  89. .listItem {
  90. width: 33%;
  91. height: 2.8rem;
  92. line-height: 2.8rem;
  93. flex-direction: row;
  94. justify-content: space-between;
  95. border-bottom: 1px solid #ccc;
  96. font-size:14px;
  97. }
  98. }
  99. </style>