specimenDetail.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <template>
  2. <view class="specimenCheckingDetail">
  3. <view class="page_item_wrap" v-for="item in list" :key="item.id">
  4. <view class="page_item">
  5. <view class="page_item_top">
  6. <view class="page_item_top-inner">
  7. <view class="page_item_top_L">
  8. <view class="L_text">{{ item.patientName }}<text v-if="item.bedNum">({{item.bedNum}})</text></view>
  9. </view>
  10. <view class="page_item_top_R">
  11. <text>{{item.urgent == 1 ? "急" : "普"}}</text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="page_item_cont">
  16. <view class="page_item_cont_T">
  17. <view class="page_item_cont_title">
  18. <view> 检验项目 </view>
  19. <view class="text_big">{{ item.specimenDesc || "无" }}</view>
  20. </view>
  21. <view class="page_item_cont_title">
  22. <view> 标本编码(标本类型) </view>
  23. <view class="text_big">{{ item.scode || "无" }}<text v-if="item.stype">({{item.stype.name}})</text></view>
  24. </view>
  25. <view class="page_item_cont_title">
  26. <view> 住院号 </view>
  27. <view class="text_big">{{ item.residenceNo || "无" }}</view>
  28. </view>
  29. <view class="page_item_cont_title">
  30. <view> 申请科室 </view>
  31. <view class="text_big">{{
  32. item.sickRoom ? item.sickRoom.dept : "无"
  33. }}</view>
  34. </view>
  35. <view class="page_item_cont_title">
  36. <view> 目标科室 </view>
  37. <view class="text_big">{{
  38. item.checkDept ? item.checkDept.dept : "-"
  39. }}</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="L"></view>
  44. <view class="R"></view>
  45. </view>
  46. <view class="L-l"></view>
  47. <view class="R-l"></view>
  48. </view>
  49. <view class="foot_btn2">
  50. <view class="btn2" @click="goto()">返回</view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import {
  56. get,
  57. post,
  58. webHandle
  59. } from "../../http/http.js";
  60. export default {
  61. data() {
  62. return {
  63. workOrderId: 0,
  64. associationTypeValue: '',
  65. list: [],
  66. };
  67. },
  68. methods: {
  69. getList() {
  70. uni.showLoading({
  71. mask: true,
  72. title: "加载中",
  73. });
  74. let postData = {
  75. "idx": 0,
  76. "sum": 999,
  77. "specimen": {
  78. "gdid": this.workOrderId,
  79. "hosId": uni.getStorageSync('userData').user.currentHospital.id
  80. }
  81. };
  82. post(`/simple/data/fetchDataList/specimen`, postData).then((res) => {
  83. uni.hideLoading();
  84. uni.stopPullDownRefresh();
  85. if (res.status == 200) {
  86. this.list = res.list;
  87. } else {
  88. uni.showToast({
  89. icon: "none",
  90. title: "请求失败!",
  91. });
  92. }
  93. });
  94. },
  95. // 返回
  96. goto() {
  97. uni.navigateBack();
  98. },
  99. },
  100. onLoad(options) {
  101. console.log(options, "标本详情");
  102. this.workOrderId = options.workOrderId;
  103. this.associationTypeValue = options.associationTypeValue;
  104. this.getList();
  105. // #ifdef APP-PLUS
  106. webHandle("no", "app");
  107. // #endif
  108. // #ifdef H5
  109. webHandle("no", "wx");
  110. // #endif
  111. },
  112. onPullDownRefresh() {
  113. this.getList();
  114. },
  115. };
  116. </script>
  117. <style lang="less" scoped>
  118. .specimenCheckingDetail {
  119. padding-bottom: 100rpx;
  120. .page_header {
  121. margin: 20rpx;
  122. padding: 16rpx;
  123. border: 2rpx solid #e5e9ed;
  124. background: #fff;
  125. border-radius: 8rpx;
  126. .page_header_item {
  127. margin-bottom: 16rpx;
  128. .page_header_title {
  129. margin-bottom: 8rpx;
  130. font-weight: bold;
  131. }
  132. .page_header_content {
  133. display: flex;
  134. image {
  135. height: 100rpx;
  136. width: 30%;
  137. margin: 0 8rpx;
  138. }
  139. }
  140. }
  141. }
  142. .page_item_wrap {
  143. width: 100%;
  144. height: auto;
  145. box-sizing: border-box;
  146. position: relative;
  147. margin-bottom: 16rpx;
  148. .page_item {
  149. margin-top: 16rpx;
  150. margin-bottom: 124rpx;
  151. background: #fff;
  152. border-radius: 8rpx;
  153. margin: 0 20rpx;
  154. border: 2rpx solid #e5e9ed;
  155. position: relative;
  156. overflow: hidden;
  157. padding: 0 16rpx;
  158. .L {
  159. width: 40rpx;
  160. height: 40rpx;
  161. border-radius: 50%;
  162. background: #f9fafb;
  163. position: absolute;
  164. left: -20rpx;
  165. top: 68rpx;
  166. border: 2rpx solid #e5e9ed;
  167. }
  168. .R {
  169. width: 40rpx;
  170. height: 40rpx;
  171. border-radius: 50%;
  172. background: #f9fafb;
  173. position: absolute;
  174. float: right;
  175. right: -20rpx;
  176. top: 68rpx;
  177. border: 2rpx solid #e5e9ed;
  178. }
  179. .starting {
  180. width: 50rpx;
  181. height: 50rpx;
  182. color: #fff;
  183. background: #49b856;
  184. display: inline-block;
  185. border-radius: 50%;
  186. text-align: center;
  187. line-height: 46rpx;
  188. font-size: 32rpx;
  189. margin-right: 6rpx;
  190. }
  191. .End {
  192. width: 50rpx;
  193. height: 50rpx;
  194. color: #fff;
  195. background: #39b199;
  196. display: inline-block;
  197. border-radius: 50%;
  198. text-align: center;
  199. line-height: 46rpx;
  200. font-size: 32rpx;
  201. margin-right: 6rpx;
  202. }
  203. .page_item_top {
  204. height: 88rpx;
  205. border-bottom: 2rpx dashed #e5e9ed;
  206. padding: 0 16rpx;
  207. .page_item_top-inner {
  208. display: flex;
  209. justify-content: space-between;
  210. align-items: center;
  211. height: 100%;
  212. .page_item_top_L {
  213. .emergencys {
  214. background: #ff3b53 !important;
  215. width: 124rpx !important;
  216. }
  217. .emergency {
  218. background: #ff3b53 !important;
  219. }
  220. .emergency1 {
  221. background: #49b856 !important;
  222. }
  223. .page_item_cont_start {
  224. text-align: center;
  225. height: 44rpx;
  226. width: 104rpx;
  227. line-height: 44rpx;
  228. border-radius: 8rpx;
  229. background: #49b856;
  230. color: #fff;
  231. display: inline-block;
  232. }
  233. .L_time {
  234. color: #6cc076;
  235. font-size: 32rpx;
  236. }
  237. .L_text {
  238. font-size: 32rpx;
  239. font-weight: 700;
  240. }
  241. }
  242. .page_item_top_R {
  243. font-size: 32rpx;
  244. .back {
  245. background-color: #49b856;
  246. }
  247. .L_iocn {
  248. color: rgb(7, 134, 60);
  249. font-size: 36rpx;
  250. font-weight: 700;
  251. }
  252. }
  253. }
  254. }
  255. .page_item_cont {
  256. min-height: 90rpx;
  257. padding: 0 16rpx;
  258. text-align: left;
  259. position: relative;
  260. .text_big {
  261. font-size: 32rpx;
  262. font-weight: 700;
  263. margin-top: 10rpx;
  264. p {
  265. font-weight: 700;
  266. line-height: 1.5;
  267. }
  268. }
  269. .page_item_cont_T {
  270. padding-top: 28rpx;
  271. padding-bottom: 28rpx;
  272. font-size: 28rpx;
  273. .page_item_cont_title {
  274. height: 100%;
  275. font-size: 32rpx;
  276. display: flex;
  277. justify-content: space-between;
  278. }
  279. }
  280. .page_item_cont_B {
  281. padding-top: 28rpx;
  282. margin-bottom: 28rpx;
  283. .page_item_cont_title {
  284. font-size: 32rpx;
  285. display: flex;
  286. justify-content: space-between;
  287. }
  288. .page_item_cont_title1 {
  289. height: 60rpx;
  290. line-height: 60rpx;
  291. font-size: 32rpx;
  292. padding-left: 64rpx;
  293. }
  294. }
  295. }
  296. .page_item_foot {
  297. border-top: 2rpx dashed #e5e9ed;
  298. border-bottom: 2rpx dashed #e5e9ed;
  299. padding: 28rpx 16rpx;
  300. text-align: left;
  301. .page_item_foot_text {
  302. font-size: 32rpx;
  303. margin-bottom: 20rpx;
  304. .text1 {
  305. color: rgb(102, 102, 102);
  306. }
  307. .text2 {
  308. float: right;
  309. font-weight: 700;
  310. }
  311. }
  312. }
  313. #infos {
  314. display: none;
  315. }
  316. .page_item_infos {
  317. padding-bottom: 20rpx;
  318. border-bottom: 2rpx dashed #e5e9ed;
  319. .page_item_info2 {
  320. text-align: left;
  321. line-height: 60rpx;
  322. font-size: 32rpx;
  323. padding-left: 16rpx;
  324. .page_item_foot_text {
  325. font-size: 32rpx;
  326. margin-bottom: 20rpx;
  327. .text1 {
  328. color: rgb(102, 102, 102);
  329. }
  330. .text2 {
  331. float: right;
  332. font-weight: 700;
  333. }
  334. }
  335. }
  336. }
  337. }
  338. .L-l {
  339. width: 2rpx;
  340. height: 40rpx;
  341. background: #f9fafb;
  342. position: absolute;
  343. left: 20rpx;
  344. top: 72rpx;
  345. }
  346. .R-l {
  347. width: 2rpx;
  348. height: 40rpx;
  349. background: #f9fafb;
  350. position: absolute;
  351. right: 20rpx;
  352. top: 72rpx;
  353. }
  354. }
  355. .foot_btn2 {
  356. position: fixed;
  357. bottom: 0;
  358. width: 100vw;
  359. padding: 0 20rpx;
  360. box-sizing: border-box;
  361. line-height: 66rpx;
  362. height: 100rpx;
  363. border-top: 2rpx solid #e5e9ed;
  364. background: #f9fafb;
  365. text-align: center;
  366. display: flex;
  367. justify-content: center;
  368. align-items: center;
  369. .btn2 {
  370. height: 66rpx;
  371. flex: 1;
  372. margin: 16rpx 16rpx 0;
  373. background-image: linear-gradient(to right, #72c172, #3bb197);
  374. color: #fff;
  375. border-radius: 8rpx;
  376. font-size: 32rpx;
  377. }
  378. }
  379. }
  380. </style>