detailsBom.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <template>
  2. <view class="material ">
  3. <view class="title_box rx-bc">
  4. <view class="name">内包装</view>
  5. </view>
  6. <view class="content_table2" v-if='detailList.length'>
  7. <view class="head row rx-sc">
  8. <view class="item ww10">序号</view>
  9. <view class="item ww30">数量</view>
  10. <view class="item ww20">重量</view>
  11. <view class="item ww40">发货条码</view>
  12. </view>
  13. <view class="table">
  14. <u-list @scrolltolower="scrolltolower" class="z_list" style="height: 100% !important;">
  15. <view class="tr row rx-sc" v-for="(it, idx) in detailList" :key='idx'>
  16. <view class="item ww10 rx-cc ">{{ idx + 1 }}</view>
  17. <view class="item ww30 content_num rx-sc">
  18. <view>{{ it.quantity }} {{it.measuringUnit}}/ {{it.packingCount}} {{it.packingUnit}}</view>
  19. </view>
  20. <view class="item ww20">
  21. {{it.packingWeight}} {{it.weightUnit}}
  22. </view>
  23. <view class="item ww40">
  24. {{ it.sendCode }}
  25. </view>
  26. </view>
  27. </u-list>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. props: {
  36. detailList: {
  37. type: Array,
  38. default: () => []
  39. },
  40. },
  41. data() {
  42. return {
  43. }
  44. },
  45. created() {
  46. },
  47. methods: {
  48. scrolltolower() {
  49. },
  50. },
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .title_box {
  55. margin-top: 20rpx;
  56. .name {
  57. font-size: 28rpx;
  58. font-style: normal;
  59. font-weight: 400;
  60. color: $theme-color;
  61. padding-left: 20rpx;
  62. position: relative;
  63. &:before {
  64. position: absolute;
  65. content: '';
  66. left: 0rpx;
  67. top: 0rpx;
  68. bottom: 0rpx;
  69. width: 4rpx;
  70. height: 28rpx;
  71. background: $theme-color;
  72. margin: auto;
  73. }
  74. }
  75. }
  76. .material {
  77. margin-top: 10rpx;
  78. }
  79. .content_table2 {
  80. width: 100%;
  81. margin-top: 16rpx;
  82. .row {
  83. width: 100%;
  84. .item {
  85. color: #404446;
  86. font-size: 28rpx;
  87. padding-left: 12rpx;
  88. }
  89. .color157 {
  90. color: $theme-color;
  91. }
  92. .ww30 {
  93. width: 30%;
  94. }
  95. .ww50 {
  96. width: 50%;
  97. }
  98. .ww40 {
  99. width: 40%;
  100. }
  101. .ww90 {
  102. width: 90%;
  103. }
  104. .ww20 {
  105. width: 20%;
  106. }
  107. .ww10 {
  108. width: 10%;
  109. }
  110. .ww30 {
  111. width: 30%;
  112. }
  113. }
  114. .head {
  115. height: 64rpx;
  116. background: #F7F9FA;
  117. border-top: 2rpx solid #E3E5E5;
  118. border-left: 2rpx solid #E3E5E5;
  119. .item {
  120. height: 64rpx;
  121. line-height: 64rpx;
  122. border-right: 2rpx solid #E3E5E5;
  123. box-sizing: border-box;
  124. }
  125. .selectAll {
  126. color: $theme-color;
  127. font-size: 24rpx;
  128. }
  129. }
  130. .tr {
  131. border-top: 2rpx solid #E3E5E5;
  132. border-left: 2rpx solid #E3E5E5;
  133. .item {
  134. font-size: 24rpx;
  135. min-height: 64rpx;
  136. display: flex;
  137. align-items: center;
  138. border-right: 2rpx solid #E3E5E5;
  139. box-sizing: border-box;
  140. white-space: normal;
  141. word-break: break-all;
  142. }
  143. &:last-child {
  144. border-bottom: 2rpx solid #E3E5E5;
  145. }
  146. }
  147. }
  148. .content_num {
  149. display: flex;
  150. align-items: center;
  151. padding: 0 4rpx;
  152. /deep/ .uni-input-input {
  153. border: 2rpx solid #F0F8F2;
  154. background: #F0F8F2;
  155. color: $theme-color;
  156. }
  157. }
  158. .penalize {
  159. width: 86rpx;
  160. line-height: 60rpx;
  161. background: $theme-color;
  162. font-size: 24rpx;
  163. text-align: center;
  164. color: #fff;
  165. }
  166. .check {
  167. width: 30rpx;
  168. height: 30rpx;
  169. }
  170. .z_list {
  171. max-height: 300rpx;
  172. }
  173. </style>