deliveryInfo.vue 8.2 KB

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