productsBom.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc" v-if="productsObj.name != 'undefined' && productsObj.feedQuantity != 'undefined' ">
  4. <view class="name">在制品</view>
  5. </view>
  6. <view class="material rx-ss" v-if="productsObj.name != 'undefined' && productsObj.feedQuantity != 'undefined' ">
  7. <view class="content_table">
  8. <view class="item">
  9. <view class="lable rx-cc">名称</view>
  10. <view class="content"> {{ productsObj.name + '-在制品' }} </view>
  11. </view>
  12. <view class="item">
  13. <view class="lable rx-cc">牌号</view>
  14. <view class="content"> {{ productsObj.brandNum }} </view>
  15. </view>
  16. <view class="item">
  17. <view class="lable rx-cc">型号</view>
  18. <view class="content"> {{ productsObj.modelType }} </view>
  19. </view>
  20. <view class="item">
  21. <view class="lable rx-cc">数量</view>
  22. <view class="content"> {{ productsObj.feedQuantity || 0 }} {{ productsObj.unit }} </view>
  23. </view>
  24. <view class="item">
  25. <view class="lable rx-cc">投料数量</view>
  26. <view class="content content_num"> {{ productsObj.unit }} </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. props: {
  36. productsObj: {
  37. type: Object,
  38. default: () => {}
  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. .left {
  69. width: 40rpx;
  70. }
  71. .zdy_check {
  72. width: 30rpx;
  73. height: 30rpx;
  74. border: 2rpx solid #c8c9cc;
  75. border-radius: 4rpx;
  76. }
  77. .check_active {
  78. background: $theme-color;
  79. border: 2rpx solid $theme-color;
  80. /deep/ .u-icon__icon {
  81. color: #fff !important;
  82. }
  83. }
  84. .content_table {
  85. width: 722rpx;
  86. border: 2rpx solid $border-color;
  87. .item {
  88. display: flex;
  89. border-bottom: 2rpx solid $border-color;
  90. .lable {
  91. width: 132rpx;
  92. text-align: center;
  93. background-color: #F7F9FA;
  94. font-size: 26rpx;
  95. border-right: 2rpx solid $border-color;
  96. flex-shrink: 0;
  97. }
  98. .ww80 {
  99. width: 80rpx;
  100. }
  101. .content {
  102. width: 518rpx;
  103. min-height: 64rpx;
  104. font-size: 28rpx;
  105. line-height: 28rpx;
  106. font-style: normal;
  107. font-weight: 400;
  108. padding: 18rpx 8rpx;
  109. box-sizing: border-box;
  110. word-wrap: break-word;
  111. flex-grow: 1 !important;
  112. }
  113. .content_num {
  114. display: flex;
  115. align-items: center;
  116. padding: 0 4rpx;
  117. /deep/ .uni-input-input {
  118. width: 200rpx;
  119. border: 2rpx solid #F0F8F2;
  120. background: #F0F8F2;
  121. color: $theme-color;
  122. }
  123. .unit {
  124. padding: 0 4rpx;
  125. font-size: 24rpx;
  126. color: #404446;
  127. }
  128. }
  129. .ww400 {
  130. /deep/ .uni-input-input {
  131. width: 400rpx;
  132. }
  133. }
  134. .pd4 {
  135. padding: 4rpx 8rpx;
  136. }
  137. &:last-child {
  138. border-bottom: none;
  139. }
  140. }
  141. .ww55 {
  142. width: 55%;
  143. }
  144. .ww45 {
  145. width: 45%;
  146. }
  147. }
  148. }
  149. </style>