|
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
97
|
<!-- <el-button class="T1" @click="issued()">下发</el-button> -->
<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
117
118
119
|
</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
|
120
|
<el-table-column align="center" label="内部任务号" width="100">
|
陈嘉新
authored
|
121
122
123
124
|
<template slot-scope="scope">
{{ scope.row.id }}
</template>
</el-table-column>
|
陈嘉新
authored
|
125
|
<el-table-column label="远程任务号" width="100">
|
陈嘉新
authored
|
126
|
<template slot-scope="scope">
|
陈嘉新
authored
|
127
|
{{ scope.row.remoteTaskId }}
|
陈嘉新
authored
|
128
129
|
</template>
</el-table-column>
|
陈嘉新
authored
|
130
|
<el-table-column label="前置堆垛机任务" width="120">
|
陈嘉新
authored
|
131
|
<template slot-scope="scope">
|
陈嘉新
authored
|
132
|
{{ scope.row.preSRMTaskId }}
|
陈嘉新
authored
|
133
134
135
136
|
</template>
</el-table-column>
<el-table-column label="容器号">
<template slot-scope="scope">
|
陈嘉新
authored
|
137
138
139
140
141
142
|
{{ scope.row.containerCode }}
</template>
</el-table-column>
<el-table-column label="堆垛机名">
<template slot-scope="scope">
{{ scope.row.srmCode }}
|
陈嘉新
authored
|
143
144
145
146
147
148
149
150
151
152
153
154
|
</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
|
155
|
<el-table-column label="起点库位">
|
陈嘉新
authored
|
156
|
<template slot-scope="scope">
|
陈嘉新
authored
|
157
|
{{ scope.row.fromLocationCode }}
|
陈嘉新
authored
|
158
159
|
</template>
</el-table-column>
|
陈嘉新
authored
|
160
161
|
<el-table-column label="终点库位">
<template slot-scope="scope">
|
陈嘉新
authored
|
162
|
{{ scope.row.toLocationCode }}
|
陈嘉新
authored
|
163
164
165
166
|
</template>
</el-table-column>
<el-table-column label="起点站台">
<template slot-scope="scope">
|
陈嘉新
authored
|
167
|
{{ scope.row.fromStationCode }}
|
陈嘉新
authored
|
168
169
170
171
|
</template>
</el-table-column>
<el-table-column label="终点站台">
<template slot-scope="scope">
|
陈嘉新
authored
|
172
|
{{ scope.row.toStationCode }}
|
陈嘉新
authored
|
173
174
|
</template>
</el-table-column>
|
陈嘉新
authored
|
175
|
<el-table-column label="终点站台组" width="100">
|
陈嘉新
authored
|
176
|
<template slot-scope="scope">
|
陈嘉新
authored
|
177
|
{{ scope.row.toStationCodes }}
|
陈嘉新
authored
|
178
179
|
</template>
</el-table-column>
|
陈嘉新
authored
|
180
|
<el-table-column label="巷道">
|
陈嘉新
authored
|
181
|
<template slot-scope="scope">
|
陈嘉新
authored
|
182
|
{{ scope.row.roadway }}
|
陈嘉新
authored
|
183
184
|
</template>
</el-table-column>
|
陈嘉新
authored
|
185
|
<el-table-column label="提交标识">
|
陈嘉新
authored
|
186
|
<template slot-scope="scope">
|
陈嘉新
authored
|
187
|
{{ scope.row.commitFlag }}
|
陈嘉新
authored
|
188
189
|
</template>
</el-table-column>
|
陈嘉新
authored
|
190
|
<el-table-column label="重发标识">
|
陈嘉新
authored
|
191
|
<template slot-scope="scope">
|
陈嘉新
authored
|
192
|
{{ scope.row.sendAgain }}
|
陈嘉新
authored
|
193
194
|
</template>
</el-table-column>
|
陈嘉新
authored
|
195
196
|
<el-table-column label="空出标识">
<template slot-scope="scope">
|
陈嘉新
authored
|
197
|
{{ scope.row.isEmptyOut }}
|
陈嘉新
authored
|
198
199
|
</template>
</el-table-column>
|
陈嘉新
authored
|
200
|
<el-table-column label="取货错标识" width="100">
|
陈嘉新
authored
|
201
|
<template slot-scope="scope">
|
陈嘉新
authored
|
202
|
{{ scope.row.isForkError }}
|
陈嘉新
authored
|
203
204
205
206
|
</template>
</el-table-column>
<el-table-column label="满入标识">
<template slot-scope="scope">
|
陈嘉新
authored
|
207
|
{{ scope.row.isDoubleIn }}
|
陈嘉新
authored
|
208
209
210
211
|
</template>
</el-table-column>
<el-table-column label="满入位置">
<template slot-scope="scope">
|
陈嘉新
authored
|
212
|
{{ scope.row.reToLocationCode }}
|
陈嘉新
authored
|
213
214
215
216
|
</template>
</el-table-column>
<el-table-column label="货叉标识">
<template slot-scope="scope">
|
陈嘉新
authored
|
217
|
{{ scope.row.forkFlag }}
|
陈嘉新
authored
|
218
219
220
|
</template>
</el-table-column>
<el-table-column label="优先级">
|
陈嘉新
authored
|
221
|
<template slot-scope="scope">
|
陈嘉新
authored
|
222
|
{{ scope.row.priority }}
|
陈嘉新
authored
|
223
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
|
</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
|
250
|
<el-table-column label="开始执行时间" width="160">
|
陈嘉新
authored
|
251
|
<template slot-scope="scope">
|
陈嘉新
authored
|
252
|
{{ scope.row.beginExecuteTime }}
|
陈嘉新
authored
|
253
254
|
</template>
</el-table-column>
|
陈嘉新
authored
|
255
|
<el-table-column label="执行结束时间" width="160">
|
陈嘉新
authored
|
256
|
<template slot-scope="scope">
|
陈嘉新
authored
|
257
|
{{ scope.row.endExecuteTime }}
|
陈嘉新
authored
|
258
259
|
</template>
</el-table-column>
|
陈嘉新
authored
|
260
|
<el-table-column label="创建时间" width="160">
|
陈嘉新
authored
|
261
|
<template slot-scope="scope">
|
陈嘉新
authored
|
262
|
{{ scope.row.created }}
|
陈嘉新
authored
|
263
264
265
266
|
</template>
</el-table-column>
<el-table-column label="创建人">
<template slot-scope="scope">
|
陈嘉新
authored
|
267
|
{{ scope.row.createdBy }}
|
陈嘉新
authored
|
268
269
|
</template>
</el-table-column>
|
陈嘉新
authored
|
270
|
<el-table-column label="更新时间" width="160">
|
陈嘉新
authored
|
271
|
<template slot-scope="scope">
|
陈嘉新
authored
|
272
|
{{ scope.row.updated }}
|
陈嘉新
authored
|
273
274
275
|
</template>
</el-table-column>
<el-table-column label="更新人">
|
陈嘉新
authored
|
276
|
<template slot-scope="scope">
|
陈嘉新
authored
|
277
|
{{ scope.row.updatedBy }}
|
陈嘉新
authored
|
278
279
280
281
282
283
284
285
286
287
288
289
|
</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
|
290
291
|
>
</el-pagination>
|
陈嘉新
authored
|
292
293
|
</div>
</div>
|
陈嘉新
authored
|
294
|
<!-- 新增弹框 -->
|
陈嘉新
authored
|
295
|
<el-dialog title="堆垛机新增" :visible.sync="dialogFormVisible">
|
陈嘉新
authored
|
296
297
|
<div class="container">
<div class="box">
|
陈嘉新
authored
|
298
299
|
<div class="inner-left">远程任务标识:</div>
<div class="inner-right">
|
陈嘉新
authored
|
300
|
<el-input v-model="elAddDialog.remoteTaskId" />
|
陈嘉新
authored
|
301
302
303
304
305
|
</div>
</div>
<div class="box">
<div class="inner-left">前置堆垛机任务:</div>
<div class="inner-right">
|
陈嘉新
authored
|
306
|
<el-input v-model="elAddDialog.preSRMTaskId" />
|
陈嘉新
authored
|
307
308
309
|
</div>
</div>
<div class="box">
|
陈嘉新
authored
|
310
311
|
<div class="inner-left">任务类型:</div>
<div class="inner-right">
|
陈嘉新
authored
|
312
|
<el-select v-model="elAddDialog.type" placeholder="请选择">
|
陈嘉新
authored
|
313
|
<el-option
|
陈嘉新
authored
|
314
|
v-for="item in optionsAdd"
|
陈嘉新
authored
|
315
316
317
318
319
320
321
322
323
324
|
: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
|
325
|
<el-input v-model="elAddDialog.priority" />
|
陈嘉新
authored
|
326
327
328
329
330
|
</div>
</div>
<div class="box">
<div class="inner-left">容器号:</div>
<div class="inner-right">
|
陈嘉新
authored
|
331
|
<el-input v-model="elAddDialog.containerCode" />
|
陈嘉新
authored
|
332
333
334
335
336
|
</div>
</div>
<div class="box">
<div class="inner-left">堆垛机名:</div>
<div class="inner-right">
|
陈嘉新
authored
|
337
338
339
340
341
342
343
344
|
<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
|
345
346
347
|
</div>
</div>
<div class="box">
|
陈嘉新
authored
|
348
|
<div class="inner-left">起点库位:</div>
|
陈嘉新
authored
|
349
|
<div class="inner-right">
|
陈嘉新
authored
|
350
|
<el-input v-model="elAddDialog.fromLocationCod" />
|
陈嘉新
authored
|
351
352
353
|
</div>
</div>
<div class="box">
|
陈嘉新
authored
|
354
|
<div class="inner-left">终点库位:</div>
|
陈嘉新
authored
|
355
|
<div class="inner-right">
|
陈嘉新
authored
|
356
|
<el-input v-model="elAddDialog.toLocationCode" />
|
陈嘉新
authored
|
357
358
359
|
</div>
</div>
<div class="box">
|
陈嘉新
authored
|
360
|
<div class="inner-left">起点站台:</div>
|
陈嘉新
authored
|
361
|
<div class="inner-right">
|
陈嘉新
authored
|
362
|
<el-select
|
陈嘉新
authored
|
363
|
clearable
|
陈嘉新
authored
|
364
365
366
367
368
369
370
371
372
373
|
v-model="elAddDialog.fromStationCode"
placeholder="请选择"
>
<el-option
v-for="item in optionsAddEnter"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
|
陈嘉新
authored
|
374
375
376
377
378
|
</div>
</div>
<div class="box">
<div class="inner-left">终点站台:</div>
<div class="inner-right">
|
陈嘉新
authored
|
379
|
<el-select
|
陈嘉新
authored
|
380
|
clearable
|
陈嘉新
authored
|
381
382
383
384
385
386
387
388
389
390
|
v-model="elAddDialog.toStationCode"
placeholder="请选择"
>
<el-option
v-for="item in optionsAddSRMOut"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
|
陈嘉新
authored
|
391
392
393
394
395
|
</div>
</div>
<div class="box">
<div class="inner-left">终点站台组:</div>
<div class="inner-right">
|
陈嘉新
authored
|
396
|
<el-input v-model="elAddDialog.toStationCodes" />
|
陈嘉新
authored
|
397
398
399
400
401
|
</div>
</div>
<div class="box">
<div class="inner-left">货物类型:</div>
<div class="inner-right">
|
陈嘉新
authored
|
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
|
<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
|
427
428
429
430
|
</div>
</div>
</div>
<div slot="footer" class="dialog-footer">
|
陈嘉新
authored
|
431
|
<el-button type="primary" @click="taskAdd()">创 建</el-button>
|
陈嘉新
authored
|
432
433
434
|
<el-button @click="dialogFormVisible = false">取 消</el-button>
</div>
</el-dialog>
|
陈嘉新
authored
|
435
|
|
陈嘉新
authored
|
436
|
<el-dialog title="堆垛机维护" :visible.sync="dialogFormVisibleTwo">
|
陈嘉新
authored
|
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
|
<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
|
453
|
<el-input v-model="elMaintenance.remoteTaskId" />
|
陈嘉新
authored
|
454
455
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
456
|
<!-- <el-button class="T1">修改</el-button> -->
|
陈嘉新
authored
|
457
458
459
|
</div>
</div>
<div class="inner-inner-box2">
|
陈嘉新
authored
|
460
|
<div class="dv-maintenance-text">前置堆垛机任务:</div>
|
陈嘉新
authored
|
461
|
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
462
|
<el-input v-model="elMaintenance.preSRMTaskId" />
|
陈嘉新
authored
|
463
464
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
465
466
467
|
<el-button class="T1" @click="preSRMTaskEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
468
469
470
471
472
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
473
|
<div class="dv-title">优先级和状态维护</div>
|
陈嘉新
authored
|
474
475
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
476
|
<div class="dv-maintenance-text">优先级:</div>
|
陈嘉新
authored
|
477
|
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
478
|
<el-input v-model="elMaintenance.priority" />
|
陈嘉新
authored
|
479
480
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
481
482
483
|
<el-button class="T1" @click="priorityEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
484
485
486
|
</div>
</div>
<div class="inner-inner-box2">
|
陈嘉新
authored
|
487
|
<div class="dv-maintenance-text">任务状态:</div>
|
陈嘉新
authored
|
488
489
|
<div class="dv-maintenance-text2">
<el-select
|
陈嘉新
authored
|
490
|
v-model="elMaintenance.status"
|
陈嘉新
authored
|
491
492
493
|
placeholder="请选择"
>
<el-option
|
陈嘉新
authored
|
494
|
v-for="item in optionsStatus"
|
陈嘉新
authored
|
495
496
497
498
499
500
501
|
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
502
|
<el-button class="T1" @click="statusEdit()">修改</el-button>
|
陈嘉新
authored
|
503
504
505
506
507
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
508
|
<div class="dv-title">库位位置维护</div>
|
陈嘉新
authored
|
509
510
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
511
|
<div class="dv-maintenance-text">起点库位:</div>
|
陈嘉新
authored
|
512
|
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
513
|
<el-input v-model="elMaintenance.fromLocationCode" />
|
陈嘉新
authored
|
514
515
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
516
|
<el-button class="T1" @click="fromEdit()">修改</el-button>
|
陈嘉新
authored
|
517
518
519
|
</div>
</div>
<div class="inner-inner-box2">
|
陈嘉新
authored
|
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
|
<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
|
535
536
|
<div class="dv-maintenance-text2">
<el-select
|
陈嘉新
authored
|
537
|
v-model="elAddDialog.fromStationCode"
|
陈嘉新
authored
|
538
539
540
|
placeholder="请选择"
>
<el-option
|
陈嘉新
authored
|
541
|
v-for="item in optionsFrom"
|
陈嘉新
authored
|
542
543
544
545
546
547
548
|
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
549
550
551
|
<el-button class="T1" @click="fromStationEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
552
553
|
</div>
</div>
|
陈嘉新
authored
|
554
555
|
<div class="inner-inner-box2">
<div class="dv-maintenance-text">终点站台:</div>
|
陈嘉新
authored
|
556
557
|
<div class="dv-maintenance-text2">
<el-select
|
陈嘉新
authored
|
558
|
v-model="elAddDialog.toStationCode"
|
陈嘉新
authored
|
559
560
561
|
placeholder="请选择"
>
<el-option
|
陈嘉新
authored
|
562
|
v-for="item in optionsTo"
|
陈嘉新
authored
|
563
564
565
566
567
568
569
|
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
570
571
572
|
<el-button class="T1" @click="toStationEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
573
574
|
</div>
</div>
|
陈嘉新
authored
|
575
576
|
<div class="inner-inner-box2">
<div class="dv-maintenance-text">终点站台组:</div>
|
陈嘉新
authored
|
577
|
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
578
|
<el-input v-model="elMaintenance.toStationCodes" />
|
陈嘉新
authored
|
579
580
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
581
582
583
|
<el-button class="T1" @click="toStationCodesEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
584
585
586
587
|
</div>
</div>
</div>
</div>
|
陈嘉新
authored
|
588
589
590
591
592
|
<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
|
593
|
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
594
595
596
597
598
599
600
601
602
603
604
|
<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
|
605
606
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
607
608
609
|
<el-button class="T1" @click="srmCodeEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
610
611
|
</div>
</div>
|
陈嘉新
authored
|
612
613
|
<div class="inner-inner-box2">
<div class="dv-maintenance-text">当前货叉:</div>
|
陈嘉新
authored
|
614
|
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
615
616
617
618
619
620
621
622
623
624
625
|
<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
|
626
627
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
628
629
630
|
<el-button class="T1" @click="forkFlagEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
631
632
633
|
</div>
</div>
</div>
|
陈嘉新
authored
|
634
635
636
637
638
639
|
</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
|
640
|
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
641
642
643
644
645
646
647
648
649
650
651
|
<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
|
652
653
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
654
655
656
|
<el-button class="T1" @click="commitFlagEdit()"
>修改</el-button
>
|
陈嘉新
authored
|
657
658
659
660
661
|
</div>
</div>
</div>
</div>
</div>
|
陈嘉新
authored
|
662
|
<div class="box3">
|
陈嘉新
authored
|
663
664
665
666
667
668
669
670
|
<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
|
671
|
<el-button class="T1" @click="lengthEdit()">修改</el-button>
|
陈嘉新
authored
|
672
673
674
675
676
677
678
679
|
</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
|
680
|
<el-button class="T1" @click="widthEdit()">修改</el-button>
|
陈嘉新
authored
|
681
682
683
684
685
686
687
688
689
690
|
</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
|
691
|
<el-button class="T1" @click="heightEdit()">修改</el-button>
|
陈嘉新
authored
|
692
693
694
695
696
697
698
699
|
</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
|
700
|
<el-button class="T1" @click="weightEdit()">修改</el-button>
|
陈嘉新
authored
|
701
702
703
704
705
706
707
708
709
|
</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
|
710
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
|
<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
|
772
773
|
</div>
</div>
|
陈嘉新
authored
|
774
|
</div>
|
陈嘉新
authored
|
775
776
777
778
779
|
</div>
<div slot="footer" class="dialog-footer">
<!-- <el-button type="primary" @click="dialogFormVisibleTwo = false"
>创 建</el-button
> -->
|
陈嘉新
authored
|
780
|
<el-button @click="close()">取 消</el-button>
|
陈嘉新
authored
|
781
782
|
</div>
</el-dialog>
|
陈嘉新
authored
|
783
|
</div>
|
|
784
785
786
787
|
</div>
</template>
<script>
|
陈嘉新
authored
|
788
789
790
791
|
import {
GetSRMTasks,
getHostType,
CreateSRMTask,
|
陈嘉新
authored
|
792
793
794
|
GetSRMTaskById,
CompleteSRMTask,
DeleteSRMTaskByIds,
|
陈嘉新
authored
|
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
|
SRMPreRemoteTaskEdit,
SRMPriorityEdit,
SRMStatusEdit,
FromLocationCodeEdit,
ToLocationCodeEdit,
FromStationCodeEdit,
ToStationCodeEdit,
ToStationCodesEdit,
SRMCodeEdit,
ForkFlagEdit,
SRMCommitEdit,
SRMLengthEdit,
SRMWidthEdit,
SRMHeightEdit,
SRMWeightEdit,
SRMGoodsTypeEdit,
IsEmptyOutEdit,
IsForkErrorEdit,
SendAgainEdit,
IsDoubleInEdit,
ReToLocationCodeEdit,
|
陈嘉新
authored
|
816
|
} from "@/api/taskManagement/stacker";
|
|
817
818
819
|
export default {
data() {
return {
|
陈嘉新
authored
|
820
821
822
823
|
sysTable: [],
// 查询条件
queryConfig: {
currentPage: 1,
|
陈嘉新
authored
|
824
|
pageSize: 10,
|
陈嘉新
authored
|
825
826
827
828
829
830
831
832
|
taskNo: "",
remoteTaskId: "",
fromLocationCode: "",
toLocationCode: "",
fromStationCode: "",
toStationCode: "",
status: "",
containerCode: "",
|
陈嘉新
authored
|
833
|
},
|
陈嘉新
authored
|
834
835
|
//新增参数
elAddDialog: {
|
陈嘉新
authored
|
836
837
838
839
840
841
842
843
844
|
remoteTaskId: "",
preSRMTaskId: 0,
containerCode: "",
fromLocationCode: "",
toLocationCode: "",
fromStationCode: "",
toStationCode: "",
toStationCodes: "",
type: 1,
|
陈嘉新
authored
|
845
|
priority: 0,
|
陈嘉新
authored
|
846
|
srmCode: "",
|
陈嘉新
authored
|
847
|
goodsType: 0,
|
陈嘉新
authored
|
848
849
850
851
|
height: 0,
width: 0,
length: 0,
weight: 0,
|
陈嘉新
authored
|
852
|
},
|
陈嘉新
authored
|
853
|
//维护弹出层条件
|
陈嘉新
authored
|
854
|
elMaintenance: {},
|
陈嘉新
authored
|
855
|
elMaintenanceTwo: {},
|
陈嘉新
authored
|
856
857
858
|
total: 0,
listLoading: false,
dialogFormVisible: false,
|
陈嘉新
authored
|
859
|
dialogFormVisibleTwo: false,
|
陈嘉新
authored
|
860
861
862
863
864
865
866
|
name: "",
options: [
{
value: "",
label: "全部",
},
],
|
陈嘉新
authored
|
867
|
optionsAdd: [],
|
陈嘉新
authored
|
868
869
870
871
|
optionsAddEnter: [],
optionsAddSRM: [],
optionsAddSRMOut: [],
|
陈嘉新
authored
|
872
873
874
875
876
|
optionsCommitd: [],
optionsStatus: [],
optionsStage: [],
optionsDevice: [],
optionsPick: [],
|
陈嘉新
authored
|
877
878
879
880
881
882
|
//维护起点站台
optionsFrom: [],
optionsTo: [],
//当前堆垛机
optionsARM: [],
optionsFork: [],
|
陈嘉新
authored
|
883
884
885
886
887
888
889
|
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
|
890
891
892
893
894
895
|
maintenanceID: null,
typeData: [
{ code: "In", name: "入库" },
{ code: "Out", name: "出库" },
{ code: "InStore", name: "库内" },
],
|
陈嘉新
authored
|
896
|
userCode: "",
|
|
897
|
};
|
|
898
899
|
},
created() {
|
陈嘉新
authored
|
900
901
|
this.fetchData("MTaskStatus");
this.btnAction();
|
陈嘉新
authored
|
902
|
this.userCode = this.$store.state.user.name;
|
|
903
904
|
},
methods: {
|
陈嘉新
authored
|
905
|
//回传
|
陈嘉新
authored
|
906
|
getOne(data, key) {
|
陈嘉新
authored
|
907
|
this.optionsCommitd = [];
|
陈嘉新
authored
|
908
909
910
911
|
this.optionsFrom = [];
this.optionsTo = [];
this.optionsARM = [];
this.optionsFork = [];
|
陈嘉新
authored
|
912
913
914
915
916
|
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
|
917
|
} else if (data == "SRMTaskStatus") {
|
陈嘉新
authored
|
918
919
|
this.optionsStatus.push({ value: x.code, label: x.name });
} else if (data == "SRMInStation") {
|
陈嘉新
authored
|
920
|
this.optionsFrom.push({ value: x.code, label: x.name });
|
陈嘉新
authored
|
921
|
} else if (data == "SRMInOrOutStation") {
|
陈嘉新
authored
|
922
923
924
925
926
927
928
929
930
931
932
933
934
935
|
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
|
936
937
938
939
|
}
});
});
},
|
陈嘉新
authored
|
940
941
942
|
btnAction() {
this.getTableList();
},
|
陈嘉新
authored
|
943
|
//新增按钮
|
陈嘉新
authored
|
944
|
btnAdd() {
|
陈嘉新
authored
|
945
946
947
948
949
950
951
952
953
954
|
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
|
955
956
|
this.dialogFormVisible = true;
},
|
陈嘉新
authored
|
957
958
959
|
//新增创建按钮
taskAdd() {
const params = this.elAddDialog;
|
陈嘉新
authored
|
960
|
CreateSRMTask(params).then((response) => {
|
陈嘉新
authored
|
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
|
if (response.code == "Success") {
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
|
980
|
DeleteSRMTaskByIds(prams).then((response) => {
|
陈嘉新
authored
|
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
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
|
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
|
1035
1036
1037
1038
|
handleSelectionChange(val) {
this.multipleSelection = val;
},
// 状态数据
|
陈嘉新
authored
|
1039
1040
1041
1042
|
fetchData(data, key) {
let params = {
Code: data,
};
|
陈嘉新
authored
|
1043
1044
|
getHostType(params).then((response) => {
response.data.dictDetails.forEach((x) => {
|
陈嘉新
authored
|
1045
|
if (data == "SRMTaskType") {
|
陈嘉新
authored
|
1046
1047
|
this.optionsAdd.push({ value: x.code, label: x.name });
if (this.optionsAdd.length > 0) {
|
陈嘉新
authored
|
1048
|
this.elAddDialog.type = this.optionsAdd[0].value;
|
陈嘉新
authored
|
1049
|
}
|
陈嘉新
authored
|
1050
|
} else if (data == "MTaskStatus") {
|
陈嘉新
authored
|
1051
|
this.options.push({ value: x.code, label: x.name });
|
陈嘉新
authored
|
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
|
} 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
|
1067
|
}
|
陈嘉新
authored
|
1068
|
});
|
|
1069
1070
|
});
},
|
陈嘉新
authored
|
1071
1072
1073
1074
1075
1076
|
// 表格数据
getTableList() {
const params = {
pageNumber: this.queryConfig.currentPage,
perPageCount: this.queryConfig.pageSize,
queryConfig: {
|
陈嘉新
authored
|
1077
1078
1079
1080
1081
1082
1083
1084
|
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
|
1085
1086
1087
1088
|
begin: this.form.startTime,
end: this.form.endTime,
},
};
|
陈嘉新
authored
|
1089
|
this.listLoading = true;
|
陈嘉新
authored
|
1090
|
GetSRMTasks(params).then((response) => {
|
陈嘉新
authored
|
1091
|
this.total = response.data.totalCount;
|
陈嘉新
authored
|
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
|
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
|
1181
|
this.sysTable = response.data.data;
|
陈嘉新
authored
|
1182
|
this.listLoading = false;
|
陈嘉新
authored
|
1183
1184
|
});
},
|
陈嘉新
authored
|
1185
1186
1187
1188
1189
1190
1191
|
// 强制完成按钮
forceComplete() {
if (this.multipleSelection.length == 1) {
let prams = {
id: this.multipleSelection[0].id,
};
|
陈嘉新
authored
|
1192
|
CompleteSRMTask(prams).then((response) => {
|
陈嘉新
authored
|
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
|
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
|
1209
1210
|
this.getOne("SRMTaskStatus");
this.getOne("SRMInOrOutStation", 1);
|
陈嘉新
authored
|
1211
1212
|
this.getOne("SRMInStation");
this.getOne("SRMOutStation");
|
陈嘉新
authored
|
1213
1214
1215
|
this.getOne("SRMInOrOutStation", 2);
this.getOne("SRM");
this.getOne("ForkFlags");
|
陈嘉新
authored
|
1216
1217
1218
|
let params = {
id: this.multipleSelection[0].id,
};
|
陈嘉新
authored
|
1219
|
GetSRMTaskById(params).then((response) => {
|
陈嘉新
authored
|
1220
|
if (response.code == "Success") {
|
陈嘉新
authored
|
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
|
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
|
1305
1306
1307
1308
1309
1310
1311
1312
1313
|
this.elMaintenance = response.data;
this.elMaintenanceTwo = response.data;
this.dialogFormVisibleTwo = true;
}
});
} else {
this.elAlert();
}
},
|
陈嘉新
authored
|
1314
1315
1316
1317
|
handleCurrentChange(page) {
this.queryConfig.currentPage = page;
this.getTableList();
},
|
陈嘉新
authored
|
1318
1319
1320
1321
1322
1323
|
elAlert() {
this.$alert("请选择一条数据!", "标题名称", {
confirmButtonText: "确定",
});
},
reset() {
|
陈嘉新
authored
|
1324
|
this.maintenance();
|
陈嘉新
authored
|
1325
|
},
|
陈嘉新
authored
|
1326
1327
1328
|
close() {
this.getTableList();
this.dialogFormVisibleTwo = false;
|
陈嘉新
authored
|
1329
|
},
|
陈嘉新
authored
|
1330
|
//前置堆垛机修改
|
陈嘉新
authored
|
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
|
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
|
1343
|
//优先级
|
陈嘉新
authored
|
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
|
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
|
1356
|
//任务状态
|
陈嘉新
authored
|
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
|
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
|
1369
|
//起点库位
|
陈嘉新
authored
|
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
|
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
|
1382
|
//终点库位
|
陈嘉新
authored
|
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
|
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
|
1395
|
//起点站台
|
陈嘉新
authored
|
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
|
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
|
1408
|
//终点站台
|
陈嘉新
authored
|
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
|
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
|
1421
|
//终点站台组
|
陈嘉新
authored
|
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
|
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
|
1434
|
//当前堆垛机
|
陈嘉新
authored
|
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
|
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
|
1447
|
//当前货叉
|
陈嘉新
authored
|
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
|
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
|
1460
|
//任务回传
|
陈嘉新
authored
|
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
|
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
|
1473
|
//长
|
陈嘉新
authored
|
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
|
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
|
1486
|
//宽
|
陈嘉新
authored
|
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
|
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
|
1499
|
//高
|
陈嘉新
authored
|
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
|
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
|
1512
|
//重
|
陈嘉新
authored
|
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
|
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
|
1525
|
//物料类型
|
陈嘉新
authored
|
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
|
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
|
1538
|
//是否空出
|
陈嘉新
authored
|
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
|
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
|
1551
|
//是否取货错
|
陈嘉新
authored
|
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
|
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
|
1564
|
//重发标记
|
陈嘉新
authored
|
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
|
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
|
1577
|
//是否满入
|
陈嘉新
authored
|
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
|
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
|
1590
|
//满入库位
|
陈嘉新
authored
|
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
|
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",
});
},
|
|
1609
1610
|
},
};
|
|
1611
|
</script>
|
陈嘉新
authored
|
1612
1613
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
|
<style scoped lang="scss">
.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
|
1707
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
|
.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
|
1765
|
height: 130px; /* 第二个子 div 的高度 */
|
陈嘉新
authored
|
1766
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
|
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
|
1839
1840
|
}
</style>
|