specimenOrderComplete.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view class="Scanning_Result">
  3. <view class="Scanning_top">
  4. <view class="Scanning_top_icon">
  5. <text class="cubeic-ok newicon newicon-duigou"></text>
  6. </view>
  7. <view class="Scanning_top_text">
  8. <view class="text1"> 交接成功 </view>
  9. </view>
  10. </view>
  11. <view class="Scanning_cont">
  12. <view>您已到达{{queryObj.deptName}},请核对以下数量</view>
  13. <view class="table_head">
  14. <view>科室名称</view>
  15. <view>标本数量</view>
  16. <view>是否签到</view>
  17. </view>
  18. <view class="table_bodys">
  19. <view class="table_body" v-for="(item, index) in dataList" :key="index">
  20. <view>{{item.dept}}</view>
  21. <view>{{item.complete}}/{{item.all}}</view>
  22. <view :class="item.all != item.complete ? 'red' : 'green'">{{item.all == item.complete ? '是' : '否'}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="foot_btn_spe">
  27. <view class="btn3" @click="goIndex()">返回</view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import {
  33. get,
  34. post,
  35. SM,
  36. webHandle
  37. } from "@/http/http.js";
  38. export default {
  39. data() {
  40. return {
  41. orderIds: '',
  42. bloodIds: '',
  43. hosId: uni.getStorageSync('userData').user.currentHospital.id,
  44. dataList: [],
  45. queryObj: {}, //路由传递过来的数据
  46. };
  47. },
  48. methods: {
  49. // 返回
  50. goIndex() {
  51. uni.navigateTo({
  52. url: `/pages/receiptpage/receiptpage`
  53. })
  54. },
  55. //获取页面信息
  56. getInfo(){
  57. uni.showLoading({
  58. title: "加载中",
  59. mask: true,
  60. });
  61. post('/workerOrder/ordersSpeSignDeptInfo', {
  62. "orderIds": JSON.parse(this.queryObj.ids).toString(),
  63. }).then(res => {
  64. uni.hideLoading();
  65. if(res.state == 200){
  66. this.dataList = res.data || [];
  67. }else{
  68. uni.showToast({
  69. icon: "none",
  70. title: res.msg || "接口获取数据失败!",
  71. });
  72. }
  73. })
  74. },
  75. },
  76. onLoad(options) {
  77. console.log(options, "result");
  78. this.queryObj = options;
  79. this.getInfo();
  80. // #ifdef APP-PLUS
  81. webHandle("no", "app");
  82. // #endif
  83. // #ifdef H5
  84. webHandle("no", "wx");
  85. // #endif
  86. },
  87. // 监听自定义事件并进行页面刷新操作
  88. onShow() {
  89.     uni.$on('refresh', (data) => {
  90.         if (data.refresh) {
  91.             // 刷新操作
  92. this.getInfo();
  93.         }
  94.     });
  95. },
  96. onUnload() {
  97. uni.$off('refresh'); // 需要手动解绑自定义事件
  98. }
  99. };
  100. </script>
  101. <style lang="less" scoped>
  102. .green{
  103. color: #35b34a !important;
  104. }
  105. .Scanning_Result {
  106. padding: 0 20rpx;
  107. display: flex;
  108. flex-direction: column;
  109. height: 100vh;
  110. .Scanning_top {
  111. .Scanning_top_icon {
  112. width: 140rpx;
  113. height: 140rpx;
  114. margin: 50rpx auto 40rpx;
  115. border-radius: 50%;
  116. .speNum{
  117. text-align: center;
  118. font-size: 140rpx;
  119. }
  120. .cubeic-ok {
  121. font-size: 140rpx;
  122. color: #35b34a;
  123. }
  124. .cubeic-close {
  125. font-size: 140rpx;
  126. color: #ff3b53;
  127. }
  128. }
  129. .Scanning_top_text {
  130. .text1 {
  131. font-size: 48rpx;
  132. text-align: center;
  133. }
  134. .success_tips {
  135. color: red;
  136. font-size: 30rpx;
  137. }
  138. }
  139. }
  140. .Scanning_cont {
  141. flex: 1;
  142. text-align: center;
  143. display: flex;
  144. flex-direction: column;
  145. .table_bodys{
  146. overflow-y: auto;
  147. flex: 1;
  148. }
  149. .table_head{
  150. display: flex;
  151. margin-top: 50rpx;
  152. .ml16{
  153. margin-left: 16rpx;
  154. }
  155. view {
  156. height: 110rpx;
  157. line-height: 1;
  158. flex: 1;
  159. font-weight: bold;
  160. color: #000;
  161. font-size: 38rpx;
  162. display: flex;
  163. justify-content: center;
  164. align-items: center;
  165. }
  166. }
  167. .table_body{
  168. // background: #F3FAF7;
  169. border-bottom: 1px solid #E9E9E9;
  170. display: flex;
  171. padding: 30rpx 20rpx;
  172. view {
  173. line-height: 1;
  174. flex: 1;
  175. color: #555;
  176. font-size: 28rpx;
  177. display: flex;
  178. justify-content: center;
  179. align-items: center;
  180. word-break: break-all;
  181. }
  182. }
  183. }
  184. .foot_btn_spe {
  185. line-height: 64rpx;
  186. height: 64rpx;
  187. margin-bottom: 40rpx;
  188. text-align: center;
  189. display: flex;
  190. justify-content: space-between;
  191. view {
  192. height: 64rpx;
  193. flex: 1;
  194. margin: 0 1%;
  195. background-image: linear-gradient(to right, #72c172, #3bb197);
  196. color: #fff;
  197. border-radius: 8rpx;
  198. font-size: 26rpx;
  199. }
  200. }
  201. }
  202. </style>