diagramLast.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. props: {
  32. item: {
  33. type: Object,
  34. default: () => {}
  35. },
  36. },
  37. watch: {
  38. },
  39. data() {
  40. return {
  41. }
  42. },
  43. created() {
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .material {
  51. margin-top: 40rpx;
  52. .content_table {
  53. width: 100%;
  54. border: 2rpx solid $border-color;
  55. .item {
  56. display: flex;
  57. border-bottom: 2rpx solid $border-color;
  58. .lable {
  59. width: 156rpx;
  60. text-align: center;
  61. background-color: #F7F9FA;
  62. font-size: 26rpx;
  63. border-right: 2rpx solid $border-color;
  64. flex-shrink: 0;
  65. }
  66. .lable150 {
  67. width: 156rpx !important;
  68. font-size: 24rpx;
  69. }
  70. .ww80 {
  71. width: 80rpx;
  72. }
  73. .content {
  74. width: 518rpx;
  75. min-height: 64rpx;
  76. font-size: 28rpx;
  77. line-height: 28rpx;
  78. font-style: normal;
  79. font-weight: 400;
  80. padding: 18rpx 8rpx;
  81. box-sizing: border-box;
  82. word-wrap: break-word;
  83. flex-grow: 1 !important;
  84. .unit {
  85. padding: 0 4rpx;
  86. font-size: 24rpx;
  87. color: #404446;
  88. }
  89. .penalize {
  90. width: 200rpx;
  91. line-height: 60rpx;
  92. background: $theme-color;
  93. font-size: 24rpx;
  94. text-align: center;
  95. color: #fff;
  96. }
  97. }
  98. .pd4 {
  99. padding: 4rpx 8rpx;
  100. }
  101. &:last-child {
  102. border-bottom: none;
  103. }
  104. }
  105. .ww55 {
  106. width: 55%;
  107. }
  108. .ww45 {
  109. width: 45%;
  110. }
  111. }
  112. }
  113. </style>