deliveryDetails.vue 9.2 KB

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