detailsBom.vue 3.7 KB

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