index.axml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <wrapper>
  2. <view class="patient-detail" hidden="{{ !patient.name }}">
  3. <view class="patient-d-block">
  4. <view class="patient-d-flex">
  5. <view class="patient-d-flex">
  6. <text class="patient-d-name">{{ patient.name }}</text>
  7. <text class="patient-d-rela">{{ patient.relationShip }}</text>
  8. </view>
  9. <!-- <view class="patient-d-btn" onTap="onEdit">编辑</view> -->
  10. </view>
  11. <view>{{ patient.sex }}, {{ patient.age }}</view>
  12. <view>证件号码:{{ patient.idCardNo }}</view>
  13. <view>手机号码:{{ patient.phoneNumber }}</view>
  14. </view>
  15. <view a:if="{{ patient.medicCards.length > 1 }}" class="patient-card-num">就诊卡</view>
  16. <view class="patient-d-block" a:for="{{ patient.medicCards }}" key="{{ index }}">
  17. <view class="patient-d-wrap">
  18. <view class="patient-d-title">
  19. <view>就诊卡
  20. <text class="patient-d-rela" a:if="{{ patient.medicCards.length > 1 && patient.bindCardNum === item.cardNum }}">默认</text>
  21. </view>
  22. <!-- <view>¥{{ item.balance }}</view> -->
  23. </view>
  24. <view class="patient-d-flex">
  25. <view>ID号:{{ item.hisPatientId || patient.hisPatientId || '' }}</view>
  26. <!-- 隐藏充值 -->
  27. <!-- <view class="patient-d-btn" onTap="onPayment" data-id="{{ patient.id }}" data-cardNum="{{ item.cardNum }}">充值</view> -->
  28. </view>
  29. </view>
  30. <collapse
  31. className="demo-collapse"
  32. collapseKey="collapse-{{ item.hisPatientId }}"
  33. activeKey="{{ item.expand ? 'item-' + item.hisPatientId : '' }}"
  34. >
  35. <collapse-item itemKey="item-{{ item.hisPatientId }}" collapseKey="collapse-{{ item.hisPatientId }}" showArrow="{{ false }}">
  36. <view slot="am-collapse-item-title" a:if="{{ patient.medicCards.length > 1 }}">
  37. <view class="patient-more">
  38. <image class="patient-more-img" mode="aspectFit" src="https://gw.alipayobjects.com/mdn/rms_373ab8/afts/img/A*ZiZ8Q7RKciEAAAAAAAAAAAAAARQnAQ" />
  39. </view>
  40. </view>
  41. <view class="item-content">
  42. <hj-bar-qr-code value="{{ item.hisPatientId }}" />
  43. <view class="patient-radio" a:if="{{ patient.medicCards.length > 1 }}">
  44. <label class="patient-label">
  45. <radio data-val="{{ item.cardNum }}" checked="{{ patient.bindCardNum === item.cardNum }}" color="#1677ff" onChange="onChange" />
  46. <text>默认就诊卡</text>
  47. </label>
  48. </view>
  49. </view>
  50. </collapse-item>
  51. </collapse>
  52. </view>
  53. <!-- <view class="patient-msg">
  54. <view>温馨提示:</view>
  55. 如就诊卡已不再使用,您可以去医院窗口进行注销
  56. </view> -->
  57. <view class="patient-button" onTap="openModal">删除就诊人</view>
  58. </view>
  59. <modal
  60. show="{{ modalOpened }}"
  61. showClose="{{ false }}"
  62. onButtonClick="onButtonClick"
  63. buttons="{{ buttons }}"
  64. zIndex="10"
  65. >
  66. <view slot="header">是否删除就诊人</view>
  67. </modal>
  68. </wrapper>