deliveryDetails.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  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?item.deviceInfo.title:''}}
  58. </view>
  59. <view class="state" >
  60. <text style="color: rgb(82, 181, 107);" >编号:{{item.deviceInfo?showCode(item.deviceInfo):''}}</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?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?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?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?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;flex-wrap: wrap;
  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;flex-wrap: wrap;
  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;flex-wrap: wrap;
  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;flex-wrap: wrap;
  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;flex-wrap: wrap;
  278. color: #777777;
  279. font-size: 24rpx;
  280. .infos-1 {
  281. margin-right: 68rpx;
  282. }
  283. .infos-item {
  284. display: flex;flex-wrap: wrap;
  285. margin-bottom: 8rpx;
  286. .item-value{
  287. max-width: 200rpx;
  288. }
  289. }
  290. }
  291. }
  292. }
  293. // 流程
  294. .process {
  295. background-color: #fff;
  296. margin-top: 24rpx;
  297. padding: 24rpx 32rpx;
  298. .title {
  299. color: rgba(51, 51, 51, 1);
  300. font-size: 32rpx;
  301. }
  302. .u-time-axis-item{
  303. //margin-bottom: 76rpx;
  304. }
  305. .u-time-axis {
  306. //padding: 18rpx 40rpx;
  307. }
  308. .u-node {
  309. width: 18rpx;
  310. height: 18rpx;
  311. border-radius: 100rpx !important;
  312. display: flex;flex-wrap: wrap;
  313. justify-content: center;
  314. align-items: center;
  315. background: #d0d0d0;
  316. }
  317. .u-order{
  318. margin-bottom: 32rpx;
  319. }
  320. .u-order-title {
  321. color: #333333;
  322. font-weight: bold;
  323. font-size: 32rpx;
  324. }
  325. .u-order-desc {
  326. margin-bottom: 16rpx;
  327. display: flex;flex-wrap: wrap;
  328. justify-content: space-between;
  329. align-items: center;
  330. .level {
  331. color: #333333;
  332. font-size: 32rpx;
  333. font-weight: bold;
  334. }
  335. .date {
  336. color: rgba(119, 119, 119, 1);
  337. }
  338. .state {
  339. color: rgba(255, 121, 0, 1);
  340. }
  341. }
  342. .u-order-time {
  343. width: 90rpx;
  344. color: #777777;
  345. font-size: 28rpx;
  346. margin-top: 16rpx;
  347. display: flex;flex-wrap: wrap;
  348. flex-direction: column;
  349. align-items: center;
  350. .photo {
  351. width: 56rpx;
  352. height: 56rpx;
  353. border-radius: 100px;
  354. margin-bottom: 4rpx;
  355. img {
  356. width: 100%;
  357. height: 100%;
  358. overflow: hidden;
  359. position: relative;
  360. }
  361. }
  362. .confirm {
  363. position: absolute;
  364. top: 46rpx;
  365. left: 56rpx;
  366. }
  367. .name {
  368. color: rgba(51, 51, 51, 1);
  369. font-size: 24rpx;
  370. }
  371. }
  372. }
  373. // .u-time-axis{
  374. // .u-time-axis-item:last-of-type{
  375. // margin-bottom: 0;
  376. // }
  377. // }
  378. // 确认出库
  379. .bottom{
  380. background-color: #fff;
  381. margin-top: 44rpx;
  382. padding: 16rpx 32rpx;
  383. z-index: 999;
  384. position: fixed;
  385. left: 0;
  386. right: 0;
  387. bottom: 0;
  388. uni-button{
  389. border-radius: 8px;
  390. background: linear-gradient(180deg, rgba(22,119,255,1) 0%,rgba(16,98,213,1) 100%);
  391. color: rgba(255, 255, 255, 1);
  392. font-size: 32rpx;
  393. line-height: 88rpx;
  394. }
  395. }
  396. </style>