deliveryDetails.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  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.title}}
  58. </view>
  59. <view class="state" >
  60. <text>编号:{{item.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.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.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.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.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.deviceInfoList;
  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. }
  185. .submit {
  186. text {
  187. color: #3385FF;
  188. }
  189. }
  190. .state {
  191. line-height: 48rpx;
  192. padding: 0 24rpx;
  193. border-radius: 50px;
  194. background-color: rgba(255, 255, 255, 1);
  195. color: rgba(51, 133, 255, 1);
  196. font-size: 12px;
  197. text-align: center;
  198. font-family: Arial;
  199. border: 1px solid rgba(51, 133, 255, 1);
  200. margin-left: auto;
  201. }
  202. }
  203. // 出库单详情
  204. .details {
  205. background-color: #fff;
  206. margin-top: 24rpx;
  207. padding: 0 32rpx;
  208. .item {
  209. display: flex;
  210. justify-content: space-between;
  211. padding: 22rpx 0;
  212. border-bottom: 1px solid rgba(244, 244, 244, 1);
  213. .name {
  214. color: rgba(119, 119, 119, 1);
  215. }
  216. .value {
  217. color: #101010;
  218. }
  219. }
  220. }
  221. // 出库单列表
  222. .list {
  223. background-color: #fff;
  224. margin-top: 24rpx;
  225. padding: 22rpx 32rpx;
  226. .list-head {
  227. display: flex;
  228. justify-content: space-between;
  229. align-items: center;
  230. .title {
  231. color: #333333;
  232. font-size: 32rpx
  233. }
  234. .amount {
  235. color: #777777;
  236. font-size: 24rpx;
  237. text {
  238. color: #3385FF;
  239. }
  240. /deep/.u-icon--right {
  241. margin-left: 8rpx;
  242. }
  243. }
  244. }
  245. // 清单信息
  246. .list-infos {
  247. border-radius: 8px;
  248. background-color: #F5F6F9;
  249. margin-top: 24rpx;
  250. padding: 24rpx;
  251. .infos-head {
  252. display: flex;
  253. justify-content: space-between;
  254. align-items: center;
  255. margin-bottom: 24rpx;
  256. .name {
  257. color: rgba(51, 51, 51, 1);
  258. font-size: 32rpx;
  259. }
  260. .state {
  261. color: rgba(0, 81, 255, 1);
  262. }
  263. }
  264. .infos {
  265. margin-top: 16rpx;
  266. display: flex;
  267. color: #777777;
  268. font-size: 24rpx;
  269. .infos-1 {
  270. margin-right: 68rpx;
  271. }
  272. .infos-item {
  273. display: flex;
  274. margin-bottom: 8rpx;
  275. }
  276. }
  277. }
  278. }
  279. // 流程
  280. .process {
  281. background-color: #fff;
  282. margin-top: 24rpx;
  283. padding: 24rpx 32rpx;
  284. .title {
  285. color: rgba(51, 51, 51, 1);
  286. font-size: 32rpx;
  287. }
  288. .u-time-axis-item{
  289. //margin-bottom: 76rpx;
  290. }
  291. .u-time-axis {
  292. //padding: 18rpx 40rpx;
  293. }
  294. .u-node {
  295. width: 18rpx;
  296. height: 18rpx;
  297. border-radius: 100rpx !important;
  298. display: flex;
  299. justify-content: center;
  300. align-items: center;
  301. background: #d0d0d0;
  302. }
  303. .u-order{
  304. margin-bottom: 32rpx;
  305. }
  306. .u-order-title {
  307. color: #333333;
  308. font-weight: bold;
  309. font-size: 32rpx;
  310. }
  311. .u-order-desc {
  312. margin-bottom: 16rpx;
  313. display: flex;
  314. justify-content: space-between;
  315. align-items: center;
  316. .level {
  317. color: #333333;
  318. font-size: 32rpx;
  319. font-weight: bold;
  320. }
  321. .date {
  322. color: rgba(119, 119, 119, 1);
  323. }
  324. .state {
  325. color: rgba(255, 121, 0, 1);
  326. }
  327. }
  328. .u-order-time {
  329. width: 90rpx;
  330. color: #777777;
  331. font-size: 28rpx;
  332. margin-top: 16rpx;
  333. display: flex;
  334. flex-direction: column;
  335. align-items: center;
  336. .photo {
  337. width: 56rpx;
  338. height: 56rpx;
  339. border-radius: 100px;
  340. margin-bottom: 4rpx;
  341. img {
  342. width: 100%;
  343. height: 100%;
  344. overflow: hidden;
  345. position: relative;
  346. }
  347. }
  348. .confirm {
  349. position: absolute;
  350. top: 46rpx;
  351. left: 56rpx;
  352. }
  353. .name {
  354. color: rgba(51, 51, 51, 1);
  355. font-size: 24rpx;
  356. }
  357. }
  358. }
  359. // .u-time-axis{
  360. // .u-time-axis-item:last-of-type{
  361. // margin-bottom: 0;
  362. // }
  363. // }
  364. // 确认出库
  365. .bottom{
  366. background-color: #fff;
  367. margin-top: 44rpx;
  368. padding: 16rpx 32rpx;
  369. z-index: 999;
  370. position: fixed;
  371. left: 0;
  372. right: 0;
  373. bottom: 0;
  374. uni-button{
  375. border-radius: 8px;
  376. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  377. color: rgba(255, 255, 255, 1);
  378. font-size: 32rpx;
  379. line-height: 88rpx;
  380. }
  381. }
  382. </style>