deliveryInfo.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. <template>
  2. <view >
  3. <u-navbar title="出库单详情"></u-navbar>
  4. <!-- 出库单状态 -->
  5. <view class="container">
  6. <view class="head">
  7. <view class="photo">
  8. <u-avatar size="84" :src="outUser.headImg"></u-avatar>
  9. </view>
  10. <view class="name">
  11. {{outUser.name}}
  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?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" @click="gotoUrl('pages/projectDepartment/exportApplication/deliveriedList?id='+id)">
  62. 全部 <text>{{recordsTotal}}</text> 件设备
  63. <u-icon name="arrow-right"></u-icon>
  64. </view>
  65. </view>
  66. <!-- 清单信息 -->
  67. <view class="list-infos" v-for="(item,i) in outRecordDeviceList" :key="i" >
  68. <view class="infos-head">
  69. <view class="name">
  70. {{item.deviceName}}
  71. </view>
  72. <view class="state">
  73. {{recordItemStatus(item.status)}}: <text>{{item.needCount}}</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. {{item.deviceInfo.manufactor}}
  84. </view>
  85. </view>
  86. <view class="infos-item">
  87. <view class="item-name">
  88. 单位:
  89. </view>
  90. <view class="item-value">
  91. {{item.deviceInfo.unit}}
  92. </view>
  93. </view>
  94. </view>
  95. <view class="infos-2">
  96. <view class="infos-item">
  97. <view class="item-name">
  98. 规格:
  99. </view>
  100. <view class="item-value">
  101. {{item.deviceInfo.specifications}}
  102. </view>
  103. </view>
  104. <view class="infos-item">
  105. <view class="item-name">
  106. 型号:
  107. </view>
  108. <view class="item-value">
  109. {{item.deviceInfo.model}}
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <u-divider border-color="#CFD2D5">仅显示部分数据</u-divider>
  116. </view>
  117. <approve-list ref="approveList"
  118. :outRecordDetailObj="outRecordDetailObj"
  119. :approveList="approveList"></approve-list>
  120. </view>
  121. </view>
  122. </template>
  123. <script>
  124. import * as API from '@/apis/pagejs/approve.js'
  125. import approveList from "@/components/ApproveList.vue"
  126. import {
  127. recordStatus,recordItemStatus
  128. } from '@/apis/status.js'
  129. export default {
  130. components: {
  131. approveList
  132. },
  133. data() {
  134. return {
  135. id:"",
  136. info:{
  137. projectName:"",
  138. startTime:"",
  139. endTime:"",
  140. createTime:"",
  141. },
  142. outUser:{
  143. name:"",
  144. headImg:""
  145. },
  146. outRecordDetailObj:{},
  147. outRecordDeviceList:[],
  148. approveList:[],
  149. recordsTotal:0,
  150. }
  151. },
  152. onLoad(op){
  153. this.id=op.id
  154. this.getInfo()
  155. },
  156. methods: {
  157. recordStatus,recordItemStatus,
  158. getList(){
  159. API.outRecordDeviceById({
  160. recordId:this.id,
  161. pageSize:3,
  162. pageIndex:1,
  163. }).then((res) => {
  164. uni.hideLoading();
  165. this.outRecordDeviceList=res.data.data;
  166. this.recordsTotal=res.data.recordsTotal;
  167. }).catch(error => {
  168. uni.showToast({
  169. title: error,
  170. icon: "none"
  171. })
  172. })
  173. },
  174. getInfo(){
  175. uni.showLoading({
  176. title: "加载中",
  177. mask: true,
  178. })
  179. API.outRecordDetail({
  180. id:this.id,
  181. }).then((res) => {
  182. this.info=res.data.outRecord;
  183. this.approveList=res.data.approveList;
  184. this.outUser=res.data.outUser;
  185. this.outRecordDetailObj=res.data;
  186. this.getList()
  187. }).catch(error => {
  188. uni.showToast({
  189. title: error,
  190. icon: "none"
  191. })
  192. })
  193. }
  194. }
  195. }
  196. </script>
  197. <style scoped lang="scss">
  198. page {
  199. padding-bottom: 200rpx;
  200. }
  201. // 出库单状态
  202. .head {
  203. background-color: #fff;
  204. padding: 24rpx 32rpx;
  205. display: flex;
  206. align-items: center;
  207. color: #101010;
  208. font-size: 32rpx;
  209. .photo {
  210. width: 84rpx;
  211. height: 84rpx;
  212. border-radius: 100rpx;
  213. .u-avatar{
  214. }
  215. img {
  216. width: 100%;
  217. height: 100%;
  218. overflow: hidden;
  219. }
  220. }
  221. .name {
  222. color: #101010;
  223. font-size: 32rpx;
  224. margin-right: 8rpx;
  225. margin-left: 24rpx;
  226. max-width: 200rpx;
  227. overflow: hidden;
  228. text-overflow: ellipsis;
  229. white-space: nowrap
  230. }
  231. .submit {
  232. text {
  233. color: #3385FF;
  234. }
  235. }
  236. .state {
  237. line-height: 48rpx;
  238. padding: 0 24rpx;
  239. border-radius: 50px;
  240. background-color: rgba(255, 255, 255, 1);
  241. color: rgba(51, 133, 255, 1);
  242. font-size: 12px;
  243. text-align: center;
  244. font-family: Arial;
  245. border: 1px solid rgba(51, 133, 255, 1);
  246. margin-left: auto;
  247. }
  248. }
  249. // 出库单详情
  250. .details {
  251. background-color: #fff;
  252. margin-top: 24rpx;
  253. padding: 0 32rpx;
  254. .item {
  255. display: flex;
  256. justify-content: space-between;
  257. padding: 22rpx 0;
  258. border-bottom: 1px solid rgba(244, 244, 244, 1);
  259. .name {
  260. color: rgba(119, 119, 119, 1);
  261. }
  262. .value {
  263. color: #101010;
  264. }
  265. }
  266. }
  267. // 出库单列表
  268. .list {
  269. background-color: #fff;
  270. margin-top: 24rpx;
  271. padding: 22rpx 32rpx;
  272. .list-head {
  273. display: flex;
  274. justify-content: space-between;
  275. align-items: center;
  276. .title {
  277. color: #333333;
  278. font-size: 32rpx
  279. }
  280. .amount {
  281. color: #777777;
  282. font-size: 24rpx;
  283. text {
  284. color: #3385FF;
  285. }
  286. /deep/.u-icon--right {
  287. margin-left: 8rpx;
  288. }
  289. }
  290. }
  291. // 清单信息
  292. .list-infos {
  293. border-radius: 8px;
  294. background-color: #F5F6F9;
  295. margin-top: 24rpx;
  296. padding: 24rpx;
  297. .infos-head {
  298. display: flex;
  299. justify-content: space-between;
  300. align-items: center;
  301. margin-bottom: 24rpx;
  302. .name {
  303. color: rgba(51, 51, 51, 1);
  304. font-size: 32rpx;
  305. }
  306. .state {
  307. color: rgba(0, 81, 255, 1);
  308. }
  309. }
  310. .infos {
  311. margin-top: 16rpx;
  312. display: flex;
  313. color: #777777;
  314. font-size: 24rpx;
  315. .infos-1 {
  316. margin-right: 68rpx;
  317. }
  318. .infos-item {
  319. display: flex;
  320. margin-bottom: 8rpx;
  321. }
  322. }
  323. }
  324. }
  325. // 流程
  326. .process {
  327. background-color: #fff;
  328. margin-top: 24rpx;
  329. padding: 24rpx 32rpx;
  330. .title {
  331. color: rgba(51, 51, 51, 1);
  332. font-size: 32rpx;
  333. }
  334. .u-time-axis-item{
  335. //margin-bottom: 76rpx;
  336. }
  337. .u-time-axis {
  338. //padding: 18rpx 40rpx;
  339. }
  340. .u-node {
  341. width: 18rpx;
  342. height: 18rpx;
  343. border-radius: 100rpx !important;
  344. display: flex;
  345. justify-content: center;
  346. align-items: center;
  347. background: #d0d0d0;
  348. }
  349. .u-order{
  350. margin-bottom: 32rpx;
  351. }
  352. .u-order-title {
  353. color: #333333;
  354. font-weight: bold;
  355. font-size: 32rpx;
  356. }
  357. .u-order-desc {
  358. margin-bottom: 16rpx;
  359. display: flex;
  360. justify-content: space-between;
  361. align-items: center;
  362. .level {
  363. color: #333333;
  364. font-size: 32rpx;
  365. font-weight: bold;
  366. }
  367. .date {
  368. color: rgba(119, 119, 119, 1);
  369. }
  370. .state {
  371. color: rgba(255, 121, 0, 1);
  372. }
  373. }
  374. .u-order-time {
  375. width: 90rpx;
  376. color: #777777;
  377. font-size: 28rpx;
  378. margin-top: 16rpx;
  379. display: flex;
  380. flex-direction: column;
  381. align-items: center;
  382. .photo {
  383. width: 56rpx;
  384. height: 56rpx;
  385. border-radius: 100px;
  386. margin-bottom: 4rpx;
  387. img {
  388. width: 100%;
  389. height: 100%;
  390. overflow: hidden;
  391. position: relative;
  392. }
  393. }
  394. .confirm {
  395. position: absolute;
  396. top: 46rpx;
  397. left: 56rpx;
  398. }
  399. .name {
  400. color: rgba(51, 51, 51, 1);
  401. font-size: 24rpx;
  402. }
  403. }
  404. }
  405. // .u-time-axis{
  406. // .u-time-axis-item:last-of-type{
  407. // margin-bottom: 0;
  408. // }
  409. // }
  410. // 确认出库
  411. .bottom{
  412. background-color: #fff;
  413. margin-top: 44rpx;
  414. padding: 16rpx 32rpx;
  415. z-index: 999;
  416. position: fixed;
  417. left: 0;
  418. right: 0;
  419. bottom: 0;
  420. // uni-button{
  421. // border-radius: 8px;
  422. // background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  423. // color: rgba(255, 255, 255, 1);
  424. // font-size: 32rpx;
  425. // line-height: 88rpx;
  426. // }
  427. }
  428. </style>