deliveryDetails.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. <template>
  2. <view >
  3. <u-navbar title="出库单详情"></u-navbar>
  4. <!-- 出库单状态 -->
  5. <view class="container">
  6. <view class="head">
  7. <view class="photo">
  8. <img src="@/assets/img/photoCopy 3@1x.png" alt="">
  9. </view>
  10. <view class="name">
  11. {{info.createByName}}
  12. </view>
  13. <view class="submit">
  14. 提交了<text>出库申请</text>
  15. </view>
  16. <view class="state">
  17. {{recordStatus(info.status)}}
  18. </view>
  19. </view>
  20. <!-- 出库单详情 -->
  21. <view class="details">
  22. <view class="item">
  23. <view class="name">
  24. 所属项目
  25. </view>
  26. <view class="value">
  27. {{info.projectName}}
  28. </view>
  29. </view>
  30. <view class="item">
  31. <view class="name">
  32. 需求时间
  33. </view>
  34. <view class="value">
  35. {{info.startTime}}
  36. </view>
  37. </view>
  38. <view class="item">
  39. <view class="name">
  40. 使用周期至
  41. </view>
  42. <view class="value">
  43. {{info.endTime}}
  44. </view>
  45. </view>
  46. <view class="item">
  47. <view class="name">
  48. 申请时间
  49. </view>
  50. <view class="value">
  51. {{info.createTime}}
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 出库设备清单 -->
  56. <view class="list">
  57. <view class="list-head">
  58. <view class="title">
  59. 出库设备清单
  60. </view>
  61. <view class="amount">
  62. 全部 <text>18</text> 件设备
  63. <u-icon name="arrow-right"></u-icon>
  64. </view>
  65. </view>
  66. <!-- 清单信息 -->
  67. <view class="list-infos" v-for="item in 2">
  68. <view class="infos-head">
  69. <view class="name">
  70. 接地线 220kV 无杆
  71. </view>
  72. <view class="state">
  73. 预出库 <text>2</text>
  74. </view>
  75. </view>
  76. <view class="infos">
  77. <view class="infos-1">
  78. <view class="infos-item">
  79. <view class="item-name">
  80. 型号:
  81. </view>
  82. <view class="item-value">
  83. GZYV GYVZ-50
  84. </view>
  85. </view>
  86. <view class="infos-item">
  87. <view class="item-name">
  88. 单位:
  89. </view>
  90. <view class="item-value">
  91. </view>
  92. </view>
  93. </view>
  94. <view class="infos-2">
  95. <view class="infos-item">
  96. <view class="item-name">
  97. 单位:
  98. </view>
  99. <view class="item-value">
  100. </view>
  101. </view>
  102. <view class="infos-item">
  103. <view class="item-name">
  104. 库存:
  105. </view>
  106. <view class="item-value">
  107. 20
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <!-- 流程 -->
  115. <view class="process">
  116. <view class="title">
  117. 流程
  118. </view>
  119. <u-time-line>
  120. <u-time-line-item node-top="10">
  121. <template v-slot:node>
  122. <view>
  123. <view class="u-node" style="background:#CDCDCD;">
  124. <!-- 此处为uView的icon组件 -->
  125. <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
  126. </view>
  127. </view>
  128. </template>
  129. <template v-slot:content>
  130. <view class="u-order">
  131. <view class="u-order-desc">
  132. <view class="level">
  133. 项目部
  134. </view>
  135. <view class="date">
  136. 2023-03-26 13:00
  137. </view>
  138. </view>
  139. <view class="u-order-time">
  140. <view class="photo">
  141. <img src="@/assets/img/level.png" alt="">
  142. </view>
  143. <view class="confirm">
  144. <img src="@/assets/img/riFill-checkbox-circle-fill@1x.png" alt="">
  145. </view>
  146. <view class="name">
  147. 李天择
  148. </view>
  149. </view>
  150. </view>
  151. </template>
  152. </u-time-line-item>
  153. <u-time-line-item node-top="10">
  154. <template v-slot:node>
  155. <view class="">
  156. <view class="u-node" style="background:#CDCDCD;">
  157. <!-- 此处为uView的icon组件 -->
  158. <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
  159. </view>
  160. </view>
  161. </template>
  162. <template v-slot:content>
  163. <view class="u-order">
  164. <view class="u-order-desc">
  165. <view class="level">
  166. 部门负责人
  167. </view>
  168. <view class="date">
  169. 2023-03-26 13:00
  170. </view>
  171. </view>
  172. <view class="u-order-time">
  173. <view class="photo">
  174. <img src="@/assets/img/level.png" alt="">
  175. </view>
  176. <view class="confirm">
  177. <img src="@/assets/img/riFill-checkbox-circle-fill@1x.png" alt="">
  178. </view>
  179. <view class="name">
  180. 李天择
  181. </view>
  182. </view>
  183. </view>
  184. </template>
  185. </u-time-line-item>
  186. <u-time-line-item node-top="10">
  187. <template v-slot:node>
  188. <view>
  189. <view class="u-node" style="background:#CDCDCD;">
  190. <!-- 此处为uView的icon组件 -->
  191. <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
  192. </view>
  193. </view>
  194. </template>
  195. <template v-slot:content>
  196. <view class="u-order">
  197. <view class="u-order-desc">
  198. <view class="level">
  199. 主管领导
  200. </view>
  201. <view class="date">
  202. 2023-03-26 13:00
  203. </view>
  204. </view>
  205. <view class="u-order-time">
  206. <view class="photo">
  207. <img src="@/assets/img/level.png" alt="">
  208. </view>
  209. <view class="confirm">
  210. <img src="@/assets/img/riFill-checkbox-circle-fill@1x.png" alt="">
  211. </view>
  212. <view class="name">
  213. 李天择
  214. </view>
  215. </view>
  216. </view>
  217. </template>
  218. </u-time-line-item>
  219. <u-time-line-item node-top="10">
  220. <template v-slot:node>
  221. <view class="">
  222. <view class="u-node" style="background:#CDCDCD;">
  223. <!-- 此处为uView的icon组件 -->
  224. <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
  225. </view>
  226. </view>
  227. </template>
  228. <template v-slot:content>
  229. <view class="u-order">
  230. <view class="u-order-desc">
  231. <view class="level">
  232. 仓库管理
  233. </view>
  234. <view class="state">
  235. 等待出库
  236. </view>
  237. </view>
  238. <view class="u-order-time">
  239. <view class="photo">
  240. <img src="@/assets/img/level.png" alt="">
  241. </view>
  242. <view class="confirm">
  243. <img src="@/assets/img/riFill-gradienter-fill@1x.png" alt="">
  244. </view>
  245. <view class="name">
  246. 周乐心
  247. </view>
  248. </view>
  249. </view>
  250. </template>
  251. </u-time-line-item>
  252. </u-time-line>
  253. </view>
  254. </view>
  255. <!-- 确认出库 -->
  256. <view class="bottom" >
  257. <button>确认出库</button>
  258. </view>
  259. </view>
  260. </template>
  261. <script>
  262. import * as API from '@/apis/pagejs/projectDepartment.js'
  263. import {
  264. recordStatus
  265. } from '@/apis/pagejs/projectDepartment.js'
  266. export default {
  267. data() {
  268. return {
  269. id:"",
  270. info:{},
  271. outRecordDeviceList:[]
  272. }
  273. },
  274. onLoad(op){
  275. this.id=op.id
  276. this.getInfo()
  277. },
  278. methods: {
  279. recordStatus,
  280. getList(){
  281. API.outRecordDeviceById({
  282. recordId:this.id,
  283. pageSize:5,
  284. pageIndex:1,
  285. }).then((res) => {
  286. uni.hideLoading();
  287. this.outRecordDeviceList=res.data.outRecordDeviceList;
  288. }).catch(error => {
  289. uni.showToast({
  290. title: error,
  291. icon: "none"
  292. })
  293. })
  294. },
  295. getInfo(){
  296. uni.showLoading({
  297. title: "加载中",
  298. mask: true,
  299. })
  300. API.outRecordDetail({
  301. id:this.id,
  302. }).then((res) => {
  303. this.info=res.data.outRecord;
  304. this.getList()
  305. }).catch(error => {
  306. uni.showToast({
  307. title: error,
  308. icon: "none"
  309. })
  310. })
  311. }
  312. }
  313. }
  314. </script>
  315. <style scoped lang="scss">
  316. page {
  317. padding-bottom: 200rpx;
  318. }
  319. // 出库单状态
  320. .head {
  321. background-color: #fff;
  322. padding: 24rpx 32rpx;
  323. display: flex;
  324. align-items: center;
  325. color: #101010;
  326. font-size: 32rpx;
  327. .photo {
  328. width: 84rpx;
  329. height: 84rpx;
  330. border-radius: 100rpx;
  331. img {
  332. width: 100%;
  333. height: 100%;
  334. overflow: hidden;
  335. }
  336. }
  337. .name {
  338. color: #101010;
  339. font-size: 32rpx;
  340. margin-right: 8rpx;
  341. margin-left: 24rpx;
  342. }
  343. .submit {
  344. text {
  345. color: #3385FF;
  346. }
  347. }
  348. .state {
  349. line-height: 48rpx;
  350. padding: 0 24rpx;
  351. border-radius: 50px;
  352. background-color: rgba(255, 255, 255, 1);
  353. color: rgba(51, 133, 255, 1);
  354. font-size: 12px;
  355. text-align: center;
  356. font-family: Arial;
  357. border: 1px solid rgba(51, 133, 255, 1);
  358. margin-left: auto;
  359. }
  360. }
  361. // 出库单详情
  362. .details {
  363. background-color: #fff;
  364. margin-top: 24rpx;
  365. padding: 0 32rpx;
  366. .item {
  367. display: flex;
  368. justify-content: space-between;
  369. padding: 22rpx 0;
  370. border-bottom: 1px solid rgba(244, 244, 244, 1);
  371. .name {
  372. color: rgba(119, 119, 119, 1);
  373. }
  374. .value {
  375. color: #101010;
  376. }
  377. }
  378. }
  379. // 出库单列表
  380. .list {
  381. background-color: #fff;
  382. margin-top: 24rpx;
  383. padding: 22rpx 32rpx;
  384. .list-head {
  385. display: flex;
  386. justify-content: space-between;
  387. align-items: center;
  388. .title {
  389. color: #333333;
  390. font-size: 32rpx
  391. }
  392. .amount {
  393. color: #777777;
  394. font-size: 24rpx;
  395. text {
  396. color: #3385FF;
  397. }
  398. /deep/.u-icon--right {
  399. margin-left: 8rpx;
  400. }
  401. }
  402. }
  403. // 清单信息
  404. .list-infos {
  405. border-radius: 8px;
  406. background-color: #F5F6F9;
  407. margin-top: 24rpx;
  408. padding: 24rpx;
  409. .infos-head {
  410. display: flex;
  411. justify-content: space-between;
  412. align-items: center;
  413. margin-bottom: 24rpx;
  414. .name {
  415. color: rgba(51, 51, 51, 1);
  416. font-size: 32rpx;
  417. }
  418. .state {
  419. color: rgba(0, 81, 255, 1);
  420. }
  421. }
  422. .infos {
  423. margin-top: 16rpx;
  424. display: flex;
  425. color: #777777;
  426. font-size: 24rpx;
  427. .infos-1 {
  428. margin-right: 68rpx;
  429. }
  430. .infos-item {
  431. display: flex;
  432. margin-bottom: 8rpx;
  433. }
  434. }
  435. }
  436. }
  437. // 流程
  438. .process {
  439. background-color: #fff;
  440. margin-top: 24rpx;
  441. padding: 24rpx 32rpx;
  442. .title {
  443. color: rgba(51, 51, 51, 1);
  444. font-size: 32rpx;
  445. }
  446. .u-time-axis-item{
  447. //margin-bottom: 76rpx;
  448. }
  449. .u-time-axis {
  450. //padding: 18rpx 40rpx;
  451. }
  452. .u-node {
  453. width: 18rpx;
  454. height: 18rpx;
  455. border-radius: 100rpx !important;
  456. display: flex;
  457. justify-content: center;
  458. align-items: center;
  459. background: #d0d0d0;
  460. }
  461. .u-order{
  462. margin-bottom: 32rpx;
  463. }
  464. .u-order-title {
  465. color: #333333;
  466. font-weight: bold;
  467. font-size: 32rpx;
  468. }
  469. .u-order-desc {
  470. margin-bottom: 16rpx;
  471. display: flex;
  472. justify-content: space-between;
  473. align-items: center;
  474. .level {
  475. color: #333333;
  476. font-size: 32rpx;
  477. font-weight: bold;
  478. }
  479. .date {
  480. color: rgba(119, 119, 119, 1);
  481. }
  482. .state {
  483. color: rgba(255, 121, 0, 1);
  484. }
  485. }
  486. .u-order-time {
  487. width: 90rpx;
  488. color: #777777;
  489. font-size: 28rpx;
  490. margin-top: 16rpx;
  491. display: flex;
  492. flex-direction: column;
  493. align-items: center;
  494. .photo {
  495. width: 56rpx;
  496. height: 56rpx;
  497. border-radius: 100px;
  498. margin-bottom: 4rpx;
  499. img {
  500. width: 100%;
  501. height: 100%;
  502. overflow: hidden;
  503. position: relative;
  504. }
  505. }
  506. .confirm {
  507. position: absolute;
  508. top: 46rpx;
  509. left: 56rpx;
  510. }
  511. .name {
  512. color: rgba(51, 51, 51, 1);
  513. font-size: 24rpx;
  514. }
  515. }
  516. }
  517. // .u-time-axis{
  518. // .u-time-axis-item:last-of-type{
  519. // margin-bottom: 0;
  520. // }
  521. // }
  522. // 确认出库
  523. .bottom{
  524. background-color: #fff;
  525. margin-top: 44rpx;
  526. padding: 16rpx 32rpx;
  527. z-index: 999;
  528. position: fixed;
  529. left: 0;
  530. right: 0;
  531. bottom: 0;
  532. uni-button{
  533. border-radius: 8px;
  534. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  535. color: rgba(255, 255, 255, 1);
  536. font-size: 32rpx;
  537. line-height: 88rpx;
  538. }
  539. }
  540. </style>