shortcutbuildOrders.vue 8.5 KB

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