Blame view

HHECS.Web/src/views/main/components/DeviceData.vue 68.6 KB
王硕 authored
1
<template>
胡菁 authored
2
  <el-container class="device-data">
胡菁 authored
3
    <div class="card-container">
胡菁 authored
4
5
6
7
8
      <el-card
        v-for="(item, index) in srmList"
        :key="item.code"
        class="box-card"
      >
胡菁 authored
9
10
        <div class="container">
          <el-row class="row-root">
胡菁 authored
11
            <span class="big-span">{{ item.name }}</span> 一
胡菁 authored
12
13
14
15
16
            <span>{{
              item.disable == false
                ? $t("main.device.enable")
                : $t("main.device.disable")
            }}</span>
胡菁 authored
17
          </el-row>
18
19
          <el-divider />
          <el-descriptions :column="3" size="mini" border>
胡菁 authored
20
21
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
22
              :label="$t('main.device.operatingMode')"
胡菁 authored
23
24
25
26
27
28
29
30
              ><el-tag
                size="small"
                :type="getEnumOperationModel(item.operationModel).color"
                >{{ getEnumOperationModel(item.operationModel).text }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
31
              :label="$t('main.device.horizontalDistance')"
胡菁 authored
32
33
34
35
36
37
38
39
              ><el-tag
                size="small"
                :type="item.horizontalDistance == null ? itemColor : ''"
                >{{ getEnumText(item.horizontalDistance) }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
40
              :label="$t('main.device.verticalDistance')"
胡菁 authored
41
42
43
44
45
46
47
48
              ><el-tag
                size="small"
                :type="item.verticalDistance == null ? itemColor : ''"
                >{{ getEnumText(item.verticalDistance) }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
49
              :label="$t('main.device.transitionMode')"
胡菁 authored
50
51
52
53
54
55
56
57
              ><el-tag
                size="small"
                :type="getEnumExpendMode(item.expendMode).color"
                >{{ getEnumExpendMode(item.expendMode).text }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
58
              :label="$t('main.device.maximumColumn')"
胡菁 authored
59
60
              ><el-tag
                size="small"
胡菁 authored
61
62
                :type="item.manageMaxColumn == null ? itemColor : ''"
                >{{ getEnumText(item.manageMaxColumn) }}</el-tag
胡菁 authored
63
64
65
66
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
67
              :label="$t('main.device.minimumColumn')"
胡菁 authored
68
69
              ><el-tag
                size="small"
胡菁 authored
70
71
                :type="item.manageSmallColumn == null ? itemColor : ''"
                >{{ getEnumText(item.manageSmallColumn) }}</el-tag
胡菁 authored
72
73
74
75
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
76
              :label="$t('main.device.forkFlag')"
胡菁 authored
77
78
79
80
81
82
83
84
              ><el-tag
                size="small"
                :type="getEnumWCSForkFlag(item.wcsForkFlag).color"
                >{{ getEnumWCSForkFlag(item.wcsForkFlag).text }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
85
              :label="$t('main.device.totalError')"
胡菁 authored
86
87
88
89
90
91
92
93
94
              span="2"
              ><el-tag
                size="small"
                :type="getEnumTotalError(item.totalError).color"
                >{{ getEnumTotalError(item.totalError).text }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
95
              :label="$t('main.device.deviceWalking')"
胡菁 authored
96
97
              span="3"
            >
胡菁 authored
98
              <el-row>
胡菁 authored
99
                <el-col :span="9">
胡菁 authored
100
                  {{ $t("main.device.column") }}:<el-input-number
胡菁 authored
101
102
103
104
105
106
                    v-model="colValues[index]"
                    size="mini"
                    :min="1"
                    :max="9999"
                    style="width: 100px"
                  />
胡菁 authored
107
                </el-col>
胡菁 authored
108
                <el-col :span="9">
胡菁 authored
109
                  {{ $t("main.device.layer") }}:<el-input-number
胡菁 authored
110
111
112
113
114
115
                    v-model="rowValues[index]"
                    size="mini"
                    :min="1"
                    :max="999"
                    style="width: 100px"
                  />
胡菁 authored
116
                </el-col>
胡菁 authored
117
                <el-col :span="6" style="display: flex; align-items: center">
胡菁 authored
118
119
120
121
122
123
                  <el-button
                    type="warning"
                    size="mini"
                    @click="
                      btnWalkTask(colValues[index], rowValues[index], item.code)
                    "
胡菁 authored
124
                    >{{ $t("main.device.walkingTask") }}</el-button
胡菁 authored
125
                  >
胡菁 authored
126
127
128
                </el-col>
              </el-row>
            </el-descriptions-item>
胡菁 authored
129
130
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
131
              :label="$t('main.device.operate')"
胡菁 authored
132
133
134
135
136
137
              span="3"
            >
              <el-button
                type="warning"
                size="mini"
                @click="btnTaskResend(item.code)"
胡菁 authored
138
                >{{ $t("main.device.resend") }}</el-button
胡菁 authored
139
140
141
142
143
              >
              <el-button
                type="warning"
                size="mini"
                @click="btnSRMEmptyOut(item.code)"
胡菁 authored
144
                >{{ $t("main.device.emptyOut") }}</el-button
胡菁 authored
145
146
147
148
149
              >
              <el-button
                type="warning"
                size="mini"
                @click="btnSRMReIn(item.code)"
胡菁 authored
150
                >{{ $t("main.device.reIn") }}</el-button
胡菁 authored
151
152
153
154
155
              >
              <el-button
                type="warning"
                size="mini"
                @click="btnSRMForkError(item.code)"
胡菁 authored
156
                >{{ $t("main.device.pickError") }}</el-button
胡菁 authored
157
              >
胡菁 authored
158
            </el-descriptions-item>
胡菁 authored
159
160
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
161
              label=""
胡菁 authored
162
163
164
165
166
            >
              <el-button
                type="danger"
                size="mini"
                @click="btnSRMTaskDelete(item.code, 1)"
胡菁 authored
167
                >{{ $t("main.device.fork1TaskDelete") }}</el-button
胡菁 authored
168
169
170
171
172
173
174
175
176
177
              >
              <el-button
                v-if="
                  item.equipmentTypeCode != null
                    ? item.equipmentTypeCode.indexOf('Double') >= 0
                    : false
                "
                type="danger"
                size="mini"
                @click="btnSRMTaskDelete(item.code, 2)"
胡菁 authored
178
                >{{ $t("main.device.fork2TaskDelete") }}</el-button
胡菁 authored
179
              >
胡菁 authored
180
181
            </el-descriptions-item>
          </el-descriptions>
胡菁 authored
182
183
184
185
186
          <el-tabs
            :active-name="srmList.length > 0 ? 'one' + srmList[0].name : ''"
            type="card"
            class="mar10"
          >
胡菁 authored
187
188
189
190
            <el-tab-pane
              :label="$t('main.device.alarm')"
              :name="'one' + item.name"
            >
胡菁 authored
191
              <div style="overflow-y: auto; height: 35.7vh">
胡菁 authored
192
                <el-alert
胡菁 authored
193
                  v-for="text in alarmSRMList[index]"
胡菁 authored
194
                  :key="text"
胡菁 authored
195
                  :title="text"
胡菁 authored
196
197
198
                  type="error"
                  show-icon
                  :closable="false"
199
200
                  style="margin-bottom: 5px"
                />
胡菁 authored
201
202
              </div>
            </el-tab-pane>
胡菁 authored
203
204
205
206
            <el-tab-pane
              :label="$t('main.device.fork1Data')"
              :name="'two' + item.name"
            >
胡菁 authored
207
              <el-divider content-position="center">PLC</el-divider>
208
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
209
210
                <el-descriptions-item
                  label-class-name="descriptions-label"
211
                  :label="$t('main.dData.ranging')"
胡菁 authored
212
213
214
215
216
217
218
219
                  ><el-tag
                    size="small"
                    :type="item.fork1Distance == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1Distance) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
220
                  :label="$t('main.dData.isInTheStock')"
胡菁 authored
221
222
223
224
225
226
227
228
229
230
                  ><el-tag
                    size="small"
                    :type="getEnumForkHasPallet(item.fork1HasPallet).color"
                    >{{
                      getEnumForkHasPallet(item.fork1HasPallet).text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
231
                  :label="$t('main.dData.isInTheCenter')"
胡菁 authored
232
233
234
235
236
237
238
239
                  ><el-tag
                    size="small"
                    :type="getEnumForkCenter(item.fork1Center).color"
                    >{{ getEnumForkCenter(item.fork1Center).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
240
                  :label="$t('main.dData.row')"
胡菁 authored
241
242
243
244
245
246
247
248
                  ><el-tag
                    size="small"
                    :type="item.fork1ZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1ZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
249
                  :label="$t('main.dData.columns')"
胡菁 authored
250
251
252
253
254
255
256
257
                  ><el-tag
                    size="small"
                    :type="item.fork1XPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1XPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
258
                  :label="$t('main.dData.storey')"
胡菁 authored
259
260
261
262
263
264
265
266
                  ><el-tag
                    size="small"
                    :type="item.fork1YPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1YPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
267
                  :label="$t('main.dData.taskStatus')"
胡菁 authored
268
269
270
271
272
273
274
275
276
277
278
279
280
281
                  ><el-tag
                    size="small"
                    :type="
                      getEnumForkTaskExcuteStatus(item.fork1TaskExcuteStatus)
                        .color
                    "
                    >{{
                      getEnumForkTaskExcuteStatus(item.fork1TaskExcuteStatus)
                        .text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
282
                  :label="$t('main.dData.taskType')"
胡菁 authored
283
284
285
286
287
288
289
290
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.fork1TaskType).color"
                    >{{ getEnumForkTaskType(item.fork1TaskType).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
291
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
292
293
294
295
296
297
298
299
                  ><el-tag
                    size="small"
                    :type="item.fork1TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
300
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
301
302
303
304
305
306
307
308
                  ><el-tag
                    size="small"
                    :type="item.fork1PickZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PickZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
309
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
310
311
312
313
314
315
316
317
                  ><el-tag
                    size="small"
                    :type="item.fork1PickXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PickXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
318
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
319
320
321
322
323
324
325
326
                  ><el-tag
                    size="small"
                    :type="item.fork1PickYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PickYPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
327
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
328
329
330
331
332
333
334
335
                  ><el-tag
                    size="small"
                    :type="item.fork1PutZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PutZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
336
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
337
338
339
340
341
342
343
344
                  ><el-tag
                    size="small"
                    :type="item.fork1PutXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PutXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
345
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
346
347
348
349
350
351
352
353
                  ><el-tag
                    size="small"
                    :type="item.fork1PutYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PutYPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
354
                  :label="$t('main.dData.isFault')"
胡菁 authored
355
356
357
358
359
360
361
362
                  ><el-tag
                    size="small"
                    :type="getEnumTotalError(item.fork1TotalError).color"
                    >{{ getEnumTotalError(item.fork1TotalError).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
363
                  :label="$t('main.dData.shield')"
胡菁 authored
364
365
366
367
368
369
                  ><el-tag
                    size="small"
                    :type="getEnumForkBlock(item.fork1Block).color"
                    >{{ getEnumForkBlock(item.fork1Block).text }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
370
371
              </el-descriptions>
              <el-divider content-position="center">WCS</el-divider>
372
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
373
374
                <el-descriptions-item
                  label-class-name="descriptions-label"
375
                  :label="$t('main.dData.taskType')"
胡菁 authored
376
377
378
379
380
381
382
383
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.wcsFork1Action).color"
                    >{{ getEnumForkTaskType(item.wcsFork1Action).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
384
                  :label="$t('main.dData.stackedDiskIndex')"
胡菁 authored
385
386
387
388
389
390
391
392
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1FoldIndex == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1FoldIndex) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
393
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
394
395
396
397
398
399
400
401
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
402
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
403
404
405
406
407
408
409
410
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PickZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PickZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
411
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
412
413
414
415
416
417
418
419
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PickXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PickXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
420
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
421
422
423
424
425
426
427
428
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PickYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PickYPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
429
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
430
431
432
433
434
435
436
437
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PutZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PutZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
438
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
439
440
441
442
443
444
445
446
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PutXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PutXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
447
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
448
449
450
451
452
453
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PutYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PutYPosition) }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
454
455
              </el-descriptions>
            </el-tab-pane>
胡菁 authored
456
457
458
459
460
461
            <el-tab-pane
              v-if="
                item.equipmentTypeCode != null
                  ? item.equipmentTypeCode.indexOf('Double') >= 0
                  : false
              "
462
              :label="$t('main.device.fork2Data')"
胡菁 authored
463
464
              :name="'three' + item.name"
            >
胡菁 authored
465
              <el-divider content-position="center">PLC</el-divider>
466
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
467
468
                <el-descriptions-item
                  label-class-name="descriptions-label"
469
                  :label="$t('main.dData.ranging')"
胡菁 authored
470
471
472
473
474
475
476
477
                  ><el-tag
                    size="small"
                    :type="item.fork2Distance == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2Distance) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
478
                  :label="$t('main.dData.isInTheStock')"
胡菁 authored
479
480
481
482
483
484
485
486
487
488
                  ><el-tag
                    size="small"
                    :type="getEnumForkHasPallet(item.fork2HasPallet).color"
                    >{{
                      getEnumForkHasPallet(item.fork2HasPallet).text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
489
                  :label="$t('main.dData.isInTheCenter')"
胡菁 authored
490
491
492
493
494
495
496
497
                  ><el-tag
                    size="small"
                    :type="getEnumForkCenter(item.fork2Center).color"
                    >{{ getEnumForkCenter(item.fork2Center).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
498
                  :label="$t('main.dData.row')"
胡菁 authored
499
500
501
502
503
504
505
506
                  ><el-tag
                    size="small"
                    :type="item.fork2ZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2ZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
507
                  :label="$t('main.dData.columns')"
胡菁 authored
508
509
510
511
512
513
514
515
                  ><el-tag
                    size="small"
                    :type="item.fork2XPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2XPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
516
                  :label="$t('main.dData.storey')"
胡菁 authored
517
518
519
520
521
522
523
524
                  ><el-tag
                    size="small"
                    :type="item.fork2YPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2YPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
525
                  :label="$t('main.dData.taskStatus')"
胡菁 authored
526
527
528
529
530
531
532
533
534
535
536
537
538
539
                  ><el-tag
                    size="small"
                    :type="
                      getEnumForkTaskExcuteStatus(item.fork2TaskExcuteStatus)
                        .color
                    "
                    >{{
                      getEnumForkTaskExcuteStatus(item.fork2TaskExcuteStatus)
                        .text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
540
                  :label="$t('main.dData.taskType')"
胡菁 authored
541
542
543
544
545
546
547
548
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.fork2TaskType).color"
                    >{{ getEnumForkTaskType(item.fork2TaskType).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
549
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
550
551
552
553
554
555
556
557
                  ><el-tag
                    size="small"
                    :type="item.fork2TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
558
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
559
560
561
562
563
564
565
566
                  ><el-tag
                    size="small"
                    :type="item.fork2PickZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PickZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
567
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
568
569
570
571
572
573
574
575
                  ><el-tag
                    size="small"
                    :type="item.fork2PickXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PickXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
576
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
577
578
579
580
581
582
583
584
                  ><el-tag
                    size="small"
                    :type="item.fork2PickYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PickYPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
585
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
586
587
588
589
590
591
592
593
                  ><el-tag
                    size="small"
                    :type="item.fork2PutZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PutZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
594
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
595
596
597
598
599
600
601
602
                  ><el-tag
                    size="small"
                    :type="item.fork2PutXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PutXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
603
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
604
605
606
607
608
609
610
611
                  ><el-tag
                    size="small"
                    :type="item.fork2PutYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PutYPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
612
                  :label="$t('main.dData.isFault')"
胡菁 authored
613
614
615
616
617
618
619
620
                  ><el-tag
                    size="small"
                    :type="getEnumTotalError(item.fork2TotalError).color"
                    >{{ getEnumTotalError(item.fork2TotalError).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
621
                  :label="$t('main.dData.shield')"
胡菁 authored
622
623
624
625
626
627
                  ><el-tag
                    size="small"
                    :type="getEnumForkBlock(item.fork2Block).color"
                    >{{ getEnumForkBlock(item.fork2Block).text }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
628
629
              </el-descriptions>
              <el-divider content-position="center">WCS</el-divider>
630
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
631
632
                <el-descriptions-item
                  label-class-name="descriptions-label"
633
                  :label="$t('main.dData.taskType')"
胡菁 authored
634
635
636
637
638
639
640
641
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.wcsFork2Action).color"
                    >{{ getEnumForkTaskType(item.wcsFork2Action).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
642
                  :label="$t('main.dData.stackedDiskIndex')"
胡菁 authored
643
644
645
646
647
648
649
650
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2FoldIndex == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2FoldIndex) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
651
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
652
653
654
655
656
657
658
659
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
660
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
661
662
663
664
665
666
667
668
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PickZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PickZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
669
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
670
671
672
673
674
675
676
677
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PickXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PickXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
678
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
679
680
681
682
683
684
685
686
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PickYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PickYPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
687
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
688
689
690
691
692
693
694
695
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PutZPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PutZPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
696
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
697
698
699
700
701
702
703
704
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PutXPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PutXPosition) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
705
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
706
707
708
709
710
711
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PutYPosition == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PutYPosition) }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
712
713
714
715
716
              </el-descriptions>
            </el-tab-pane>
          </el-tabs>
        </div>
      </el-card>
胡菁 authored
717
718
719
720
721
      <el-card
        v-for="(item, index) in rgvList"
        :key="item.code"
        class="box-card"
      >
胡菁 authored
722
723
        <div class="container">
          <el-row class="row-root">
胡菁 authored
724
            <span class="big-span">{{ item.name }}</span> 一
陈嘉新 authored
725
726
727
728
729
            <span>{{
              item.disable == false
                ? $t("main.device.enable")
                : $t("main.device.disable")
            }}</span>
胡菁 authored
730
          </el-row>
731
732
          <el-divider />
          <el-descriptions :column="3" size="mini" border>
胡菁 authored
733
734
            <el-descriptions-item
              label-class-name="descriptions-label"
735
              :label="$t('main.device.operatingMode')"
胡菁 authored
736
737
738
739
740
741
742
743
              ><el-tag
                size="small"
                :type="getEnumOperationModel(item.operationModel).color"
                >{{ getEnumOperationModel(item.operationModel).text }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
744
              :label="$t('main.device.horizontalDistance')"
胡菁 authored
745
746
747
748
749
750
              ><el-tag
                size="small"
                :type="item.horizontalDistance == null ? itemColor : ''"
                >{{ getEnumText(item.horizontalDistance) }}</el-tag
              ></el-descriptions-item
            >
胡菁 authored
751
胡菁 authored
752
753
            <el-descriptions-item
              label-class-name="descriptions-label"
754
              :label="$t('main.dData.currentLocation')"
胡菁 authored
755
756
757
758
759
760
761
762
              ><el-tag
                size="small"
                :type="item.currentStation == null ? itemColor : ''"
                >{{ getEnumText(item.currentStation) }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
763
              :label="$t('main.device.totalError')"
胡菁 authored
764
765
766
767
768
769
770
771
              ><el-tag
                size="small"
                :type="getEnumTotalError(item.totalError).color"
                >{{ getEnumTotalError(item.totalError).text }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
772
              :label="$t('main.dData.minimumPosition')"
胡菁 authored
773
774
775
776
777
778
779
780
              ><el-tag
                size="small"
                :type="item.minStation == null ? itemColor : ''"
                >{{ getEnumText(item.minStation) }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
781
              :label="$t('main.dData.maximumPosition')"
胡菁 authored
782
783
784
785
786
787
788
789
              ><el-tag
                size="small"
                :type="item.maxStation == null ? itemColor : ''"
                >{{ getEnumText(item.maxStation) }}</el-tag
              ></el-descriptions-item
            >
            <el-descriptions-item
              label-class-name="descriptions-label"
790
              :label="$t('main.device.operate')"
胡菁 authored
791
792
793
794
795
796
              span="3"
            >
              <el-button
                type="warning"
                size="mini"
                @click="btnRGVTaskResend(item.code)"
797
                >{{ $t("main.device.resend") }}</el-button
胡菁 authored
798
              >
胡菁 authored
799
            </el-descriptions-item>
胡菁 authored
800
801
            <el-descriptions-item
              label-class-name="descriptions-label"
胡菁 authored
802
              label=""
胡菁 authored
803
804
805
806
807
            >
              <el-button
                type="danger"
                size="mini"
                @click="btnRGVTaskDelete(item.code, 1)"
胡菁 authored
808
                >{{ $t("main.device.fork1TaskDelete") }}</el-button
胡菁 authored
809
810
811
812
813
814
815
816
817
818
              >
              <el-button
                v-if="
                  item.equipmentTypeCode != null
                    ? item.equipmentTypeCode.indexOf('Double') >= 0
                    : false
                "
                type="danger"
                size="mini"
                @click="btnRGVTaskDelete(item.code, 2)"
胡菁 authored
819
                >{{ $t("main.device.fork2TaskDelete") }}</el-button
胡菁 authored
820
              >
胡菁 authored
821
822
            </el-descriptions-item>
          </el-descriptions>
胡菁 authored
823
824
825
826
827
          <el-tabs
            :active-name="rgvList.length > 0 ? 'one' + rgvList[0].name : ''"
            type="card"
            class="mar10"
          >
陈嘉新 authored
828
829
830
831
            <el-tab-pane
              :label="$t('main.device.alarm')"
              :name="'one' + item.name"
            >
胡菁 authored
832
              <div style="overflow-y: auto; height: 42.5vh">
胡菁 authored
833
                <el-alert
胡菁 authored
834
                  v-for="text in alarmRGVList[index]"
胡菁 authored
835
                  :key="text"
胡菁 authored
836
                  :title="text"
胡菁 authored
837
838
839
                  type="error"
                  show-icon
                  :closable="false"
840
841
                  style="margin-bottom: 5px"
                />
胡菁 authored
842
843
              </div>
            </el-tab-pane>
陈嘉新 authored
844
845
846
847
            <el-tab-pane
              :label="$t('main.device.fork1Data')"
              :name="'two' + item.name"
            >
胡菁 authored
848
              <el-divider content-position="center">PLC</el-divider>
849
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
850
851
                <el-descriptions-item
                  label-class-name="descriptions-label"
852
                  :label="$t('main.dData.isInTheStock')"
胡菁 authored
853
854
855
856
857
858
859
860
861
862
863
                  span="3"
                  ><el-tag
                    size="small"
                    :type="getEnumForkHasPallet(item.fork1HasPallet).color"
                    >{{
                      getEnumForkHasPallet(item.fork1HasPallet).text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
864
                  :label="$t('main.dData.taskStatus')"
胡菁 authored
865
866
867
868
869
870
871
872
873
874
875
876
877
878
                  ><el-tag
                    size="small"
                    :type="
                      getEnumForkTaskExcuteStatus(item.fork1TaskExcuteStatus)
                        .color
                    "
                    >{{
                      getEnumForkTaskExcuteStatus(item.fork1TaskExcuteStatus)
                        .text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
879
                  :label="$t('main.dData.taskType')"
胡菁 authored
880
881
882
883
884
885
886
887
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.fork1TaskType).color"
                    >{{ getEnumForkTaskType(item.fork1TaskType).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
888
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
889
890
891
892
893
894
895
896
                  ><el-tag
                    size="small"
                    :type="item.fork1TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
897
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
898
899
900
901
902
903
904
905
                  ><el-tag
                    size="small"
                    :type="item.fork1PickZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PickZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
906
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
907
908
909
910
911
912
913
914
                  ><el-tag
                    size="small"
                    :type="item.fork1PickXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PickXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
915
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
916
917
918
919
920
921
922
923
                  ><el-tag
                    size="small"
                    :type="item.fork1PickYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PickYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
924
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
925
926
927
928
929
930
931
932
                  ><el-tag
                    size="small"
                    :type="item.fork1PutZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PutZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
933
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
934
935
936
937
938
939
940
941
                  ><el-tag
                    size="small"
                    :type="item.fork1PutXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PutXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
942
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
943
944
945
946
947
948
949
950
                  ><el-tag
                    size="small"
                    :type="item.fork1PutYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1PutYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
951
                  :label="$t('main.dData.length')"
胡菁 authored
952
953
954
955
956
957
958
959
                  ><el-tag
                    size="small"
                    :type="item.fork1GoodsLength == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1GoodsLength) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
960
                  :label="$t('main.dData.width')"
胡菁 authored
961
962
963
964
965
966
967
968
                  ><el-tag
                    size="small"
                    :type="item.fork1GoodsWidth == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1GoodsWidth) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
陈嘉新 authored
969
                  :label="$t('main.dData.height')"
胡菁 authored
970
971
972
973
974
975
976
977
                  ><el-tag
                    size="small"
                    :type="item.fork1GoodsHeight == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1GoodsHeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
陈嘉新 authored
978
                  :label="$t('main.dData.weight')"
胡菁 authored
979
980
981
982
983
984
985
986
                  ><el-tag
                    size="small"
                    :type="item.fork1GoodsWeight == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1GoodsWeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
陈嘉新 authored
987
                  :label="$t('main.dData.typeOfGoods')"
胡菁 authored
988
989
990
991
992
993
994
995
                  ><el-tag
                    size="small"
                    :type="item.fork1GoodsType == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1GoodsType) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
996
                  :label="$t('main.dData.barCode')"
胡菁 authored
997
998
999
1000
1001
1002
                  ><el-tag
                    size="small"
                    :type="item.fork1GoodsBarcode == null ? itemColor : ''"
                    >{{ getEnumText(item.fork1GoodsBarcode) }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
1003
1004
              </el-descriptions>
              <el-divider content-position="center">WCS</el-divider>
1005
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
1006
1007
                <el-descriptions-item
                  label-class-name="descriptions-label"
1008
                  :label="$t('main.dData.taskType')"
胡菁 authored
1009
1010
1011
1012
1013
1014
1015
1016
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.wcsFork1Action).color"
                    >{{ getEnumForkTaskType(item.wcsFork1Action).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1017
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
1018
1019
1020
1021
1022
1023
1024
1025
1026
                  span="2"
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1027
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
1028
1029
1030
1031
1032
1033
1034
1035
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PickZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PickZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1036
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
1037
1038
1039
1040
1041
1042
1043
1044
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PickXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PickXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1045
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
1046
1047
1048
1049
1050
1051
1052
1053
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PickYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PickYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1054
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
1055
1056
1057
1058
1059
1060
1061
1062
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PutZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PutZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1063
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
1064
1065
1066
1067
1068
1069
1070
1071
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PutXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PutXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1072
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
1073
1074
1075
1076
1077
1078
1079
1080
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1PutYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1PutYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1081
                  :label="$t('main.dData.length')"
胡菁 authored
1082
1083
1084
1085
1086
1087
1088
1089
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1GoodsLength == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1GoodsLength) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1090
                  :label="$t('main.dData.width')"
胡菁 authored
1091
1092
1093
1094
1095
1096
1097
1098
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1GoodsWidth == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1GoodsWidth) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1099
                  :label="$t('main.dData.height')"
胡菁 authored
1100
1101
1102
1103
1104
1105
1106
1107
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1GoodsHeight == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1GoodsHeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1108
                  :label="$t('main.dData.weight')"
胡菁 authored
1109
1110
1111
1112
1113
1114
1115
1116
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1GoodsWeight == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1GoodsWeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1117
                  :label="$t('main.dData.typeOfGoods')"
胡菁 authored
1118
1119
1120
1121
1122
1123
1124
1125
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1GoodsType == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1GoodsType) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1126
                  :label="$t('main.dData.barCode')"
胡菁 authored
1127
1128
1129
1130
1131
1132
                  ><el-tag
                    size="small"
                    :type="item.wcsFork1GoodsBarcode == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork1GoodsBarcode) }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
1133
1134
              </el-descriptions>
            </el-tab-pane>
胡菁 authored
1135
1136
1137
1138
1139
1140
            <el-tab-pane
              v-if="
                item.equipmentTypeCode != null
                  ? item.equipmentTypeCode.indexOf('Double') >= 0
                  : false
              "
1141
              :label="$t('main.device.fork2Data')"
胡菁 authored
1142
1143
              :name="'three' + item.name"
            >
胡菁 authored
1144
              <el-divider content-position="center">PLC</el-divider>
1145
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
1146
1147
                <el-descriptions-item
                  label-class-name="descriptions-label"
1148
                  :label="$t('main.dData.isInTheStock')"
胡菁 authored
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
                  span="3"
                  ><el-tag
                    size="small"
                    :type="getEnumForkHasPallet(item.fork2HasPallet).color"
                    >{{
                      getEnumForkHasPallet(item.fork2HasPallet).text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1160
                  :label="$t('main.dData.taskStatus')"
胡菁 authored
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
                  ><el-tag
                    size="small"
                    :type="
                      getEnumForkTaskExcuteStatus(item.fork2TaskExcuteStatus)
                        .color
                    "
                    >{{
                      getEnumForkTaskExcuteStatus(item.fork2TaskExcuteStatus)
                        .text
                    }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1175
                  :label="$t('main.dData.taskType')"
胡菁 authored
1176
1177
1178
1179
1180
1181
1182
1183
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.fork2TaskType).color"
                    >{{ getEnumForkTaskType(item.fork2TaskType).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1184
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
1185
1186
1187
1188
1189
1190
1191
1192
                  ><el-tag
                    size="small"
                    :type="item.fork2TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1193
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
1194
1195
1196
1197
1198
1199
1200
1201
                  ><el-tag
                    size="small"
                    :type="item.fork2PickZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PickZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1202
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
1203
1204
1205
1206
1207
1208
1209
1210
                  ><el-tag
                    size="small"
                    :type="item.fork2PickXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PickXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1211
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
1212
1213
1214
1215
1216
1217
1218
1219
                  ><el-tag
                    size="small"
                    :type="item.fork2PickYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PickYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1220
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
1221
1222
1223
1224
1225
1226
1227
1228
                  ><el-tag
                    size="small"
                    :type="item.fork2PutZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PutZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1229
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
1230
1231
1232
1233
1234
1235
1236
1237
                  ><el-tag
                    size="small"
                    :type="item.fork2PutXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PutXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1238
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
1239
1240
1241
1242
1243
1244
1245
1246
                  ><el-tag
                    size="small"
                    :type="item.fork2PutYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2PutYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1247
                  :label="$t('main.dData.length')"
胡菁 authored
1248
1249
1250
1251
1252
1253
1254
1255
                  ><el-tag
                    size="small"
                    :type="item.fork2GoodsLength == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2GoodsLength) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1256
                  :label="$t('main.dData.width')"
胡菁 authored
1257
1258
1259
1260
1261
1262
1263
1264
                  ><el-tag
                    size="small"
                    :type="item.fork2GoodsWidth == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2GoodsWidth) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1265
                  :label="$t('main.dData.height')"
胡菁 authored
1266
1267
1268
1269
1270
1271
1272
1273
                  ><el-tag
                    size="small"
                    :type="item.fork2GoodsHeight == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2GoodsHeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1274
                  :label="$t('main.dData.weight')"
胡菁 authored
1275
1276
1277
1278
1279
1280
1281
1282
                  ><el-tag
                    size="small"
                    :type="item.fork2GoodsWeight == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2GoodsWeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1283
                  :label="$t('main.dData.typeOfGoods')"
胡菁 authored
1284
1285
1286
1287
1288
1289
1290
1291
                  ><el-tag
                    size="small"
                    :type="item.fork2GoodsType == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2GoodsType) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1292
                  :label="$t('main.dData.barCode')"
胡菁 authored
1293
1294
1295
1296
1297
1298
                  ><el-tag
                    size="small"
                    :type="item.fork2GoodsBarcode == null ? itemColor : ''"
                    >{{ getEnumText(item.fork2GoodsBarcode) }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
1299
1300
              </el-descriptions>
              <el-divider content-position="center">WCS</el-divider>
1301
              <el-descriptions :column="3" size="mini" border>
胡菁 authored
1302
1303
                <el-descriptions-item
                  label-class-name="descriptions-label"
1304
                  :label="$t('main.dData.taskType')"
胡菁 authored
1305
1306
1307
1308
1309
1310
1311
1312
                  ><el-tag
                    size="small"
                    :type="getEnumForkTaskType(item.wcsFork2Action).color"
                    >{{ getEnumForkTaskType(item.wcsFork2Action).text }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1313
                  :label="$t('main.dData.taskNumber')"
胡菁 authored
1314
1315
1316
1317
1318
1319
1320
1321
1322
                  span="2"
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2TaskNo == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2TaskNo) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1323
                  :label="$t('main.dData.pickUpRow')"
胡菁 authored
1324
1325
1326
1327
1328
1329
1330
1331
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PickZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PickZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1332
                  :label="$t('main.dData.pickUpColumn')"
胡菁 authored
1333
1334
1335
1336
1337
1338
1339
1340
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PickXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PickXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1341
                  :label="$t('main.dData.pickUpStorey')"
胡菁 authored
1342
1343
1344
1345
1346
1347
1348
1349
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PickYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PickYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1350
                  :label="$t('main.dData.putDownRow')"
胡菁 authored
1351
1352
1353
1354
1355
1356
1357
1358
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PutZStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PutZStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1359
                  :label="$t('main.dData.putDownColumn')"
胡菁 authored
1360
1361
1362
1363
1364
1365
1366
1367
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PutXStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PutXStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1368
                  :label="$t('main.dData.putDownStorey')"
胡菁 authored
1369
1370
1371
1372
1373
1374
1375
1376
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2PutYStation == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2PutYStation) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1377
                  :label="$t('main.dData.length')"
胡菁 authored
1378
1379
1380
1381
1382
1383
1384
1385
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2GoodsLength == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2GoodsLength) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1386
                  :label="$t('main.dData.width')"
胡菁 authored
1387
1388
1389
1390
1391
1392
1393
1394
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2GoodsWidth == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2GoodsWidth) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1395
                  :label="$t('main.dData.height')"
胡菁 authored
1396
1397
1398
1399
1400
1401
1402
1403
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2GoodsHeight == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2GoodsHeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1404
                  :label="$t('main.dData.weight')"
胡菁 authored
1405
1406
1407
1408
1409
1410
1411
1412
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2GoodsWeight == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2GoodsWeight) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1413
                  :label="$t('main.dData.typeOfGoods')"
胡菁 authored
1414
1415
1416
1417
1418
1419
1420
1421
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2GoodsType == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2GoodsType) }}</el-tag
                  ></el-descriptions-item
                >
                <el-descriptions-item
                  label-class-name="descriptions-label"
1422
                  :label="$t('main.dData.barCode')"
胡菁 authored
1423
1424
1425
1426
1427
1428
                  ><el-tag
                    size="small"
                    :type="item.wcsFork2GoodsBarcode == null ? itemColor : ''"
                    >{{ getEnumText(item.wcsFork2GoodsBarcode) }}</el-tag
                  ></el-descriptions-item
                >
胡菁 authored
1429
1430
1431
1432
1433
              </el-descriptions>
            </el-tab-pane>
          </el-tabs>
        </div>
      </el-card>
1434
      <el-divider />
胡菁 authored
1435
    </div>
胡菁 authored
1436
  </el-container>
王硕 authored
1437
1438
1439
</template>

<script>
胡菁 authored
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
import {
  createSRMWalkTask,
  getRGVInfo,
  getSRMInfo,
  rgvTaskDelete,
  rgvTaskResend,
  srmEmptyOut,
  srmForkError,
  srmReIn,
  srmTaskDelete,
  srmTaskResend,
} from "@/api/main";
import {
  getEnumExpendMode,
  getEnumForkBlock,
  getEnumForkCenter,
  getEnumForkHasPallet,
  getEnumForkTaskExcuteStatus,
  getEnumForkTaskType,
  getEnumOperationModel,
  getEnumText,
  getEnumTotalError,
  getEnumWCSForkFlag,
} from "@/utils/enums.js";
import { formatTime, openConfirm, showMsg } from "@/utils/index.js";
胡菁 authored
1465
王硕 authored
1466
export default {
胡菁 authored
1467
  name: "DeviceData",
1468
1469
1470
1471
  props: {
    // 定义接收的 startDeal 变量
    startDeal: {
      type: Boolean,
胡菁 authored
1472
1473
      default: false,
    },
1474
  },
王硕 authored
1475
  data() {
胡菁 authored
1476
    return {
1477
      // 堆垛机列表
胡菁 authored
1478
      srmList: [],
1479
      // rgv列表
胡菁 authored
1480
      rgvList: [],
1481
      // 定时器
胡菁 authored
1482
      interval: null,
1483
      // 列集合
胡菁 authored
1484
      colValues: [],
1485
      // 行集合
胡菁 authored
1486
      rowValues: [],
1487
      // 堆垛机报警列表
胡菁 authored
1488
      alarmSRMList: [],
1489
      // rgv报警列表
胡菁 authored
1490
      alarmRGVList: [],
胡菁 authored
1491
      isCurrentTab: false,
胡菁 authored
1492
      isOpenServer: false,
胡菁 authored
1493
1494
      itemColor: "danger",
    };
胡菁 authored
1495
1496
1497
1498
  },
  watch: {
    // 监听 startDeal 变量的变化
    startDeal(newValue, oldValue) {
胡菁 authored
1499
      // console.log('处理状态发生变化:', newValue);
胡菁 authored
1500
      this.isOpenServer = newValue;
1501
1502
      if (this.isCurrentTab) {
        if (newValue) {
胡菁 authored
1503
          this.start();
1504
        } else {
胡菁 authored
1505
          this.stop();
胡菁 authored
1506
1507
        }
      }
胡菁 authored
1508
    },
胡菁 authored
1509
  },
胡菁 authored
1510
  beforeDestroy() {
胡菁 authored
1511
    clearInterval(this.interval);
胡菁 authored
1512
  },
胡菁 authored
1513
  mounted() {},
胡菁 authored
1514
  methods: {
胡菁 authored
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
    getEnumExpendMode,
    getEnumOperationModel,
    getEnumWCSForkFlag,
    getEnumTotalError,
    getEnumForkHasPallet,
    getEnumForkCenter,
    getEnumForkTaskExcuteStatus,
    getEnumForkTaskType,
    getEnumForkBlock,
    srmEmptyOut,
    srmReIn,
    srmForkError,
    srmTaskDelete,
胡菁 authored
1528
    getEnumText,
胡菁 authored
1529
1530
1531
    // 开始刷新数据
    start() {
胡菁 authored
1532
      this.isCurrentTab = true;
1533
      if (this.isOpenServer) {
胡菁 authored
1534
        this.loadData();
胡菁 authored
1535
        this.interval = setInterval(() => {
胡菁 authored
1536
          this.loadData();
胡菁 authored
1537
        }, 3000);
1538
      }
胡菁 authored
1539
    },
1540
1541
    // 停止刷新数据
    stop() {
胡菁 authored
1542
1543
      this.isCurrentTab = false;
      clearInterval(this.interval);
胡菁 authored
1544
    },
胡菁 authored
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
    //加载数据
    loadData() {
      getSRMInfo().then((response) => {
        this.srmList = response.data;
        // this.srmList = [...this.srmList,...this.srmList,...this.srmList,...this.srmList,...this.srmList,...this.srmList,...this.srmList,...this.srmList,...this.srmList,...this.srmList,...this.srmList];
        if (this.colValues.length != this.srmList.length) {
          this.colValues = new Array(this.srmList.length).fill("");
        }
        if (this.rowValues.length != this.srmList.length) {
          this.rowValues = new Array(this.srmList.length).fill("");
        }
        if (this.alarmSRMList.length != this.srmList.length) {
          this.alarmSRMList = new Array(this.srmList.length);
        }
        this.loadAlarms(this.srmList, this.alarmSRMList);
      });
      if (window.appConfig.isExistRGV) {
        getRGVInfo().then((response) => {
          this.rgvList = response.data;
          // this.rgvList = [...this.rgvList,...this.rgvList,...this.rgvList,...this.rgvList];
          if (this.alarmRGVList.length != this.rgvList.length) {
            this.alarmRGVList = new Array(this.rgvList.length);
          }
          this.loadAlarms(this.rgvList, this.alarmRGVList);
        });
      }
    },
1572
1573
    // 加载报警信息
    loadAlarms(list, alarms) {
胡菁 authored
1574
      list.forEach((item, index) => {
胡菁 authored
1575
        item.equipmentAlarms.forEach((alarm) => {
胡菁 authored
1576
          if (!alarms[index]) {
胡菁 authored
1577
            alarms[index] = [];
胡菁 authored
1578
1579
1580
1581
          }
          if (alarm.value === alarm.comparisonValue) {
            // console.log(alarm);
            // console.log(this.$dict);
胡菁 authored
1582
1583
            if (!alarms[index].some((x) => x.indexOf(alarm.alarmCode) >= 0)) {
              var text = "";
1584
              if (this.$dict != null) {
胡菁 authored
1585
                this.$dict.find((x) => {
1586
                  if (x.code == alarm.alarmCode) {
胡菁 authored
1587
                    text = x.name;
胡菁 authored
1588
                  }
胡菁 authored
1589
                });
胡菁 authored
1590
              }
胡菁 authored
1591
1592
              alarms[index].unshift(
                formatTime(new Date(alarm.created), "{h}:{i}:{s}") +
陈嘉新 authored
1593
                  this.$t("main.msg.callPolice") +
胡菁 authored
1594
1595
                  text
              );
胡菁 authored
1596
1597
            }
          }
胡菁 authored
1598
1599
        });
      });
胡菁 authored
1600
1601
    },
1602
    // 行走任务按钮
胡菁 authored
1603
1604
1605
    btnWalkTask(col, row, code) {
      // console.log(col, row, code);
      if (col == null) {
weijuan55650@qq.com authored
1606
        showMsg(this.$t("main.msg.enterColumns"), false);
胡菁 authored
1607
      } else if (row == null) {
weijuan55650@qq.com authored
1608
        showMsg(this.$t("main.msg.enterLayers"), false);
胡菁 authored
1609
      } else {
胡菁 authored
1610
        var self = this;
weijuan55650@qq.com authored
1611
        openConfirm(self, this.$t("main.msg.generateStackerTask"), () => {
胡菁 authored
1612
1613
          createSRMWalkTask({ Layer: row, Column: col, SRMCode: code }).then(
            (response) => {
weijuan55650@qq.com authored
1614
              showMsg(this.$t("main.msg.taskSuccess"), true);
胡菁 authored
1615
1616
1617
            }
          );
        });
胡菁 authored
1618
1619
1620
      }
    },
1621
    // 任务重新下发
胡菁 authored
1622
    btnTaskResend(code) {
胡菁 authored
1623
      var self = this;
weijuan55650@qq.com authored
1624
      openConfirm(self, this.$t("main.msg.reissueTask"), () => {
胡菁 authored
1625
        srmTaskResend({ SRMCode: code }).then((response) => {
weijuan55650@qq.com authored
1626
          showMsg(this.$t("main.msg.taskReissuedSuccess"), true);
胡菁 authored
1627
1628
        });
      });
胡菁 authored
1629
1630
    },
1631
    // 空取
胡菁 authored
1632
    btnSRMEmptyOut(code) {
胡菁 authored
1633
      var self = this;
weijuan55650@qq.com authored
1634
      openConfirm(self, this.$t("main.msg.nullExtraction"), () => {
胡菁 authored
1635
        srmEmptyOut({ SRMCode: code }).then((response) => {
weijuan55650@qq.com authored
1636
          showMsg(this.$t("main.msg.emptyExtractionSuccess"), true);
胡菁 authored
1637
1638
        });
      });
胡菁 authored
1639
1640
    },
1641
    // 重入
胡菁 authored
1642
    btnSRMReIn(code) {
胡菁 authored
1643
      var self = this;
weijuan55650@qq.com authored
1644
      openConfirm(self, this.$t("main.msg.reEntry"), () => {
胡菁 authored
1645
        srmReIn({ SRMCode: code }).then((response) => {
weijuan55650@qq.com authored
1646
          showMsg(this.$t("main.msg.reEntrySuccess"), true);
胡菁 authored
1647
1648
        });
      });
胡菁 authored
1649
1650
    },
1651
    // 取货错误
胡菁 authored
1652
    btnSRMForkError(code) {
胡菁 authored
1653
      var self = this;
weijuan55650@qq.com authored
1654
      openConfirm(self, this.$t("main.msg.pickupErrors"), () => {
胡菁 authored
1655
        srmForkError({ SRMCode: code }).then((response) => {
weijuan55650@qq.com authored
1656
          showMsg(this.$t("main.msg.errorHandlingSuccess"), true);
胡菁 authored
1657
1658
        });
      });
胡菁 authored
1659
1660
    },
1661
    // 任务强制删除
胡菁 authored
1662
    btnSRMTaskDelete(code, flag) {
胡菁 authored
1663
      var self = this;
weijuan55650@qq.com authored
1664
      openConfirm(self, this.$t("main.msg.deleteFork1"), () => {
胡菁 authored
1665
        srmTaskDelete({ SRMCode: code, ForkFlag: flag }).then((response) => {
weijuan55650@qq.com authored
1666
          showMsg(this.$t("main.msg.deleteSuccess"), true);
胡菁 authored
1667
1668
        });
      });
胡菁 authored
1669
1670
    },
1671
    // RGV重新下发
胡菁 authored
1672
    btnRGVTaskResend(code) {
胡菁 authored
1673
      var self = this;
weijuan55650@qq.com authored
1674
      openConfirm(self, this.$t("main.msg.reissueTask"), () => {
胡菁 authored
1675
        rgvTaskResend({ Code: code }).then((response) => {
weijuan55650@qq.com authored
1676
          showMsg(this.$t("main.msg.taskReissuedSuccess"), true);
胡菁 authored
1677
1678
        });
      });
胡菁 authored
1679
1680
    },
1681
    // RGV删除任务
胡菁 authored
1682
    btnRGVTaskDelete(code, flag) {
胡菁 authored
1683
      var self = this;
weijuan55650@qq.com authored
1684
      openConfirm(self, this.$t("main.msg.deleteFork1"), () => {
胡菁 authored
1685
        rgvTaskDelete({ Code: code, ForkFlag: flag }).then((response) => {
weijuan55650@qq.com authored
1686
          showMsg(this.$t("main.msg.deleteSuccess"), true);
胡菁 authored
1687
1688
1689
1690
1691
        });
      });
    },
  },
};
王硕 authored
1692
1693
1694
</script>

<style lang="scss" scoped>
胡菁 authored
1695
1696
.box-card {
  width: 30vw;
胡菁 authored
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
  // height: 72vh;
  margin-left: 10px;
  margin-bottom: 10px;
  overflow-y: auto;
}
// 新增的容器样式
.card-container {
  display: flex;
  flex-wrap: wrap; // 允许元素换行
  max-height: 75vh; // 设置最大高度,超出显示滚动条
  overflow-y: auto; // 超出最大高度时显示纵向滚动条
胡菁 authored
1708
}
胡菁 authored
1709
胡菁 authored
1710
.container {
胡菁 authored
1711
1712
  text-align: center;
}
胡菁 authored
1713
1714
.row-root {
  color: blue;
胡菁 authored
1715
1716
1717
  font-weight: bolder;
  margin-bottom: -10px;
}
胡菁 authored
1718
.big-span {
胡菁 authored
1719
1720
  font-size: 16pt;
}
胡菁 authored
1721
1722
.mar10 {
  margin-top: 10px;
1723
}
胡菁 authored
1724
1725
</style>
<style>
胡菁 authored
1726
1727
1728
1729
1730
1731
.device-data {
  .descriptions-label {
    text-align: right !important;
    /* color:black !important; */
  }
  .el-divider--horizontal {
胡菁 authored
1732
    margin: 12px 0px;
胡菁 authored
1733
  }
王硕 authored
1734
1735
}
</style>