detailsBom.vue 3.5 KB

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