DownloadDetail.uvue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <scroll-view scroll-y class="container">
  3. <!-- 标题Banner -->
  4. <view class="banner">
  5. <text class="banner-title">数据下载详情</text>
  6. </view>
  7. <!-- 报告基础信息 -->
  8. <view class="section">
  9. <view class="info-item">
  10. <text class="label">声像记录任务</text>
  11. <text class="value">{{ download.workorder}}</text>
  12. </view>
  13. <view class="info-item">
  14. <text class="label">{{ download.productno }}</text>
  15. <text class="value">{{ download.invname }}</text>
  16. </view>
  17. </view>
  18. <view class="section">
  19. <uni-table >
  20. <uni-tr class="section-title" v-for="(item,index) in titleList" :key="index">
  21. <uni-td class="grid-text">{{item.title1}}</uni-td>
  22. <uni-td class="grid-text">{{item.title2}}</uni-td>
  23. <uni-td class="grid-text">{{item.title3}}</uni-td>
  24. </uni-tr>
  25. <uni-tr class="section-title" v-for="(taskProcess,index2) in taskProcessList" :key="index2">
  26. <uni-td class="grid-text">{{taskProcess.name}}</uni-td>
  27. <uni-td class="grid-text">{{taskProcess.step}}/{{taskProcess.num}}</uni-td>
  28. <uni-td></uni-td>
  29. </uni-tr>
  30. </uni-table>
  31. </view>
  32. <!-- 按钮 -->
  33. <view class="footer-btn">
  34. <button class="main-btn" @click="goBack">返回上一页</button>
  35. </view>
  36. </scroll-view>
  37. </template>
  38. <script setup>
  39. import {
  40. ref,
  41. onMounted
  42. } from 'vue'
  43. const titleList = [{
  44. title1:"部位",title2:"进度",title3:"状态"
  45. }];
  46. const download = {
  47. pdid:1,
  48. workorder:"632-P-01",
  49. invname:"箱间段",
  50. productno:"1CFA1040-00#S",
  51. graphid:"HBJ0100-00",
  52. cardno: "LK20230707070012",
  53. processno: "Pb/XXX-E11",
  54. ver: "A.1",
  55. updatetime: "2025-06-23",
  56. progress: "1/3"
  57. }
  58. const taskProcessList = [
  59. {id:1,name:"前底-外侧",num:5,step:5},{id:2,name:"后底-外侧",num:3,step:3},{id:3,name:"简段-外侧",num:5,step:2}
  60. ];
  61. onLoad((options) => {
  62. //const downloadId = options?.id ?? ""
  63. // 模拟数据加载,建议替换为后端接口请求
  64. })
  65. const goBack = () => {
  66. uni.navigateBack()
  67. }
  68. </script>
  69. <style scoped>
  70. .container {
  71. padding: 40rpx;
  72. background-color: #f5f7fa;
  73. flex: 1;
  74. box-sizing: border-box;
  75. }
  76. .banner {
  77. background: linear-gradient(135deg, #2193b0, #6dd5ed);
  78. border-radius: 24rpx;
  79. padding: 40rpx 30rpx;
  80. margin-bottom: 40rpx;
  81. box-shadow: 0 8rpx 16rpx rgba(33, 147, 176, 0.3);
  82. }
  83. .banner-title {
  84. color: white;
  85. font-size: 36rpx;
  86. font-weight: bold;
  87. text-align: center;
  88. }
  89. .section {
  90. background-color: #fff;
  91. border-radius: 20rpx;
  92. padding: 30rpx;
  93. margin-bottom: 30rpx;
  94. box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.05);
  95. }
  96. .section-title {
  97. display: flex;
  98. flex-direction: row;
  99. flex: 1;
  100. }
  101. .info-item {
  102. display: flex;
  103. justify-content: space-between;
  104. /* #ifdef APP-NVUE */
  105. font-size: 28rpx;
  106. color: #666;
  107. /* #endif */
  108. margin-bottom: 18rpx;
  109. flex-direction: row;
  110. }
  111. .section-content {
  112. font-size: 28rpx;
  113. color: #444;
  114. line-height: 1.8;
  115. white-space: normal;
  116. }
  117. .grid-text {
  118. /* #ifdef APP-NVUE */
  119. font-size: 24rpx;
  120. color: #000;
  121. /* #endif */
  122. padding: 10rpx 0 20rpx 0rpx;
  123. box-sizing: border-box;
  124. margin: 10rpx 20rpx;
  125. min-width: 150rpx;
  126. }
  127. .footer-btn {
  128. margin-top: 40rpx;
  129. display: flex;
  130. justify-content: center;
  131. }
  132. .main-btn {
  133. width: 80%;
  134. padding: 28rpx 0;
  135. font-size: 30rpx;
  136. color: #fff;
  137. border: none;
  138. border-radius: 100rpx;
  139. background: linear-gradient(to right, #36d1dc, #5b86e5);
  140. box-shadow: 0 10rpx 24rpx rgba(91, 134, 229, 0.3);
  141. }
  142. .label {
  143. font-weight: bold;
  144. color: #102a43;
  145. min-width: 150rpx;
  146. margin-right:30rpx;
  147. }
  148. .value {
  149. flex: 1;
  150. /* #ifdef APP-NVUE */
  151. white-space: nowrap;
  152. text-overflow: ellipsis;
  153. /* #endif */
  154. overflow: hidden;
  155. margin-left: 30rpx;
  156. }
  157. </style>