palletBom.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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_table' v-for="(item,index) in palletList" :key='index'>
  8. <view class="item">
  9. <view class="lable rx-cc">code</view>
  10. <view class="content ">
  11. {{item.code}}
  12. </view>
  13. </view>
  14. <view class="item">
  15. <view class="lable rx-cc">名称</view>
  16. <view class="content ">
  17. {{item.name}}
  18. </view>
  19. </view>
  20. <view class="item">
  21. <view class="lable rx-cc">型号</view>
  22. <view class="content">
  23. {{item.modelType}}
  24. </view>
  25. </view>
  26. <view class="item">
  27. <view class="lable rx-cc">仓库</view>
  28. <view class="content">
  29. {{item.pathName || item.positionVO && item.positionVO[0].pathName}}
  30. </view>
  31. </view>
  32. <view class="item">
  33. <view class="lable rx-cc">数量</view>
  34. <view class="content content_num">
  35. <input class="uni-input" v-model="item.feedQuantity || 1" type='digit' ></input>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. props: {
  45. palletList: {
  46. type: Array,
  47. default: () => []
  48. }
  49. },
  50. data() {
  51. return {
  52. }
  53. },
  54. created() {
  55. },
  56. methods: {
  57. },
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .title_box {
  62. margin-top: 20rpx;
  63. .name {
  64. font-size: 28rpx;
  65. font-style: normal;
  66. font-weight: 400;
  67. color: $theme-color;
  68. padding-left: 20rpx;
  69. position: relative;
  70. &:before {
  71. position: absolute;
  72. content: '';
  73. left: 0rpx;
  74. top: 0rpx;
  75. bottom: 0rpx;
  76. width: 4rpx;
  77. height: 28rpx;
  78. background: $theme-color;
  79. margin: auto;
  80. }
  81. }
  82. }
  83. .material {
  84. margin-top: 10rpx;
  85. .content_table {
  86. width: 100%;
  87. border: 2rpx solid $border-color;
  88. .item {
  89. display: flex;
  90. border-bottom: 2rpx solid $border-color;
  91. .lable {
  92. width: 132rpx;
  93. text-align: center;
  94. background-color: #F7F9FA;
  95. font-size: 26rpx;
  96. border-right: 2rpx solid $border-color;
  97. flex-shrink: 0;
  98. }
  99. .lable220 {
  100. width: 220rpx !important;
  101. font-size: 24rpx;
  102. }
  103. .lable150 {
  104. width: 156rpx !important;
  105. font-size: 24rpx;
  106. }
  107. .ww80 {
  108. width: 80rpx;
  109. }
  110. .content {
  111. width: 518rpx;
  112. min-height: 64rpx;
  113. font-size: 28rpx;
  114. line-height: 28rpx;
  115. font-style: normal;
  116. font-weight: 400;
  117. padding: 18rpx 8rpx;
  118. box-sizing: border-box;
  119. word-wrap: break-word;
  120. flex-grow: 1 !important;
  121. .unit {
  122. padding: 0 4rpx;
  123. font-size: 24rpx;
  124. color: #404446;
  125. }
  126. .penalize {
  127. width: 160rpx;
  128. line-height: 60rpx;
  129. background: $theme-color;
  130. font-size: 24rpx;
  131. text-align: center;
  132. color: #fff;
  133. }
  134. }
  135. .content_num {
  136. display: flex;
  137. align-items: center;
  138. padding: 0 4rpx;
  139. /deep/ .uni-input-input {
  140. border: 2rpx solid #F0F8F2;
  141. background: #F0F8F2;
  142. color: $theme-color;
  143. }
  144. }
  145. .pd4 {
  146. padding: 4rpx 8rpx;
  147. }
  148. &:last-child {
  149. border-bottom: none;
  150. }
  151. }
  152. .ww55 {
  153. width: 55%;
  154. }
  155. .ww45 {
  156. width: 45%;
  157. }
  158. }
  159. }
  160. </style>