invest.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <div class="body-invest">
  3. <main-title>使用的投入品</main-title>
  4. <div class="list-box animated fadeInUpBig">
  5. <h4>投入品清单</h4>
  6. <ul class="list">
  7. <li v-for="(x,key) in inputsList" :key="key" class>
  8. <span v-for="(c,i) in x" :key="i">{{c.inputsProcessName}}</span>
  9. </li>
  10. </ul>
  11. <h6>
  12. <span>经检验未使用违禁品</span>
  13. </h6>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. export default {
  19. computed: {
  20. inputsList() {
  21. let arr = [], list = this.$store.state.info.inputsList || [];
  22. for (let i = 0, x = 0; x = list[i]; i++) {
  23. arr.push([x, list[++i] || {}]);
  24. }
  25. return arr;
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="less">
  31. .body-invest {
  32. .list-box {
  33. display: flex;
  34. flex-direction: column;
  35. align-items: center;
  36. background: #f8f8f9;
  37. border-radius: 0.08rem;
  38. margin: 0.4rem 0.3rem;
  39. padding: 0.3rem;
  40. box-shadow: 0.05rem 0.05rem 0.1rem 0 rgba(0, 0, 0, 0.05);
  41. h4 {
  42. font-size: 0.24rem;
  43. padding-bottom: 0.2rem;
  44. position: relative;
  45. color: #00933b;
  46. &::after {
  47. content: '';
  48. position: absolute;
  49. bottom: 0;
  50. display: block;
  51. width: 80%;
  52. left: 0;
  53. right: 0;
  54. margin: auto;
  55. background: #00933b;
  56. height: 2px;
  57. }
  58. }
  59. > .list {
  60. margin: 0.4rem 0;
  61. font-size: 0.2rem;
  62. color: #242b31;
  63. width: 100%;
  64. > li {
  65. background: transparent;
  66. border-radius: 0.08rem;
  67. display: flex;
  68. justify-content: space-between;
  69. align-items: center;
  70. padding: 0.15rem 0.4rem;
  71. &:nth-child(odd) {
  72. background: #eaebed;
  73. }
  74. > span {
  75. width: 45%;
  76. }
  77. }
  78. }
  79. > h6 {
  80. font-size: 0.16rem;
  81. display: block;
  82. line-height: 1em;
  83. padding: 0 1em;
  84. position: relative;
  85. color: #3f8f46;
  86. &::before {
  87. content: '';
  88. position: absolute;
  89. top: 50%;
  90. transform: translateY(-50%);
  91. height: 1px;
  92. background: #3f8f46;
  93. left: -50%;
  94. right: -50%;
  95. z-index: -1;
  96. }
  97. &::after {
  98. content: '';
  99. display: block;
  100. position: absolute;
  101. top: 0;
  102. bottom: 0;
  103. left: 0;
  104. right: 0;
  105. background: #fff;
  106. z-index: 0;
  107. }
  108. > span {
  109. position: relative;
  110. z-index: 1;
  111. }
  112. }
  113. }
  114. }
  115. </style>