deliveryInfo.vue 8.0 KB

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