血透系统PC前端

statOrder.vue 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="DetailsTit"><span>{{ title }}</span></h2>
  4. <table class="table">
  5. <tr>
  6. <th width="12%">开嘱医生</th>
  7. <th width="18%">开始时间</th>
  8. <th width="31%">医嘱内容</th>
  9. <th width="18.6%">执行时间</th>
  10. <th width="10.5%">执行护士</th>
  11. <th width="9.4%">核对护士</th>
  12. </tr>
  13. <tr v-for="(advice, index) in advices" :key="index" :value="advice.value">
  14. <td>
  15. <span v-if="isShowStartTime(index, advice)">{{ doctor_map[advice.advice_doctor] != undefined ? doctor_map[advice.advice_doctor].name : "" }}</span>
  16. </td>
  17. <td>
  18. <span v-if="isShowStartTime(index, advice)">{{ parseTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</span>
  19. </td>
  20. <td class="advice-name-td">
  21. <span v-if="advice.parent_id>0">&nbsp;&nbsp;&nbsp;&nbsp;</span>
  22. <span >&nbsp;{{advice.advice_name }}</span>
  23. <span >{{advice.advice_desc}}</span>
  24. <!-- <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span> -->
  25. <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
  26. <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
  27. <span >{{advice.delivery_way}}</span>
  28. <span >{{advice.execution_frequency}}</span>
  29. </td>
  30. <td>{{ parseTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
  31. <td>{{ advice.execution_staff != 0 ? (doctor_map[advice.execution_staff] != undefined ? doctor_map[advice.execution_staff].name : "") : "" }}</td>
  32. <td>{{ advice.checker != 0 ? (doctor_map[advice.checker] != undefined ? doctor_map[advice.checker].name : "") : "" }}</td>
  33. </tr>
  34. <tr v-if="advices.length == 0">
  35. <td></td>
  36. <td></td>
  37. <td></td>
  38. <td></td>
  39. <td></td>
  40. <td></td>
  41. </tr>
  42. </table>
  43. <div class="middleLine"></div>
  44. </div>
  45. </template>
  46. <script>
  47. import { parseTime } from "@/utils"
  48. export default {
  49. name: "statOrder",
  50. data() {
  51. return {
  52. title: "临时医嘱 ",
  53. tableDate: []
  54. };
  55. },
  56. props: {
  57. advices: {
  58. type: Array,
  59. },
  60. doctor_map: {
  61. type: Object,
  62. }
  63. },
  64. methods: {
  65. isShowStartTime(index, row) {
  66. if (row.parent_id > 0) {
  67. return false;
  68. }else if(index>0 && row.groupno>0 && row.groupno == this.advices[index-1].groupno) {
  69. return false;
  70. }
  71. return true;
  72. },
  73. parseTime(time, layout) {
  74. if (time == 0) {
  75. return ""
  76. }
  77. return parseTime(time, layout)
  78. },
  79. }
  80. };
  81. </script>
  82. <style rel="stylesheet/scss" lang="scss" scoped>
  83. .table {
  84. width: 100%;
  85. overflow: hidden;
  86. font-size: 15px;
  87. text-align: center;
  88. border: $border-color;
  89. tr {
  90. padding: 0;
  91. margin: 0;
  92. padding: 10px 0;
  93. .advice-name-td{
  94. text-align: left;
  95. };
  96. th {
  97. background: $main-color;
  98. border: none;
  99. color: #fff;
  100. padding: 0;
  101. margin: 0;
  102. height: 44px;
  103. line-height: 44px;
  104. font-weight: normal;
  105. }
  106. td {
  107. background: #f0f5fa;
  108. border: none;
  109. padding: 18px 0;
  110. }
  111. }
  112. }
  113. </style>