packingBomDetails.vue 4.1 KB

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