list.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="Scanning_Result">
  3. <view class="Scanning_cont">
  4. <scroll-view scroll-y class="scrollContent">
  5. <view class="column" v-for="item in drugsBagList" :key="item.id" @click="toDetail(item.id)">
  6. <view class="head">
  7. <view class="name">{{item.packid}}</view>
  8. <view class="value">{{item.drugsState ? item.drugsState.name : ''}}</view>
  9. </view>
  10. <view class="body">
  11. <view class="bodyColumn" v-if="queryObj.showPatientInfo==1">
  12. <view class="name">姓名(床号):{{item.patientName ? item.patientName : ''}} <text v-if="item.bedNum">({{item.bedNum}})</text></view>
  13. <view class="value">住院号:{{item.residenceNo ? item.residenceNo : ''}}</view>
  14. </view>
  15. <view class="bodyColumn">
  16. <view class="name">种类数:{{item.drugsTypeCount}}</view>
  17. <view class="value">总数:{{item.drugsCount}}</view>
  18. </view>
  19. <view class="bodyColumn">
  20. <view class="name">收取人:<template v-if="item.startLog">{{item.startLog.username}}</template></view>
  21. <view class="value">收取时间:<template v-if="item.startLog">{{item.startLog.operationTime | formatDate('yyyy-MM-dd hh:mm')}}</template></view>
  22. </view>
  23. <view class="bodyColumn">
  24. <view class="name">送达人:<template v-if="item.endLog">{{item.endLog.username}}</template></view>
  25. <view class="value">送达时间:<template v-if="item.endLog">{{item.endLog.operationTime | formatDate('yyyy-MM-dd hh:mm')}}</template></view>
  26. </view>
  27. <view class="bodyColumn">
  28. <view class="name">收取交接人:<template v-if="item.startLog">{{item.startLog.handoverName}}</template></view>
  29. <view class="name">送达交接人:<template v-if="item.endLog">{{item.endLog.handoverName}}</template></view>
  30. </view>
  31. </view>
  32. </view>
  33. </scroll-view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import {
  39. get,
  40. post,
  41. SM,
  42. webHandle
  43. } from "@/http/http.js";
  44. export default {
  45. data() {
  46. return {
  47. hosId: uni.getStorageSync('userData').user.currentHospital.id,
  48. drugsBagList: [], //药包列表
  49. queryObj: {}, //路由传递过来的数据
  50. workOrder: {}, //工单信息
  51. config: {}, //配置
  52. };
  53. },
  54. methods: {
  55. // 详情
  56. toDetail(drugsBagId){
  57. uni.navigateTo({
  58. url: `/pages/newDrug/detail?drugsBagType=${this.queryObj.drugsBagType}&drugsBagId=${drugsBagId}`,
  59. });
  60. },
  61. //获取页面信息
  62. getInfo(){
  63. uni.showLoading({
  64. title: "加载中",
  65. mask: true,
  66. });
  67. post(`/transflow/extra`, {type: this.queryObj.drugsBagType, extraType: 'orderInfo', orderId: +this.queryObj.orderId}).then(res => {
  68. uni.hideLoading();
  69. if(res.state == 200){
  70. if(res.data){
  71. this.drugsBagList = res.data.drugsBagList || [];
  72. this.workOrder = res.data.workOrder || {};
  73. }
  74. }else{
  75. uni.showToast({
  76. icon: "none",
  77. title: res.msg || "接口获取数据失败!",
  78. });
  79. }
  80. })
  81. },
  82. },
  83. onLoad(options) {
  84. console.log(options, "options");
  85. this.queryObj = options;
  86. this.getInfo();
  87. // #ifdef APP-PLUS
  88. webHandle("no", "app");
  89. // #endif
  90. // #ifdef H5
  91. webHandle("no", "wx");
  92. // #endif
  93. },
  94. };
  95. </script>
  96. <style lang="less" scoped>
  97. .Scanning_Result {
  98. background: #F7F7F7;
  99. display: flex;
  100. flex-direction: column;
  101. height: 100vh;
  102. .Scanning_top {
  103. margin: 32rpx auto;
  104. .Scanning_top_icon {
  105. font-size: 30rpx;
  106. font-weight: bold;
  107. .newicon{
  108. margin: 0 32rpx;
  109. }
  110. }
  111. }
  112. .Scanning_top_tips{
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. font-size: 28rpx;
  117. margin-bottom: 32rpx;
  118. gap: 64rpx;
  119. }
  120. .Scanning_cont {
  121. flex: 1;
  122. min-height: 0;
  123. display: flex;
  124. flex-direction: column;
  125. .scrollContent{
  126. flex: 1;
  127. min-height: 0;
  128. overflow: hidden;
  129. }
  130. .column{
  131. background: #FFFFFF;
  132. font-size: 24rpx;
  133. margin-bottom: 16rpx;
  134. .head{
  135. padding: 24rpx;
  136. display: flex;
  137. justify-content: space-between;
  138. align-content: center;
  139. border-bottom: 1rpx solid #D2D2D2;
  140. font-weight: bold;
  141. }
  142. .body{
  143. padding: 24rpx;
  144. .bodyColumn{
  145. display: flex;
  146. justify-content: space-between;
  147. align-content: center;
  148. margin-top: 24rpx;
  149. &:first-of-type{
  150. margin-top: 0;
  151. }
  152. .value{
  153. text-align: left;
  154. }
  155. }
  156. }
  157. }
  158. }
  159. .foot_btn_spe {
  160. margin: 24rpx 0;
  161. display: flex;
  162. flex-direction: column;
  163. align-items: center;
  164. gap: 24rpx;
  165. font-weight: bold;
  166. .column{
  167. width: 100%;
  168. height: 78rpx;
  169. display: flex;
  170. align-items: center;
  171. justify-content: space-between;
  172. gap: 24rpx;
  173. .btn {
  174. height: 100%;
  175. flex: 1;
  176. background: linear-gradient( 90deg, #6FC073 0%, #3DB197 100%);
  177. color: #fff;
  178. border-radius: 4rpx;
  179. font-size: 30rpx;
  180. display: flex;
  181. justify-content: center;
  182. align-items: center;
  183. }
  184. }
  185. }
  186. }
  187. </style>