byProductBom.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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">
  8. <view class="head row rx-sc">
  9. <view class="item ww30">物料编码</view>
  10. <view class="item ww30">物料名称</view>
  11. <view class="item ww40">重量</view>
  12. </view>
  13. <view class="table">
  14. <view class="tr row rx-sc" v-for="(item, index) in list" :key='index'>
  15. <view class="item ww30">{{item.code}}</view>
  16. <view class="item ww30">{{item.name}}</view>
  17. <view class="item ww40 content_num">
  18. <input class="uni-input" v-model="item.recycleQuantity" type="digit"></input>
  19. <view class="unit">{{item.unit}}</view>
  20. <view class="penalize">处置</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. props: {
  31. list: {
  32. type: Array,
  33. default: () => {}
  34. }
  35. },
  36. data() {
  37. return {
  38. demandQuantity: null
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .title_box {
  45. margin-top: 20rpx;
  46. .name {
  47. font-size: 28rpx;
  48. font-style: normal;
  49. font-weight: 400;
  50. color: $theme-color;
  51. padding-left: 20rpx;
  52. position: relative;
  53. &:before {
  54. position: absolute;
  55. content: '';
  56. left: 0rpx;
  57. top: 0rpx;
  58. bottom: 0rpx;
  59. width: 4rpx;
  60. height: 28rpx;
  61. background: $theme-color;
  62. margin: auto;
  63. }
  64. }
  65. }
  66. .material {
  67. margin-top: 10rpx;
  68. .content_table {
  69. width: 100%;
  70. .row {
  71. width: 100%;
  72. .item {
  73. color: #404446;
  74. font-size: 28rpx;
  75. padding-left: 12rpx;
  76. }
  77. .ww30 {
  78. width: 30%;
  79. }
  80. .ww40 {
  81. width: 40%;
  82. }
  83. }
  84. .head {
  85. height: 64rpx;
  86. background: #F7F9FA;
  87. border-top: 2rpx solid #E3E5E5;
  88. border-left: 2rpx solid #E3E5E5;
  89. .item {
  90. height: 64rpx;
  91. line-height: 64rpx;
  92. border-right: 2rpx solid #E3E5E5;
  93. box-sizing: border-box;
  94. }
  95. }
  96. .tr {
  97. border-top: 2rpx solid #E3E5E5;
  98. border-left: 2rpx solid #E3E5E5;
  99. .item {
  100. font-size: 24rpx;
  101. min-height: 64rpx;
  102. display: flex;
  103. align-items: center;
  104. border-right: 2rpx solid #E3E5E5;
  105. box-sizing: border-box;
  106. white-space: normal;
  107. word-break: break-all;
  108. }
  109. &:last-child {
  110. border-bottom: 2rpx solid #E3E5E5;
  111. }
  112. }
  113. }
  114. .content_num {
  115. display: flex;
  116. align-items: center;
  117. padding: 0 4rpx;
  118. /deep/ .uni-input-input {
  119. border: 2rpx solid #F0F8F2;
  120. background: #F0F8F2;
  121. color: $theme-color;
  122. }
  123. .unit {
  124. width: 100rpx;
  125. font-size: 24rpx;
  126. color: #404446;
  127. }
  128. .penalize {
  129. width: 160rpx;
  130. line-height: 60rpx;
  131. background: $theme-color;
  132. font-size: 24rpx;
  133. text-align: center;
  134. color: #fff;
  135. }
  136. }
  137. }
  138. </style>