productsBom.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. props: {
  32. productsObj: {
  33. type: Object,
  34. default: () => {}
  35. }
  36. },
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .title_box {
  41. margin-top: 20rpx;
  42. .name {
  43. font-size: 28rpx;
  44. font-style: normal;
  45. font-weight: 400;
  46. color: $theme-color;
  47. padding-left: 20rpx;
  48. position: relative;
  49. &:before {
  50. position: absolute;
  51. content: '';
  52. left: 0rpx;
  53. top: 0rpx;
  54. bottom: 0rpx;
  55. width: 4rpx;
  56. height: 28rpx;
  57. background: $theme-color;
  58. margin: auto;
  59. }
  60. }
  61. }
  62. .material {
  63. margin-top: 10rpx;
  64. .left {
  65. width: 40rpx;
  66. }
  67. .zdy_check {
  68. width: 30rpx;
  69. height: 30rpx;
  70. border: 2rpx solid #c8c9cc;
  71. border-radius: 4rpx;
  72. }
  73. .check_active {
  74. background: $theme-color;
  75. border: 2rpx solid $theme-color;
  76. /deep/ .u-icon__icon {
  77. color: #fff !important;
  78. }
  79. }
  80. .content_table {
  81. width: 722rpx;
  82. border: 2rpx solid $border-color;
  83. .item {
  84. display: flex;
  85. border-bottom: 2rpx solid $border-color;
  86. .lable {
  87. width: 132rpx;
  88. text-align: center;
  89. background-color: #F7F9FA;
  90. font-size: 26rpx;
  91. border-right: 2rpx solid $border-color;
  92. flex-shrink: 0;
  93. }
  94. .ww80 {
  95. width: 80rpx;
  96. }
  97. .content {
  98. width: 518rpx;
  99. min-height: 64rpx;
  100. font-size: 28rpx;
  101. line-height: 28rpx;
  102. font-style: normal;
  103. font-weight: 400;
  104. padding: 18rpx 8rpx;
  105. box-sizing: border-box;
  106. word-wrap: break-word;
  107. flex-grow: 1 !important;
  108. }
  109. .content_num {
  110. display: flex;
  111. align-items: center;
  112. padding: 0 4rpx;
  113. /deep/ .uni-input-input {
  114. width: 200rpx;
  115. border: 2rpx solid #F0F8F2;
  116. background: #F0F8F2;
  117. color: $theme-color;
  118. }
  119. .unit {
  120. padding: 0 4rpx;
  121. font-size: 24rpx;
  122. color: #404446;
  123. }
  124. }
  125. .ww400 {
  126. /deep/ .uni-input-input {
  127. width: 400rpx;
  128. }
  129. }
  130. .pd4 {
  131. padding: 4rpx 8rpx;
  132. }
  133. &:last-child {
  134. border-bottom: none;
  135. }
  136. }
  137. .ww55 {
  138. width: 55%;
  139. }
  140. .ww45 {
  141. width: 45%;
  142. }
  143. }
  144. }
  145. </style>