quiltWashingSendSelectDept.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <view class="Scanning_Result">
  3. <view class="Scanning_top">
  4. <view class="Scanning_top_icon">
  5. <view class="text1"> 科室选择 </view>
  6. </view>
  7. <view class="Scanning_top_text">
  8. 发起送回需要指定送回科室,请您点击以下科室
  9. </view>
  10. </view>
  11. <view class="Scanning_cont">
  12. <view class="Scanning_cont_list">
  13. <scroll-view scroll-y="true" class="Scanning_cont_list_scroll" v-if="true">
  14. <view class="Scanning_cont_list_item" @click="clickRow(item)" v-for="item in clothingBackDepts" :key="item.id">
  15. <view class="name">
  16. {{item.dept}}
  17. </view>
  18. </view>
  19. </scroll-view>
  20. </view>
  21. </view>
  22. <view class="foot_btn">
  23. <view class="btn" @click="goBack()"> 返回 </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import {
  29. get,
  30. post,
  31. SM,
  32. webHandle
  33. } from "../../../http/http.js";
  34. export default {
  35. data() {
  36. return {
  37. hosId: uni.getStorageSync('userData').user.currentHospital.id,
  38. queryObj: {}, //路由传递过来的数据
  39. clothingBackDepts: [],
  40. };
  41. },
  42. methods: {
  43. goBack(){
  44. uni.navigateBack();
  45. },
  46. clickRow(data){
  47. uni.navigateTo({
  48. url: `/pages/quiltWashing/quiltWashingSendHandover/quiltWashingSendHandover?endDeptName=${data.dept}&endDeptId=${data.id}`,
  49. });
  50. },
  51. getInfo(){
  52. uni.showLoading({
  53. title: "加载中",
  54. mask: true,
  55. });
  56. post("/simple/data/fetchDataList/taskTypeConfig", {
  57. "idx": 0,
  58. "sum": 1,
  59. "taskTypeConfig": {
  60. "taskTypeDTO": {
  61. "hosId": {
  62. "id": this.hosId
  63. },
  64. "ordinaryField": {
  65. "key": "ordinary_field",
  66. "value": "clothingSend"
  67. }
  68. }
  69. }
  70. }).then((result) => {
  71. uni.hideLoading();
  72. if (result.status == 200) {
  73. this.clothingBackDepts = result.list[0].clothingBackDepts || [];
  74. } else {
  75. uni.showToast({
  76. icon: "none",
  77. title: result.msg || "接口获取数据失败!",
  78. });
  79. }
  80. });
  81. },
  82. },
  83. onLoad(options) {
  84. console.log(options, "result");
  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. height: 100vh;
  99. display: flex;
  100. flex-direction: column;
  101. background-color: #fff;
  102. .Scanning_top {
  103. flex-shrink: 0;
  104. .Scanning_top_icon {
  105. padding-top: 26rpx;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. .cubeic-ok {
  110. font-size: 58rpx;
  111. color: #35b34a;
  112. }
  113. .text1 {
  114. font-size: 40rpx;
  115. font-weight: bold;
  116. }
  117. }
  118. .Scanning_top_text{
  119. text-align: center;
  120. font-size: 30rpx;
  121. font-weight: bold;
  122. padding: 8rpx 0 23rpx 0;
  123. }
  124. }
  125. .Scanning_cont {
  126. flex: 1;
  127. min-height: 0;
  128. display: flex;
  129. flex-direction: column;
  130. margin: 0 45rpx;
  131. .Scanning_cont_head{
  132. flex-shrink: 0;
  133. height: 78rpx;
  134. display: flex;
  135. border-top: 1rpx solid #EEEEEE;
  136. border-bottom: 1rpx solid #EEEEEE;
  137. .Scanning_cont_head_item{
  138. flex: 1;
  139. font-size: 32rpx;
  140. font-weight: bold;
  141. display: flex;
  142. justify-content: center;
  143. align-items: center;
  144. position: relative;
  145. &.active{
  146. color: #49B856;
  147. &::before{
  148. content: '';
  149. width: 70rpx;
  150. height: 10rpx;
  151. background-color: #49B856;
  152. position: absolute;
  153. left: 50%;
  154. bottom: 0;
  155. transform: translateX(-50%);
  156. border-radius: 6rpx;
  157. }
  158. }
  159. &::after{
  160. content: '';
  161. width: 2rpx;
  162. height: 44rpx;
  163. background-color: #D1D1D1;
  164. position: absolute;
  165. right: 0;
  166. top: 50%;
  167. transform: translateY(-50%);
  168. }
  169. &:last-of-type::after{
  170. opacity: 0;
  171. }
  172. }
  173. }
  174. .Scanning_cont_list{
  175. flex: 1;
  176. min-height: 0;
  177. display: flex;
  178. flex-direction: column;
  179. .Scanning_cont_list_scroll{
  180. flex: 1;
  181. min-height: 0;
  182. border: 1rpx solid #E9E9E9;
  183. }
  184. .Scanning_cont_list_item{
  185. height: 100rpx;
  186. display: flex;
  187. align-items: center;
  188. font-size: 30rpx;
  189. border-bottom: 2rpx solid #D3D3D3;
  190. border-top: none;
  191. background: #F3FAF7;
  192. &:last-of-type{
  193. border-bottom: 1rpx solid #E9E9E9;
  194. }
  195. &.Scanning_cont_list_head{
  196. font-weight: bold;
  197. font-size: 28rpx;
  198. border-top: 1rpx solid #272727;
  199. flex-shrink: 0;
  200. }
  201. .name,
  202. .value{
  203. padding: 0 45rpx;
  204. flex: 1;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. height: 100%;
  209. // border-right: 1rpx solid #272727;
  210. }
  211. .value {
  212. view{
  213. width: 4em;
  214. text-align: center;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. .foot_btn {
  221. margin: 57rpx 30rpx 0;
  222. flex-shrink: 0;
  223. line-height: 88rpx;
  224. display: flex;
  225. justify-content: center;
  226. .btn {
  227. height: 88rpx;
  228. flex: 1;
  229. margin-right: 1%;
  230. background-image: linear-gradient(to right, #72c172, #3bb197);
  231. color: #fff;
  232. border-radius: 8rpx;
  233. font-size: 34rpx;
  234. font-weight: bold;
  235. text-align: center;
  236. &:last-of-type{
  237. margin-right: 0;
  238. }
  239. }
  240. }
  241. }
  242. </style>