Blame view

HHECS.Web/src/views/taskManage/taskModel_CRGV.vue 45.4 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
29
            <el-input v-model="queryConfig.containerCode" />
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">CRGV名:</div>
          <div class="component-right">
            <el-input v-model="queryConfig.rgvCode" />
陈嘉新 authored
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">起点:</div>
          <div class="component-right">
            <el-input v-model="queryConfig.from" />
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">终点:</div>
          <div class="component-right">
            <el-input v-model="queryConfig.to" />
          </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
93
94
95
        </div>
        <div class="button-containerTwo">
          <el-button class="T1" type="danger" @click="forceComplete()"
            >强制完成</el-button
          >
陈嘉新 authored
96
97
98
          <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
133
134
135
136
137
138
139
140
141
142
143
144
            </template>
          </el-table-column>
          <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
145
              {{ scope.row.from }}
陈嘉新 authored
146
147
148
149
            </template>
          </el-table-column>
          <el-table-column label="终点">
            <template slot-scope="scope">
陈嘉新 authored
150
              {{ scope.row.to }}
陈嘉新 authored
151
152
153
154
            </template>
          </el-table-column>
          <el-table-column label="终点集">
            <template slot-scope="scope">
陈嘉新 authored
155
              {{ scope.row.tos }}
陈嘉新 authored
156
157
158
159
            </template>
          </el-table-column>
          <el-table-column label="途径点">
            <template slot-scope="scope">
陈嘉新 authored
160
              {{ scope.row.relay }}
陈嘉新 authored
161
162
            </template>
          </el-table-column>
陈嘉新 authored
163
          <el-table-column label="标记线体">
陈嘉新 authored
164
            <template slot-scope="scope">
陈嘉新 authored
165
              {{ scope.row.lineId }}
陈嘉新 authored
166
167
            </template>
          </el-table-column>
陈嘉新 authored
168
          <el-table-column label="货叉标志">
陈嘉新 authored
169
            <template slot-scope="scope">
陈嘉新 authored
170
              {{ scope.row.forkFlag }}
陈嘉新 authored
171
172
            </template>
          </el-table-column>
陈嘉新 authored
173
          <el-table-column label="提交标识">
陈嘉新 authored
174
            <template slot-scope="scope">
陈嘉新 authored
175
              {{ scope.row.commitFlag }}
陈嘉新 authored
176
177
            </template>
          </el-table-column>
陈嘉新 authored
178
          <el-table-column label="优先级">
陈嘉新 authored
179
            <template slot-scope="scope">
陈嘉新 authored
180
              {{ scope.row.priority }}
陈嘉新 authored
181
182
183
184
            </template>
          </el-table-column>
          <el-table-column label="长">
            <template slot-scope="scope">
陈嘉新 authored
185
              {{ scope.row.reqLength }}
陈嘉新 authored
186
187
188
189
            </template>
          </el-table-column>
          <el-table-column label="宽">
            <template slot-scope="scope">
陈嘉新 authored
190
              {{ scope.row.reqWidth }}
陈嘉新 authored
191
192
193
194
            </template>
          </el-table-column>
          <el-table-column label="高">
            <template slot-scope="scope">
陈嘉新 authored
195
              {{ scope.row.reqHeight }}
陈嘉新 authored
196
197
198
199
            </template>
          </el-table-column>
          <el-table-column label="重">
            <template slot-scope="scope">
陈嘉新 authored
200
              {{ scope.row.reqWeight }}
陈嘉新 authored
201
202
203
204
205
206
207
            </template>
          </el-table-column>
          <el-table-column label="货物类型">
            <template slot-scope="scope">
              {{ scope.row.goodsType }}
            </template>
          </el-table-column>
陈嘉新 authored
208
          <el-table-column label="开始执行时间" width="160">
陈嘉新 authored
209
            <template slot-scope="scope">
陈嘉新 authored
210
              {{ scope.row.beginTime }}
陈嘉新 authored
211
212
            </template>
          </el-table-column>
陈嘉新 authored
213
          <el-table-column label="执行结束时间" width="160">
陈嘉新 authored
214
            <template slot-scope="scope">
陈嘉新 authored
215
              {{ scope.row.completeTime }}
陈嘉新 authored
216
217
            </template>
          </el-table-column>
陈嘉新 authored
218
          <el-table-column label="创建时间" width="160">
陈嘉新 authored
219
220
221
222
223
224
225
226
227
            <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
228
          <el-table-column label="更新时间" width="160">
陈嘉新 authored
229
230
231
232
233
234
235
            <template slot-scope="scope">
              {{ scope.row.updated }}
            </template>
          </el-table-column>
          <el-table-column label="更新人">
            <template slot-scope="scope">
              {{ scope.row.updatedBy }}
陈嘉新 authored
236
237
238
239
240
241
242
243
244
245
246
247
            </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
248
249
          >
          </el-pagination>
陈嘉新 authored
250
251
        </div>
      </div>
陈嘉新 authored
252
      <!-- 新增弹框 -->
陈嘉新 authored
253
      <el-dialog title="CRGV任新增" :visible.sync="dialogFormVisible">
陈嘉新 authored
254
255
        <div class="container">
          <div class="box">
陈嘉新 authored
256
257
            <div class="inner-left">关联主任务:</div>
            <div class="inner-right">
陈嘉新 authored
258
              <el-input v-model="elAddDialog.linkTaskId" />
陈嘉新 authored
259
260
261
262
263
            </div>
          </div>
          <div class="box">
            <div class="inner-left">前置CRGV任务:</div>
            <div class="inner-right">
陈嘉新 authored
264
              <el-input v-model="elAddDialog.preTaskId" />
陈嘉新 authored
265
266
267
            </div>
          </div>
          <div class="box">
陈嘉新 authored
268
269
            <div class="inner-left">任务类型:</div>
            <div class="inner-right">
陈嘉新 authored
270
              <el-select v-model="elAddDialog.type" placeholder="请选择">
陈嘉新 authored
271
                <el-option
陈嘉新 authored
272
                  v-for="item in optionsAddType"
陈嘉新 authored
273
274
275
276
277
278
279
280
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
            </div>
          </div>
          <div class="box">
陈嘉新 authored
281
            <div class="inner-left">执行CRGV:</div>
陈嘉新 authored
282
            <div class="inner-right">
陈嘉新 authored
283
              <el-input v-model="elAddDialog.rgvCode" />
陈嘉新 authored
284
285
286
287
288
            </div>
          </div>
          <div class="box">
            <div class="inner-left">容器号:</div>
            <div class="inner-right">
陈嘉新 authored
289
              <el-input v-model="elAddDialog.containerCode" />
陈嘉新 authored
290
291
292
            </div>
          </div>
          <div class="box">
陈嘉新 authored
293
            <div class="inner-left">标记线体:</div>
陈嘉新 authored
294
            <div class="inner-right">
陈嘉新 authored
295
              <el-select v-model="elAddDialog.line" placeholder="请选择">
陈嘉新 authored
296
                <el-option
陈嘉新 authored
297
                  v-for="item in optionsAddLine"
陈嘉新 authored
298
299
300
301
302
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
陈嘉新 authored
303
304
305
            </div>
          </div>
          <div class="box">
陈嘉新 authored
306
            <div class="inner-left">起始点:</div>
陈嘉新 authored
307
            <div class="inner-right">
陈嘉新 authored
308
              <el-input v-model="elAddDialog.from" />
陈嘉新 authored
309
310
311
            </div>
          </div>
          <div class="box">
陈嘉新 authored
312
            <div class="inner-left">终点集:</div>
陈嘉新 authored
313
            <div class="inner-right">
陈嘉新 authored
314
315
316
317
318
319
320
321
              <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
322
323
324
325
326
            </div>
          </div>
          <div class="box">
            <div class="inner-left">货物类型:</div>
            <div class="inner-right">
陈嘉新 authored
327
              <el-input v-model="elAddDialog.goodsType" />
陈嘉新 authored
328
329
330
331
332
            </div>
          </div>
          <div class="box">
            <div class="inner-left">优先级:</div>
            <div class="inner-right">
陈嘉新 authored
333
              <el-input v-model="elAddDialog.priority" />
陈嘉新 authored
334
335
336
337
338
            </div>
          </div>
          <div class="box">
            <div class="inner-left">长:</div>
            <div class="inner-right">
陈嘉新 authored
339
              <el-input v-model="elAddDialog.reqLength" />
陈嘉新 authored
340
341
342
343
344
            </div>
          </div>
          <div class="box">
            <div class="inner-left">宽:</div>
            <div class="inner-right">
陈嘉新 authored
345
              <el-input v-model="elAddDialog.reqWidth" />
陈嘉新 authored
346
347
348
349
350
            </div>
          </div>
          <div class="box">
            <div class="inner-left">高:</div>
            <div class="inner-right">
陈嘉新 authored
351
              <el-input v-model="elAddDialog.reqHeight" />
陈嘉新 authored
352
353
354
355
356
            </div>
          </div>
          <div class="box">
            <div class="inner-left">重:</div>
            <div class="inner-right">
陈嘉新 authored
357
              <el-input v-model="elAddDialog.reqWeight" />
陈嘉新 authored
358
359
360
361
            </div>
          </div>
        </div>
        <div slot="footer" class="dialog-footer">
陈嘉新 authored
362
          <el-button type="primary" @click="taskAdd()">创 建</el-button>
陈嘉新 authored
363
364
365
          <el-button @click="dialogFormVisible = false">取 消</el-button>
        </div>
      </el-dialog>
陈嘉新 authored
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383

      <el-dialog title="CRGV任务维护" :visible.sync="dialogFormVisibleTwo">
        <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
384
                    <el-input v-model="elMaintenance.linkTaskId" />
陈嘉新 authored
385
386
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
387
388
389
                    <el-button class="T1" @click="linkTaskEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
390
391
392
393
394
                  </div>
                </div>
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">前置CRGV任务:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
395
                    <el-input v-model="elMaintenance.preTaskId" />
陈嘉新 authored
396
397
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
398
399
400
                    <el-button class="T1" @click="preTaskEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
401
402
403
404
405
406
407
408
409
410
411
412
413
                  </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
414
415
416
                    <el-button class="T1" @click="priorityEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
                  </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
435
                    <el-button class="T1" @click="statusEdit()">修改</el-button>
陈嘉新 authored
436
437
438
439
440
441
442
443
444
445
                  </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
446
                    <el-input v-model="elMaintenance.from" />
陈嘉新 authored
447
448
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
449
                    <el-button class="T1" @click="fromEdit()">修改</el-button>
陈嘉新 authored
450
451
452
453
454
                  </div>
                </div>
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">目标点:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
455
                    <el-input v-model="elMaintenance.to" />
陈嘉新 authored
456
457
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
458
                    <el-button class="T1" @click="toEdit()">修改</el-button>
陈嘉新 authored
459
460
461
462
463
                  </div>
                </div>
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">终点集:</div>
                  <div class="dv-maintenance-text2">
陈嘉新 authored
464
465
466
467
468
                    <el-select
                      v-model="elMaintenance.tos"
                      multiple
                      placeholder="请选择"
                    >
陈嘉新 authored
469
                      <el-option
陈嘉新 authored
470
                        v-for="item in optionsTos"
陈嘉新 authored
471
472
473
474
475
476
477
478
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
479
                    <el-button class="T1" @click="tosEdit()">修改</el-button>
陈嘉新 authored
480
481
482
483
484
485
486
487
488
489
                  </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
490
                    <el-input v-model="elMaintenance.lineId" />
陈嘉新 authored
491
492
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
493
                    <el-button class="T1" @click="lineEdit()">修改</el-button>
陈嘉新 authored
494
495
496
497
498
499
                  </div>
                </div>
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">当前货叉:</div>
                  <div class="dv-maintenance-text2">
                    <el-select
陈嘉新 authored
500
                      v-model="elMaintenance.forkFlag"
陈嘉新 authored
501
502
503
                      placeholder="请选择"
                    >
                      <el-option
陈嘉新 authored
504
                        v-for="item in optionsForkFlag"
陈嘉新 authored
505
506
507
508
509
510
511
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
512
513
514
                    <el-button class="T1" @click="forkFlagEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
515
516
517
518
519
520
                  </div>
                </div>
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">任务回传:</div>
                  <div class="dv-maintenance-text2">
                    <el-select
陈嘉新 authored
521
                      v-model="elMaintenance.commitFlag"
陈嘉新 authored
522
523
524
                      placeholder="请选择"
                    >
                      <el-option
陈嘉新 authored
525
                        v-for="item in optionsCommitd"
陈嘉新 authored
526
527
528
529
530
531
532
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
533
534
535
                    <el-button class="T1" @click="commitFlagEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
536
537
538
539
540
541
542
543
544
545
546
                  </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
547
                  <el-input v-model="elMaintenance.reqLength" />
陈嘉新 authored
548
549
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
550
                  <el-button class="T1" @click="lengthEdit()">修改</el-button>
陈嘉新 authored
551
552
553
554
555
                </div>
              </div>
              <div class="dv-maintenance2-right">
                <div class="dv-maintenance-text">宽:</div>
                <div class="dv-maintenance-text2">
陈嘉新 authored
556
                  <el-input v-model="elMaintenance.reqWidth" />
陈嘉新 authored
557
558
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
559
                  <el-button class="T1" @click="widthEdit()">修改</el-button>
陈嘉新 authored
560
561
562
563
564
565
566
                </div>
              </div>
            </div>
            <div class="dv-maintenance3">
              <div class="dv-maintenance3-left">
                <div class="dv-maintenance-text">高:</div>
                <div class="dv-maintenance-text2">
陈嘉新 authored
567
                  <el-input v-model="elMaintenance.reqHeight" />
陈嘉新 authored
568
569
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
570
                  <el-button class="T1" @click="heightEdit()">修改</el-button>
陈嘉新 authored
571
572
573
574
575
                </div>
              </div>
              <div class="dv-maintenance3-right">
                <div class="dv-maintenance-text">重:</div>
                <div class="dv-maintenance-text2">
陈嘉新 authored
576
                  <el-input v-model="elMaintenance.reqWeight" />
陈嘉新 authored
577
578
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
579
                  <el-button class="T1" @click="weightEdit()">修改</el-button>
陈嘉新 authored
580
581
582
583
584
585
586
587
588
                </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
589
                <el-button class="T1" @click="goodsTypeEdit()">修改</el-button>
陈嘉新 authored
590
591
592
593
594
595
596
597
              </div>
            </div>
          </div>
        </div>
        <div slot="footer" class="dialog-footer">
          <!-- <el-button type="primary" @click="dialogFormVisibleTwo = false"
                >创 建</el-button
              > -->
陈嘉新 authored
598
          <el-button @click="close()">取 消</el-button>
陈嘉新 authored
599
600
        </div>
      </el-dialog>
陈嘉新 authored
601
    </div>
胡菁 authored
602
603
604
605
  </div>
</template>

<script>
陈嘉新 authored
606
607
608
609
610
import {
  GetCRGVTasks,
  getHostType,
  CreateCRGVTask,
  GetCRGVTaskById,
陈嘉新 authored
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
  DeleteCRGVTaskByIds,
  CompleteCRGVTask,
  CRGVLinkTaskIdEdit,
  CRGVPreTaskIdEdit,
  CRGVPriorityEdit,
  CRGVStatusEdit,
  CRGVFromEdit,
  CRGVToEdit,
  TosEdit,
  CRGVLineIdEdit,
  CRGVForkFlagEdit,
  CRGVCommitEdit,
  CRGVLengthEdit,
  CRGVWidthEditk,
  CRGVHeightEdit,
  CRGVWeightEdit,
  CRGVGoodsTypeEdit,
陈嘉新 authored
628
} from "@/api/taskManagement/CRGV";
胡菁 authored
629
630
631
export default {
  data() {
    return {
陈嘉新 authored
632
633
634
635
      sysTable: [],
      //   查询条件
      queryConfig: {
        currentPage: 1,
陈嘉新 authored
636
637
638
        pageSize: 10,
        taskNo: "",
        linkTaskId: "",
陈嘉新 authored
639
640
        from: "",
        to: "",
陈嘉新 authored
641
642
643
        rgvCode: "",
        containerCode: "",
        status: "",
陈嘉新 authored
644
      },
陈嘉新 authored
645
646
      //新增参数
      elAddDialog: {
陈嘉新 authored
647
648
649
650
651
652
653
654
655
656
657
658
659
660
        preTaskId: 0, //前置
        linkTaskId: "", //关联
        type: 0, //任务类型
        priority: 0, //优先级
        from: 0, //起点
        line: "", //线
        tos: "", //终点集
        rgvCode: "", //执行CRGV
        containerCode: "", //容器号
        goodsType: "", //货物类型
        reqHeight: 0, //高
        reqWidth: 0, //宽
        reqLength: 0, //长
        reqWeight: 0, //重
陈嘉新 authored
661
      },
陈嘉新 authored
662
663
      //维护弹出层条件
      elMaintenance: {},
陈嘉新 authored
664
665
666
      total: 0,
      listLoading: false,
      dialogFormVisible: false,
陈嘉新 authored
667
      dialogFormVisibleTwo: false,
陈嘉新 authored
668
669
670
671
672
673
674
      name: "",
      options: [
        {
          value: "",
          label: "全部",
        },
      ],
陈嘉新 authored
675
676
677
      optionsAddType: [], //类型
      optionsAddLine: [], //线体
      optionsAddTos: [], //终点集
陈嘉新 authored
678
陈嘉新 authored
679
      optionsStatus: [], //维护任务状态
陈嘉新 authored
680
681
682
      optionsTos: [], //维护终点集
      optionsForkFlag: [], //当前货叉
      optionsCommitd: [], //任务回传
陈嘉新 authored
683
684
685
686
687
688
689
      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
690
691
692
693
694
695
      maintenanceID: null,
      typeData: [
        { code: "In", name: "入库" },
        { code: "Out", name: "出库" },
        { code: "InStore", name: "库内" },
      ],
陈嘉新 authored
696
      userCode: "",
697
    };
胡菁 authored
698
699
  },
  created() {
陈嘉新 authored
700
    this.fetchData("CRGVTaskStatus");
陈嘉新 authored
701
    this.btnAction();
陈嘉新 authored
702
    this.userCode = this.$store.state.user.name;
胡菁 authored
703
704
  },
  methods: {
陈嘉新 authored
705
706
707
    //回传
    getOne(data) {
      this.optionsStatus = [];
陈嘉新 authored
708
709
710
      this.optionsTos = [];
      this.optionsForkFlag = [];
      this.optionsCommitd = [];
陈嘉新 authored
711
712
713
      let params = { Code: data };
      getHostType(params).then((response) => {
        response.data.dictDetails.forEach((x) => {
陈嘉新 authored
714
          if (data == "CRGVTaskStatus") {
陈嘉新 authored
715
            this.optionsStatus.push({ value: x.code, label: x.name });
陈嘉新 authored
716
717
718
            if (this.optionsStatus.length > 0) {
              this.elMaintenance.status = this.optionsStatus[0].value;
            }
陈嘉新 authored
719
          }
陈嘉新 authored
720
721
722
723
724
725
726
727
728
729
730
731
          //终点集
          else if (data == "CRGVAllTo") {
            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
732
733
734
        });
      });
    },
陈嘉新 authored
735
736
737
    btnAction() {
      this.getTableList();
    },
陈嘉新 authored
738
    //新增按钮
陈嘉新 authored
739
    btnAdd() {
陈嘉新 authored
740
741
742
      this.optionsAddType = [];
      this.optionsAddLine = [];
      this.optionsAddTos = [];
陈嘉新 authored
743
744
745
      this.fetchData("CRGVTaskType");
      this.fetchData("CRGVLine");
      this.fetchData("CRGVAllTo");
陈嘉新 authored
746
747
      this.dialogFormVisible = true;
    },
陈嘉新 authored
748
749
750
    //新增创建按钮
    taskAdd() {
      const params = this.elAddDialog;
陈嘉新 authored
751
      CreateCRGVTask(params).then((response) => {
陈嘉新 authored
752
        if (response.code == "Success") {
陈嘉新 authored
753
          this.getTableList();
陈嘉新 authored
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
          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
772
        DeleteCRGVTaskByIds(prams).then((response) => {
陈嘉新 authored
773
774
775
776
777
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
          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
827
828
829
830
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
    // 状态数据
陈嘉新 authored
831
832
833
    fetchData(data, key) {
      let params = {
        Code: data,
陈嘉新 authored
834
835
836
      };
      getHostType(params).then((response) => {
        response.data.dictDetails.forEach((x) => {
陈嘉新 authored
837
838
839
840
841
          //任务类型
          if (data == "CRGVTaskType") {
            this.optionsAddType.push({ value: x.code, label: x.name });
            if (this.optionsAddType.length > 0) {
              this.elAddDialog.type = this.optionsAddType[0].value;
陈嘉新 authored
842
            }
陈嘉新 authored
843
844
            //任务状态
          } else if (data == "CRGVTaskStatus") {
陈嘉新 authored
845
            this.options.push({ value: x.code, label: x.name });
陈嘉新 authored
846
847
848
849
850
851
          }
          //线体标记
          else if (data == "CRGVLine") {
            this.optionsAddLine.push({ value: x.code, label: x.name });
            if (this.optionsAddLine.length > 0) {
              this.elAddDialog.line = this.optionsAddLine[0].value;
陈嘉新 authored
852
853
            }
          }
陈嘉新 authored
854
855
856
857
          //终点集
          else if (data == "CRGVAllTo") {
            this.optionsAddTos.push({ value: x.code, label: x.name });
          }
陈嘉新 authored
858
        });
859
860
      });
    },
陈嘉新 authored
861
862
863
864
865
866
    // 表格数据
    getTableList() {
      const params = {
        pageNumber: this.queryConfig.currentPage,
        perPageCount: this.queryConfig.pageSize,
        queryConfig: {
陈嘉新 authored
867
868
869
870
871
872
873
          taskNo: this.queryConfig.taskNo,
          linkTaskId: this.queryConfig.linkTaskId,
          from: this.queryConfig.from,
          to: this.queryConfig.to,
          rgvCode: this.queryConfig.rgvCode,
          containerCode: this.queryConfig.containerCode,
          status: this.queryConfig.status,
陈嘉新 authored
874
875
876
877
          begin: this.form.startTime,
          end: this.form.endTime,
        },
      };
陈嘉新 authored
878
879
880

      this.listLoading = true;
      GetCRGVTasks(params).then((response) => {
陈嘉新 authored
881
        this.total = response.data.totalCount;
陈嘉新 authored
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
        response.data.data.forEach((x) => {
          switch (x.status) {
            case 0:
              x.status = "任务创建";
              break;
            case 40:
              x.status = "下发移动";
              break;
            case 100:
              x.status = "任务完成";
              break;
            default:
              break;
          }
          switch (x.type) {
            case 0:
              x.type = "行走";
              break;
            case 1:
              x.type = "取放";
              break;
            default:
              break;
          }
陈嘉新 authored
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
          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
922
        });
陈嘉新 authored
923
        this.sysTable = response.data.data;
陈嘉新 authored
924
        this.listLoading = false;
陈嘉新 authored
925
926
927
928
929
      });
    },
    // 强制完成按钮
    forceComplete() {
      if (this.multipleSelection.length == 1) {
陈嘉新 authored
930
931
932
        let prams = {
          id: this.multipleSelection[0].id,
        };
陈嘉新 authored
933
        CompleteCRGVTask(prams).then((response) => {
陈嘉新 authored
934
935
          if (response.code == "Success") {
            this.getTableList();
陈嘉新 authored
936
            this.$message({
陈嘉新 authored
937
938
              message: response.msg,
              type: "success",
陈嘉新 authored
939
            });
陈嘉新 authored
940
          }
陈嘉新 authored
941
        });
陈嘉新 authored
942
943
      } else {
        this.elAlert();
陈嘉新 authored
944
945
      }
    },
陈嘉新 authored
946
947
    //   维护按钮
    maintenance() {
陈嘉新 authored
948
949
      if (this.multipleSelection.length == 1) {
        this.getOne("CRGVTaskStatus");
陈嘉新 authored
950
951
952
        this.getOne("CRGVAllTo");
        this.getOne("ForkFlags");
        this.getOne("CommitFlags");
陈嘉新 authored
953
954
955
956
957
        let params = {
          id: this.multipleSelection[0].id,
        };
        GetCRGVTaskById(params).then((response) => {
          if (response.code == "Success") {
陈嘉新 authored
958
959
960
            if (response.data.tos == "") {
              response.data.tos = [];
            } else {
陈嘉新 authored
961
962
963
              response.data.tos = response.data.tos
                .split(", ")
                .map((item) => item.trim());
陈嘉新 authored
964
            }
陈嘉新 authored
965
陈嘉新 authored
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
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
            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 40:
                response.data.status = "SendTransfer";
                break;
              case 100:
                response.data.status = "Done";
                break;
              default:
                break;
            }
陈嘉新 authored
1011
1012
1013
1014
1015
1016
1017
            this.elMaintenance = response.data;
            this.dialogFormVisibleTwo = true;
          }
        });
      } else {
        this.elAlert();
      }
陈嘉新 authored
1018
    },
陈嘉新 authored
1019
1020
1021
1022
    handleCurrentChange(page) {
      this.queryConfig.currentPage = page;
      this.getTableList();
    },
陈嘉新 authored
1023
1024
1025
1026
1027
1028
    elAlert() {
      this.$alert("请选择一条数据!", "标题名称", {
        confirmButtonText: "确定",
      });
    },
    reset() {
陈嘉新 authored
1029
      this.maintenance();
陈嘉新 authored
1030
    },
陈嘉新 authored
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
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
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
    close() {
      this.getTableList();
      this.dialogFormVisibleTwo = false;
    },
    //关联任务
    linkTaskEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.linkTaskId,
        userCode: this.userCode,
      };
      CRGVLinkTaskIdEdit(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,
      };
      CRGVPreTaskIdEdit(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,
      };
      CRGVPriorityEdit(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,
      };
      CRGVStatusEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //起始点
    fromEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.from,
        userCode: this.userCode,
      };
      CRGVFromEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //终点
    toEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.to,
        userCode: this.userCode,
      };
      CRGVToEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    //终点集
    tosEdit() {
      let lst = this.elMaintenance.tos,
        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,
      };
      CRGVLineIdEdit(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,
      };
      CRGVForkFlagEdit(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,
      };
      CRGVCommitEdit(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,
      };
      CRGVLengthEdit(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,
      };
      CRGVWidthEditk(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,
      };
      CRGVHeightEdit(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,
      };
      CRGVWeightEdit(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,
      };
      CRGVGoodsTypeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    messge(response) {
      this.$message({
        message: response.msg,
        type: "success",
      });
陈嘉新 authored
1237
    },
1238
1239
  },
};
胡菁 authored
1240
</script>
陈嘉新 authored
1241
<style lang="scss">
陈嘉新 authored
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
1288
1289
1290
1291
1292
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
.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;
      }
    }
  }
  .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
1336
1337
1338
1339
1340
1341
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
1374
1375
1376
1377
1378
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
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

  .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
1468
1469
1470
1471
1472
  /* 修改复选框大小 */
  .el-table .el-checkbox {
    transform: scale(1.8) !important; /* 调整大小 */
    margin-top: 5px;
  }
陈嘉新 authored
1473
1474
}
</style>