deliveryDetails.vue 7.8 KB

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