productsBom.vue 3.3 KB

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