patientda.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <template style="background: #F6F6F6;">
  2. <view style="width: 100%;height: 100%;">
  3. <u-gap height="20" bg-color="#F6F6F6"></u-gap>
  4. <view style="padding: 40rpx 28rpx;margin-bottom: 200rpx;">
  5. <!-- 标题 -->
  6. <view class="flex align-center" style="font-size: 30rpx;font-weight: bold;margin-bottom: 40rpx;">
  7. <text style="margin-right: 40rpx;">{{name}}</text>
  8. <text style="margin-right: 24rpx;">{{sex}}</text>
  9. <text>{{age}}</text>
  10. </view>
  11. <!-- 线 -->
  12. <u-line color="#EFEFEF" />
  13. <!-- 内容 -->
  14. <view class="content">
  15. <!-- 姓名 -->
  16. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  17. <view class="left_text">就诊人姓名:</view>
  18. <view class="right_text">{{name}}</view>
  19. </view>
  20. <!-- 性别 -->
  21. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  22. <view class="left_text">就诊人性别:</view>
  23. <view class="right_text">{{sex}}</view>
  24. </view>
  25. <!-- 生日 -->
  26. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  27. <view class="left_text">出生日期:</view>
  28. <view class="right_text">{{birthday}}</view>
  29. </view>
  30. <!-- 关系 -->
  31. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  32. <view class="left_text">与用户关系:</view>
  33. <view class="right_text">{{relationship}}</view>
  34. </view>
  35. <!-- 信息 -->
  36. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  37. <view class="left_text">就诊信息:</view>
  38. <view class="right_text">{{information}}</view>
  39. </view>
  40. <!-- 身份证 -->
  41. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  42. <view class="left_text">就诊人身份证:</view>
  43. <view class="right_text">{{id}}</view>
  44. </view>
  45. <!-- 证件照 -->
  46. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  47. <view class="left_text">证件照:</view>
  48. <view class="right_text">
  49. <image style="width: 124rpx;height: 124rpx;margin-right: 10rpx;" :src="photo1"></image>
  50. <image style="width: 124rpx;height: 124rpx;margin-right: 10rpx;" :src="photo2"></image>
  51. </view>
  52. </view>
  53. <!-- 病例 -->
  54. <view style="margin-bottom: 28rpx; width: 100%;display: flex;">
  55. <view class="left_text">病例:</view>
  56. <view class="right_text"></view>
  57. </view>
  58. <view>
  59. <view class="flex align-center" style="margin: 28rpx 0;" v-for="item,index in blList" :key='index'>
  60. <!-- 左边 -->
  61. <view style="width: 30%;" class="flex align-center">
  62. <view style="background-color: #EEAA3F;width: 12rpx;height: 12rpx;border-radius: 50%;margin-right: 16rpx;"></view>
  63. <view style="color: #EEAA3F;font-size: 30rpx;">{{item.order_status}}</view>
  64. </view>
  65. <!-- 中间 -->
  66. <view style="width: 40%;color: #999999;">
  67. {{item.created_at}}
  68. </view>
  69. <!-- 右边 -->
  70. <view style="width: 30%;height: 100%;" class="flex align-center justify-end">
  71. <!-- 1.电话咨询 2.图文咨询 3.门诊预约 4.疫苗接种预约 5.儿保预约 -->
  72. <view class="zlbutton">{{item.product_type}}</view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <!-- 底部按钮 -->
  79. <!-- <view class="bottomButton">
  80. <view class="b">
  81. <u-button shape="circle" :custom-style="bStyle">电话随访</u-button>
  82. </view>
  83. <view class="b">
  84. <u-button shape="circle" :custom-style="btStyle" v-if="!guanzhu" @click="gzclick">关注</u-button>
  85. <u-button shape="circle" :custom-style="bfStyle" v-else @click="gzclick">已关注</u-button>
  86. </view>
  87. </view> -->
  88. </view>
  89. </template>
  90. <script>
  91. export default {
  92. onLoad(options) {
  93. this.name = '张三'
  94. this.sex = '1' //性别
  95. this.age = '500' //年龄
  96. this.birthday = '2020年10月27日15:28:25' //生日
  97. this.relationship = '亲爸' //关系
  98. this.information = '不知道什么病' //备注信息
  99. this.id = '999999999999999' //身份证
  100. this.photo1 = 'https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/头像.png' //证件照
  101. this.photo2 = 'https://zhengda.oss-cn-chengdu.aliyuncs.com/baoma/static/头像.png' //证件照
  102. this.patientDetail(options.id)
  103. },
  104. mounted() {
  105. },
  106. data() {
  107. return {
  108. name: '', //姓名
  109. sex: '', //性别
  110. age: '', //年龄
  111. birthday: '', //生日
  112. relationship: '', //关系
  113. information: '', //备注信息
  114. id: '', //身份证
  115. photo1: '', //证件照
  116. photo2: '', //证件照
  117. blList: [],
  118. guanzhu: false,
  119. //底部按钮样式
  120. bStyle: {
  121. width: '100%',
  122. height: '100%',
  123. fontSize: '28rpx',
  124. },
  125. btStyle: {
  126. width: '100%',
  127. height: '100%',
  128. fontSize: '28rpx',
  129. color: '#0B73B9',
  130. backgroundColor: '#FFFFFF'
  131. },
  132. bfStyle: {
  133. width: '100%',
  134. height: '100%',
  135. fontSize: '28rpx',
  136. color: '#ffffff',
  137. backgroundColor: '#0B73B9'
  138. }
  139. }
  140. },
  141. methods: {
  142. //点击关注
  143. gzclick(e) {
  144. console.log(this.guanzhu)
  145. if (this.guanzhu) {
  146. this.guanzhu = false
  147. } else {
  148. this.guanzhu = true
  149. }
  150. },
  151. patientDetail: async function(e) {
  152. let idde=e
  153. let res = await this.$request.post("doctor/patientsDetile", {
  154. patient_id:idde
  155. })
  156. this.name=res.data.patient.name
  157. this.sex=res.data.patient.sex
  158. this.age=res.data.patient.age
  159. this.birthday=res.data.patient.birthday
  160. this.relationship=res.data.patient.relationship_type
  161. this.information=res.data.patient.info
  162. this.id=res.data.patient.card_number
  163. this.blList=res.data.patientOrder
  164. this.photo1 = res.data.patient.card_img_url //证件照
  165. this.photo2 = res.data.patient.card_back_img_url //证件照
  166. }
  167. }
  168. };
  169. </script>
  170. <style lang="scss">
  171. /* 底部按钮 */
  172. .bottomButton {
  173. position: fixed;
  174. bottom: 0;
  175. left: 0;
  176. width: 100%;
  177. height: 100rpx;
  178. display: flex;
  179. align-items: center;
  180. justify-content: flex-end;
  181. background-color: #FFFFFF;
  182. z-index: 1;
  183. .b {
  184. margin-right: 30rpx;
  185. padding: 20rpx 0rpx;
  186. height: 100%;
  187. width: 150rpx;
  188. }
  189. }
  190. // 内容
  191. .content {
  192. margin: 28rpx 0;
  193. font-size: 26rpx;
  194. }
  195. //淡色文字
  196. .left_text {
  197. width: 30%;
  198. color: #666666;
  199. }
  200. .right_text {
  201. width: 70%;
  202. }
  203. //种类按钮
  204. .zlbutton {
  205. background-color: #e6e6e6;
  206. border-radius: 27rpx;
  207. padding: 0 20rpx;
  208. height: 50rpx;
  209. font-size: 25rpx;
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. color: #666666;
  214. }
  215. </style>