血透系统pad前端

assessmentBefore.vue 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="plate-box">
  3. <h2 class="title">
  4. <span class="line"></span>
  5. <p>{{ title }}</p>
  6. <span class="line"></span>
  7. </h2>
  8. <div class="plate ">
  9. <ul>
  10. <li v-for="(item, index) in info1" :key="index" :value="item.value">
  11. <label>{{ item.label }}</label>
  12. <span class="content">{{ item.content }}</span>
  13. <span class="unit">{{ item.unit }}</span>
  14. </li>
  15. </ul>
  16. <ul>
  17. <li v-for="(item, index) in info2" :key="index" :value="item.value">
  18. <label>{{ item.label }}</label>
  19. <span class="content">{{ item.content }}</span>
  20. <span class="unit">{{ item.unit }}</span>
  21. </li>
  22. </ul>
  23. <ul>
  24. <li v-for="(item, index) in info3" :key="index" :value="item.value">
  25. <label>{{ item.label }}</label>
  26. <span class="content">{{ item.content }}</span>
  27. <span class="unit">{{ item.unit }}</span>
  28. </li>
  29. </ul>
  30. </div>
  31. <div class="note">
  32. 备注 : <span>{{ note }}</span>
  33. </div>
  34. <!-- <div class="note">处方医生 : {{doctor}}</div> -->
  35. </div>
  36. </template>
  37. <script>
  38. export default {
  39. name: "DialysisPrescription",
  40. data() {
  41. return {
  42. title: "透前评估 ",
  43. note: "",
  44. doctor: "刘小军 医生",
  45. info1: [
  46. { value: "1", label: "透前称重 : ", content: "0", unit: "kg" },
  47. { value: "2", label: "收缩压 : ", content: "0", unit: "mmHg" },
  48. { value: "3", label: "前次透析后: ", content: "0", unit: "" },
  49. { value: "4", label: " ", content: " ", unit: "" }
  50. ],
  51. info2: [
  52. { value: "1", label: "附加物重 : ", content: "0", unit: "kg" },
  53. { value: "2", label: "舒张压 : ", content: "0", unit: "mmHg" },
  54. { value: "3", label: "透析期间 : ", content: "", unit: "" },
  55. { value: "4", label: "导管 : ", content: "", unit: "" }
  56. ],
  57. info3: [
  58. { value: "1", label: "体温 : ", content: "0", unit: "℃" },
  59. { value: "2", label: "心率 : ", content: "0", unit: "次/分" },
  60. { value: "3", label: "透析前症状 : ", content: "", unit: "" },
  61. { value: "4", label: "合并症: ", content: "", unit: "" }
  62. ]
  63. };
  64. },
  65. methods: {
  66. setRecord(record) {
  67. if (record == null) {
  68. this.info1[0].content = "0";
  69. this.info1[1].content = "0";
  70. this.info1[2].content = "0";
  71. // this.info1[3].content = ""
  72. this.info2[0].content = "0";
  73. this.info2[1].content = "0";
  74. this.info2[2].content = "";
  75. this.info2[3].content = "";
  76. this.info3[0].content = "0";
  77. this.info3[1].content = "0";
  78. this.info3[2].content = "";
  79. this.info3[3].content = "";
  80. this.note = "";
  81. } else {
  82. this.info1[0].content = record.weight_before;
  83. this.info1[1].content = record.systolic_blood_pressure;
  84. this.info1[2].content = record.last_post_dialysis;
  85. // this.info1[3].content = ""
  86. this.info2[0].content = record.additional_weight;
  87. this.info2[1].content = record.diastolic_blood_pressure;
  88. this.info2[2].content = record.dialysis_interphase;
  89. this.info2[3].content = record.catheter;
  90. this.info3[0].content = record.temperature;
  91. this.info3[1].content = record.breathing_rate;
  92. this.info3[2].content = record.symptom_before_dialysis;
  93. this.info3[3].content = record.complication;
  94. this.note = record.remark;
  95. }
  96. }
  97. }
  98. };
  99. </script>
  100. <style rel="stylesheet/scss" lang="scss" scoped></style>