show.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <!-- header -->
  3. <div class="nav-container page-component">
  4. <!--左侧导航 #start -->
  5. <div class="nav left-nav">
  6. <div class="nav-item ">
  7. <span class="v-link clickable dark" onclick="javascript:window.location='/user'">实名认证 </span>
  8. </div>
  9. <div class="nav-item ">
  10. <span class="v-link clickable dark" onclick="javascript:window.location='/order'"> 挂号订单 </span>
  11. </div>
  12. <div class="nav-item selected">
  13. <span class="v-link selected dark" onclick="javascript:window.location='/patient'"> 就诊人管理 </span>
  14. </div>
  15. <div class="nav-item ">
  16. <span class="v-link clickable dark"> 修改账号信息 </span>
  17. </div>
  18. <div class="nav-item ">
  19. <span class="v-link clickable dark"> 意见反馈 </span>
  20. </div>
  21. </div>
  22. <!-- 左侧导航 #end -->
  23. <!-- 右侧内容 #start -->
  24. <div class="page-container">
  25. <div class="personal-patient">
  26. <div class="title" style="margin-top: 0px;font-size: 16px;"> 就诊人详情</div>
  27. <div>
  28. <div class="sub-title">
  29. <div class="block"></div>
  30. 就诊人信息
  31. </div>
  32. <div class="content-wrapper">
  33. <el-form :model="patient" label-width="110px" label-position="left">
  34. <el-form-item label="姓名:">
  35. <div class=""><span>{{ patient.name }}</span></div>
  36. </el-form-item>
  37. <el-form-item label="证件类型:">
  38. <div class=""><span>{{ patient.param.certificatesTypeString }}</span></div>
  39. </el-form-item>
  40. <el-form-item label="证件号码:">
  41. <div class=""><span>{{ patient.certificatesNo }} </span></div>
  42. </el-form-item>
  43. <el-form-item label="性别:">
  44. <div class=""><span>{{ patient.sex == 1 ? '男' : '女' }} </span></div>
  45. </el-form-item>
  46. <el-form-item label="出生日期:">
  47. <div class=""><span>{{ patient.birthdate }} </span></div>
  48. </el-form-item>
  49. <el-form-item label="手机号码:">
  50. <div class=""><span>{{ patient.phone }} </span></div>
  51. </el-form-item>
  52. <el-form-item label="婚姻状况:">
  53. <div class=""><span>{{ patient.isMarry == 1 ? '已婚' : '未婚' }} </span></div>
  54. </el-form-item>
  55. <el-form-item label="当前住址:">
  56. <div class=""><span>{{ patient.param.provinceString }}/{{ patient.param.cityString }}/{{ patient.param.districtString }} </span></div>
  57. </el-form-item>
  58. <el-form-item label="详细地址:">
  59. <div class=""><span>{{ patient.address }} </span></div>
  60. </el-form-item>
  61. <br/>
  62. <el-form-item>
  63. <el-button class="v-button" type="primary" @click="remove()">删除就诊人</el-button>
  64. <el-button class="v-button" type="primary white" @click="edit()">修改就诊人</el-button>
  65. </el-form-item>
  66. </el-form>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- 右侧内容 #end -->
  72. </div>
  73. <!-- footer -->
  74. </template>
  75. <script>
  76. import '~/assets/css/hospital_personal.css'
  77. import '~/assets/css/hospital.css'
  78. import '~/assets/css/personal.css'
  79. import patientApi from '@/api/user/patient'
  80. export default {
  81. data() {
  82. return {
  83. patient: {
  84. param: {}
  85. }
  86. }
  87. },
  88. created() {
  89. this.fetchDataById();
  90. },
  91. methods: {
  92. fetchDataById() {
  93. debugger
  94. patientApi.getById(this.$route.query.id).then(response => {
  95. this.patient = response.data
  96. })
  97. },
  98. remove() {
  99. patientApi.removeById(this.patient.id).then(response => {
  100. this.$message.success('删除成功')
  101. window.location.href = '/patient'
  102. })
  103. },
  104. edit() {
  105. window.location.href = '/patient/add?id=' + this.patient.id
  106. }
  107. }
  108. }
  109. </script>
  110. <style>
  111. .info-wrapper {
  112. padding-left: 0;
  113. padding-top: 0;
  114. }
  115. .content-wrapper {
  116. color: #333;
  117. font-size: 14px;
  118. padding-bottom: 0;
  119. }
  120. .el-form-item {
  121. margin-bottom: 5px;
  122. }
  123. .bottom-wrapper {
  124. width: 100%;
  125. }
  126. .button-wrapper {
  127. margin: 0;
  128. }
  129. .bottom-wrapper .button-wrapper {
  130. margin-top: 0;
  131. }
  132. </style>