选煤厂生产管理平台前端代码
dongyukun
2024-12-10 5cc1d92af645c2f8f4f6d1d3777283b70df78ccd
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<template>
  <el-card shadow="never" class="aui-card--fill">
    <el-row :gutter="10">
      <el-col :span="4">
        <el-card class="box-card-task-statistics">
          <div class="text item">昨日原煤调入量</div>
          <el-row type="flex" justify="space-between">
            <div class="amountText">
              {{dataForm.coalTransferIn }}
              <span class="title-unit">t</span>
            </div>
            <img class="img" src="./image/原煤调入.png"/>
          </el-row>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card class="box-card-task-statistics">
          <div class="text item">昨日原煤入洗量</div>
          <el-row type="flex" justify="space-between">
            <div class="amountText">
              {{ dataForm.coalToWash }} <span class="title-unit">t</span>
            </div>
            <img class="img" src="./image/原煤入洗.png"/>
          </el-row>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card class="box-card-task-statistics">
          <div class="text item">昨日生产量统计</div>
          <el-row type="flex" justify="space-between">
            <div class="amountText">
              {{ dataForm.prodVolume }} <span class="title-unit">t</span>
            </div>
            <img class="img" src="./image/生产量.png"/>
          </el-row>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card class="box-card-task-statistics">
          <div class="text item">昨日耗电量</div>
          <el-row type="flex" justify="space-between">
            <div class="amountText">
              <span v-if="Number(dataForm.powerConsumption) ===  Number('-2')"
                    style="color: red;">昨日电耗通讯中断</span>
              <span v-else>{{ dataForm.powerConsumption}}</span>
              <span v-if="Number(dataForm.powerConsumption) !=  Number('-2')"
                    class="title-unit">kWh</span>
            </div>
            <img class="img" src="./image/耗电量.png"/>
          </el-row>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card class="box-card-task-statistics">
          <div class="text item">昨日吨煤电耗</div>
          <el-row type="flex" justify="space-between">
            <div class="amountText">
              <span v-if="Number(dataForm.coalToWash)===Number('0')"
                    style="color: red;">昨日未入洗</span>
              <span
                v-else>{{(dataForm.powerConsumption/dataForm.coalToWash).toFixed(2)}}</span>
              <span v-if="Number(dataForm.coalToWash)!=Number('0')"
                    class="title-unit">kwh/t</span>
            </div>
            <img class="img" src="./image/耗介量.png"/>
          </el-row>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card class="box-card-task-statistics">
          <div class="text item">昨日生产事故时长</div>
          <el-row type="flex" justify="space-between">
            <div class="amountText">
              {{ dataForm.prodAccidentTime==null?"0":dataForm.prodAccidentTime}}
              <span class="title-unit">min</span>
            </div>
            <img class="img" src="./image/生产事故.png"/>
          </el-row>
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="10" style="margin-top: 20px">
      <el-col :span="10">
        <el-card style="height: 20rem" :body-style="{ height: '100%' }">
          小时量
          <bar-line :option="hourVolume"/>
        </el-card>
      </el-col>
      <el-col :span="10">
        <el-card style="height: 20rem" :body-style="{ height: '100%' }">
          指标消耗
          <bar-line :option="targetConsume"/>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card style="height: 20rem">
          <div>
            <slot name="header">
            <span style="font-size: 15px" :body-style="{ height: '100%' }">
              当班信息
            </span>
            </slot>
          </div>
          <table>
            <tr>
              <td class="duty-title">值班领导:</td>
              <td class="duty-text">{{ dutyInfo.zbldName }}</td>
            </tr>
            <tr>
              <td class="duty-title">值班调度:</td>
              <td class="duty-text">{{ dutyInfo.zbddName }}</td>
            </tr>
            <tr>
              <td class="duty-title">洗选车间值班:</td>
              <td class="duty-text">{{ dutyInfo.xxcjzbName }}</td>
            </tr>
            <tr>
              <td class="duty-title">机电车间值班:</td>
              <td class="duty-text">{{ dutyInfo.jdcjzbName }}</td>
            </tr>
          </table>
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="10" style="margin-top: 20px">
      <el-col :span="10">
        <el-card style="height: 20rem" :body-style="{ height: '100%' }">
          昨日运行时长
          <bar-line :option="runTime"/>
        </el-card>
      </el-col>
      <el-col :span="10">
        <el-card style="height: 20rem" :body-style="{ height: '100%' }">
          当前原煤存量
          <bar-line :option="inventory"/>
        </el-card>
      </el-col>
      <el-col :span="4">
        <el-card style="height: 20rem">
            <div>
              <slot name="header">
            <span style="font-size: 15px" :body-style="{ height: '100%' }">
              调入来源
            </span>
                </slot>
          </div>
          <table>
            <tr>
              <td style="width: 120px; padding: 1px">主碎车间来煤:</td>
              <td style="padding: 1px">{{ drly.LM_YMP }}</td>
            </tr>
            <tr>
              <td style="width: 120px; padding: 1px">原煤棚来煤:</td>
              <td style="padding: 1px">{{ drly.LM_ZSCJ }}</td>
            </tr>
          </table>
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="10" style="margin-top: 20px">
      <el-col :span="12">
        <el-card style="height: 20rem" :body-style="{ height: '100%' }">
          原煤调入趋势
          <bar-line :option="coalTransferIn"/>
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card style="height: 20rem" :body-style="{ height: '100%' }">
          生产量趋势
          <bar-line :option="prodVolume"/>
        </el-card>
      </el-col>
    </el-row>
  </el-card>
</template>
 
<script lang="ts" setup>
 
  defineOptions({name: 'Board'})
 
 
  const dataForm = reactive({
    coalTransferIn: "",
    coalToWash: "",
    prodVolume: "",
    powerConsumption: "",
    mediumConsumption: "",
    prodAccidentTime: "",
  })
  const dutyInfo = {}
  const hourVolume = {}
  const targetConsume = {}
  const runTime = {}
  const inventory = {}
  const prodVolume = {}
  const coalTransferIn = {}
  const coalToWash = {}
  const drly = reactive({
    LM_YMP: "",
    LM_ZSCJ: "",
  })
 
</script>
 
<style scoped>
  .title-unit {
    padding: 2px;
    font-size: 16px;
  }
 
  .duty-title {
    text-align: right;
  }
 
  .duty-text {
    text-align: left;
    font-size: 16px;
    font-weight: 500;
  }
 
  .text {
    margin-top: -15px;
    font-size: 15px;
    color: black;
  }
 
  .amountText {
    margin-top: 10px;
    font-size: 20px;
    color: black;
  }
 
  .item {
    padding: 10px 0;
  }
 
  .box-card-task-statistics {
    height: 100px;
    text-align: left;
  }
 
  .order-chart {
    height: 160px;
  }
 
  .order-type-chart {
    height: 300px;
  }
 
  .img {
    height: 40px;
    width: 40px;
  }
 
  .right-table {
    width: 90px;
    color: #99a9bf;
  }
 
  th,
  td {
    padding: 8px;
    text-align: left;
  }
</style>