drugCredentialsDetails.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="container">
  3. <view class="content">
  4. <view class="code_box">
  5. <image class="drugCredentia_code" :src="iconUrl.drugCredentia_code"></image>
  6. <view class="codeBox_main displayFlexCol">
  7. <view class="title_text">取药凭证二维码</view>
  8. <view class="code_con">
  9. <image class="qr_code" :src="qrCodeImage"></image>
  10. </view>
  11. <view class="tips_text">等待呼叫后,到相应窗口出示二维码</view>
  12. </view>
  13. </view>
  14. <view class="time_box">
  15. <view class="time_box_list">
  16. <text>处方类型</text>
  17. <text>{{takeMedicineInfo.PrescriptionType}}</text>
  18. </view>
  19. <view class="time_box_list">
  20. <text>所属药房</text>
  21. <text>{{takeMedicineInfo.Pharmacy}}</text>
  22. </view>
  23. <view class="time_box_list" v-if="takeMedicineInfo.Position">
  24. <text>取药窗口</text>
  25. <text class="colorCustom_F08">{{takeMedicineInfo.Position ? "窗口:" + takeMedicineInfo.Position : ""}}</text>
  26. </view>
  27. <view class="time_box_list" v-if="takeMedicineInfo.Position">
  28. <text>流水号</text>
  29. <text>{{takeMedicineInfo.QueueNo}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script setup lang="ts">
  36. import { ref, getCurrentInstance } from 'vue';
  37. import { useOnLoad } from '@dcloudio/uni-app';
  38. import { common } from '@/utils';
  39. import icon from '@/utils/icon';
  40. import { REQUEST_CONFIG } from '@/config';
  41. const { proxy } = getCurrentInstance() as any;
  42. const app = getApp();
  43. const iconUrl = ref(icon);
  44. const takeMedicineInfo = ref<any>({});
  45. const qrCodeImage = ref('');
  46. useOnLoad((options: any) => {
  47. let currentUser = app.globalData.currentUser;
  48. let queryBean = options.queryBean ? JSON.parse(options.queryBean) : {};
  49. takeMedicineInfo.value = queryBean;
  50. setCode(currentUser.cardNo);
  51. });
  52. const setCode = (data: any) => {
  53. qrCodeImage.value = `${REQUEST_CONFIG.BASE_URL}api/390/390/createQrCode.do?content=${data}`;
  54. };
  55. </script>
  56. <style lang="scss">
  57. .code_box {
  58. width: 690upx;
  59. height: 695upx;
  60. position: relative;
  61. margin: 30upx auto;
  62. }
  63. .drugCredentia_code {
  64. position: absolute;
  65. top: 0;
  66. left: 0;
  67. z-index: 0;
  68. width: 100%;
  69. height: 100%;
  70. }
  71. .codeBox_main {
  72. position: absolute;
  73. width: 100%;
  74. height: 100%;
  75. top: 0;
  76. left: 0;
  77. z-index: 1;
  78. justify-content: flex-start;
  79. }
  80. .title_text {
  81. font-size: 32upx;
  82. font-family: PingFang SC;
  83. font-weight: bold;
  84. color: #FFFFFF;
  85. margin-top: 15upx;
  86. }
  87. .code_con {
  88. margin: 90upx 0 65upx;
  89. width: 390upx;
  90. height: 390upx;
  91. }
  92. .qr_code {
  93. box-sizing: content-box;
  94. width: 390upx;
  95. height: 390upx;
  96. }
  97. .tips_text {
  98. font-size: 28upx;
  99. font-family: PingFang SC;
  100. font-weight: 500;
  101. color: #8A8A99;
  102. line-height: 48upx;
  103. }
  104. .time_box {
  105. background: white;
  106. padding: 0 30upx;
  107. margin: 30upx;
  108. border-radius: 24upx;
  109. }
  110. .time_box_list {
  111. height: 100upx;
  112. line-height: 110upx;
  113. }
  114. .time_box_list text:nth-child(1) {
  115. width: 30%;
  116. display: inline-block;
  117. font-size: 32upx;
  118. color: #999;
  119. }
  120. .time_box_list text:nth-child(2) {
  121. width: 70%;
  122. font-size: 32upx;
  123. color: #333;
  124. }
  125. </style>