yangfeng
2023-12-06 d372f82db7bf15ed38f8faf2e6b90080f9343c04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template>
  <div class="statistical-box">
    <div v-for="item in allList" class="all-bg">
      <div class="box">
        <div class="commom-title">{{ item.label }}</div>
        <div
          class="commom-value"
          :class="
            item.label == '延期交付' || item.label == '物料不足'
              ? 'redColor'
              : ''
          "
        >
          {{ item.value }}
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  components: {},
  props: {
    allList: {
      type: Array,
      default: () => [
        {
          value: 200,
          label: "开机台数",
        },
        {
          value: 1200,
          label: "总产量",
        },
        {
          value: 200,
          label: "生产工单数",
        },
        {
          value: 20,
          label: "延期交付",
        },
        {
          value: 10,
          label: "物料不足",
        },
        {
          value: 2,
          label: "计划达成率",
        },
      ],
    },
  },
  data() {
    return {};
  },
  mounted() {},
  watch: {},
  methods: {},
};
</script>
 
<style scoped lang="scss">
.statistical-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .all-bg {
    width: 15%;
    height: 100%;
    text-align: center;
    border: 1px solid #00ffff;
    background: linear-gradient(90deg, #09132c, #09374f);
    color: #dcb018;
    display: flex;
    align-items: center;
    justify-content: center;
    .box {
      .commom-title {
        font-size: 18px;
        font-family: "Arial Normal", "Arial";
        font-weight: 400;
      }
      .commom-value {
        font-size: 28px;
        font-family: "Arial Negreta", "Arial Normal", "Arial";
        font-weight: 700;
      }
      .redColor {
        color: #ff0000;
      }
    }
  }
}
</style>