paramBom.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <div>
  3. <div class="title_box rx-bc mt6">
  4. <div class="name">工艺参数 </div>
  5. <div class="rx-bc"> </div>
  6. </div>
  7. <div class="content_table2">
  8. <div class="head row rx-sc">
  9. <div class="item ww40">参数名</div>
  10. <div class="item ww40">参数值</div>
  11. <div class="item ww20">单位</div>
  12. </div>
  13. <div class="table">
  14. <div class="tr row rx-sc" v-for="(it, idx) in list" :key="idx">
  15. <div class="item ww40">
  16. {{ it.name }}
  17. </div>
  18. <div class="item ww40" v-if="it.textType != 3">
  19. {{ it.defaultValue }}
  20. </div>
  21. <div class="item ww40" v-if="it.textType == 3">
  22. {{ it.minValue }} - {{ it.maxValue }}
  23. </div>
  24. <div class="item ww20">
  25. {{ it.unitName }}
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. name: 'ProduceBom',
  35. props: {
  36. list: {
  37. type: Array,
  38. default: () => []
  39. }
  40. },
  41. data() {
  42. return {};
  43. }
  44. };
  45. </script>
  46. <style lang="scss" scoped>
  47. .content_table2 {
  48. width: 100%;
  49. margin-top: 6px;
  50. .row {
  51. width: 100%;
  52. .item {
  53. color: #404446;
  54. font-size: 14px;
  55. padding-left: 6px;
  56. }
  57. .color157 {
  58. color: #157a2c;
  59. }
  60. .ww40 {
  61. width: 40%;
  62. }
  63. .ww20 {
  64. width: 20%;
  65. }
  66. }
  67. .head {
  68. height: 32px;
  69. background: #f7f9fa;
  70. border-top: 1px solid #e3e5e5;
  71. border-left: 1px solid #e3e5e5;
  72. .item {
  73. height: 32px;
  74. line-height: 32px;
  75. border-right: 1px solid #e3e5e5;
  76. box-sizing: border-box;
  77. }
  78. }
  79. .tr {
  80. border-top: 1px solid #e3e5e5;
  81. border-left: 1px solid #e3e5e5;
  82. .item {
  83. font-size: 12px;
  84. min-height: 32px;
  85. display: flex;
  86. align-items: center;
  87. border-right: 1px solid #e3e5e5;
  88. box-sizing: border-box;
  89. white-space: normal;
  90. word-break: break-all;
  91. }
  92. &:last-child {
  93. border-bottom: 1px solid #e3e5e5;
  94. }
  95. }
  96. }
  97. </style>