palletBom.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc" v-if='palletList.length > 0'>
  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">编码</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" v-if="isDetails">
  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" type='digit' :disabled="isDetails"></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. isDetails: {
  50. type: Boolean,
  51. default: false
  52. }
  53. },
  54. data() {
  55. return {
  56. }
  57. },
  58. created() {
  59. },
  60. methods: {
  61. },
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .title_box {
  66. margin-top: 20rpx;
  67. .name {
  68. font-size: 28rpx;
  69. font-style: normal;
  70. font-weight: 400;
  71. color: $theme-color;
  72. padding-left: 20rpx;
  73. position: relative;
  74. &:before {
  75. position: absolute;
  76. content: '';
  77. left: 0rpx;
  78. top: 0rpx;
  79. bottom: 0rpx;
  80. width: 4rpx;
  81. height: 28rpx;
  82. background: $theme-color;
  83. margin: auto;
  84. }
  85. }
  86. }
  87. .material {
  88. margin-top: 10rpx;
  89. .content_table {
  90. width: 100%;
  91. border: 2rpx solid $border-color;
  92. .item {
  93. display: flex;
  94. border-bottom: 2rpx solid $border-color;
  95. .lable {
  96. width: 132rpx;
  97. text-align: center;
  98. background-color: #F7F9FA;
  99. font-size: 26rpx;
  100. border-right: 2rpx solid $border-color;
  101. flex-shrink: 0;
  102. }
  103. .lable220 {
  104. width: 220rpx !important;
  105. font-size: 24rpx;
  106. }
  107. .lable150 {
  108. width: 156rpx !important;
  109. font-size: 24rpx;
  110. }
  111. .ww80 {
  112. width: 80rpx;
  113. }
  114. .content {
  115. width: 518rpx;
  116. min-height: 64rpx;
  117. font-size: 28rpx;
  118. line-height: 28rpx;
  119. font-style: normal;
  120. font-weight: 400;
  121. padding: 18rpx 8rpx;
  122. box-sizing: border-box;
  123. word-wrap: break-word;
  124. flex-grow: 1 !important;
  125. .unit {
  126. padding: 0 4rpx;
  127. font-size: 24rpx;
  128. color: #404446;
  129. }
  130. .penalize {
  131. width: 160rpx;
  132. line-height: 60rpx;
  133. background: $theme-color;
  134. font-size: 24rpx;
  135. text-align: center;
  136. color: #fff;
  137. }
  138. }
  139. .content_num {
  140. display: flex;
  141. align-items: center;
  142. padding: 0 4rpx;
  143. /deep/ .uni-input-input {
  144. border: 2rpx solid #F0F8F2;
  145. background: #F0F8F2;
  146. color: $theme-color;
  147. }
  148. }
  149. .pd4 {
  150. padding: 4rpx 8rpx;
  151. }
  152. &:last-child {
  153. border-bottom: none;
  154. }
  155. }
  156. .ww55 {
  157. width: 55%;
  158. }
  159. .ww45 {
  160. width: 45%;
  161. }
  162. }
  163. }
  164. </style>