qualityStat.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">质检统计</view>
  5. </view>
  6. <view class="material ">
  7. <view class="content_table" v-for="(item, index) in normalQuality" :key="index">
  8. <view class="item">
  9. <view class="lable rx-cc">质检类型</view>
  10. <view class="content">
  11. {{ item.inspectionName }}
  12. </view>
  13. </view>
  14. <view class="item rx-sc">
  15. <view class="rx ww55 ">
  16. <view class="lable rx-cc">废品数量</view>
  17. <view class="content rx-sc">
  18. <view>{{item.quantity}}</view>
  19. <view class="unit">{{item.unit}}</view>
  20. </view>
  21. </view>
  22. <view class="rx ww45">
  23. <view class="lable rx-cc ww80"></view>
  24. <view class="content">
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. props: {
  35. normalQuality: {
  36. type: Array,
  37. default: () => []
  38. }
  39. },
  40. data() {
  41. return {
  42. }
  43. },
  44. created() {
  45. },
  46. methods: {
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .title_box {
  52. margin-top: 28rpx;
  53. .name {
  54. font-size: 28rpx;
  55. font-style: normal;
  56. font-weight: 400;
  57. color: $theme-color;
  58. padding-left: 20rpx;
  59. position: relative;
  60. &:before {
  61. position: absolute;
  62. content: '';
  63. left: 0rpx;
  64. top: 0rpx;
  65. bottom: 0rpx;
  66. width: 4rpx;
  67. height: 28rpx;
  68. background: $theme-color;
  69. margin: auto;
  70. }
  71. }
  72. .btn_box {
  73. padding: 0 18rpx;
  74. height: 60rpx;
  75. background: $theme-color;
  76. font-size: 26rpx;
  77. font-style: normal;
  78. font-weight: 400;
  79. font-size: 24rpx;
  80. color: #fff;
  81. border-radius: 4rpx;
  82. .scan {
  83. width: 34rpx;
  84. height: 34rpx;
  85. margin-right: 12rpx;
  86. }
  87. }
  88. }
  89. .material {
  90. margin-top: 10rpx;
  91. .content_table {
  92. width: 100%;
  93. border: 2rpx solid $border-color;
  94. .item {
  95. display: flex;
  96. border-bottom: 2rpx solid $border-color;
  97. .lable {
  98. width: 156rpx;
  99. text-align: center;
  100. background-color: #F7F9FA;
  101. font-size: 26rpx;
  102. border-right: 2rpx solid $border-color;
  103. flex-shrink: 0;
  104. }
  105. .lable150 {
  106. width: 156rpx !important;
  107. font-size: 24rpx;
  108. }
  109. .ww80 {
  110. width: 80rpx;
  111. }
  112. .content {
  113. width: 518rpx;
  114. min-height: 64rpx;
  115. font-size: 28rpx;
  116. line-height: 28rpx;
  117. font-style: normal;
  118. font-weight: 400;
  119. padding: 18rpx 8rpx;
  120. box-sizing: border-box;
  121. word-wrap: break-word;
  122. flex-grow: 1 !important;
  123. .unit {
  124. padding: 0 4rpx;
  125. font-size: 24rpx;
  126. color: #404446;
  127. }
  128. .penalize {
  129. width: 200rpx;
  130. line-height: 60rpx;
  131. background: $theme-color;
  132. font-size: 24rpx;
  133. text-align: center;
  134. color: #fff;
  135. }
  136. }
  137. .pd4 {
  138. padding: 4rpx 8rpx;
  139. }
  140. &:last-child {
  141. border-bottom: none;
  142. }
  143. }
  144. .ww55 {
  145. width: 55%;
  146. }
  147. .ww45 {
  148. width: 45%;
  149. }
  150. }
  151. }
  152. .content_num {
  153. display: flex;
  154. align-items: center;
  155. padding: 0 4rpx;
  156. box-sizing: border-box;
  157. /deep/ .uni-input-input {
  158. border: 2rpx solid #F0F8F2;
  159. min-width: 100rpx;
  160. background: #F0F8F2;
  161. color: $theme-color;
  162. box-sizing: border-box;
  163. }
  164. }
  165. </style>