specimenChecking.vue 10 KB

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