DownloadDetail.uvue 3.8 KB

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