detailsBatchBom.vue 3.7 KB

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