scanning_result_seimin.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="Scanning_Result_seimin">
  3. <view class="Scanning_top" v-if="queryObj.status == 200">
  4. <view class="Scanning_top_icon">
  5. <text class="cubeic-ok icon_transport transport-duigou"></text>
  6. </view>
  7. <view class="Scanning_top_text">
  8. <view class="text1"> 操作成功 </view>
  9. </view>
  10. </view>
  11. <view class="Scanning_top" v-if="queryObj.status != 200">
  12. <view class="Scanning_top_icon">
  13. <text class="cubeic-close icon_transport transport-shibai"></text>
  14. </view>
  15. <view class="Scanning_top_text">
  16. <view class="text1"> 操作失败 </view>
  17. </view>
  18. </view>
  19. <view class="Scanning_cont" v-if="queryObj.status == 200">
  20. <view> 药包编码 : #{{ queryObj.packid }} </view>
  21. <view v-if="queryObj.account"> 交接人账号 : {{ queryObj.account }} </view>
  22. <view v-if="queryObj.accountName">
  23. 交接人姓名 : {{ queryObj.accountName }}
  24. </view>
  25. <view> 所属科室 : {{ queryObj.targetDept || "-" }} </view>
  26. </view>
  27. <view class="Scanning_cont" v-if="queryObj.status != 200">
  28. <view class="Scanning_cont_center">
  29. {{ queryObj.msg }}
  30. </view>
  31. </view>
  32. <view class="foot_btn">
  33. <view class="btn3" @click="showAlert()"> 知道了 </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import { webHandle } from "../../http/http.js";
  39. export default {
  40. data() {
  41. return {
  42. queryObj: {},
  43. };
  44. },
  45. methods: {
  46. // 知道了
  47. showAlert() {
  48. uni.navigateTo({
  49. url: "../receiptpage/receiptpage",
  50. });
  51. },
  52. },
  53. onLoad(options) {
  54. console.log(options, "result");
  55. this.queryObj = JSON.parse(options.info);
  56. // #ifdef APP-PLUS
  57. webHandle("no", "app");
  58. // #endif
  59. // #ifdef H5
  60. webHandle("no", "wx");
  61. // #endif
  62. },
  63. };
  64. </script>
  65. <style lang="less">
  66. .Scanning_Result_seimin {
  67. padding: 0 20rpx;
  68. .Scanning_top {
  69. .Scanning_top_icon {
  70. width: 140rpx;
  71. height: 140rpx;
  72. margin: 0 auto;
  73. margin-top: 116rpx;
  74. border-radius: 50%;
  75. line-height: 140rpx;
  76. .cubeic-ok {
  77. font-size: 140rpx;
  78. color: #35b34a;
  79. }
  80. .cubeic-close {
  81. font-size: 140rpx;
  82. color: #ff3b53;
  83. }
  84. }
  85. .Scanning_top_text {
  86. .text1 {
  87. margin-top: 40rpx;
  88. font-size: 48rpx;
  89. text-align: center;
  90. }
  91. .success_tips {
  92. color: red;
  93. font-size: 30rpx;
  94. }
  95. }
  96. }
  97. .Scanning_cont {
  98. font-size: 32rpx;
  99. text-align: center;
  100. view {
  101. margin-bottom: 16rpx;
  102. }
  103. .Scanning_cont_center {
  104. text-align: center;
  105. }
  106. .text {
  107. margin-top: 24rpx;
  108. color: #35b34a;
  109. }
  110. .text1 {
  111. margin-top: 24rpx;
  112. color: #ff3b53;
  113. }
  114. }
  115. .foot_btn {
  116. line-height: 88rpx;
  117. height: 100rpx;
  118. margin-top: 40rpx;
  119. display: flex;
  120. justify-content: center;
  121. .btn1,
  122. .btn2,
  123. .btn3 {
  124. height: 88rpx;
  125. flex: 1;
  126. margin: 0 1%;
  127. background-image: linear-gradient(to right, #72c172, #3bb197);
  128. color: #fff;
  129. border-radius: 8rpx;
  130. font-size: 32rpx;
  131. margin-top: 16rpx;
  132. text-align: center;
  133. }
  134. }
  135. }
  136. </style>