packingBomDetails.vue 4.1 KB

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