DownloadDetail.uvue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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 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 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. font-size: 32rpx;
  98. color: #333;
  99. font-weight: bold;
  100. margin-bottom: 20rpx;
  101. display: flex;
  102. }
  103. .info-item {
  104. display: flex;
  105. justify-content: space-between;
  106. /* #ifdef APP-NVUE */
  107. font-size: 28rpx;
  108. color: #666;
  109. /* #endif */
  110. margin-bottom: 18rpx;
  111. flex-direction: row;
  112. }
  113. .section-content {
  114. font-size: 28rpx;
  115. color: #444;
  116. line-height: 1.8;
  117. white-space: normal;
  118. }
  119. .grid-text {
  120. font-size: 24rpx;
  121. color: #000;
  122. padding: 10rpx 0 20rpx 0rpx;
  123. box-sizing: border-box;
  124. }
  125. .footer-btn {
  126. margin-top: 40rpx;
  127. display: flex;
  128. justify-content: center;
  129. }
  130. .main-btn {
  131. width: 80%;
  132. padding: 28rpx 0;
  133. font-size: 30rpx;
  134. color: #fff;
  135. border: none;
  136. border-radius: 100rpx;
  137. background: linear-gradient(to right, #36d1dc, #5b86e5);
  138. box-shadow: 0 10rpx 24rpx rgba(91, 134, 229, 0.3);
  139. }
  140. .label {
  141. font-weight: bold;
  142. color: #102a43;
  143. min-width: 150rpx;
  144. margin-right:30rpx;
  145. }
  146. .value {
  147. flex: 1;
  148. /* #ifdef APP-NVUE */
  149. white-space: nowrap;
  150. text-overflow: ellipsis;
  151. /* #endif */
  152. overflow: hidden;
  153. margin-left: 30rpx;
  154. }
  155. </style>