scannedDepartmentSpecimensDetail.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <template>
  2. <scroll-view scroll-y class="pharmacyDetails">
  3. <view class="page_item footerOtherMargin">
  4. <view class="page_header" v-for="(item, index) in resultList" :key="item.bindId">
  5. <view class="page_header_item" v-if="item.modifyReason">
  6. <view class="page_header_title"> 修改原因: </view>
  7. <view class="page_header_content">
  8. {{ item.modifyReason }}
  9. </view>
  10. </view>
  11. <view class="page_header_item" v-if="item.imgs && item.imgs.length">
  12. <view class="page_header_title"> 图片列表: </view>
  13. <view class="page_header_content">
  14. <image v-for="(item, i) in item.imgs" :key="i" :src="item" @click="previewImage(index, i)" mode="widthFix"
  15. @error="close(index, i)"></image>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="page_item_wrap" v-for="spe in specimens" :key="spe.id">
  20. <view class="page_item">
  21. <view class="page_item_top">
  22. <view class="page_item_top-inner">
  23. <view class="page_item_top_L">
  24. <view class="L_text">{{ spe.scode }}<text v-if="spe.stype">({{spe.stype.name}})</text></view>
  25. </view>
  26. <view class="page_item_top_R">
  27. <text :style="{color:spe.urgent == 1?'red':'green'}">{{spe.urgent == 1 ? "急" : "普"}}</text>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="page_item_cont">
  32. <view class="page_item_cont_T">
  33. <view class="page_item_cont_title">
  34. <view> 检验项目 </view>
  35. <view class="text_big">{{ spe.specimenDesc || "无" }}</view>
  36. </view>
  37. <view class="page_item_cont_title">
  38. <view> 患者姓名 </view>
  39. <view class="text_big">{{ spe.patientName }}<text v-if="spe.bedNum">({{spe.bedNum}})</text></view>
  40. </view>
  41. <view class="page_item_cont_title">
  42. <view> 住院号 </view>
  43. <view class="text_big">{{spe.residenceNo||'无'}}</text></view>
  44. </view>
  45. <view class="page_item_cont_title">
  46. <view class="text_big">{{
  47. spe.sickRoom ? spe.sickRoom.dept : "无"
  48. }}</view>
  49. <text style="width: 4em;text-align: center;" class="icon_transport transport-arrow-right-full"></text>
  50. <view class="text_big">{{
  51. spe.checkDept ? spe.checkDept.dept : "无"
  52. }}</view>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="L"></view>
  57. <view class="R"></view>
  58. </view>
  59. <view class="L-l"></view>
  60. <view class="R-l"></view>
  61. </view>
  62. </view>
  63. <view class="foot_btn2 footerPadding">
  64. <view class="btn2" @click="goBack">返回</view>
  65. </view>
  66. </scroll-view>
  67. </template>
  68. <script>
  69. import {
  70. post,
  71. get,
  72. webHandle
  73. } from "../../http/http.js";
  74. export default {
  75. data() {
  76. return {
  77. resultList: [],
  78. imgs: [],
  79. queryObj: {}, //路由传递过来的数据
  80. specimens: [],
  81. modifyReason: '',
  82. };
  83. },
  84. methods: {
  85. previewImage(index, i) {
  86. //uniapp预览轮播图
  87. uni.previewImage({
  88. current: i, //预览图片的下标
  89. urls: this.resultList[index].imgs, //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以
  90. });
  91. },
  92. close(index, i) {
  93. this.resultList[index].imgs.splice(i, 1);
  94. },
  95. getInfo() {
  96. let postData = {
  97. deptId: this.queryObj.endDeptId,
  98. gdId: this.queryObj.workOrderId,
  99. };
  100. post(`/api/getStartDeptSpecimensNum`, postData).then(async (res) => {
  101. if (res.status == 200) {
  102. for (let i = 0; i < res.data.length; i++) {
  103. let result = await get(`/common/common/listAttachment/specimenPhotos/${res.data[i].bindId}`);
  104. if (result.status == 200) {
  105. res.data[i].imgs = result.data.map((v) => v.previewUrl);
  106. } else {
  107. res.data[i].imgs = [];
  108. }
  109. }
  110. this.resultList = res.data;
  111. }
  112. });
  113. },
  114. // 返回
  115. goBack() {
  116. uni.navigateBack();
  117. },
  118. // 获取标本信息
  119. getDetail() {
  120. let postData = {
  121. gdId: this.queryObj.workOrderId,
  122. endDeptId: this.queryObj.endDeptId,
  123. };
  124. uni.showLoading({
  125. title: "加载中",
  126. mask: true,
  127. });
  128. post("/api/endDeptReceiveSpecimens", postData).then((res) => {
  129. uni.hideLoading();
  130. if (res.status == 200) {
  131. this.specimens = res.data;
  132. } else {
  133. uni.showToast({
  134. icon: "none",
  135. title: "请求失败!",
  136. });
  137. }
  138. });
  139. },
  140. },
  141. onLoad(options) {
  142. console.log(options);
  143. this.queryObj = options;
  144. this.getDetail();
  145. this.getInfo();
  146. // #ifdef APP-PLUS
  147. webHandle("no", "app");
  148. // #endif
  149. // #ifdef H5
  150. webHandle("no", "wx");
  151. // #endif
  152. },
  153. };
  154. </script>
  155. <style lang="less" scoped>
  156. .pharmacyDetails {
  157. background-color: rgb(249, 250, 251);
  158. padding-top: 50rpx;
  159. height: 100%;
  160. box-sizing: border-box;
  161. .page_header {
  162. margin: 20rpx;
  163. padding: 16rpx;
  164. border: 2rpx solid #e5e9ed;
  165. background: #fff;
  166. border-radius: 8rpx;
  167. .page_header_item {
  168. margin-bottom: 16rpx;
  169. .page_header_title {
  170. margin-bottom: 8rpx;
  171. font-weight: bold;
  172. }
  173. .page_header_content {
  174. display: flex;
  175. image {
  176. height: 100rpx;
  177. width: 30%;
  178. margin: 0 8rpx;
  179. }
  180. }
  181. }
  182. }
  183. .pharmacyDetails_title {
  184. font-size: 46rpx;
  185. font-weight: 550;
  186. text-align: center;
  187. }
  188. .page_item_wrap {
  189. position: relative;
  190. margin-top: 32rpx;
  191. .page_item {
  192. margin-top: 16rpx;
  193. margin-bottom: 124rpx;
  194. background: #fff;
  195. border-radius: 8rpx;
  196. margin: 0 20rpx;
  197. border: 2rpx solid #e5e9ed;
  198. position: relative;
  199. overflow: hidden;
  200. padding: 0 16rpx;
  201. .L {
  202. width: 40rpx;
  203. height: 40rpx;
  204. border-radius: 50%;
  205. background: #f9fafb;
  206. position: absolute;
  207. left: -20rpx;
  208. top: 68rpx;
  209. border: 2rpx solid #e5e9ed;
  210. }
  211. .R {
  212. width: 40rpx;
  213. height: 40rpx;
  214. border-radius: 50%;
  215. background: #f9fafb;
  216. position: absolute;
  217. float: right;
  218. right: -20rpx;
  219. top: 68rpx;
  220. border: 2rpx solid #e5e9ed;
  221. }
  222. .page_item_top {
  223. height: 88rpx;
  224. border-bottom: 2rpx dashed #e5e9ed;
  225. padding: 0 16rpx;
  226. .page_item_top-inner {
  227. display: flex;
  228. justify-content: space-between;
  229. align-items: center;
  230. height: 100%;
  231. .page_item_top_L {
  232. .L_text {
  233. font-size: 32rpx;
  234. font-weight: 700;
  235. }
  236. }
  237. .page_item_top_R {
  238. font-size: 32rpx;
  239. .L_iocn {
  240. color: rgb(7, 134, 60);
  241. font-size: 36rpx;
  242. font-weight: 700;
  243. }
  244. }
  245. }
  246. }
  247. .page_item_cont {
  248. min-height: 90rpx;
  249. padding: 0 16rpx;
  250. text-align: left;
  251. position: relative;
  252. .text_big {
  253. font-size: 32rpx;
  254. font-weight: 700;
  255. margin-top: 10rpx;
  256. p {
  257. font-weight: 700;
  258. line-height: 1.5;
  259. }
  260. }
  261. .line {
  262. height: 20rpx;
  263. width: 2rpx;
  264. border-left: 2rpx solid #e5e9ed;
  265. position: absolute;
  266. top: 82rpx;
  267. left: 40rpx;
  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. align-items: center;
  279. }
  280. }
  281. .page_item_cont_B {
  282. padding-top: 28rpx;
  283. margin-bottom: 28rpx;
  284. .page_item_cont_title {
  285. font-size: 32rpx;
  286. display: flex;
  287. justify-content: space-between;
  288. align-items: center;
  289. }
  290. }
  291. .page_item_cont_C {
  292. margin-bottom: 28rpx;
  293. .page_item_cont_title_C {
  294. font-size: 32rpx;
  295. display: flex;
  296. justify-content: space-between;
  297. align-items: center;
  298. }
  299. }
  300. #infos {
  301. display: none;
  302. }
  303. }
  304. }
  305. .L-l {
  306. width: 2rpx;
  307. height: 40rpx;
  308. background: #f9fafb;
  309. position: absolute;
  310. left: 20rpx;
  311. top: 72rpx;
  312. }
  313. .R-l {
  314. width: 2rpx;
  315. height: 40rpx;
  316. background: #f9fafb;
  317. position: absolute;
  318. right: 20rpx;
  319. top: 72rpx;
  320. }
  321. }
  322. .cube-toolbar-item {
  323. width: 710rpx;
  324. height: 68rpx;
  325. line-height: 68rpx;
  326. position: fixed;
  327. left: 20rpx;
  328. bottom: 160rpx;
  329. border-radius: 8rpx;
  330. background: linear-gradient(to right, #72c172, #3bb197);
  331. font-size: 36rpx;
  332. color: #fff;
  333. text-align: center;
  334. }
  335. .btn-wrap {
  336. display: flex;
  337. justify-content: space-between;
  338. position: fixed;
  339. left: 20rpx;
  340. bottom: 160rpx;
  341. }
  342. .cube-toolbar-item1 {
  343. width: 350rpx;
  344. height: 68rpx;
  345. line-height: 68rpx;
  346. border-radius: 8rpx;
  347. margin: 0 5rpx;
  348. background: linear-gradient(to right, #72c172, #3bb197);
  349. font-size: 36rpx;
  350. color: #fff;
  351. text-align: center;
  352. }
  353. .foot_btn2 {
  354. position: fixed;
  355. bottom: 0;
  356. right: 20rpx;
  357. left: 20rpx;
  358. line-height: 66rpx;
  359. height: 100rpx;
  360. border-top: 2rpx solid #e5e9ed;
  361. background: #f9fafb;
  362. display: flex;
  363. justify-content: space-between;
  364. .btn2 {
  365. height: 66rpx;
  366. width: 100%;
  367. margin: 0 1%;
  368. background-image: linear-gradient(to right, #72c172, #3bb197);
  369. color: #fff;
  370. border-radius: 8rpx;
  371. font-size: 32rpx;
  372. margin-top: 16rpx;
  373. text-align: center;
  374. }
  375. .btn3 {
  376. height: 66rpx;
  377. width: 48%;
  378. margin: 0 1%;
  379. background-image: linear-gradient(to right, #72c172, #3bb197);
  380. color: #fff;
  381. border-radius: 8rpx;
  382. font-size: 32rpx;
  383. margin-top: 16rpx;
  384. text-align: center;
  385. }
  386. }
  387. }
  388. </style>