diagramLast.vue 1.9 KB

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