deliveryDetails.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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.userImg"></u-avatar>
  9. </view>
  10. <view class="name">
  11. {{info.createByName}}
  12. </view>
  13. <view class="submit">
  14. 提交了<text>入库申请</text>
  15. </view>
  16. <view class="state" :style="{
  17. color:recordStatusColor(info.status),
  18. borderColor:recordStatusColor(info.status)
  19. }">
  20. {{info.status=='1'?'已入库':'待入库'}}
  21. </view>
  22. </view>
  23. <!-- 出库单详情 -->
  24. <view class="details">
  25. <view class="item">
  26. <view class="name">
  27. 所属项目
  28. </view>
  29. <view class="value">
  30. {{info.projectName}}
  31. </view>
  32. </view>
  33. <view class="item">
  34. <view class="name">
  35. 创建时间
  36. </view>
  37. <view class="value">
  38. {{info.createTime}}
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 出库设备清单 -->
  43. <view class="list">
  44. <view class="list-head">
  45. <view class="title">
  46. 出库设备清单
  47. </view>
  48. <view class="amount">
  49. 全部 <text>{{deviceInfoList.length}}</text> 件设备
  50. <!-- <u-icon name="arrow-right"></u-icon> -->
  51. </view>
  52. </view>
  53. <!-- 清单信息 -->
  54. <view class="list-infos" v-for="(item,i) in deviceInfoList" :key="i" >
  55. <view class="infos-head">
  56. <view class="name">
  57. {{item.deviceInfo.title}}
  58. </view>
  59. <view class="state" >
  60. <text>编号:{{item.deviceInfo.code}}</text>
  61. </view>
  62. </view>
  63. <view class="infos">
  64. <view class="infos-1">
  65. <view class="infos-item">
  66. <view class="item-name">
  67. 厂家:
  68. </view>
  69. <view class="item-value">
  70. {{item.deviceInfo.manufactor}}
  71. </view>
  72. </view>
  73. <view class="infos-item">
  74. <view class="item-name">
  75. 单位:
  76. </view>
  77. <view class="item-value">
  78. {{item.deviceInfo.unit}}
  79. </view>
  80. </view>
  81. </view>
  82. <view class="infos-2">
  83. <view class="infos-item">
  84. <view class="item-name">
  85. 规格:
  86. </view>
  87. <view class="item-value">
  88. {{item.deviceInfo.specifications}}
  89. </view>
  90. </view>
  91. <view class="infos-item">
  92. <view class="item-name">
  93. 型号:
  94. </view>
  95. <view class="item-value">
  96. {{item.deviceInfo.model}}
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 确认出库 -->
  105. </view>
  106. </template>
  107. <script>
  108. import * as API from '@/apis/pagejs/projectDepartment.js'
  109. import {
  110. recordStatus,recordStatusColor
  111. } from '@/apis/status.js'
  112. export default {
  113. data() {
  114. return {
  115. id:"",
  116. info:{
  117. projectName:"",
  118. startTime:"",
  119. endTime:"",
  120. createTime:"",
  121. },
  122. outUser:{
  123. name:"",
  124. headImg:""
  125. },
  126. deviceInfoList:{},
  127. }
  128. },
  129. onLoad(op){
  130. this.id=op.id
  131. this.getInfo()
  132. },
  133. methods:{
  134. recordStatus,recordStatusColor,
  135. getInfo(){
  136. uni.showLoading({
  137. title: "加载中",
  138. mask: true,
  139. })
  140. API.inRecordDetail({
  141. id:this.id,
  142. }).then((res) => {
  143. uni.hideLoading();
  144. this.info=res.data.inRecord;
  145. this.deviceInfoList=res.data.inRecordDeviceList;
  146. //this.outUser=res.data.outUser;
  147. }).catch(error => {
  148. uni.showToast({
  149. title: error,
  150. icon: "none"
  151. })
  152. })
  153. }
  154. }
  155. }
  156. </script>
  157. <style scoped lang="scss">
  158. page {
  159. padding-bottom: 200rpx;
  160. }
  161. // 出库单状态
  162. .head {
  163. background-color: #fff;
  164. padding: 24rpx 32rpx;
  165. display: flex;
  166. align-items: center;
  167. color: #101010;
  168. font-size: 32rpx;
  169. .photo {
  170. width: 84rpx;
  171. height: 84rpx;
  172. border-radius: 100rpx;
  173. img {
  174. width: 100%;
  175. height: 100%;
  176. overflow: hidden;
  177. }
  178. }
  179. .name {
  180. color: #101010;
  181. font-size: 32rpx;
  182. margin-right: 8rpx;
  183. margin-left: 24rpx;
  184. max-width: 200rpx;
  185. overflow: hidden;
  186. text-overflow: ellipsis;
  187. white-space: nowrap
  188. }
  189. .submit {
  190. text {
  191. color: #3385FF;
  192. }
  193. }
  194. .state {
  195. line-height: 48rpx;
  196. padding: 0 24rpx;
  197. border-radius: 50px;
  198. background-color: rgba(255, 255, 255, 1);
  199. color: rgba(51, 133, 255, 1);
  200. font-size: 12px;
  201. text-align: center;
  202. font-family: Arial;
  203. border: 1px solid rgba(51, 133, 255, 1);
  204. margin-left: auto;
  205. }
  206. }
  207. // 出库单详情
  208. .details {
  209. background-color: #fff;
  210. margin-top: 24rpx;
  211. padding: 0 32rpx;
  212. .item {
  213. display: flex;
  214. justify-content: space-between;
  215. padding: 22rpx 0;
  216. border-bottom: 1px solid rgba(244, 244, 244, 1);
  217. .name {
  218. color: rgba(119, 119, 119, 1);
  219. }
  220. .value {
  221. color: #101010;
  222. }
  223. }
  224. }
  225. // 出库单列表
  226. .list {
  227. background-color: #fff;
  228. margin-top: 24rpx;
  229. padding: 22rpx 32rpx;
  230. .list-head {
  231. display: flex;
  232. justify-content: space-between;
  233. align-items: center;
  234. .title {
  235. color: #333333;
  236. font-size: 32rpx
  237. }
  238. .amount {
  239. color: #777777;
  240. font-size: 24rpx;
  241. text {
  242. color: #3385FF;
  243. }
  244. /deep/.u-icon--right {
  245. margin-left: 8rpx;
  246. }
  247. }
  248. }
  249. // 清单信息
  250. .list-infos {
  251. border-radius: 8px;
  252. background-color: #F5F6F9;
  253. margin-top: 24rpx;
  254. padding: 24rpx;
  255. .infos-head {
  256. display: flex;
  257. justify-content: space-between;
  258. align-items: center;
  259. margin-bottom: 24rpx;
  260. .name {
  261. color: rgba(51, 51, 51, 1);
  262. font-size: 32rpx;
  263. }
  264. .state {
  265. color: rgba(0, 81, 255, 1);
  266. }
  267. }
  268. .infos {
  269. margin-top: 16rpx;
  270. display: flex;
  271. color: #777777;
  272. font-size: 24rpx;
  273. .infos-1 {
  274. margin-right: 68rpx;
  275. }
  276. .infos-item {
  277. display: flex;
  278. margin-bottom: 8rpx;
  279. }
  280. }
  281. }
  282. }
  283. // 流程
  284. .process {
  285. background-color: #fff;
  286. margin-top: 24rpx;
  287. padding: 24rpx 32rpx;
  288. .title {
  289. color: rgba(51, 51, 51, 1);
  290. font-size: 32rpx;
  291. }
  292. .u-time-axis-item{
  293. //margin-bottom: 76rpx;
  294. }
  295. .u-time-axis {
  296. //padding: 18rpx 40rpx;
  297. }
  298. .u-node {
  299. width: 18rpx;
  300. height: 18rpx;
  301. border-radius: 100rpx !important;
  302. display: flex;
  303. justify-content: center;
  304. align-items: center;
  305. background: #d0d0d0;
  306. }
  307. .u-order{
  308. margin-bottom: 32rpx;
  309. }
  310. .u-order-title {
  311. color: #333333;
  312. font-weight: bold;
  313. font-size: 32rpx;
  314. }
  315. .u-order-desc {
  316. margin-bottom: 16rpx;
  317. display: flex;
  318. justify-content: space-between;
  319. align-items: center;
  320. .level {
  321. color: #333333;
  322. font-size: 32rpx;
  323. font-weight: bold;
  324. }
  325. .date {
  326. color: rgba(119, 119, 119, 1);
  327. }
  328. .state {
  329. color: rgba(255, 121, 0, 1);
  330. }
  331. }
  332. .u-order-time {
  333. width: 90rpx;
  334. color: #777777;
  335. font-size: 28rpx;
  336. margin-top: 16rpx;
  337. display: flex;
  338. flex-direction: column;
  339. align-items: center;
  340. .photo {
  341. width: 56rpx;
  342. height: 56rpx;
  343. border-radius: 100px;
  344. margin-bottom: 4rpx;
  345. img {
  346. width: 100%;
  347. height: 100%;
  348. overflow: hidden;
  349. position: relative;
  350. }
  351. }
  352. .confirm {
  353. position: absolute;
  354. top: 46rpx;
  355. left: 56rpx;
  356. }
  357. .name {
  358. color: rgba(51, 51, 51, 1);
  359. font-size: 24rpx;
  360. }
  361. }
  362. }
  363. // .u-time-axis{
  364. // .u-time-axis-item:last-of-type{
  365. // margin-bottom: 0;
  366. // }
  367. // }
  368. // 确认出库
  369. .bottom{
  370. background-color: #fff;
  371. margin-top: 44rpx;
  372. padding: 16rpx 32rpx;
  373. z-index: 999;
  374. position: fixed;
  375. left: 0;
  376. right: 0;
  377. bottom: 0;
  378. uni-button{
  379. border-radius: 8px;
  380. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  381. color: rgba(255, 255, 255, 1);
  382. font-size: 32rpx;
  383. line-height: 88rpx;
  384. }
  385. }
  386. </style>