Blame view

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

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

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

        <div class="dv-container-left-component">
          <div class="component-left">RGV名:</div>
          <div class="component-right">
陈嘉新 authored
29
            <el-input v-model="queryConfig.rgvCode" />
陈嘉新 authored
30
31
32
33
34
35
          </div>
        </div>

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

        <div class="dv-container-left-component">
          <div class="component-left">终点:</div>
          <div class="component-right">
陈嘉新 authored
43
            <el-input v-model="queryConfig.toStation" />
陈嘉新 authored
44
45
46
47
48
49
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">任务状态:</div>
          <div class="component-right">
陈嘉新 authored
50
            <el-select v-model="queryConfig.status" placeholder="请选择">
陈嘉新 authored
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">开始时间:</div>
          <div class="component-right">
            <el-date-picker
              v-model="form.startTime"
              type="datetime"
              placeholder="选择日期时间"
            />
          </div>
        </div>

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

<script>
陈嘉新 authored
611
import {
陈嘉新 authored
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
  GetDictWithDetailsLangs,
  GetRGVTasks,
  CreateRGVTask,
  GetRGVTaskById,
  CompleteRGVTask,
  DeleteRGVTaskByIds,
  RGVLinkTaskIdEdit,
  RGVPreTaskIdEdit,
  RGVPriorityEdit,
  RGVStatusEdit,
  RGVFromEdit,
  RGVToEdit,
  TosEdit,
  RGVLineIdEdit,
  RGVForkFlagEdit,
  RGVCommitEdit,
  RGVLengthEdit,
  RGVWidthEditk,
  RGVHeightEdit,
  RGVWeightEdit,
  RGVGoodsTypeEdit,
} from "@/api/taskManagement/RGV";
胡菁 authored
634
635
636
export default {
  data() {
    return {
陈嘉新 authored
637
638
639
640
      sysTable: [],
      //   查询条件
      queryConfig: {
        currentPage: 1,
陈嘉新 authored
641
642
        pageSize: 10,
        taskNo: "",
陈嘉新 authored
643
644
645
646
        linkTaskId: "",
        fromStation: "",
        toStation: "",
        rgvCode: "",
陈嘉新 authored
647
        containerCode: "",
陈嘉新 authored
648
        status: "",
陈嘉新 authored
649
      },
陈嘉新 authored
650
651
      //新增参数
      elAddDialog: {
陈嘉新 authored
652
653
654
655
656
657
658
659
660
661
662
663
664
665
        preTaskId: 0, //前置
        linkTaskId: "", //关联
        type: 0, //任务类型
        priority: 0, //优先级
        fromStation: 0, //起点
        line: "", //线
        toStations: "", //终点集
        rgvCode: "", //执行CRGV
        containerCode: "", //容器号
        goodsType: "", //货物类型
        reqHeight: 0, //高
        reqWidth: 0, //宽
        reqLength: 0, //长
        reqWeight: 0, //重
陈嘉新 authored
666
      },
陈嘉新 authored
667
668
      //维护弹出层条件
      elMaintenance: {},
陈嘉新 authored
669
670
671
      total: 0,
      listLoading: false,
      dialogFormVisible: false,
陈嘉新 authored
672
      dialogFormVisibleTwo: false,
陈嘉新 authored
673
674
675
676
677
678
679
      name: "",
      options: [
        {
          value: "",
          label: "全部",
        },
      ],
陈嘉新 authored
680
681
682
      optionsAddType: [], //类型
      optionsAddLine: [], //线体
      optionsAddTos: [], //终点集
陈嘉新 authored
683
陈嘉新 authored
684
685
686
687
      optionsStatus: [], //维护任务状态
      optionsTos: [], //维护终点集
      optionsForkFlag: [], //当前货叉
      optionsCommitd: [], //任务回传
陈嘉新 authored
688
689
690
691
692
693
694
      form: {
        startTime: this.$moment()
          .subtract(7, "days")
          .format("YYYY-MM-DD 00:00:00"),
        endTime: this.$moment().add(1, "days").format("YYYY-MM-DD 23:59:59"),
      },
      multipleSelection: [],
陈嘉新 authored
695
      maintenanceID: null,
陈嘉新 authored
696
697
698
699
      typeData: [
        { code: "In", name: "入库" },
        { code: "Out", name: "出库" },
        { code: "InStore", name: "库内" },
陈嘉新 authored
700
      ],
陈嘉新 authored
701
      userCode: "",
陈嘉新 authored
702
    };
胡菁 authored
703
704
  },
  created() {
陈嘉新 authored
705
    this.fetchData("RGVTaskStatus");
陈嘉新 authored
706
    this.btnAction();
陈嘉新 authored
707
    this.userCode = this.$store.state.user.name;
胡菁 authored
708
709
  },
  methods: {
陈嘉新 authored
710
711
712
    //回传
    getOne(data) {
      this.optionsStatus = [];
陈嘉新 authored
713
714
715
      this.optionsTos = [];
      this.optionsForkFlag = [];
      this.optionsCommitd = [];
陈嘉新 authored
716
      let params = { Code: data };
陈嘉新 authored
717
      GetDictWithDetailsLangs(params).then((response) => {
陈嘉新 authored
718
        response.data.dictDetails.forEach((x) => {
陈嘉新 authored
719
          if (data == "RGVTaskStatus") {
陈嘉新 authored
720
            this.optionsStatus.push({ value: x.code, label: x.name });
陈嘉新 authored
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
            if (this.optionsStatus.length > 0) {
              this.elMaintenance.status = this.optionsStatus[0].value;
            }
          }
          //终点集
          else if (data == "RGVAllTo") {
            this.optionsTos.push({ value: x.code, label: x.name });
          }
          //当前货叉
          else if (data == "ForkFlags") {
            this.optionsForkFlag.push({ value: x.code, label: x.name });
          }
          //任务回传
          else if (data == "CommitFlags") {
            this.optionsCommitd.push({ value: x.code, label: x.name });
陈嘉新 authored
736
737
738
739
          }
        });
      });
    },
陈嘉新 authored
740
741
742
    btnAction() {
      this.getTableList();
    },
陈嘉新 authored
743
    //新增按钮
陈嘉新 authored
744
    btnAdd() {
陈嘉新 authored
745
746
747
      this.optionsAddType = [];
      this.optionsAddLine = [];
      this.optionsAddTos = [];
陈嘉新 authored
748
749
      this.fetchData("RGVTaskType");
      this.fetchData("RGVAllTo");
陈嘉新 authored
750
      this.fetchData("RGVLine");
陈嘉新 authored
751
752
      this.dialogFormVisible = true;
    },
陈嘉新 authored
753
754
755
    //新增创建按钮
    taskAdd() {
      const params = this.elAddDialog;
陈嘉新 authored
756
      CreateRGVTask(params).then((response) => {
陈嘉新 authored
757
        if (response.code == "Success") {
陈嘉新 authored
758
          this.getTableList();
陈嘉新 authored
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
          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);
        });
陈嘉新 authored
777
        DeleteRGVTaskByIds(prams).then((response) => {
陈嘉新 authored
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
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
822
823
824
825
826
827
828
829
830
831
          if (response.code == "Success") {
            this.getTableList();
            this.$message({
              message: response.msg,
              type: "success",
            });
          }
        });
      }
    },
    //下发按钮
    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();
            this.$message({
              message: response.msg,
              type: "success",
            });
          }
        });
      }
    },
    //导出按钮
    ExportList() {
      const params = {
        pageNumber: this.queryConfig.currentPage,
        perPageCount: this.queryConfig.pageSize,
        queryConfig: {
          taskNo: "",
          remoteTask: "",
          barcode: "",
          from: "",
          to: "",
          taskStatus: "",
          begin: this.form.startTime,
          end: this.form.endTime,
        },
      };
      this.listLoading = true;
      ExportMTask(params).then((response) => {
        this.listLoading = false;
      });
    },
    //获取表格行数据
陈嘉新 authored
832
833
834
835
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
    // 状态数据
陈嘉新 authored
836
837
838
    fetchData(data, key) {
      let params = {
        Code: data,
陈嘉新 authored
839
      };
陈嘉新 authored
840
      GetDictWithDetailsLangs(params).then((response) => {
陈嘉新 authored
841
        response.data.dictDetails.forEach((x) => {
陈嘉新 authored
842
843
844
845
846
          //任务类型
          if (data == "RGVTaskType") {
            this.optionsAddType.push({ value: x.code, label: x.name });
            if (this.optionsAddType.length > 0) {
              this.elAddDialog.type = this.optionsAddType[0].value;
陈嘉新 authored
847
            }
陈嘉新 authored
848
849
            //任务状态
          } else if (data == "RGVTaskStatus") {
陈嘉新 authored
850
            this.options.push({ value: x.code, label: x.name });
陈嘉新 authored
851
852
          }
          //线体标记
陈嘉新 authored
853
          else if (data == "RGVLine") {
陈嘉新 authored
854
855
856
            this.optionsAddLine.push({ value: x.code, label: x.name });
            if (this.optionsAddLine.length > 0) {
              this.elAddDialog.line = this.optionsAddLine[0].value;
陈嘉新 authored
857
858
            }
          }
陈嘉新 authored
859
860
861
862
          //终点集
          else if (data == "RGVAllTo") {
            this.optionsAddTos.push({ value: x.code, label: x.name });
          }
陈嘉新 authored
863
864
865
866
867
868
869
870
871
        });
      });
    },
    // 表格数据
    getTableList() {
      const params = {
        pageNumber: this.queryConfig.currentPage,
        perPageCount: this.queryConfig.pageSize,
        queryConfig: {
陈嘉新 authored
872
          taskNo: this.queryConfig.taskNo,
陈嘉新 authored
873
874
875
876
          linkTaskId: this.queryConfig.linkTaskId,
          fromStation: this.queryConfig.fromStation,
          toStation: this.queryConfig.toStation,
          rgvCode: this.queryConfig.rgvCode,
陈嘉新 authored
877
          containerCode: this.queryConfig.containerCode,
陈嘉新 authored
878
          status: this.queryConfig.status,
陈嘉新 authored
879
880
881
882
          begin: this.form.startTime,
          end: this.form.endTime,
        },
      };
陈嘉新 authored
883
884

      this.listLoading = true;
陈嘉新 authored
885
      GetRGVTasks(params).then((response) => {
陈嘉新 authored
886
        this.total = response.data.totalCount;
陈嘉新 authored
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
933
934
935
936
937
938
939
940
941
942
        response.data.data.forEach((x) => {
          switch (x.type) {
            case 0:
              x.type = "行走";
              break;
            case 1:
              x.type = "取放";
              break;
            default:
              break;
          }
          switch (x.status) {
            case 0:
              x.status = "任务创建";
              break;
            case 10:
              x.status = "取货中";
              break;
            case 30:
              x.status = "取货完成";
              break;
            case 50:
              x.status = "放货中";
              break;
            case 60:
              x.status = "放货暂存";
              break;
            case 65:
              x.status = "放货完成";
              break;
            case 70:
              x.status = "行走中";
              break;
            case 100:
              x.status = "任务完成";
              break;
            default:
              break;
          }
          switch (x.commitFlag) {
            case 0:
              x.commitFlag = "未提交";
              break;
            case 1:
              x.commitFlag = "已提交";
              break;
            case 2:
              x.commitFlag = "无需提交";
              break;
            case 3:
              x.commitFlag = "提交失败";
              break;
            default:
              break;
          }
        });
陈嘉新 authored
943
        this.sysTable = response.data.data;
陈嘉新 authored
944
        this.listLoading = false;
陈嘉新 authored
945
946
      });
    },
陈嘉新 authored
947
948
949
950
951
952
    // 强制完成按钮
    forceComplete() {
      if (this.multipleSelection.length == 1) {
        let prams = {
          id: this.multipleSelection[0].id,
        };
陈嘉新 authored
953
        CompleteRGVTask(prams).then((response) => {
陈嘉新 authored
954
955
956
957
958
959
960
961
962
963
964
965
966
967
          if (response.code == "Success") {
            this.getTableList();
            this.$message({
              message: response.msg,
              type: "success",
            });
          }
        });
      } else {
        this.elAlert();
      }
    },
    //   维护按钮
    maintenance() {
陈嘉新 authored
968
969
970
971
972
973
974
975
976
977
978
979
980
      if (this.multipleSelection.length == 1) {
        this.getOne("RGVTaskStatus");
        this.getOne("RGVAllTo");
        this.getOne("ForkFlags");
        this.getOne("CommitFlags");
        let params = {
          id: this.multipleSelection[0].id,
        };
        GetRGVTaskById(params).then((response) => {
          if (response.code == "Success") {
            if (response.data.toStations == "") {
              response.data.toStations = [];
            } else {
陈嘉新 authored
981
982
983
              response.data.toStations = response.data.toStations
                .split(",")
                .map((item) => item.trim());
陈嘉新 authored
984
            }
陈嘉新 authored
985
陈嘉新 authored
986
987
988
989
990
991
992
993
994
995
996
997
998
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.forkFlag) {
              case 0:
                response.data.forkFlag = "None";
                break;
              case 1:
                response.data.forkFlag = "Fork1";
                break;
              case 2:
                response.data.forkFlag = "Fork2";
                break;
              case 3:
                response.data.forkFlag = "Fork12";
                break;
              default:
                break;
            }
            switch (response.data.commitFlag) {
              case 0:
                response.data.commitFlag = "Uncommited";
                break;
              case 1:
                response.data.commitFlag = "Commited";
                break;
              case 2:
                response.data.commitFlag = "UnNeedCommit";
                break;
              case 3:
                response.data.commitFlag = "CommitFailure";
                break;
              default:
                break;
            }
            switch (response.data.status) {
              case 0:
                response.data.status = "Create";
                break;
              case 10:
                response.data.status = "Getting";
                break;
              case 30:
                response.data.status = "Geted";
                break;
              case 50:
                response.data.status = "Putting";
                break;
              case 60:
                response.data.status = "PutStaging";
                break;
              case 65:
                response.data.status = "PutStaged";
                break;
              case 70:
                response.data.status = "Walking";
                break;
              case 100:
                response.data.status = "Done";
                break;
              default:
                break;
            }
            switch (response.data.commitFlag) {
              case 0:
                response.data.commitFlag = "Uncommited";
                break;
              case 1:
                response.data.commitFlag = "Commited";
                break;
              case 2:
                response.data.commitFlag = "UnNeedCommit";
                break;
              case 3:
                response.data.commitFlag = "CommitFailure";
                break;
              default:
                break;
            }
            this.elMaintenance = response.data;
            this.dialogFormVisibleTwo = true;
          }
        });
      } else {
        this.elAlert();
      }
陈嘉新 authored
1069
    },
陈嘉新 authored
1070
1071
1072
1073
    handleCurrentChange(page) {
      this.queryConfig.currentPage = page;
      this.getTableList();
    },
陈嘉新 authored
1074
1075
1076
1077
1078
1079
    elAlert() {
      this.$alert("请选择一条数据!", "标题名称", {
        confirmButtonText: "确定",
      });
    },
    reset() {
陈嘉新 authored
1080
      this.maintenance();
陈嘉新 authored
1081
    },
陈嘉新 authored
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
    close() {
      this.getTableList();
      this.dialogFormVisibleTwo = false;
    },
    //关联任务
    linkTaskEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.linkTaskId,
        userCode: this.userCode,
      };
      RGVLinkTaskIdEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //前置任务
    preTaskEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.preTaskId,
        userCode: this.userCode,
      };
      RGVPreTaskIdEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //优先级
    priorityEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.priority,
        userCode: this.userCode,
      };
      RGVPriorityEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //任务状态
    statusEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.status,
        userCode: this.userCode,
      };
      RGVStatusEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //起始点
    fromEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.fromStation,
        userCode: this.userCode,
      };
      RGVFromEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //终点
    toEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.toStation,
        userCode: this.userCode,
      };
      RGVToEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //终点集
    tosEdit() {
      let lst = this.elMaintenance.toStations,
        result = lst.join(", ");
      let prams = {
        id: this.multipleSelection[0].id,
        data: result,
        userCode: this.userCode,
      };
      TosEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //标记线体
    lineEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.lineId,
        userCode: this.userCode,
      };
      RGVLineIdEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //当前货叉
    forkFlagEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.forkFlag,
        userCode: this.userCode,
      };
      RGVForkFlagEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //任务回传
    commitFlagEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.commitFlag,
        userCode: this.userCode,
      };
      RGVCommitEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //长
    lengthEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.reqLength,
        userCode: this.userCode,
      };
      RGVLengthEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //宽
    widthEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.reqWidth,
        userCode: this.userCode,
      };
      RGVWidthEditk(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //高
    heightEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.reqHeight,
        userCode: this.userCode,
      };
      RGVHeightEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //重
    weightEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.reqWeight,
        userCode: this.userCode,
      };
      RGVWeightEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //物料类型
    goodsTypeEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.goodsType,
        userCode: this.userCode,
      };
      RGVGoodsTypeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    messge(response) {
      this.$message({
        message: response.msg,
        type: "success",
      });
陈嘉新 authored
1288
    },
陈嘉新 authored
1289
1290
1291
  },
};
</script>
陈嘉新 authored
1292
<style lang="scss">
陈嘉新 authored
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
.app-container-father {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  display: flex;
  .dv-container-left {
    width: 20%;
    background-color: #eeeeee;
    height: 85vh;
    // border-radius: 7px;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
    overflow: auto;
    .dv-container-left-component {
      width: 100%;
      display: flex;
      .component-left {
        width: 40%;
        height: 60px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
      }
      .component-right {
        width: 57%;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
    .button-container {
      width: 90%;
      margin: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      .T1 {
        width: 88px;
        margin-top: 10px;
        border: 1px solid #b3d8ff;
      }
    }
    .button-containerTwo {
      width: 90%;
      margin: 20px auto;
      display: flex;
      justify-content: center;
      align-items: center;
      .T1 {
        width: 50%;
        font-size: 16px;
        margin-top: 10px;
      }
胡菁 authored
1347
1348
    }
  }
陈嘉新 authored
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
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
  .dv-container-right {
    width: 79%;
    height: 88vh;
    margin-left: 1%;
    .pagination-container {
      text-align: center; /* 使分页组件靠右 */
      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
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
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
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
1452
1453
1454
1455
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
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518

  .containerTwo {
    width: 100%;
    border: 1px solid #ccc; /* 大 div 的边框 */
    overflow: auto;
    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; /* 垂直居中 */
    }
  }
  .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; /* 垂直居中对齐 */
    .small-box {
      width: 50%; /* 每个小 div 的宽度 */
      box-sizing: border-box; /* 包含边框和内边距 */
      border: 1px solid #ccc; /* 大 div 的边框 */
    }
    .inner-box2 {
      height: 130px; /* 第二个子 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 */
    }
  }
  .box3 {
    width: 70%;
    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
1519
1520
1521
1522
1523
  /* 修改复选框大小 */
  .el-table .el-checkbox {
    transform: scale(1.8) !important; /* 调整大小 */
    margin-top: 5px;
  }
胡菁 authored
1524
}
陈嘉新 authored
1525
</style>