shortcutbuildOrders.vue 9.5 KB

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