Blame view

HHECS.Web/src/views/taskManage/taskModel_stacker.vue 58.6 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
13
14
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">远程任务号:</div>
          <div class="component-right">
陈嘉新 authored
15
            <el-input v-model="queryConfig.remoteTaskId" />
陈嘉新 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
            <el-input v-model="queryConfig.containerCode" />
陈嘉新 authored
23
24
25
26
          </div>
        </div>

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

        <div class="dv-container-left-component">
陈嘉新 authored
34
35
          <div class="component-left">终点库位:</div>
          <div class="component-right">
陈嘉新 authored
36
            <el-input v-model="queryConfig.toLocationCode" />
陈嘉新 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.fromStationCode" />
陈嘉新 authored
44
45
46
47
48
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">终点站台:</div>
陈嘉新 authored
49
          <div class="component-right">
陈嘉新 authored
50
            <el-input v-model="queryConfig.toStationCode" />
陈嘉新 authored
51
52
53
54
55
56
          </div>
        </div>

        <div class="dv-container-left-component">
          <div class="component-left">任务状态:</div>
          <div class="component-right">
陈嘉新 authored
57
            <el-select v-model="queryConfig.status" placeholder="请选择">
陈嘉新 authored
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
              <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
93
          <el-button class="T1" @click="deleteData()">删除</el-button>
陈嘉新 authored
94
95
        </div>
        <div class="button-container">
陈嘉新 authored
96
          <!-- <el-button class="T1" @click="issued()">下发</el-button> -->
陈嘉新 authored
97
          <!-- <el-button class="T1" @click="ExportList()">导出</el-button> -->
陈嘉新 authored
98
99
        </div>
        <div class="button-containerTwo">
陈嘉新 authored
100
101
102
103
104
105
          <el-button class="T1" type="danger" @click="forceComplete()"
            >强制完成</el-button
          >
          <el-button class="T1" type="warning" @click="maintenance()"
            >维护</el-button
          >
陈嘉新 authored
106
107
108
109
110
111
112
113
114
115
116
        </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"
陈嘉新 authored
117
          :header-cell-style="{ background: '#d9ebfe', color: '#000000' }"
陈嘉新 authored
118
119
120
        >
          <el-table-column type="selection" align="center" width="55">
          </el-table-column>
121
          <el-table-column align="center" label="内部任务号" width="100">
陈嘉新 authored
122
123
124
125
            <template slot-scope="scope">
              {{ scope.row.id }}
            </template>
          </el-table-column>
陈嘉新 authored
126
          <el-table-column label="远程任务号" width="100">
陈嘉新 authored
127
            <template slot-scope="scope">
陈嘉新 authored
128
              {{ scope.row.remoteTaskId }}
陈嘉新 authored
129
130
            </template>
          </el-table-column>
陈嘉新 authored
131
          <el-table-column label="前置堆垛机任务" width="120">
陈嘉新 authored
132
            <template slot-scope="scope">
陈嘉新 authored
133
              {{ scope.row.preSRMTaskId }}
陈嘉新 authored
134
135
136
137
            </template>
          </el-table-column>
          <el-table-column label="容器号">
            <template slot-scope="scope">
陈嘉新 authored
138
139
140
141
142
143
              {{ scope.row.containerCode }}
            </template>
          </el-table-column>
          <el-table-column label="堆垛机名">
            <template slot-scope="scope">
              {{ scope.row.srmCode }}
陈嘉新 authored
144
145
146
147
148
149
150
151
152
153
154
155
            </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>
陈嘉新 authored
156
          <el-table-column label="起点库位">
陈嘉新 authored
157
            <template slot-scope="scope">
陈嘉新 authored
158
              {{ scope.row.fromLocationCode }}
陈嘉新 authored
159
160
            </template>
          </el-table-column>
陈嘉新 authored
161
162
          <el-table-column label="终点库位">
            <template slot-scope="scope">
陈嘉新 authored
163
              {{ scope.row.toLocationCode }}
陈嘉新 authored
164
165
166
167
            </template>
          </el-table-column>
          <el-table-column label="起点站台">
            <template slot-scope="scope">
陈嘉新 authored
168
              {{ scope.row.fromStationCode }}
陈嘉新 authored
169
170
171
172
            </template>
          </el-table-column>
          <el-table-column label="终点站台">
            <template slot-scope="scope">
陈嘉新 authored
173
              {{ scope.row.toStationCode }}
陈嘉新 authored
174
175
            </template>
          </el-table-column>
陈嘉新 authored
176
          <el-table-column label="终点站台组" width="100">
陈嘉新 authored
177
            <template slot-scope="scope">
陈嘉新 authored
178
              {{ scope.row.toStationCodes }}
陈嘉新 authored
179
180
            </template>
          </el-table-column>
陈嘉新 authored
181
          <el-table-column label="巷道">
陈嘉新 authored
182
            <template slot-scope="scope">
陈嘉新 authored
183
              {{ scope.row.roadway }}
陈嘉新 authored
184
185
            </template>
          </el-table-column>
陈嘉新 authored
186
          <el-table-column label="提交标识">
陈嘉新 authored
187
            <template slot-scope="scope">
陈嘉新 authored
188
              {{ scope.row.commitFlag }}
陈嘉新 authored
189
190
            </template>
          </el-table-column>
陈嘉新 authored
191
          <el-table-column label="重发标识">
陈嘉新 authored
192
            <template slot-scope="scope">
陈嘉新 authored
193
              {{ scope.row.sendAgain }}
陈嘉新 authored
194
195
            </template>
          </el-table-column>
陈嘉新 authored
196
197
          <el-table-column label="空出标识">
            <template slot-scope="scope">
陈嘉新 authored
198
              {{ scope.row.isEmptyOut }}
陈嘉新 authored
199
200
            </template>
          </el-table-column>
陈嘉新 authored
201
          <el-table-column label="取货错标识" width="100">
陈嘉新 authored
202
            <template slot-scope="scope">
陈嘉新 authored
203
              {{ scope.row.isForkError }}
陈嘉新 authored
204
205
206
207
            </template>
          </el-table-column>
          <el-table-column label="满入标识">
            <template slot-scope="scope">
陈嘉新 authored
208
              {{ scope.row.isDoubleIn }}
陈嘉新 authored
209
210
211
212
            </template>
          </el-table-column>
          <el-table-column label="满入位置">
            <template slot-scope="scope">
陈嘉新 authored
213
              {{ scope.row.reToLocationCode }}
陈嘉新 authored
214
215
216
217
            </template>
          </el-table-column>
          <el-table-column label="货叉标识">
            <template slot-scope="scope">
陈嘉新 authored
218
              {{ scope.row.forkFlag }}
陈嘉新 authored
219
220
221
            </template>
          </el-table-column>
          <el-table-column label="优先级">
陈嘉新 authored
222
            <template slot-scope="scope">
陈嘉新 authored
223
              {{ scope.row.priority }}
陈嘉新 authored
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
            </template>
          </el-table-column>
          <el-table-column label="长">
            <template slot-scope="scope">
              {{ scope.row.length }}
            </template>
          </el-table-column>
          <el-table-column label="宽">
            <template slot-scope="scope">
              {{ scope.row.width }}
            </template>
          </el-table-column>
          <el-table-column label="高">
            <template slot-scope="scope">
              {{ scope.row.height }}
            </template>
          </el-table-column>
          <el-table-column label="重">
            <template slot-scope="scope">
              {{ scope.row.weight }}
            </template>
          </el-table-column>
          <el-table-column label="货物类型">
            <template slot-scope="scope">
              {{ scope.row.goodsType }}
            </template>
          </el-table-column>
陈嘉新 authored
251
          <el-table-column label="开始执行时间" width="160">
陈嘉新 authored
252
            <template slot-scope="scope">
陈嘉新 authored
253
              {{ scope.row.beginExecuteTime }}
陈嘉新 authored
254
255
            </template>
          </el-table-column>
陈嘉新 authored
256
          <el-table-column label="执行结束时间" width="160">
陈嘉新 authored
257
            <template slot-scope="scope">
陈嘉新 authored
258
              {{ scope.row.endExecuteTime }}
陈嘉新 authored
259
260
            </template>
          </el-table-column>
陈嘉新 authored
261
          <el-table-column label="创建时间" width="160">
陈嘉新 authored
262
            <template slot-scope="scope">
陈嘉新 authored
263
              {{ scope.row.created }}
陈嘉新 authored
264
265
266
267
            </template>
          </el-table-column>
          <el-table-column label="创建人">
            <template slot-scope="scope">
陈嘉新 authored
268
              {{ scope.row.createdBy }}
陈嘉新 authored
269
270
            </template>
          </el-table-column>
陈嘉新 authored
271
          <el-table-column label="更新时间" width="160">
陈嘉新 authored
272
            <template slot-scope="scope">
陈嘉新 authored
273
              {{ scope.row.updated }}
陈嘉新 authored
274
275
276
            </template>
          </el-table-column>
          <el-table-column label="更新人">
陈嘉新 authored
277
            <template slot-scope="scope">
陈嘉新 authored
278
              {{ scope.row.updatedBy }}
陈嘉新 authored
279
280
281
282
283
284
285
286
287
288
289
290
            </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
291
292
          >
          </el-pagination>
陈嘉新 authored
293
294
        </div>
      </div>
陈嘉新 authored
295
      <!-- 新增弹框 -->
陈嘉新 authored
296
      <el-dialog title="堆垛机新增" :visible.sync="dialogFormVisible">
陈嘉新 authored
297
298
        <div class="container">
          <div class="box">
陈嘉新 authored
299
300
            <div class="inner-left">远程任务标识:</div>
            <div class="inner-right">
陈嘉新 authored
301
              <el-input v-model="elAddDialog.remoteTaskId" />
陈嘉新 authored
302
303
304
305
306
            </div>
          </div>
          <div class="box">
            <div class="inner-left">前置堆垛机任务:</div>
            <div class="inner-right">
陈嘉新 authored
307
              <el-input v-model="elAddDialog.preSRMTaskId" />
陈嘉新 authored
308
309
310
            </div>
          </div>
          <div class="box">
陈嘉新 authored
311
312
            <div class="inner-left">任务类型:</div>
            <div class="inner-right">
陈嘉新 authored
313
              <el-select v-model="elAddDialog.type" placeholder="请选择">
陈嘉新 authored
314
                <el-option
陈嘉新 authored
315
                  v-for="item in optionsAdd"
陈嘉新 authored
316
317
318
319
320
321
322
323
324
325
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
            </div>
          </div>
          <div class="box">
            <div class="inner-left">优先级:</div>
            <div class="inner-right">
陈嘉新 authored
326
              <el-input v-model="elAddDialog.priority" />
陈嘉新 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.containerCode" />
陈嘉新 authored
333
334
335
336
337
            </div>
          </div>
          <div class="box">
            <div class="inner-left">堆垛机名:</div>
            <div class="inner-right">
陈嘉新 authored
338
339
340
341
342
343
344
345
              <el-select v-model="elAddDialog.srmCode" placeholder="请选择">
                <el-option
                  v-for="item in optionsAddSRM"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
陈嘉新 authored
346
347
348
            </div>
          </div>
          <div class="box">
陈嘉新 authored
349
            <div class="inner-left">起点库位:</div>
陈嘉新 authored
350
            <div class="inner-right">
陈嘉新 authored
351
              <el-input v-model="elAddDialog.fromLocationCod" />
陈嘉新 authored
352
353
354
            </div>
          </div>
          <div class="box">
陈嘉新 authored
355
            <div class="inner-left">终点库位:</div>
陈嘉新 authored
356
            <div class="inner-right">
陈嘉新 authored
357
              <el-input v-model="elAddDialog.toLocationCode" />
陈嘉新 authored
358
359
360
            </div>
          </div>
          <div class="box">
陈嘉新 authored
361
            <div class="inner-left">起点站台:</div>
陈嘉新 authored
362
            <div class="inner-right">
陈嘉新 authored
363
              <el-select
陈嘉新 authored
364
                clearable
陈嘉新 authored
365
366
367
368
369
370
371
372
373
374
                v-model="elAddDialog.fromStationCode"
                placeholder="请选择"
              >
                <el-option
                  v-for="item in optionsAddEnter"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
陈嘉新 authored
375
376
377
378
379
            </div>
          </div>
          <div class="box">
            <div class="inner-left">终点站台:</div>
            <div class="inner-right">
陈嘉新 authored
380
              <el-select
陈嘉新 authored
381
                clearable
陈嘉新 authored
382
383
384
385
386
387
388
389
390
391
                v-model="elAddDialog.toStationCode"
                placeholder="请选择"
              >
                <el-option
                  v-for="item in optionsAddSRMOut"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                />
              </el-select>
陈嘉新 authored
392
393
394
395
396
            </div>
          </div>
          <div class="box">
            <div class="inner-left">终点站台组:</div>
            <div class="inner-right">
陈嘉新 authored
397
              <el-input v-model="elAddDialog.toStationCodes" />
陈嘉新 authored
398
399
400
401
402
            </div>
          </div>
          <div class="box">
            <div class="inner-left">货物类型:</div>
            <div class="inner-right">
陈嘉新 authored
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
              <el-input v-model="elAddDialog.goodsType" />
            </div>
          </div>
          <div class="box">
            <div class="inner-left">长:</div>
            <div class="inner-right">
              <el-input v-model="elAddDialog.length" />
            </div>
          </div>
          <div class="box">
            <div class="inner-left">宽:</div>
            <div class="inner-right">
              <el-input v-model="elAddDialog.width" />
            </div>
          </div>
          <div class="box">
            <div class="inner-left">高:</div>
            <div class="inner-right">
              <el-input v-model="elAddDialog.height" />
            </div>
          </div>
          <div class="box">
            <div class="inner-left">重:</div>
            <div class="inner-right">
              <el-input v-model="elAddDialog.weight" />
陈嘉新 authored
428
429
430
431
            </div>
          </div>
        </div>
        <div slot="footer" class="dialog-footer">
陈嘉新 authored
432
          <el-button type="primary" @click="taskAdd()">创 建</el-button>
陈嘉新 authored
433
434
435
          <el-button @click="dialogFormVisible = false">取 消</el-button>
        </div>
      </el-dialog>
陈嘉新 authored
436
陈嘉新 authored
437
      <el-dialog title="堆垛机维护" :visible.sync="dialogFormVisibleTwo">
陈嘉新 authored
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
        <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
454
                    <el-input v-model="elMaintenance.remoteTaskId" />
陈嘉新 authored
455
456
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
457
                    <!-- <el-button class="T1">修改</el-button> -->
陈嘉新 authored
458
459
460
                  </div>
                </div>
                <div class="inner-inner-box2">
陈嘉新 authored
461
                  <div class="dv-maintenance-text">前置堆垛机任务:</div>
陈嘉新 authored
462
                  <div class="dv-maintenance-text2">
陈嘉新 authored
463
                    <el-input v-model="elMaintenance.preSRMTaskId" />
陈嘉新 authored
464
465
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
466
467
468
                    <el-button class="T1" @click="preSRMTaskEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
469
470
471
472
473
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
474
              <div class="dv-title">优先级和状态维护</div>
陈嘉新 authored
475
476
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
477
                  <div class="dv-maintenance-text">优先级:</div>
陈嘉新 authored
478
                  <div class="dv-maintenance-text2">
陈嘉新 authored
479
                    <el-input v-model="elMaintenance.priority" />
陈嘉新 authored
480
481
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
482
483
484
                    <el-button class="T1" @click="priorityEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
485
486
487
                  </div>
                </div>
                <div class="inner-inner-box2">
陈嘉新 authored
488
                  <div class="dv-maintenance-text">任务状态:</div>
陈嘉新 authored
489
490
                  <div class="dv-maintenance-text2">
                    <el-select
陈嘉新 authored
491
                      v-model="elMaintenance.status"
陈嘉新 authored
492
493
494
                      placeholder="请选择"
                    >
                      <el-option
陈嘉新 authored
495
                        v-for="item in optionsStatus"
陈嘉新 authored
496
497
498
499
500
501
502
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
503
                    <el-button class="T1" @click="statusEdit()">修改</el-button>
陈嘉新 authored
504
505
506
507
508
                  </div>
                </div>
              </div>
            </div>
            <div class="small-box">
陈嘉新 authored
509
              <div class="dv-title">库位位置维护</div>
陈嘉新 authored
510
511
              <div class="inner-box2">
                <div class="inner-inner-box1">
陈嘉新 authored
512
                  <div class="dv-maintenance-text">起点库位:</div>
陈嘉新 authored
513
                  <div class="dv-maintenance-text2">
陈嘉新 authored
514
                    <el-input v-model="elMaintenance.fromLocationCode" />
陈嘉新 authored
515
516
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
517
                    <el-button class="T1" @click="fromEdit()">修改</el-button>
陈嘉新 authored
518
519
520
                  </div>
                </div>
                <div class="inner-inner-box2">
陈嘉新 authored
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
                  <div class="dv-maintenance-text">终点库位:</div>
                  <div class="dv-maintenance-text2">
                    <el-input v-model="elMaintenance.toLocationCode" />
                  </div>
                  <div class="dv-maintenance-text3">
                    <el-button class="T1" @click="toEdit()">修改</el-button>
                  </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>
陈嘉新 authored
536
537
                  <div class="dv-maintenance-text2">
                    <el-select
陈嘉新 authored
538
                      v-model="elMaintenance.fromStationCode"
陈嘉新 authored
539
540
541
                      placeholder="请选择"
                    >
                      <el-option
陈嘉新 authored
542
                        v-for="item in optionsFrom"
陈嘉新 authored
543
544
545
546
547
548
549
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
550
551
552
                    <el-button class="T1" @click="fromStationEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
553
554
                  </div>
                </div>
陈嘉新 authored
555
556
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">终点站台:</div>
陈嘉新 authored
557
558
                  <div class="dv-maintenance-text2">
                    <el-select
陈嘉新 authored
559
                      v-model="elMaintenance.toStationCode"
陈嘉新 authored
560
561
562
                      placeholder="请选择"
                    >
                      <el-option
陈嘉新 authored
563
                        v-for="item in optionsTo"
陈嘉新 authored
564
565
566
567
568
569
570
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
571
572
573
                    <el-button class="T1" @click="toStationEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
574
575
                  </div>
                </div>
陈嘉新 authored
576
577
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">终点站台组:</div>
陈嘉新 authored
578
                  <div class="dv-maintenance-text2">
陈嘉新 authored
579
                    <el-input v-model="elMaintenance.toStationCodes" />
陈嘉新 authored
580
581
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
582
583
584
                    <el-button class="T1" @click="toStationCodesEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
585
586
587
588
                  </div>
                </div>
              </div>
            </div>
陈嘉新 authored
589
590
591
592
593
            <div class="small-box">
              <div class="dv-title">堆垛机货叉维护</div>
              <div class="inner-box2">
                <div class="inner-inner-box1">
                  <div class="dv-maintenance-text">当前堆垛机:</div>
陈嘉新 authored
594
                  <div class="dv-maintenance-text2">
陈嘉新 authored
595
596
597
598
599
600
601
602
603
604
605
                    <el-select
                      v-model="elMaintenance.srmCode"
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsARM"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
陈嘉新 authored
606
607
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
608
609
610
                    <el-button class="T1" @click="srmCodeEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
611
612
                  </div>
                </div>
陈嘉新 authored
613
614
                <div class="inner-inner-box2">
                  <div class="dv-maintenance-text">当前货叉:</div>
陈嘉新 authored
615
                  <div class="dv-maintenance-text2">
陈嘉新 authored
616
617
618
619
620
621
622
623
624
625
626
                    <el-select
                      v-model="elMaintenance.forkFlag"
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsFork"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
陈嘉新 authored
627
628
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
629
630
631
                    <el-button class="T1" @click="forkFlagEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
632
633
634
                  </div>
                </div>
              </div>
陈嘉新 authored
635
636
637
638
639
640
            </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>
陈嘉新 authored
641
                  <div class="dv-maintenance-text2">
陈嘉新 authored
642
643
644
645
646
647
648
649
650
651
652
                    <el-select
                      v-model="elMaintenance.commitFlag"
                      placeholder="请选择"
                    >
                      <el-option
                        v-for="item in optionsCommitd"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      />
                    </el-select>
陈嘉新 authored
653
654
                  </div>
                  <div class="dv-maintenance-text3">
陈嘉新 authored
655
656
657
                    <el-button class="T1" @click="commitFlagEdit()"
                      >修改</el-button
                    >
陈嘉新 authored
658
659
660
661
662
                  </div>
                </div>
              </div>
            </div>
          </div>
陈嘉新 authored
663
          <div class="box3">
陈嘉新 authored
664
665
666
667
668
669
670
671
            <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">
                  <el-input v-model="elMaintenance.length" />
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
672
                  <el-button class="T1" @click="lengthEdit()">修改</el-button>
陈嘉新 authored
673
674
675
676
677
678
679
680
                </div>
              </div>
              <div class="dv-maintenance2-right">
                <div class="dv-maintenance-text">宽:</div>
                <div class="dv-maintenance-text2">
                  <el-input v-model="elMaintenance.width" />
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
681
                  <el-button class="T1" @click="widthEdit()">修改</el-button>
陈嘉新 authored
682
683
684
685
686
687
688
689
690
691
                </div>
              </div>
            </div>
            <div class="dv-maintenance3">
              <div class="dv-maintenance3-left">
                <div class="dv-maintenance-text">高:</div>
                <div class="dv-maintenance-text2">
                  <el-input v-model="elMaintenance.height" />
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
692
                  <el-button class="T1" @click="heightEdit()">修改</el-button>
陈嘉新 authored
693
694
695
696
697
698
699
700
                </div>
              </div>
              <div class="dv-maintenance3-right">
                <div class="dv-maintenance-text">重:</div>
                <div class="dv-maintenance-text2">
                  <el-input v-model="elMaintenance.weight" />
                </div>
                <div class="dv-maintenance-text3">
陈嘉新 authored
701
                  <el-button class="T1" @click="weightEdit()">修改</el-button>
陈嘉新 authored
702
703
704
705
706
707
708
709
710
                </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
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
                <el-button class="T1" @click="goodsTypeEdit()">修改</el-button>
              </div>
            </div>

            <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">
                  <el-input v-model="elMaintenance.isEmptyOut" />
                </div>
                <div class="dv-maintenance-text3">
                  <el-button class="T1" @click="isEmptyOutEdit()"
                    >修改</el-button
                  >
                </div>
              </div>
              <div class="dv-maintenance2-right">
                <div class="dv-maintenance-text">是否取货错:</div>
                <div class="dv-maintenance-text2">
                  <el-input v-model="elMaintenance.isForkError" />
                </div>
                <div class="dv-maintenance-text3">
                  <el-button class="T1" @click="isForkErrorEdit()"
                    >修改</el-button
                  >
                </div>
              </div>
            </div>
            <div class="dv-maintenance3">
              <div class="dv-maintenance3-left">
                <div class="dv-maintenance-text">重发标记:</div>
                <div class="dv-maintenance-text2">
                  <el-input v-model="elMaintenance.sendAgain" />
                </div>
                <div class="dv-maintenance-text3">
                  <el-button class="T1" @click="sendAgainEdit()"
                    >修改</el-button
                  >
                </div>
              </div>
              <div class="dv-maintenance3-right">
                <div class="dv-maintenance-text">是否满入:</div>
                <div class="dv-maintenance-text2">
                  <el-input v-model="elMaintenance.isDoubleIn" />
                </div>
                <div class="dv-maintenance-text3">
                  <el-button class="T1" @click="isDoubleInEdit()"
                    >修改</el-button
                  >
                </div>
              </div>
            </div>
            <div class="dv-maintenance4">
              <div class="dv-maintenance-text">满入库位:</div>
              <div class="dv-maintenance-text2">
                <el-input v-model="elMaintenance.reToLocationCode" />
              </div>
              <div class="dv-maintenance-text3">
                <el-button class="T1" @click="reToLocationEdit()"
                  >修改</el-button
                >
陈嘉新 authored
773
774
              </div>
            </div>
陈嘉新 authored
775
          </div>
陈嘉新 authored
776
777
778
779
780
        </div>
        <div slot="footer" class="dialog-footer">
          <!-- <el-button type="primary" @click="dialogFormVisibleTwo = false"
              >创 建</el-button
            > -->
陈嘉新 authored
781
          <el-button @click="close()">取 消</el-button>
陈嘉新 authored
782
783
        </div>
      </el-dialog>
陈嘉新 authored
784
    </div>
胡菁 authored
785
786
787
788
  </div>
</template>

<script>
陈嘉新 authored
789
790
791
792
import {
  GetSRMTasks,
  getHostType,
  CreateSRMTask,
陈嘉新 authored
793
794
795
  GetSRMTaskById,
  CompleteSRMTask,
  DeleteSRMTaskByIds,
陈嘉新 authored
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
  SRMPreRemoteTaskEdit,
  SRMPriorityEdit,
  SRMStatusEdit,
  FromLocationCodeEdit,
  ToLocationCodeEdit,
  FromStationCodeEdit,
  ToStationCodeEdit,
  ToStationCodesEdit,
  SRMCodeEdit,
  ForkFlagEdit,
  SRMCommitEdit,
  SRMLengthEdit,
  SRMWidthEdit,
  SRMHeightEdit,
  SRMWeightEdit,
  SRMGoodsTypeEdit,
  IsEmptyOutEdit,
  IsForkErrorEdit,
  SendAgainEdit,
  IsDoubleInEdit,
  ReToLocationCodeEdit,
陈嘉新 authored
817
} from "@/api/taskManagement/stacker";
胡菁 authored
818
819
820
export default {
  data() {
    return {
陈嘉新 authored
821
822
823
824
      sysTable: [],
      //   查询条件
      queryConfig: {
        currentPage: 1,
陈嘉新 authored
825
        pageSize: 10,
陈嘉新 authored
826
827
828
829
830
831
832
833
        taskNo: "",
        remoteTaskId: "",
        fromLocationCode: "",
        toLocationCode: "",
        fromStationCode: "",
        toStationCode: "",
        status: "",
        containerCode: "",
陈嘉新 authored
834
      },
陈嘉新 authored
835
836
      //新增参数
      elAddDialog: {
陈嘉新 authored
837
838
839
840
841
842
843
844
        remoteTaskId: "",
        preSRMTaskId: 0,
        containerCode: "",
        fromLocationCode: "",
        toLocationCode: "",
        fromStationCode: "",
        toStationCode: "",
        toStationCodes: "",
陈嘉新 authored
845
        type: "",
陈嘉新 authored
846
        priority: 0,
陈嘉新 authored
847
        srmCode: "",
陈嘉新 authored
848
        goodsType: 0,
陈嘉新 authored
849
850
851
852
        height: 0,
        width: 0,
        length: 0,
        weight: 0,
陈嘉新 authored
853
      },
陈嘉新 authored
854
      //维护弹出层条件
陈嘉新 authored
855
      elMaintenance: {},
陈嘉新 authored
856
      elMaintenanceTwo: {},
陈嘉新 authored
857
858
859
      total: 0,
      listLoading: false,
      dialogFormVisible: false,
陈嘉新 authored
860
      dialogFormVisibleTwo: false,
陈嘉新 authored
861
862
863
864
865
866
867
      name: "",
      options: [
        {
          value: "",
          label: "全部",
        },
      ],
陈嘉新 authored
868
      optionsAdd: [],
陈嘉新 authored
869
870
871
872
      optionsAddEnter: [],
      optionsAddSRM: [],
      optionsAddSRMOut: [],
陈嘉新 authored
873
874
875
876
877
      optionsCommitd: [],
      optionsStatus: [],
      optionsStage: [],
      optionsDevice: [],
      optionsPick: [],
陈嘉新 authored
878
879
880
881
882
883
      //维护起点站台
      optionsFrom: [],
      optionsTo: [],
      //当前堆垛机
      optionsARM: [],
      optionsFork: [],
陈嘉新 authored
884
885
886
887
888
889
890
      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
891
892
893
894
895
896
      maintenanceID: null,
      typeData: [
        { code: "In", name: "入库" },
        { code: "Out", name: "出库" },
        { code: "InStore", name: "库内" },
      ],
陈嘉新 authored
897
      userCode: "",
898
    };
胡菁 authored
899
900
  },
  created() {
陈嘉新 authored
901
902
    this.fetchData("MTaskStatus");
    this.btnAction();
陈嘉新 authored
903
    this.userCode = this.$store.state.user.name;
胡菁 authored
904
905
  },
  methods: {
陈嘉新 authored
906
    //回传
陈嘉新 authored
907
    getOne(data, key) {
陈嘉新 authored
908
      this.optionsCommitd = [];
陈嘉新 authored
909
910
911
912
      this.optionsFrom = [];
      this.optionsTo = [];
      this.optionsARM = [];
      this.optionsFork = [];
陈嘉新 authored
913
914
915
916
917
      let params = { Code: data };
      getHostType(params).then((response) => {
        response.data.dictDetails.forEach((x) => {
          if (data == "CommitFlags") {
            this.optionsCommitd.push({ value: x.code, label: x.name });
陈嘉新 authored
918
          } else if (data == "SRMTaskStatus") {
陈嘉新 authored
919
920
            this.optionsStatus.push({ value: x.code, label: x.name });
          } else if (data == "SRMInStation") {
陈嘉新 authored
921
            this.optionsFrom.push({ value: x.code, label: x.name });
陈嘉新 authored
922
          } else if (data == "SRMInOrOutStation") {
陈嘉新 authored
923
924
925
926
927
928
929
930
931
932
933
934
935
936
            if (key == 1) {
              this.optionsFrom.push({ value: x.code, label: x.name });
            } else {
              this.optionsTo.push({ value: x.code, label: x.name });
            }
          } else if (data == "SRMOutStation") {
            this.optionsTo.push({ value: x.code, label: x.name });
          } else if (data == "SRM") {
            this.optionsARM.push({ value: x.code, label: x.name });
          } else if (data == "ForkFlags") {
            this.optionsFork.push({ value: x.code, label: x.name });
            if (this.optionsFork.length > 0) {
              this.optionsFork.srmCode = this.optionsFork[0].value;
            }
陈嘉新 authored
937
938
939
940
          }
        });
      });
    },
陈嘉新 authored
941
942
943
    btnAction() {
      this.getTableList();
    },
陈嘉新 authored
944
    //新增按钮
陈嘉新 authored
945
    btnAdd() {
陈嘉新 authored
946
947
948
949
950
951
952
953
954
955
      this.optionsAdd = [];
      this.optionsAddEnter = [];
      this.optionsAddSRM = [];
      this.optionsAddSRMOut = [];
      this.fetchData("SRMTaskType", 1);
      this.fetchData("SRMInStation", 1);
      this.fetchData("SRMInOrOutStation", 1);
      this.fetchData("SRM", 1);
      this.fetchData("SRMOutStation", 1);
      this.fetchData("SRMInOrOutStation", 2);
陈嘉新 authored
956
957
      this.dialogFormVisible = true;
    },
陈嘉新 authored
958
959
960
    //新增创建按钮
    taskAdd() {
      const params = this.elAddDialog;
陈嘉新 authored
961
      CreateSRMTask(params).then((response) => {
陈嘉新 authored
962
        if (response.code == "Success") {
陈嘉新 authored
963
          this.getTableList();
陈嘉新 authored
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
          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
982
        DeleteSRMTaskByIds(prams).then((response) => {
陈嘉新 authored
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
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
          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
1037
1038
1039
1040
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
    // 状态数据
陈嘉新 authored
1041
1042
1043
1044
    fetchData(data, key) {
      let params = {
        Code: data,
      };
陈嘉新 authored
1045
1046
      getHostType(params).then((response) => {
        response.data.dictDetails.forEach((x) => {
陈嘉新 authored
1047
          if (data == "SRMTaskType") {
陈嘉新 authored
1048
1049
            this.optionsAdd.push({ value: x.code, label: x.name });
            if (this.optionsAdd.length > 0) {
陈嘉新 authored
1050
              this.elAddDialog.type = this.optionsAdd[0].value;
陈嘉新 authored
1051
            }
陈嘉新 authored
1052
          } else if (data == "MTaskStatus") {
陈嘉新 authored
1053
            this.options.push({ value: x.code, label: x.name });
陈嘉新 authored
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
          } else if (data == "SRMInStation") {
            this.optionsAddEnter.push({ value: x.code, label: x.name });
          } else if (data == "SRMInOrOutStation") {
            if (key == 1) {
              this.optionsAddEnter.push({ value: x.code, label: x.name });
            } else {
              this.optionsAddSRMOut.push({ value: x.code, label: x.name });
            }
          } else if (data == "SRM") {
            this.optionsAddSRM.push({ value: x.code, label: x.name });
            if (this.optionsAddSRM.length > 0) {
              this.elAddDialog.srmCode = this.optionsAddSRM[0].value;
            }
          } else if (data == "SRMOutStation") {
            this.optionsAddSRMOut.push({ value: x.code, label: x.name });
陈嘉新 authored
1069
          }
陈嘉新 authored
1070
        });
1071
1072
      });
    },
陈嘉新 authored
1073
1074
1075
1076
1077
1078
    // 表格数据
    getTableList() {
      const params = {
        pageNumber: this.queryConfig.currentPage,
        perPageCount: this.queryConfig.pageSize,
        queryConfig: {
陈嘉新 authored
1079
1080
1081
1082
1083
1084
1085
1086
          taskNo: this.queryConfig.taskNo,
          remoteTaskId: this.queryConfig.remoteTaskId,
          fromLocationCode: this.queryConfig.fromLocationCode,
          toLocationCode: this.queryConfig.toLocationCode,
          fromStationCode: this.queryConfig.fromStationCode,
          toStationCode: this.queryConfig.toStationCode,
          status: this.queryConfig.status,
          containerCode: this.queryConfig.containerCode,
陈嘉新 authored
1087
1088
1089
1090
          begin: this.form.startTime,
          end: this.form.endTime,
        },
      };
陈嘉新 authored
1091
      this.listLoading = true;
陈嘉新 authored
1092
      GetSRMTasks(params).then((response) => {
陈嘉新 authored
1093
        this.total = response.data.totalCount;
陈嘉新 authored
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
        response.data.data.forEach((x) => {
          switch (x.type) {
            case 1:
              x.type = "入库";
              break;
            case 2:
              x.type = "出库";
              break;
            case 4:
              x.type = "移库";
              break;
            case 8:
              x.type = "换站";
              break;
            case 16:
              x.type = "行走";
              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;
          }
          switch (x.status) {
            case 0:
              x.status = "创建";
              break;
            case 10:
              x.status = "下发堆垛机库内取货";
              break;
            case 20:
              x.status = "响应堆垛机库内取货完成";
              break;
            case 30:
              x.status = "下发堆垛机库外放货";
              break;
            case 40:
              x.status = "响应堆垛机库外放货完成";
              break;
            case 50:
              x.status = "下发堆垛机库外取货";
              break;
            case 60:
              x.status = "响应堆垛机库外取货完成";
              break;
            case 70:
              x.status = "下发堆垛机库内放货";
              break;
            case 80:
              x.status = "响应堆垛机库内放货完成";
              break;
            case 90:
              x.status = "下发堆垛机行走";
              break;
            case 91:
              x.status = "下发堆垛机入库任务";
              break;
            case 92:
              x.status = "下发堆垛机出库任务";
              break;
            case 93:
              x.status = "下发堆垛机库内移库";
              break;
            case 94:
              x.status = "下发堆垛机换站任务";
              break;
            case 100:
              x.status = "任务未完成";
              break;
            case 110:
              x.status = "任务异常结束";
              break;
            default:
              break;
          }
        });
陈嘉新 authored
1183
        this.sysTable = response.data.data;
陈嘉新 authored
1184
        this.listLoading = false;
陈嘉新 authored
1185
1186
      });
    },
陈嘉新 authored
1187
1188
1189
1190
1191
1192
1193

    // 强制完成按钮
    forceComplete() {
      if (this.multipleSelection.length == 1) {
        let prams = {
          id: this.multipleSelection[0].id,
        };
陈嘉新 authored
1194
        CompleteSRMTask(prams).then((response) => {
陈嘉新 authored
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
          if (response.code == "Success") {
            this.getTableList();
            this.$message({
              message: response.msg,
              type: "success",
            });
          }
        });
      } else {
        this.elAlert();
      }
    },
    //   维护按钮
    maintenance() {
      if (this.multipleSelection.length == 1) {
        this.getOne("CommitFlags");
陈嘉新 authored
1211
1212
        this.getOne("SRMTaskStatus");
        this.getOne("SRMInOrOutStation", 1);
陈嘉新 authored
1213
1214
        this.getOne("SRMInStation");
        this.getOne("SRMOutStation");
陈嘉新 authored
1215
1216
1217
        this.getOne("SRMInOrOutStation", 2);
        this.getOne("SRM");
        this.getOne("ForkFlags");
陈嘉新 authored
1218
1219
1220
        let params = {
          id: this.multipleSelection[0].id,
        };
陈嘉新 authored
1221
        GetSRMTaskById(params).then((response) => {
陈嘉新 authored
1222
          if (response.code == "Success") {
陈嘉新 authored
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
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
            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 2:
                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 = "SendSRMInsideGet";
                break;
              case 20:
                response.data.status = "ResponseSRMInsideGetCompleted";
                break;
              case 30:
                response.data.status = "SendSRMOutsidePut";
                break;
              case 40:
                response.data.status = "ResponseSRMOutsidePutCompleted";
                break;
              case 50:
                response.data.status = "SendSRMOutsideGet";
                break;
              case 60:
                response.data.status = "ResponseSRMOutsideGetCompleted";
                break;
              case 70:
                response.data.status = "SendSRMInsidePut";
                break;
              case 80:
                response.data.status = "ResponseSRMInsidePutCompleted";
                break;
              case 90:
                response.data.status = "SendWalking";
                break;
              case 91:
                response.data.status = "SendSSRMIn";
                break;
              case 92:
                response.data.status = "SendSSRMOut";
                break;
              case 93:
                response.data.status = "SendSSRMInsideShifting";
                break;
              case 94:
                response.data.status = " SendSSRMToStation";
                break;
              case 100:
                response.data.status = "TaskCompleted";
                break;
              case 110:
                response.data.status = "TaskErrorCompleted";
                break;
              default:
                break;
            }
陈嘉新 authored
1307
1308
1309
1310
1311
1312
1313
1314
            this.elMaintenance = response.data;
            this.dialogFormVisibleTwo = true;
          }
        });
      } else {
        this.elAlert();
      }
    },
陈嘉新 authored
1315
1316
1317
1318
    handleCurrentChange(page) {
      this.queryConfig.currentPage = page;
      this.getTableList();
    },
陈嘉新 authored
1319
1320
1321
1322
1323
1324
    elAlert() {
      this.$alert("请选择一条数据!", "标题名称", {
        confirmButtonText: "确定",
      });
    },
    reset() {
陈嘉新 authored
1325
      this.maintenance();
陈嘉新 authored
1326
    },
陈嘉新 authored
1327
1328
1329
    close() {
      this.getTableList();
      this.dialogFormVisibleTwo = false;
陈嘉新 authored
1330
    },
陈嘉新 authored
1331
    //前置堆垛机修改
陈嘉新 authored
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
    preSRMTaskEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.preSRMTaskId,
        userCode: this.userCode,
      };
      SRMPreRemoteTaskEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1344
    //优先级
陈嘉新 authored
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
    priorityEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.priorit,
        userCode: this.userCode,
      };
      SRMPriorityEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1357
    //任务状态
陈嘉新 authored
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
    statusEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.status,
        userCode: this.userCode,
      };
      SRMStatusEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1370
    //起点库位
陈嘉新 authored
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
    fromEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.fromLocationCode,
        userCode: this.userCode,
      };
      FromLocationCodeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1383
    //终点库位
陈嘉新 authored
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
    toEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.toLocationCode,
        userCode: this.userCode,
      };
      ToLocationCodeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1396
    //起点站台
陈嘉新 authored
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
    fromStationEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elAddDialog.fromStationCode,
        userCode: this.userCode,
      };
      FromStationCodeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1409
    //终点站台
陈嘉新 authored
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
    toStationEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elAddDialog.toStationCode,
        userCode: this.userCode,
      };
      ToStationCodeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1422
    //终点站台组
陈嘉新 authored
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
    toStationCodesEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.toStationCodes,
        userCode: this.userCode,
      };
      ToStationCodesEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1435
    //当前堆垛机
陈嘉新 authored
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
    srmCodeEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.srmCode,
        userCode: this.userCode,
      };
      SRMCodeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1448
    //当前货叉
陈嘉新 authored
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
    forkFlagEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.forkFlag,
        userCode: this.userCode,
      };
      ForkFlagEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1461
    //任务回传
陈嘉新 authored
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
    commitFlagEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.commitFlag,
        userCode: this.userCode,
      };
      SRMCommitEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1474
    //长
陈嘉新 authored
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
    lengthEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.length,
        userCode: this.userCode,
      };
      SRMLengthEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1487
    //宽
陈嘉新 authored
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
    widthEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.width,
        userCode: this.userCode,
      };
      SRMWidthEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1500
    //高
陈嘉新 authored
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
    heightEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.height,
        userCode: this.userCode,
      };
      SRMHeightEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1513
    //重
陈嘉新 authored
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
    weightEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.weight,
        userCode: this.userCode,
      };
      SRMWeightEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1526
    //物料类型
陈嘉新 authored
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
    goodsTypeEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.goodsType,
        userCode: this.userCode,
      };
      SRMGoodsTypeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1539
    //是否空出
陈嘉新 authored
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
    isEmptyOutEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.isEmptyOut,
        userCode: this.userCode,
      };
      IsEmptyOutEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1552
    //是否取货错
陈嘉新 authored
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
    isForkErrorEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.isForkError,
        userCode: this.userCode,
      };
      IsForkErrorEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1565
    //重发标记
陈嘉新 authored
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
    sendAgainEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.sendAgain,
        userCode: this.userCode,
      };
      SendAgainEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1578
    //是否满入
陈嘉新 authored
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
    isDoubleInEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.isDoubleIn,
        userCode: this.userCode,
      };
      IsDoubleInEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
陈嘉新 authored
1591
    //满入库位
陈嘉新 authored
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
    reToLocationEdit() {
      let prams = {
        id: this.multipleSelection[0].id,
        data: this.elMaintenance.reToLocationCode,
        userCode: this.userCode,
      };
      ReToLocationCodeEdit(prams).then((response) => {
        if (response.code == "Success") {
          this.messge(response);
        }
      });
    },
    messge(response) {
      this.$message({
        message: response.msg,
        type: "success",
      });
    },
1610
1611
  },
};
胡菁 authored
1612
</script>
陈嘉新 authored
1613
<style lang="scss">
陈嘉新 authored
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
.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
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765

  .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 {
陈嘉新 authored
1766
      height: 130px; /* 第二个子 div 的高度 */
陈嘉新 authored
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
      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
1840
1841
1842
1843
1844
  /* 修改复选框大小 */
  .el-table .el-checkbox {
    transform: scale(1.8) !important; /* 调整大小 */
    margin-top: 5px;
  }
陈嘉新 authored
1845
1846
}
</style>