diagramLast.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <view>
  3. <view class="material ">
  4. <view class="content_table">
  5. <view class="item">
  6. <view class="lable rx-cc">工序名称</view>
  7. <view class="content">
  8. {{item.diagramLast.taskTypeName}}
  9. </view>
  10. </view>
  11. <view class="item rx-sc">
  12. <view class="rx ww55 ">
  13. <view class="lable rx-cc">合格数量</view>
  14. <view class="content rx-sc">
  15. <view>{{ item.formedNum }}</view>
  16. </view>
  17. </view>
  18. <view class="rx ww45">
  19. <view class="lable rx-cc ww80">重量</view>
  20. <view class="content">
  21. {{ item.formedWeight}} {{item.unit}}
  22. </view>
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="lable rx-cc">已质检数量</view>
  27. <view class="content">
  28. {{ feedCount }}
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. props: {
  38. item: {
  39. type: Object,
  40. default: () => {}
  41. },
  42. count: {
  43. type: Number,
  44. default: 0
  45. }
  46. },
  47. watch: {
  48. count: {
  49. immediate: true,
  50. deep: true,
  51. handler(val) {
  52. console.log(val)
  53. this.feedCount = val
  54. }
  55. }
  56. },
  57. data() {
  58. return {
  59. feedCount: 0
  60. }
  61. },
  62. created() {
  63. },
  64. methods: {
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .material {
  70. margin-top: 10rpx;
  71. .content_table {
  72. width: 100%;
  73. border: 2rpx solid $border-color;
  74. .item {
  75. display: flex;
  76. border-bottom: 2rpx solid $border-color;
  77. .lable {
  78. width: 156rpx;
  79. text-align: center;
  80. background-color: #F7F9FA;
  81. font-size: 26rpx;
  82. border-right: 2rpx solid $border-color;
  83. flex-shrink: 0;
  84. }
  85. .lable150 {
  86. width: 156rpx !important;
  87. font-size: 24rpx;
  88. }
  89. .ww80 {
  90. width: 80rpx;
  91. }
  92. .content {
  93. width: 518rpx;
  94. min-height: 64rpx;
  95. font-size: 28rpx;
  96. line-height: 28rpx;
  97. font-style: normal;
  98. font-weight: 400;
  99. padding: 18rpx 8rpx;
  100. box-sizing: border-box;
  101. word-wrap: break-word;
  102. flex-grow: 1 !important;
  103. .unit {
  104. padding: 0 4rpx;
  105. font-size: 24rpx;
  106. color: #404446;
  107. }
  108. .penalize {
  109. width: 200rpx;
  110. line-height: 60rpx;
  111. background: $theme-color;
  112. font-size: 24rpx;
  113. text-align: center;
  114. color: #fff;
  115. }
  116. }
  117. .pd4 {
  118. padding: 4rpx 8rpx;
  119. }
  120. &:last-child {
  121. border-bottom: none;
  122. }
  123. }
  124. .ww55 {
  125. width: 55%;
  126. }
  127. .ww45 {
  128. width: 45%;
  129. }
  130. }
  131. }
  132. </style>