Blame view

HHECS.Web/src/views/taskManage/taskModel_host.vue 46.9 KB
陈嘉新 authored
1
2
3
4
5
6
<template>
  <div class="app-container">
    <div class="app-container-father">
      <div class="dv-container-left">
        <div class="dv-container-left-component">
          <div class="component-left">任务号:</div>
陈嘉新 authored
7
8
9
          <div class="component-right">
            <el-input v-model="queryConfig.taskNumber" />
          </div>
陈嘉新 authored
10
11
12
13
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">远程任务号:</div>
陈嘉新 authored
14
15
16
          <div class="component-right">
            <el-input v-model="queryConfig.remoteTask" />
          </div>
陈嘉新 authored
17
18
19
20
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">容器号:</div>
陈嘉新 authored
21
22
23
          <div class="component-right">
            <el-input v-model="queryConfig.barcode" />
          </div>
陈嘉新 authored
24
25
26
27
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">起点:</div>
陈嘉新 authored
28
29
30
          <div class="component-right">
            <el-input v-model="queryConfig.from" />
          </div>
陈嘉新 authored
31
32
33
34
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">终点:</div>
陈嘉新 authored
35
36
37
          <div class="component-right">
            <el-input v-model="queryConfig.to" />
          </div>
陈嘉新 authored
38
39
40
41
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">任务状态:</div>
陈嘉新 authored
42
43
44
45
46
47
48
          <div class="component-right">
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
49
              />
陈嘉新 authored
50
51
            </el-select>
          </div>
陈嘉新 authored
52
53
54
55
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">开始时间:</div>
陈嘉新 authored
56
57
          <div class="component-right">
            <el-date-picker
陈嘉新 authored
58
              v-model="form.startTime"
陈嘉新 authored
59
60
              type="datetime"
              placeholder="选择日期时间"
61
            />
陈嘉新 authored
62
          </div>
陈嘉新 authored
63
64
65
66
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">结束时间:</div>
陈嘉新 authored
67
68
          <div class="component-right">
            <el-date-picker
陈嘉新 authored
69
              v-model="form.endTime"
陈嘉新 authored
70
71
              type="datetime"
              placeholder="选择日期时间"
72
            />
陈嘉新 authored
73
74
75
76
          </div>
        </div>
        <!-- button -->
        <div class="button-container">
陈嘉新 authored
77
78
          <el-button class="T1" @click="btnAction()">查询</el-button>
          <el-button class="T1" @click="btnAdd()">新增</el-button>
陈嘉新 authored
79
          <el-button class="T1" @click="deleteData()">删除</el-button>
陈嘉新 authored
80
81
        </div>
        <div class="button-container">
陈嘉新 authored
82
          <el-button class="T1" @click="issued()">下发</el-button>
陈嘉新 authored
83
          <!-- <el-button class="T1" @click="ExportList()">导出</el-button> -->
陈嘉新 authored
84
85
        </div>
        <div class="button-containerTwo">
陈嘉新 authored
86
87
88
89
90
91
          <el-button class="T1" type="danger" @click="forceComplete()"
            >强制完成</el-button
          >
          <el-button class="T1" type="warning" @click="maintenance()"
            >维护</el-button
          >
陈嘉新 authored
92
        </div>
陈嘉新 authored
93
94
95
        <div class="button-containerThree">
          <el-button class="T1" @click="logoReset()">回传标志重置</el-button>
        </div>
陈嘉新 authored
96
97
98
99
      </div>
      <div class="dv-container-right">
        <el-table
          v-loading="listLoading"
陈嘉新 authored
100
          :data="sysTable"
陈嘉新 authored
101
102
103
          element-loading-text="Loading"
          border
          fit
陈嘉新 authored
104
105
          height="700"
          @selection-change="handleSelectionChange"
陈嘉新 authored
106
          highlight-current-row
陈嘉新 authored
107
          :header-cell-style="{ background: '#d9ebfe', color: '#000000' }"
陈嘉新 authored
108
        >
陈嘉新 authored
109
110
111
          <el-table-column type="selection" align="center" width="55">
          </el-table-column>
          <el-table-column align="center" label="内部ID">
陈嘉新 authored
112
            <template slot-scope="scope">
陈嘉新 authored
113
              {{ scope.row.id }}
陈嘉新 authored
114
115
            </template>
          </el-table-column>
陈嘉新 authored
116
          <el-table-column label="远程任务号" width="100">
陈嘉新 authored
117
            <template slot-scope="scope">
陈嘉新 authored
118
              {{ scope.row.remoteTask }}
陈嘉新 authored
119
120
            </template>
          </el-table-column>
陈嘉新 authored
121
          <el-table-column label="远程前置任务号" width="120">
陈嘉新 authored
122
            <template slot-scope="scope">
陈嘉新 authored
123
              {{ scope.row.preRemoteTask }}
陈嘉新 authored
124
125
126
127
            </template>
          </el-table-column>
          <el-table-column label="容器号">
            <template slot-scope="scope">
陈嘉新 authored
128
              {{ scope.row.barcode }}
陈嘉新 authored
129
130
131
132
            </template>
          </el-table-column>
          <el-table-column label="任务类型">
            <template slot-scope="scope">
陈嘉新 authored
133
              {{ scope.row.type }}
陈嘉新 authored
134
135
136
137
            </template>
          </el-table-column>
          <el-table-column label="任务状态">
            <template slot-scope="scope">
陈嘉新 authored
138
              {{ scope.row.status }}
陈嘉新 authored
139
140
141
142
            </template>
          </el-table-column>
          <el-table-column label="起点">
            <template slot-scope="scope">
陈嘉新 authored
143
              {{ scope.row.from }}
陈嘉新 authored
144
145
146
147
            </template>
          </el-table-column>
          <el-table-column label="终点">
            <template slot-scope="scope">
陈嘉新 authored
148
              {{ scope.row.to }}
陈嘉新 authored
149
150
151
152
            </template>
          </el-table-column>
          <el-table-column label="途径点">
            <template slot-scope="scope">
陈嘉新 authored
153
              {{ scope.row.approachPoint }}
陈嘉新 authored
154
155
156
157
            </template>
          </el-table-column>
          <el-table-column label="当前节点">
            <template slot-scope="scope">
陈嘉新 authored
158
              {{ scope.row.current }}
陈嘉新 authored
159
160
161
162
            </template>
          </el-table-column>
          <el-table-column label="优先级">
            <template slot-scope="scope">
陈嘉新 authored
163
              {{ scope.row.priority }}
陈嘉新 authored
164
165
166
167
            </template>
          </el-table-column>
          <el-table-column label="阶段">
            <template slot-scope="scope">
陈嘉新 authored
168
              {{ scope.row.mStage }}
陈嘉新 authored
169
170
171
172
            </template>
          </el-table-column>
          <el-table-column label="任务回传">
            <template slot-scope="scope">
陈嘉新 authored
173
              {{ scope.row.commit }}
陈嘉新 authored
174
175
176
177
            </template>
          </el-table-column>
          <el-table-column label="长">
            <template slot-scope="scope">
陈嘉新 authored
178
              {{ scope.row.length }}
陈嘉新 authored
179
180
181
182
            </template>
          </el-table-column>
          <el-table-column label="宽">
            <template slot-scope="scope">
陈嘉新 authored
183
              {{ scope.row.width }}
陈嘉新 authored
184
185
186
187
            </template>
          </el-table-column>
          <el-table-column label="高">
            <template slot-scope="scope">
陈嘉新 authored
188
              {{ scope.row.height }}
陈嘉新 authored
189
190
191
192
            </template>
          </el-table-column>
          <el-table-column label="重">
            <template slot-scope="scope">
陈嘉新 authored
193
              {{ scope.row.weight }}
陈嘉新 authored
194
195
196
197
            </template>
          </el-table-column>
          <el-table-column label="货物类型">
            <template slot-scope="scope">
陈嘉新 authored
198
              {{ scope.row.goodsType }}
陈嘉新 authored
199
200
201
202
            </template>
          </el-table-column>
          <el-table-column label="仓库">
            <template slot-scope="scope">
陈嘉新 authored
203
              {{ scope.row.warehouseCode }}
陈嘉新 authored
204
205
            </template>
          </el-table-column>
206
          <el-table-column label="完成时间" width="160">
陈嘉新 authored
207
            <template slot-scope="scope">
208
              {{ scope.row.completeTime }}
陈嘉新 authored
209
210
            </template>
          </el-table-column>
211
          <el-table-column label="创建时间" width="160">
陈嘉新 authored
212
            <template slot-scope="scope">
213
              {{ scope.row.created }}
陈嘉新 authored
214
215
216
217
            </template>
          </el-table-column>
          <el-table-column label="创建人">
            <template slot-scope="scope">
218
              {{ scope.row.createdBy }}
陈嘉新 authored
219
220
            </template>
          </el-table-column>
221
          <el-table-column label="更新时间" width="160">
陈嘉新 authored
222
            <template slot-scope="scope">
223
              {{ scope.row.updated }}
陈嘉新 authored
224
225
226
227
            </template>
          </el-table-column>
          <el-table-column label="更新人">
            <template slot-scope="scope">
228
              {{ scope.row.updatedBy }}
陈嘉新 authored
229
230
            </template>
          </el-table-column>
陈嘉新 authored
231
        </el-table>
陈嘉新 authored
232
233
234
235
236
237
238
239
        <!-- 分页 -->
        <div class="pagination-container">
          <el-pagination
            background
            layout="prev, pager, next"
            :current-page="queryConfig.currentPage"
            :page-size="queryConfig.pageSize"
            :total="total"
240
            @current-change="handleCurrentChange"
陈嘉新 authored
241
242
          >
          </el-pagination>
陈嘉新 authored
243
        </div>
陈嘉新 authored
244
      </div>
陈嘉新 authored
245
      <!-- 新增弹框 -->
陈嘉新 authored
246
      <el-dialog title="主任务新增" :visible.sync="dialogFormVisible">
陈嘉新 authored
247
248
249
250
        <div class="container">
          <div class="box">
            <div class="inner-left">任务类型:</div>
            <div class="inner-right">
陈嘉新 authored
251
              <el-select v-model="elAddDialog.type" placeholder="请选择">
陈嘉新 authored
252
                <el-option
陈嘉新 authored
253
                  v-for="item in optionsAdd"
陈嘉新 authored
254
255
256
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
257
                />
陈嘉新 authored
258
259
260
261
262
263
              </el-select>
            </div>
          </div>
          <div class="box">
            <div class="inner-left">优先级:</div>
            <div class="inner-right">
陈嘉新 authored
264
              <el-input v-model="elAddDialog.priority" />
陈嘉新 authored
265
266
267
268
269
            </div>
          </div>
          <div class="box">
            <div class="inner-left">容器号:</div>
            <div class="inner-right">
陈嘉新 authored
270
              <el-input v-model="elAddDialog.barcode" />
陈嘉新 authored
271
272
273
274
275
            </div>
          </div>
          <div class="box">
            <div class="inner-left">起点:</div>
            <div class="inner-right">
陈嘉新 authored
276
              <el-input v-model="elAddDialog.from" />
陈嘉新 authored
277
278
279
280
281
            </div>
          </div>
          <div class="box">
            <div class="inner-left">途径点:</div>
            <div class="inner-right">
陈嘉新 authored
282
              <el-input v-model="elAddDialog.approachPoint" />
陈嘉新 authored
283
284
285
286
287
            </div>
          </div>
          <div class="box">
            <div class="inner-left">终点:</div>
            <div class="inner-right">
陈嘉新 authored
288
289
290
291
292
293
294
              <el-input v-model="elAddDialog.to" />
            </div>
          </div>
          <div class="box">
            <div class="inner-left">仓库:</div>
            <div class="inner-right">
              <el-input v-model="elAddDialog.warehouseCode" :disabled="true" />
陈嘉新 authored
295
296
297
298
            </div>
          </div>
        </div>
        <div slot="footer" class="dialog-footer">
陈嘉新 authored
299
          <el-button type="primary" @click="taskAdd()">创 建</el-button>
陈嘉新 authored
300
301
302
303
          <el-button @click="dialogFormVisible = false">取 消</el-button>
        </div>
      </el-dialog>
304
305
306
307
308
      <el-dialog
        title="主任务维护"
        :visible.sync="dialogFormVisibleTwo"
        :showClose="false"
      >
陈嘉新 authored
309
310
        <div class="containerTwo">
          <div class="box1">
陈嘉新 authored
311
            <div class="dv-title" style="margin-left: 10px">
陈嘉新 authored
312
313
              当前任务号:{{ elMaintenance.id
              }}<el-button @click="reset()" class="T1" style="margin-left: 10px"
陈嘉新 authored
314
315
316
317
                >重置所有</el-button
              >
            </div>
            <div></div>
陈嘉新 authored
318
319
320
          </div>
          <div class="box2">
            <div class="small-box">
陈嘉新 authored
321
              <div class="dv-title">远程任务维护</div>
陈嘉新 authored
322
323
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
324
325
                  <div class="dv-maintenance-text">远程任务号:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
326
                    <el-input v-model="elMaintenance.remoteTask" />
陈嘉新 authored
327
                  </div>
陈嘉新 authored
328
                  <div class="dv-maintenance-text3">
329
330
331
                    <el-button class="T1" @click="remoteTaskModify()"
                      >修改</el-button
                    >
陈嘉新 authored
332
333
334
                  </div>
                </div>
                <div class="inner-inner-box2">
陈嘉新 authored
335
336
                  <div class="dv-maintenance-text">前置远程任务号:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
337
                    <el-input v-model="elMaintenance.preRemoteTask" />
陈嘉新 authored
338
                  </div>
陈嘉新 authored
339
                  <div class="dv-maintenance-text3">
340
341
342
                    <el-button class="T1" @click="preRemoteTaskModify()"
                      >修改</el-button
                    >
陈嘉新 authored
343
344
345
346
347
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
348
              <div class="dv-title">位置维护</div>
陈嘉新 authored
349
350
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
351
352
                  <div class="dv-maintenance-text">起点:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
353
                    <el-input v-model="elMaintenance.from" />
陈嘉新 authored
354
                  </div>
陈嘉新 authored
355
                  <div class="dv-maintenance-text3">
356
                    <el-button class="T1" @click="formModify()">修改</el-button>
陈嘉新 authored
357
358
359
                  </div>
                </div>
                <div class="inner-inner-box2">
陈嘉新 authored
360
361
                  <div class="dv-maintenance-text">终点:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
362
                    <el-input v-model="elMaintenance.to" />
陈嘉新 authored
363
                  </div>
陈嘉新 authored
364
                  <div class="dv-maintenance-text3">
365
                    <el-button class="T1" @click="toModify()">修改</el-button>
陈嘉新 authored
366
367
368
369
370
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
371
              <div class="dv-title">阶段维护</div>
陈嘉新 authored
372
373
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
374
375
                  <div class="dv-maintenance-text">任务执行阶段:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
376
377
378
379
380
381
382
383
384
385
386
                    <el-select
                      v-model="elMaintenance.mStage"
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsStage"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
陈嘉新 authored
387
                  </div>
陈嘉新 authored
388
                  <div class="dv-maintenance-text3">
389
390
391
                    <el-button class="T1" @click="mStageModify()"
                      >修改</el-button
                    >
陈嘉新 authored
392
393
394
395
396
397
                  </div>
                </div>
                <div class="inner-inner-box2"></div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
398
              <div class="dv-title">途径点维护</div>
陈嘉新 authored
399
400
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
401
402
                  <div class="dv-maintenance-text">途径点:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
403
                    <el-select
陈嘉新 authored
404
405
                      v-model="elMaintenance.approachPoint"
                      multiple
陈嘉新 authored
406
407
408
409
410
411
412
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsPick"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
陈嘉新 authored
413
414
                      >
                      </el-option>
陈嘉新 authored
415
                    </el-select>
陈嘉新 authored
416
                  </div>
陈嘉新 authored
417
                  <div class="dv-maintenance-text3">
陈嘉新 authored
418
419
420
                    <el-button class="T1" @click="approachPointModify()"
                      >修改</el-button
                    >
陈嘉新 authored
421
422
423
424
425
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
426
              <div class="dv-title">状态维护</div>
陈嘉新 authored
427
428
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
429
430
                  <div class="dv-maintenance-text">任务状态:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
431
432
433
434
435
436
437
438
439
440
441
                    <el-select
                      v-model="elMaintenance.status"
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsStatus"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
陈嘉新 authored
442
                  </div>
陈嘉新 authored
443
                  <div class="dv-maintenance-text3">
444
445
446
                    <el-button class="T1" @click="statusModify()"
                      >修改</el-button
                    >
陈嘉新 authored
447
448
449
450
451
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
452
              <div class="dv-title">优先级维护</div>
陈嘉新 authored
453
454
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
455
456
                  <div class="dv-maintenance-text">优先级:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
457
                    <el-input v-model="elMaintenance.priority" />
陈嘉新 authored
458
                  </div>
陈嘉新 authored
459
                  <div class="dv-maintenance-text3">
460
461
462
                    <el-button class="T1" @click="priorityModify()"
                      >修改</el-button
                    >
陈嘉新 authored
463
464
465
466
467
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
468
              <div class="dv-title">当前设备维护</div>
陈嘉新 authored
469
470
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
471
472
                  <div class="dv-maintenance-text">当前设备:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
473
474
475
476
477
478
479
480
481
482
483
                    <el-select
                      v-model="elMaintenance.current"
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsDevice"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
陈嘉新 authored
484
                  </div>
陈嘉新 authored
485
                  <div class="dv-maintenance-text3">
486
487
488
                    <el-button class="T1" @click="currentModify()"
                      >修改</el-button
                    >
陈嘉新 authored
489
490
491
492
493
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
494
              <div class="dv-title">回传维护</div>
陈嘉新 authored
495
496
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
497
498
                  <div class="dv-maintenance-text">任务回传:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
499
500
501
502
503
504
505
506
507
508
509
                    <el-select
                      v-model="elMaintenance.commit"
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsCommitd"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
陈嘉新 authored
510
                  </div>
陈嘉新 authored
511
                  <div class="dv-maintenance-text3">
512
513
514
                    <el-button class="T1" @click="commitModify()"
                      >修改</el-button
                    >
陈嘉新 authored
515
516
517
518
519
                  </div>
                </div>
              </div>
            </div>
          </div>
陈嘉新 authored
520
521
522
523
524
525
          <div class="box3">
            <div class="dv-title">货物类别维护</div>
            <div class="dv-maintenance2">
              <div class="dv-maintenance2-left">
                <div class="dv-maintenance-text">长:</div>
                <div class="dv-maintenance-text2">
陈嘉新 authored
526
                  <el-input v-model="elMaintenance.length" />
陈嘉新 authored
527
528
                </div>
                <div class="dv-maintenance-text3">
529
                  <el-button class="T1" @click="lengthModify()">修改</el-button>
陈嘉新 authored
530
531
532
533
534
                </div>
              </div>
              <div class="dv-maintenance2-right">
                <div class="dv-maintenance-text">宽:</div>
                <div class="dv-maintenance-text2">
陈嘉新 authored
535
                  <el-input v-model="elMaintenance.width" />
陈嘉新 authored
536
537
                </div>
                <div class="dv-maintenance-text3">
538
                  <el-button class="T1" @click="widthModify()">修改</el-button>
陈嘉新 authored
539
540
541
542
543
544
545
                </div>
              </div>
            </div>
            <div class="dv-maintenance3">
              <div class="dv-maintenance3-left">
                <div class="dv-maintenance-text">高:</div>
                <div class="dv-maintenance-text2">
陈嘉新 authored
546
                  <el-input v-model="elMaintenance.height" />
陈嘉新 authored
547
548
                </div>
                <div class="dv-maintenance-text3">
549
                  <el-button class="T1" @click="heightModify()">修改</el-button>
陈嘉新 authored
550
551
552
553
554
                </div>
              </div>
              <div class="dv-maintenance3-right">
                <div class="dv-maintenance-text">重:</div>
                <div class="dv-maintenance-text2">
陈嘉新 authored
555
                  <el-input v-model="elMaintenance.weight" />
陈嘉新 authored
556
557
                </div>
                <div class="dv-maintenance-text3">
558
                  <el-button class="T1" @click="weightModify()">修改</el-button>
陈嘉新 authored
559
560
561
562
563
564
                </div>
              </div>
            </div>
            <div class="dv-maintenance4">
              <div class="dv-maintenance-text">货物类型:</div>
              <div class="dv-maintenance-text2">
陈嘉新 authored
565
                <el-input v-model="elMaintenance.goodsType" />
陈嘉新 authored
566
567
              </div>
              <div class="dv-maintenance-text3">
568
569
570
                <el-button class="T1" @click="goodsTypeModify()"
                  >修改</el-button
                >
陈嘉新 authored
571
572
573
              </div>
            </div>
          </div>
陈嘉新 authored
574
575
        </div>
        <div slot="footer" class="dialog-footer">
陈嘉新 authored
576
          <!-- <el-button type="primary" @click="dialogFormVisibleTwo = false"
陈嘉新 authored
577
            >创 建</el-button
陈嘉新 authored
578
          > -->
陈嘉新 authored
579
          <el-button @click="dialogFormVisibleTwo = false">取 消</el-button>
陈嘉新 authored
580
581
        </div>
      </el-dialog>
陈嘉新 authored
582
583
584
585
586
    </div>
  </div>
</template>

<script>
陈嘉新 authored
587
588
589
590
591
592
593
import {
  getHostType,
  getTableList,
  AddMTask,
  DeleteTaskByIds,
  SendTaskToWCS,
  CompleteTask,
陈嘉新 authored
594
  GetMTaskById,
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
  RemoteTaskEdit,
  PreRemoteTaskEdit,
  FromEdit,
  ToEdit,
  PriorityEdit,
  LengthEdit,
  WidthEdit,
  HeightEdit,
  WeightEdit,
  GoodsTypeEdit,
  MStageEdit,
  ApproachPointEdit,
  StatusEdit,
  CurrentEdit,
  CommitEdit,
陈嘉新 authored
610
  ResetTaskCommitFlag,
611
} from "@/api/taskManagement/host";
陈嘉新 authored
612
import { getRefreshToken, getToken } from "@/utils/auth";
陈嘉新 authored
613
614
615
export default {
  data() {
    return {
陈嘉新 authored
616
617
618
619
      sysTable: [],
      //   查询条件
      queryConfig: {
        currentPage: 1,
陈嘉新 authored
620
        pageSize: 20,
陈嘉新 authored
621
622
623
624
625
        taskNumber: "",
        remoteTask: "",
        barcode: "",
        from: "",
        to: "",
陈嘉新 authored
626
      },
陈嘉新 authored
627
628
629
630
      //新增参数
      elAddDialog: {
        remoteTask: "",
        preRemoteTask: "",
陈嘉新 authored
631
        type: "",
陈嘉新 authored
632
        from: "",
陈嘉新 authored
633
        to: "",
陈嘉新 authored
634
        approachPoint: "",
陈嘉新 authored
635
636
        barcode: "",
        priority: 0,
陈嘉新 authored
637
        warehouseCode: "CS0001",
陈嘉新 authored
638
639
        platform: "WCS",
      },
陈嘉新 authored
640
      //维护弹出层条件
陈嘉新 authored
641
      elMaintenance: {},
陈嘉新 authored
642
      total: 0,
陈嘉新 authored
643
      listLoading: false,
陈嘉新 authored
644
      dialogFormVisible: false,
陈嘉新 authored
645
646
      dialogFormVisibleTwo: false,
      name: "",
陈嘉新 authored
647
648
      options: [
        {
陈嘉新 authored
649
650
651
          value: "",
          label: "全部",
        },
陈嘉新 authored
652
      ],
陈嘉新 authored
653
      optionsAdd: [],
陈嘉新 authored
654
655
656
657
658
      optionsCommitd: [],
      optionsStatus: [],
      optionsStage: [],
      optionsDevice: [],
      optionsPick: [],
陈嘉新 authored
659
      value: "",
陈嘉新 authored
660
661
      form: {
        startTime: this.$moment()
陈嘉新 authored
662
663
664
          .subtract(7, "days")
          .format("YYYY-MM-DD 00:00:00"),
        endTime: this.$moment().add(1, "days").format("YYYY-MM-DD 23:59:59"),
陈嘉新 authored
665
      },
陈嘉新 authored
666
      multipleSelection: [],
667
      userCode: "",
陈嘉新 authored
668
    };
陈嘉新 authored
669
670
  },
  created() {
陈嘉新 authored
671
    this.dictionary("MTaskStatus", 1);
陈嘉新 authored
672
    this.getTableList();
673
    this.userCode = this.$store.state.user.name;
陈嘉新 authored
674
675
  },
  methods: {
陈嘉新 authored
676
677
    //字典表数据
    dictionary(data, key) {
陈嘉新 authored
678
679
680
681
682
683
684
685
686
687
688
      this.optionsCommitd = [];
      this.optionsStatus = [];
      this.optionsStage = [];
      this.optionsDevice = [];
      this.optionsPick = [];
      let params = { Code: data };
      getHostType(params).then((response) => {
        response.data.dictDetails.forEach((x) => {
          if (data == "CommitFlags") {
            this.optionsCommitd.push({ value: x.code, label: x.name });
          } else if (data == "MTaskStatus") {
陈嘉新 authored
689
690
691
692
693
            if (key == 1) {
              this.options.push({ value: x.code, label: x.name });
            } else {
              this.optionsStatus.push({ value: x.code, label: x.name });
            }
陈嘉新 authored
694
695
696
697
698
699
700
701
702
703
704
705
706
707
          } else if (data == "MTaskStage") {
            this.optionsStage.push({ value: x.code, label: x.name });
          } else if (data == "SRM") {
            this.optionsDevice.push({ value: x.code, label: x.name });
          } else if (data == "SRMInStation") {
            this.optionsDevice.push({ value: x.code, label: x.name });
          } else if (data == "SRMOutStation") {
            this.optionsDevice.push({ value: x.code, label: x.name });
          } else if (data == "SRMInOrOutStation") {
            this.optionsDevice.push({ value: x.code, label: x.name });
          } else if (data == "PickPort") {
            this.optionsPick.push({ value: x.code, label: x.name });
          } else if (data == "OutPort") {
            this.optionsPick.push({ value: x.code, label: x.name });
陈嘉新 authored
708
709
710
711
712
          } else if (data == "MTaskType") {
            this.optionsAdd.push({ value: x.code, label: x.name });
            if (this.optionsAdd.length > 0) {
              this.elAddDialog.type = this.optionsAdd[0].value;
            }
陈嘉新 authored
713
714
715
716
          }
        });
      });
    },
陈嘉新 authored
717
    //查询按钮
陈嘉新 authored
718
    btnAction() {
陈嘉新 authored
719
      this.getTableList();
陈嘉新 authored
720
    },
陈嘉新 authored
721
    //新增按钮
陈嘉新 authored
722
    btnAdd() {
陈嘉新 authored
723
      this.dictionary("MTaskType");
陈嘉新 authored
724
      this.dialogFormVisible = true;
陈嘉新 authored
725
    },
陈嘉新 authored
726
727
728
729
    //新增创建按钮
    taskAdd() {
      const params = this.elAddDialog;
      this.listLoading = true;
陈嘉新 authored
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
      AddMTask(params).then((response) => {
        if (response.code == "Success") {
          this.getTableList();
          this.$message({
            message: "恭喜你,这是一条成功消息",
            type: "success",
          });
        }
      });
    },
    //删除按钮
    deleteData() {
      if (this.multipleSelection.length == 0) {
        this.$alert("请选择最少一条数据!", "标题名称", {
          confirmButtonText: "确定",
        });
      } else {
        let prams = [];
        this.multipleSelection.forEach((x) => {
          prams.push(x.id);
        });
        DeleteTaskByIds(prams).then((response) => {
          if (response.code == "Success") {
            this.getTableList();
陈嘉新 authored
754
            this.messge(response);
陈嘉新 authored
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
          }
        });
      }
    },
    //下发按钮
    issued() {
      if (this.multipleSelection.length == 0) {
        this.$alert("请选择最少一条数据!", "标题名称", {
          confirmButtonText: "确定",
        });
      } else {
        let prams = [];
        this.multipleSelection.forEach((x) => {
          prams.push(x.id);
        });
        SendTaskToWCS(prams).then((response) => {
          if (response.code == "Success") {
            this.getTableList();
陈嘉新 authored
773
            this.messge(response);
陈嘉新 authored
774
775
776
777
778
779
780
781
782
783
          }
        });
      }
    },
    //导出按钮
    ExportList() {
      const params = {
        pageNumber: this.queryConfig.currentPage,
        perPageCount: this.queryConfig.pageSize,
        queryConfig: {
陈嘉新 authored
784
785
786
787
788
789
          taskNo: this.queryConfig.taskNumber,
          remoteTask: this.queryConfig.remoteTask,
          barcode: this.queryConfig.barcode,
          from: this.queryConfig.from,
          to: this.queryConfig.to,
          taskStatus: this.value,
陈嘉新 authored
790
791
792
793
          begin: this.form.startTime,
          end: this.form.endTime,
        },
      };
陈嘉新 authored
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
      fetch("http://172.16.43.251:5221/api/MTask/ExportMTask", {
        method: "POST",
        headers: {
          "Content-Type": "application/json", // 设置请求头
          Authorization: "Bearer " + getToken(),
          "x-accesstoken": getRefreshToken(),
        },
        body: JSON.stringify(params), // 将参数转为 JSON 字符串
      })
        .then((response) => {
          if (!response.ok) throw new Error("网络响应不是 OK");
          return response.blob();
        })
        .then((blob) => {
          console.log(window.URL.createObjectURL(blob), "dfdf");

          const url = window.URL.createObjectURL(blob);
          const link = document.createElement("a");
          link.href = url;

          link.setAttribute("download", "主任务数据.xlsx"); // 指定文件名
          document.body.appendChild(link);
          link.click();
          link.remove();
        })
        .catch((error) => {
          console.error("下载文件出错:", error);
        });
陈嘉新 authored
822
823
    },
    //获取表格行数据
陈嘉新 authored
824
825
    handleSelectionChange(val) {
      this.multipleSelection = val;
陈嘉新 authored
826
827
828
    },
    // 表格数据
    getTableList() {
829
      const params = {
陈嘉新 authored
830
831
832
        pageNumber: this.queryConfig.currentPage,
        perPageCount: this.queryConfig.pageSize,
        queryConfig: {
833
834
835
836
837
838
          taskNo: this.queryConfig.taskNumber,
          remoteTask: this.queryConfig.remoteTask,
          barcode: this.queryConfig.barcode,
          from: this.queryConfig.from,
          to: this.queryConfig.to,
          taskStatus: this.value,
陈嘉新 authored
839
          begin: this.form.startTime,
陈嘉新 authored
840
841
842
          end: this.form.endTime,
        },
      };
陈嘉新 authored
843
      this.listLoading = true;
陈嘉新 authored
844
      getTableList(params).then((response) => {
陈嘉新 authored
845
        this.total = response.data.totalCount;
陈嘉新 authored
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
        response.data.data.forEach((x) => {
          switch (x.mStage) {
            case 0:
              x.mStage = "入库";
              break;
            case 1:
              x.mStage = "出库";
              break;
            case 2:
              x.mStage = "库内";
              break;
            default:
              break;
          }
          switch (x.type) {
            case 0:
              x.type = "入库";
              break;
            case 1:
              x.type = "出库";
              break;
            case 2:
              x.type = "移库";
              break;
            case 4:
              x.type = "换站";
              break;
            case 8:
              x.type = "分拣";
              break;
            default:
              break;
          }
          switch (x.commit) {
            case 0:
              x.commit = "未提交";
              break;
            case 1:
              x.commit = "已提交";
              break;
            case 2:
              x.commit = "无需提交";
              break;
            case 3:
              x.commit = "提交失败";
              break;
            default:
              break;
          }
          switch (x.status) {
            case 0:
              x.status = "任务创建";
              break;
            case 10:
              x.status = "任务下发";
              break;
            case 20:
              x.status = "堆垛机任务创建";
              break;
            case 30:
              x.status = "堆垛机任务完成";
              break;
            case 40:
              x.status = "响应接出口请求";
              break;
            case 50:
              x.status = "到达分拣口";
              break;
            case 60:
              x.status = "分拣回库中";
              break;
            case 70:
              x.status = "响应接入位置到达";
              break;
            case 100:
              x.status = "任务完成";
              break;
            case 130:
              x.status = "任务异常结束";
              break;
            case "UnCompleted":
              x.status = "任务未完成";
              break;
            default:
              break;
          }
        });
陈嘉新 authored
933
        this.sysTable = response.data.data;
陈嘉新 authored
934
        this.listLoading = false;
陈嘉新 authored
935
936
937
938
939
      });
    },
    // 强制完成按钮
    forceComplete() {
      if (this.multipleSelection.length == 1) {
陈嘉新 authored
940
941
942
943
944
945
        let prams = {
          id: this.multipleSelection[0].id,
        };
        CompleteTask(prams).then((response) => {
          if (response.code == "Success") {
            this.getTableList();
陈嘉新 authored
946
            this.messge(response);
陈嘉新 authored
947
948
          }
        });
陈嘉新 authored
949
950
951
952
      } else {
        this.elAlert();
      }
    },
陈嘉新 authored
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
    //回传标志重置
    logoReset() {
      this.$alert("是否重置所有回传失败的任务标志", "标题名称", {
        confirmButtonText: "确定",
        callback: (action) => {
          let prams = {
            warehouseCode: this.elAddDialog.warehouseCode,
          };
          ResetTaskCommitFlag(prams).then((response) => {
            if (response.code == "Success") {
              this.$message({
                type: "info",
                message: `重置成功!`,
              });
            }
          });
        },
      });
    },
陈嘉新 authored
972
    // 维护按钮
陈嘉新 authored
973
    maintenance() {
陈嘉新 authored
974
      if (this.multipleSelection.length == 1) {
陈嘉新 authored
975
976
977
        this.dictionary("CommitFlags");
        this.dictionary("MTaskStatus");
        this.dictionary("MTaskStage");
陈嘉新 authored
978
陈嘉新 authored
979
980
981
982
        this.dictionary("SRM");
        this.dictionary("SRMInStation");
        this.dictionary("SRMOutStation");
        this.dictionary("SRMInOrOutStation");
陈嘉新 authored
983
陈嘉新 authored
984
985
        this.dictionary("PickPort");
        this.dictionary("OutPort");
陈嘉新 authored
986
987
988
989
990
        let params = {
          id: this.multipleSelection[0].id,
        };
        GetMTaskById(params).then((response) => {
          if (response.code == "Success") {
陈嘉新 authored
991
992
993
994
995
996
997
998
            if (response.data.approachPoint == "") {
              response.data.approachPoint = [];
            } else {
              response.data.approachPoint = response.data.approachPoint
                .split(", ")
                .map((item) => item.trim());
            }
陈嘉新 authored
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
            switch (response.data.mStage) {
              case 0:
                response.data.mStage = "In";
                break;
              case 1:
                response.data.mStage = "Out";
                break;
              case 2:
                response.data.mStage = "InStore";
                break;
              default:
                break;
            }
            switch (response.data.commit) {
              case 0:
                response.data.commit = "Uncommited";
                break;
              case 1:
                response.data.commit = "Commited";
                break;
              case 2:
                response.data.commit = "UnNeedCommit";
                break;
              case 3:
                response.data.commit = "CommitFailure";
                break;
              default:
                break;
            }
            switch (response.data.status) {
              case 0:
                response.data.status = "Create";
                break;
              case 10:
                response.data.status = "TaskSend";
                break;
              case 20:
                response.data.status = "SRMTaskCreated";
                break;
              case 30:
                response.data.status = "SRMTaskCompleted";
                break;
              case 40:
                response.data.status = "OutStationRequest";
                break;
              case 50:
                response.data.status = "ArrivePickStation";
                break;
              case 60:
                response.data.status = "PickStationToStore";
                break;
              case 70:
                response.data.status = "InStationArrived";
                break;
              case 100:
                response.data.status = "TaskCompleted";
                break;
              case 130:
                response.data.status = "TaskErrorCompleted";
                break;
              case "UnCompleted":
                response.data.status = "UnCompleted";
                break;
              default:
                break;
            }
            this.elMaintenance = response.data;
            this.dialogFormVisibleTwo = true;
          }
        });
陈嘉新 authored
1069
1070
1071
      } else {
        this.elAlert();
      }
陈嘉新 authored
1072
    },
陈嘉新 authored
1073
    //分页
陈嘉新 authored
1074
    handleCurrentChange(page) {
陈嘉新 authored
1075
1076
1077
      this.queryConfig.currentPage = page;
      this.getTableList();
    },
陈嘉新 authored
1078
    //提示数据
陈嘉新 authored
1079
1080
1081
1082
1083
    elAlert() {
      this.$alert("请选择一条数据!", "标题名称", {
        confirmButtonText: "确定",
      });
    },
陈嘉新 authored
1084
    //维护重置
陈嘉新 authored
1085
    reset() {
1086
      this.maintenance();
陈嘉新 authored
1087
    },
1088
1089
    //远程任务号
    remoteTaskModify() {
陈嘉新 authored
1090
      let prams = this.pramsData(this.elMaintenance.remoteTask, 0);
1091
1092
      RemoteTaskEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1093
          this.getTableList();
1094
1095
1096
1097
1098
1099
          this.messge(response);
        }
      });
    },
    //前置远程任务号
    preRemoteTaskModify() {
陈嘉新 authored
1100
      let prams = this.pramsData(this.elMaintenance.preRemoteTask, 0);
1101
1102
      PreRemoteTaskEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1103
          this.getTableList();
1104
1105
1106
1107
1108
1109
          this.messge(response);
        }
      });
    },
    //起点
    formModify() {
陈嘉新 authored
1110
      let prams = this.pramsData(this.elMaintenance.from, 0);
1111
1112
      FromEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1113
          this.getTableList();
1114
1115
1116
1117
1118
1119
          this.messge(response);
        }
      });
    },
    //终点
    toModify() {
陈嘉新 authored
1120
      let prams = this.pramsData(this.elMaintenance.to, 0);
1121
1122
      ToEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1123
          this.getTableList();
1124
1125
1126
1127
1128
1129
          this.messge(response);
        }
      });
    },
    //优先级
    priorityModify() {
陈嘉新 authored
1130
      let prams = this.pramsData(this.elMaintenance.priority, 0);
1131
1132
      PriorityEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1133
          this.getTableList();
1134
1135
1136
1137
1138
1139
          this.messge(response);
        }
      });
    },
    //长
    lengthModify() {
陈嘉新 authored
1140
      let prams = this.pramsData(this.elMaintenance.length, 0);
1141
1142
      LengthEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1143
          this.getTableList();
1144
1145
1146
1147
1148
1149
          this.messge(response);
        }
      });
    },
    //宽
    widthModify() {
陈嘉新 authored
1150
      let prams = this.pramsData(this.elMaintenance.width, 0);
1151
1152
      WidthEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1153
          this.getTableList();
1154
1155
1156
1157
1158
1159
          this.messge(response);
        }
      });
    },
    //高
    heightModify() {
陈嘉新 authored
1160
      let prams = this.pramsData(this.elMaintenance.height, 0);
1161
1162
      HeightEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1163
          this.getTableList();
1164
1165
1166
1167
1168
1169
          this.messge(response);
        }
      });
    },
    //重
    weightModify() {
陈嘉新 authored
1170
      let prams = this.pramsData(this.elMaintenance.weight, 0);
1171
1172
      WeightEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1173
          this.getTableList();
1174
1175
1176
1177
1178
1179
          this.messge(response);
        }
      });
    },
    //货物类型
    goodsTypeModify() {
陈嘉新 authored
1180
      let prams = this.pramsData(this.elMaintenance.goodsType, 0);
1181
1182
      GoodsTypeEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1183
          this.getTableList();
1184
1185
1186
1187
1188
1189
          this.messge(response);
        }
      });
    },
    //阶段
    mStageModify() {
陈嘉新 authored
1190
      let prams = this.pramsData(this.elMaintenance.mStage, 0);
1191
1192
      MStageEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1193
          this.getTableList();
1194
1195
1196
1197
1198
1199
          this.messge(response);
        }
      });
    },
    //途径点
    approachPointModify() {
陈嘉新 authored
1200
      let prams = this.pramsData(this.elMaintenance.approachPoint, 1);
1201
1202
      ApproachPointEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1203
          this.getTableList();
1204
1205
1206
1207
1208
1209
          this.messge(response);
        }
      });
    },
    //任务状态
    statusModify() {
陈嘉新 authored
1210
      let prams = this.pramsData(this.elMaintenance.status, 0);
1211
1212
      StatusEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1213
          this.getTableList();
1214
1215
1216
1217
1218
1219
          this.messge(response);
        }
      });
    },
    //当前设备
    currentModify() {
陈嘉新 authored
1220
      let prams = this.pramsData(this.elMaintenance.current, 0);
1221
1222
      CurrentEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1223
          this.getTableList();
1224
1225
1226
1227
1228
1229
          this.messge(response);
        }
      });
    },
    //任务回传
    commitModify() {
陈嘉新 authored
1230
      let prams = this.pramsData(this.elMaintenance.commit, 0);
1231
1232
      CommitEdit(prams).then((response) => {
        if (response.code == "Success") {
陈嘉新 authored
1233
          this.getTableList();
1234
1235
1236
1237
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
    //维护修改参数
    pramsData(data, key) {
      let item;
      if (key == 1) {
        let lst = data,
          result = lst.join(", ");
        item = {
          id: this.multipleSelection[0].id,
          data: result,
          userCode: this.userCode,
        };
      } else {
        item = {
          id: this.multipleSelection[0].id,
          data: data,
          userCode: this.userCode,
        };
      }
      return item;
    },
1258
1259
1260
1261
1262
1263
    messge(response) {
      this.$message({
        message: response.msg,
        type: "success",
      });
    },
陈嘉新 authored
1264
1265
  },
};
陈嘉新 authored
1266
</script>
陈嘉新 authored
1267
<style lang="scss">
陈嘉新 authored
1268
1269
1270
1271
1272
1273
1274
1275
1276
.app-container-father {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  display: flex;
  .dv-container-left {
    width: 20%;
    background-color: #eeeeee;
陈嘉新 authored
1277
    height: 85vh;
1278
    // border-radius: 7px;
陈嘉新 authored
1279
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
陈嘉新 authored
1280
    overflow: auto;
陈嘉新 authored
1281
1282
1283
1284
1285
    .dv-container-left-component {
      width: 100%;
      display: flex;
      .component-left {
        width: 40%;
陈嘉新 authored
1286
        height: 60px;
陈嘉新 authored
1287
1288
1289
1290
1291
1292
        display: flex;
        justify-content: flex-end;
        align-items: center;
      }
      .component-right {
        width: 57%;
陈嘉新 authored
1293
        height: 60px;
陈嘉新 authored
1294
1295
1296
1297
1298
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
陈嘉新 authored
1299
1300
1301
1302
1303
1304
1305
1306
1307
    .button-container {
      width: 90%;
      margin: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      .T1 {
        width: 88px;
        margin-top: 10px;
陈嘉新 authored
1308
        border: 1px solid #b3d8ff;
陈嘉新 authored
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
      }
    }
    .button-containerTwo {
      width: 90%;
      margin: 20px auto;
      display: flex;
      justify-content: center;
      align-items: center;
      .T1 {
        width: 50%;
1319
        font-size: 16px;
陈嘉新 authored
1320
1321
1322
        margin-top: 10px;
      }
    }
陈嘉新 authored
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
    .button-containerThree {
      width: 90%;
      margin: 0px auto;
      display: flex;
      justify-content: center;
      align-items: center;
      .T1 {
        width: 50%;
        font-size: 16px;
        border: 1px solid #b3d8ff;
      }
    }
陈嘉新 authored
1335
1336
1337
1338
1339
  }
  .dv-container-right {
    width: 79%;
    height: 88vh;
    margin-left: 1%;
陈嘉新 authored
1340
    .pagination-container {
陈嘉新 authored
1341
      text-align: center; /* 使分页组件靠右 */
陈嘉新 authored
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
      margin-top: 20px; /* 添加顶部间距 */
    }
  }
  .container {
    width: 100%; /* 大 div 宽度 */
    display: flex; /* 使用 Flexbox 布局 */
    flex-wrap: wrap; /* 允许换行 */
    padding: 10px; /* 内边距 */
    box-sizing: border-box; /* 包含内边距在内 */
  }
  .box {
    width: 50%; /* 小 div 宽度为 50% */
    height: 50px; /* 小 div 高度 */
    margin: 5px 0; /* 上下外边距 */
    display: flex; /* 嵌套使用 Flexbox */
  }
  .inner-left {
    width: 40%; /* 内部左侧 div 宽度为 50% */
    height: 100%; /* 高度为 100% */
    display: flex; /* 使用 Flexbox */
    justify-content: flex-end; /* 内容靠右 */
    align-items: center; /* 垂直居中 */
    padding-right: 5px; /* 右侧内边距 */
  }
  .inner-right {
    width: 50%; /* 内部右侧 div 宽度为 50% */
    height: 100%; /* 高度为 100% */
    display: flex; /* 使用 Flexbox */
    justify-content: flex-start; /* 内容靠左 */
    align-items: center; /* 垂直居中 */
    padding-left: 5px; /* 左侧内边距 */
  }
陈嘉新 authored
1374
1375
1376
1377
1378

  .containerTwo {
    width: 100%;
    border: 1px solid #ccc; /* 大 div 的边框 */
    overflow: auto;
陈嘉新 authored
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
    margin-top: -30px;
    .T1 {
      width: 88px;
      //   margin-top: 10px;
      border: 1px solid #b3d8ff;
    }
    .dv-title {
      height: 30px; /* 第一个子 div 的高度 */
      display: flex; /* 使用 Flexbox */
      justify-content: center; /* 水平居中 */
      align-items: center; /* 垂直居中 */
      font-weight: 700;
    }
    .dv-maintenance-text {
      width: 35%;
      height: 100%;
      display: flex;
      justify-content: flex-end; /* 内容靠右 */
      align-items: center; /* 垂直居中 */
    }
    .dv-maintenance-text2 {
      width: 35%;
      height: 100%;
      display: flex;
      justify-content: center; /* 内容靠右 */
      align-items: center; /* 垂直居中 */
    }
    .dv-maintenance-text3 {
      width: 30%;
      height: 100%;
      display: flex;
      justify-content: center; /* 内容靠右 */
      align-items: center; /* 垂直居中 */
    }
陈嘉新 authored
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
  }
  .box1 {
    width: 100%;
    height: 50px; /* 修改后的高度 */
    display: flex; /* 使用 Flexbox */
    flex-wrap: wrap; /* 超出换行 */
    align-items: center; /* 垂直居中对齐 */
  }
  .box2 {
    width: 100%;
    display: flex; /* 使用 Flexbox */
    flex-wrap: wrap; /* 超出换行 */
    align-items: center; /* 垂直居中对齐 */
陈嘉新 authored
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
    .small-box {
      width: 50%; /* 每个小 div 的宽度 */
      box-sizing: border-box; /* 包含边框和内边距 */
      border: 1px solid #ccc; /* 大 div 的边框 */
    }
    .inner-box2 {
      height: 100px; /* 第二个子 div 的高度 */
      display: flex; /* 使用 Flexbox */
      flex-direction: column; /* 垂直排列子 div */
    }
    .inner-inner-box1 {
      height: 45%; /* 第一个内层子 div 的高度 */
      display: flex; /* 使用 Flexbox */
      justify-content: center; /* 水平居中 */
      align-items: center; /* 垂直居中 */
    }
    .inner-inner-box2 {
      height: 50%; /* 第二个内层子 div 的高度 */
      display: flex; /* 使用 Flexbox */
      justify-content: center; /* 水平居中 */
      align-items: center; /* 垂直居中 */
    }
    .inner-inner-box3 {
      height: 100%; /* 第三个内层子 div 的高度 */
      display: flex; /* 使用 Flexbox */
    }
陈嘉新 authored
1452
1453
  }
  .box3 {
陈嘉新 authored
1454
    width: 70%;
陈嘉新 authored
1455
    height: 100px;
陈嘉新 authored
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
    margin: auto;
    .dv-maintenance1 {
      width: 100%;
      height: 30px;
      display: flex;
      justify-content: center; /* 水平居中 */
      align-items: center; /* 垂直居中 */
      border: 1px solid #ccc; /* 大 div 的边框 */
    }
    .dv-maintenance2 {
      width: 100%;
      height: 50px;
      display: flex;
      border: 1px solid #ccc; /* 大 div 的边框 */
      .dv-maintenance2-left {
        width: 50%;
        height: 100%;
        display: flex;
      }
      .dv-maintenance2-right {
        width: 50%;
        height: 100%;
        display: flex;
      }
    }
    .dv-maintenance3 {
      width: 100%;
      height: 50px;
      display: flex;
      border: 1px solid #ccc; /* 大 div 的边框 */
      .dv-maintenance3-left {
        width: 50%;
        height: 100%;
        display: flex;
      }
      .dv-maintenance3-right {
        width: 50%;
        height: 100%;
        display: flex;
      }
    }
    .dv-maintenance4 {
      width: 50%;
      height: 50px;
      margin: auto;
      display: flex; /* 使用 Flexbox */
      justify-content: center; /* 内容靠左 */
      align-items: center; /* 垂直居中对齐 */
      border: 1px solid #ccc; /* 大 div 的边框 */
    }
陈嘉新 authored
1506
  }
陈嘉新 authored
1507
1508
1509
1510
1511
  /* 修改复选框大小 */
  .el-table .el-checkbox {
    transform: scale(1.8) !important; /* 调整大小 */
    margin-top: 5px;
  }
陈嘉新 authored
1512
1513
}
</style>