specimenDetail.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. <template>
  2. <view class="specimenCheckingDetail">
  3. <view class="page_tab">
  4. <view class="page_tab_bar active">
  5. <picker class="more_picker" @change="execFilter($event)" :value="index" :range="array" range-key="name">
  6. <view class="more_picker_text">{{ array[index].name }}<text class="tab_num">( {{ total }} )</text></view>
  7. <view class="more"></view>
  8. </picker>
  9. </view>
  10. </view>
  11. <view class="zwsj" v-if="list.length == 0">
  12. <image class="zwsj-img" mode="widthFix" src="../../static/img/zanwushuju.png"></image>
  13. <view class="zwsj-txt">暂无数据</view>
  14. </view>
  15. <view class="page_item_wrap" v-for="item in list" :key="item.id">
  16. <view class="page_item">
  17. <view class="page_item_top">
  18. <view class="page_item_top-inner">
  19. <view class="page_item_top_L">
  20. <view class="L_text">{{ item.scode }}<text v-if="item.stype">({{item.stype.name}})</text></view>
  21. </view>
  22. <view class="page_item_top_R">
  23. <text :style="{color:item.urgent == 1?'red':'green'}">{{item.urgent == 1 ? "急" : "普"}}</text>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="page_item_cont">
  28. <view class="page_item_cont_T">
  29. <view class="page_item_cont_title">
  30. <view> 检验项目 </view>
  31. <view class="text_big">{{ item.specimenDesc || "无" }}</view>
  32. </view>
  33. <view class="page_item_cont_title">
  34. <view> 患者姓名 </view>
  35. <view class="text_big">{{ item.patientName }}<text v-if="item.bedNum">({{item.bedNum}})</text></view>
  36. </view>
  37. <view class="page_item_cont_title">
  38. <view> 住院号 </view>
  39. <view class="text_big">{{item.residenceNo||'无'}}</text></view>
  40. </view>
  41. <view class="page_item_cont_title">
  42. <view> 收取人 </view>
  43. <view class="text_big">{{item.receiverName||'无'}}</text></view>
  44. </view>
  45. <view class="page_item_cont_title">
  46. <view> 收取时间 </view>
  47. <view class="text_big">{{item.arriveTime||'无'}}</text></view>
  48. </view>
  49. <view class="page_item_cont_title">
  50. <view class="text_big">{{
  51. item.sickRoom ? item.sickRoom.dept : "无"
  52. }}</view>
  53. <text style="width: 4em;text-align: center;" class="icon_transport transport-arrow-right-full"></text>
  54. <view class="text_big">{{
  55. item.checkDept ? item.checkDept.dept : "无"
  56. }}</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="L"></view>
  61. <view class="R"></view>
  62. </view>
  63. <view class="L-l"></view>
  64. <view class="R-l"></view>
  65. </view>
  66. <view class="foot_btn2">
  67. <view class="btn2" @click="goto()">返回</view>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. import {
  73. get,
  74. post,
  75. webHandle
  76. } from "../../http/http.js";
  77. export default {
  78. data() {
  79. return {
  80. index: 0,
  81. arrayKey: 0,
  82. total: 0,
  83. array: [
  84. { id: 0, name: '全部'}
  85. ],
  86. idx: 0,
  87. workOrderId: 0,
  88. associationTypeValue: '',
  89. list: [],
  90. };
  91. },
  92. methods: {
  93. // 筛选
  94. execFilter({
  95. detail: {
  96. value
  97. }
  98. }) {
  99. this.index = value;
  100. this.arrayKey = this.array[value].id;
  101. this.getList();
  102. },
  103. // 获取标本类型
  104. getSpecimenType(){
  105. let array = [{ id: 0, name: '全部'}];
  106. post(`/common/common/getDictionary`, {"type":"list","key":"specimen_type"}).then((res) => {
  107. this.array = array.concat(res) || array;
  108. });
  109. },
  110. // 获取标本列表
  111. getList(isAccumulate = false) {
  112. uni.showLoading({
  113. mask: true,
  114. title: "加载中",
  115. });
  116. let postData = {
  117. "idx": isAccumulate ? ++this.idx : 0,
  118. "sum": 20,
  119. "specimen": {
  120. "gdid": this.workOrderId,
  121. "hosId": uni.getStorageSync('userData').user.currentHospital.id,
  122. "stype": this.array[this.index].id ? { id: this.array[this.index].id } : undefined,
  123. "orderBy": 'arrive_time desc',
  124. }
  125. };
  126. post(`/simple/data/fetchDataList/specimen`, postData).then((res) => {
  127. uni.hideLoading();
  128. uni.stopPullDownRefresh();
  129. if (res.status == 200) {
  130. if(isAccumulate){
  131. this.list = this.list.concat(res.list);
  132. if(!res.list.length){
  133. uni.showToast({
  134. icon: 'none',
  135. title: '没有更多数据了',
  136. })
  137. }
  138. }else{
  139. this.list = res.list;
  140. }
  141. this.total = res.totalNum;
  142. } else {
  143. uni.showToast({
  144. icon: "none",
  145. title: res.msg || "接口获取数据失败!",
  146. });
  147. }
  148. });
  149. },
  150. // 返回
  151. goto() {
  152. uni.navigateBack();
  153. },
  154. },
  155. onLoad(options) {
  156. console.log(options, "标本详情");
  157. this.workOrderId = options.workOrderId;
  158. this.associationTypeValue = options.associationTypeValue;
  159. this.getList();
  160. this.getSpecimenType();
  161. // #ifdef APP-PLUS
  162. webHandle("no", "app");
  163. // #endif
  164. // #ifdef H5
  165. webHandle("no", "wx");
  166. // #endif
  167. },
  168. onPullDownRefresh() {
  169. this.getList();
  170. },
  171. // 上拉加载
  172. onReachBottom(){
  173. console.log('到底了');
  174. this.getList(true);
  175. }
  176. };
  177. </script>
  178. <style lang="less" scoped>
  179. .specimenCheckingDetail {
  180. padding-top: 96rpx;
  181. padding-bottom: 100rpx;
  182. .page_tab {
  183. width: 100%;
  184. height: 96rpx;
  185. display: flex;
  186. position: fixed;
  187. left: 0;
  188. top: 0;
  189. z-index: 999;
  190. .more {
  191. position: absolute;
  192. right: 20rpx;
  193. width: 40rpx;
  194. height: 4rpx;
  195. border-top: 2px solid #49b856;
  196. border-bottom: 2px solid #49b856;
  197. background-color: #49b856;
  198. padding: 5px 0;
  199. background-clip: content-box;
  200. z-index: 9999;
  201. top: 50%;
  202. transform: translateY(-50%);
  203. }
  204. .more_picker {
  205. position: absolute;
  206. right: 0;
  207. width: 100%;
  208. height: 100%;
  209. z-index: 9999;
  210. .more_picker_text{
  211. height: 100%;
  212. display: flex;
  213. justify-content: center;
  214. align-items: center;
  215. }
  216. }
  217. .page_tab_bar {
  218. flex: 1;
  219. font-size: 36rpx;
  220. background: #fff;
  221. display: flex;
  222. justify-content: center;
  223. align-items: center;
  224. position: relative;
  225. &:after {
  226. content: "";
  227. position: absolute;
  228. left: 0;
  229. bottom: 0;
  230. height: 2rpx;
  231. width: 100%;
  232. background-color: transparent;
  233. }
  234. .tab_num {
  235. color: #ff3b53;
  236. margin-left: 8rpx;
  237. }
  238. &.active {
  239. color: #49b856;
  240. &:after {
  241. background-color: #49b856;
  242. }
  243. }
  244. }
  245. }
  246. .page_header {
  247. margin: 20rpx;
  248. padding: 16rpx;
  249. border: 2rpx solid #e5e9ed;
  250. background: #fff;
  251. border-radius: 8rpx;
  252. .page_header_item {
  253. margin-bottom: 16rpx;
  254. .page_header_title {
  255. margin-bottom: 8rpx;
  256. font-weight: bold;
  257. }
  258. .page_header_content {
  259. display: flex;
  260. image {
  261. height: 100rpx;
  262. width: 30%;
  263. margin: 0 8rpx;
  264. }
  265. }
  266. }
  267. }
  268. .zwsj {
  269. position: absolute;
  270. left: 0;
  271. top: 0;
  272. right: 0;
  273. bottom: 0;
  274. display: flex;
  275. justify-content: center;
  276. align-items: center;
  277. flex-direction: column;
  278. .zwsj-img {
  279. width: 560rpx;
  280. }
  281. .zwsj-txt {
  282. font-size: 36rpx;
  283. font-weight: 700;
  284. margin-top: 20rpx;
  285. text-align: center;
  286. }
  287. }
  288. .page_item_wrap {
  289. width: 100%;
  290. height: auto;
  291. box-sizing: border-box;
  292. position: relative;
  293. margin-bottom: 16rpx;
  294. .page_item {
  295. margin-top: 16rpx;
  296. margin-bottom: 124rpx;
  297. background: #fff;
  298. border-radius: 8rpx;
  299. margin: 0 20rpx;
  300. border: 2rpx solid #e5e9ed;
  301. position: relative;
  302. overflow: hidden;
  303. padding: 0 16rpx;
  304. .L {
  305. width: 40rpx;
  306. height: 40rpx;
  307. border-radius: 50%;
  308. background: #f9fafb;
  309. position: absolute;
  310. left: -20rpx;
  311. top: 68rpx;
  312. border: 2rpx solid #e5e9ed;
  313. }
  314. .R {
  315. width: 40rpx;
  316. height: 40rpx;
  317. border-radius: 50%;
  318. background: #f9fafb;
  319. position: absolute;
  320. float: right;
  321. right: -20rpx;
  322. top: 68rpx;
  323. border: 2rpx solid #e5e9ed;
  324. }
  325. .starting {
  326. width: 50rpx;
  327. height: 50rpx;
  328. color: #fff;
  329. background: #49b856;
  330. display: inline-block;
  331. border-radius: 50%;
  332. text-align: center;
  333. line-height: 46rpx;
  334. font-size: 32rpx;
  335. margin-right: 6rpx;
  336. }
  337. .End {
  338. width: 50rpx;
  339. height: 50rpx;
  340. color: #fff;
  341. background: #39b199;
  342. display: inline-block;
  343. border-radius: 50%;
  344. text-align: center;
  345. line-height: 46rpx;
  346. font-size: 32rpx;
  347. margin-right: 6rpx;
  348. }
  349. .page_item_top {
  350. height: 88rpx;
  351. border-bottom: 2rpx dashed #e5e9ed;
  352. padding: 0 16rpx;
  353. .page_item_top-inner {
  354. display: flex;
  355. justify-content: space-between;
  356. align-items: center;
  357. height: 100%;
  358. .page_item_top_L {
  359. .emergencys {
  360. background: #ff3b53 !important;
  361. width: 124rpx !important;
  362. }
  363. .emergency {
  364. background: #ff3b53 !important;
  365. }
  366. .emergency1 {
  367. background: #49b856 !important;
  368. }
  369. .page_item_cont_start {
  370. text-align: center;
  371. height: 44rpx;
  372. width: 104rpx;
  373. line-height: 44rpx;
  374. border-radius: 8rpx;
  375. background: #49b856;
  376. color: #fff;
  377. display: inline-block;
  378. }
  379. .L_time {
  380. color: #6cc076;
  381. font-size: 32rpx;
  382. }
  383. .L_text {
  384. font-size: 32rpx;
  385. font-weight: 700;
  386. }
  387. }
  388. .page_item_top_R {
  389. font-size: 32rpx;
  390. .back {
  391. background-color: #49b856;
  392. }
  393. .L_iocn {
  394. color: rgb(7, 134, 60);
  395. font-size: 36rpx;
  396. font-weight: 700;
  397. }
  398. }
  399. }
  400. }
  401. .page_item_cont {
  402. min-height: 90rpx;
  403. padding: 0 16rpx;
  404. text-align: left;
  405. position: relative;
  406. .text_big {
  407. font-size: 32rpx;
  408. font-weight: 700;
  409. margin-top: 10rpx;
  410. p {
  411. font-weight: 700;
  412. line-height: 1.5;
  413. }
  414. }
  415. .page_item_cont_T {
  416. padding-top: 28rpx;
  417. padding-bottom: 28rpx;
  418. font-size: 28rpx;
  419. .page_item_cont_title {
  420. height: 100%;
  421. font-size: 32rpx;
  422. display: flex;
  423. justify-content: space-between;
  424. align-items: center;
  425. }
  426. }
  427. .page_item_cont_B {
  428. padding-top: 28rpx;
  429. margin-bottom: 28rpx;
  430. .page_item_cont_title {
  431. font-size: 32rpx;
  432. display: flex;
  433. justify-content: space-between;
  434. }
  435. .page_item_cont_title1 {
  436. height: 60rpx;
  437. line-height: 60rpx;
  438. font-size: 32rpx;
  439. padding-left: 64rpx;
  440. }
  441. }
  442. }
  443. .page_item_foot {
  444. border-top: 2rpx dashed #e5e9ed;
  445. border-bottom: 2rpx dashed #e5e9ed;
  446. padding: 28rpx 16rpx;
  447. text-align: left;
  448. .page_item_foot_text {
  449. font-size: 32rpx;
  450. margin-bottom: 20rpx;
  451. .text1 {
  452. color: rgb(102, 102, 102);
  453. }
  454. .text2 {
  455. float: right;
  456. font-weight: 700;
  457. }
  458. }
  459. }
  460. #infos {
  461. display: none;
  462. }
  463. .page_item_infos {
  464. padding-bottom: 20rpx;
  465. border-bottom: 2rpx dashed #e5e9ed;
  466. .page_item_info2 {
  467. text-align: left;
  468. line-height: 60rpx;
  469. font-size: 32rpx;
  470. padding-left: 16rpx;
  471. .page_item_foot_text {
  472. font-size: 32rpx;
  473. margin-bottom: 20rpx;
  474. .text1 {
  475. color: rgb(102, 102, 102);
  476. }
  477. .text2 {
  478. float: right;
  479. font-weight: 700;
  480. }
  481. }
  482. }
  483. }
  484. }
  485. .L-l {
  486. width: 2rpx;
  487. height: 40rpx;
  488. background: #f9fafb;
  489. position: absolute;
  490. left: 20rpx;
  491. top: 72rpx;
  492. }
  493. .R-l {
  494. width: 2rpx;
  495. height: 40rpx;
  496. background: #f9fafb;
  497. position: absolute;
  498. right: 20rpx;
  499. top: 72rpx;
  500. }
  501. }
  502. .foot_btn2 {
  503. position: fixed;
  504. bottom: 0;
  505. width: 100vw;
  506. padding: 0 20rpx;
  507. box-sizing: border-box;
  508. line-height: 66rpx;
  509. height: 100rpx;
  510. border-top: 2rpx solid #e5e9ed;
  511. background: #f9fafb;
  512. text-align: center;
  513. display: flex;
  514. justify-content: center;
  515. align-items: center;
  516. .btn2 {
  517. height: 66rpx;
  518. flex: 1;
  519. margin: 16rpx 16rpx 0;
  520. background-image: linear-gradient(to right, #72c172, #3bb197);
  521. color: #fff;
  522. border-radius: 8rpx;
  523. font-size: 32rpx;
  524. }
  525. }
  526. }
  527. </style>