skyouc
2025-06-22 fee38f39e36bcda9924f5b26dca609dda6b331e0
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<template>
  <div id="digital-flop">
    <div class="digital-flop-item" v-for="(item,index) in Object.keys(waveLabels)" :key="index">
      <div class="digital-flop-title">{{ waveLabels[item] }}</div>
      <div class="digital-flop">
        <div class="cell-item" v-if="item == 'workQty'">
          {{data.anfme - data[item]}}
        </div>
        <div class="cell-item" v-else>
          {{data[item]}}
        </div>
      </div>
    </div>
    <dv-decoration-10 />
  </div>
</template>
 
<script>
export default {
  name: 'DigitalFlop',
  data () {
    return {
      digitalFlopData: [],
      waveLabels: {
        orderNo: '订单编号',
        siteNo: '播种位',
        matnr: '物料编号',
        batch: '批号',
        waveNo: '波次',
        anfme: '总需求',
        workQty: '剩余需求',
      }
    }
  },
 
  props: {
    data: Object
  },
  methods: {
 
  },
 
  mounted () {
    // setInterval(createData, 30000)
  }
}
</script>
 
<style lang="less">
 
  @media screen and (max-width: 1920px){
    #digital-flop {
      position: relative;
      height: 100%;
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: rgba(6, 30, 93, 0.5);
 
      .dv-decoration-10 {
        position: absolute;
        width: 95%;
        left: 2.5%;
        height: 5px;
        bottom: 0px;
      }
 
      .digital-flop-item {
        width: auto;
        padding: 10px;
        height: 80%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }
 
      .digital-flop-title {
        padding: 10px;
        font-size: 20px;
      }
 
      .digital-flop {
        display: flex;
 
        .cell-item {
          height: 50px;
          text-align: center;
          font-style: italic;
          font-size: 18px;
        }
      }
 
      .unit {
        margin-left: 10px;
        display: flex;
        align-items: flex-end;
        box-sizing: border-box;
        padding-bottom: 13px;
      }
    }
  }
 
  @media screen and (max-width: 1280px) {
    #digital-flop{
      .digital-flop-item {
        padding: 10px 0;
 
        .digital-flop-title {
          padding: 5px 0;
          text-align: center;
          min-width: 36px;
          font-size: 9px;
        }
 
        .digital-flop {
          .cell-item {
            font-size: 9px;
            height: unset;
          }
        }
      }
 
 
 
 
    }
  }
 
</style>