陈嘉新
authored
|
1
2
3
4
|
<template>
<div class="app-container">
<div class="app-container-father">
<div class="dv-container-left">
|
陈嘉新
authored
|
5
6
7
|
<el-form
ref="form"
:model="form"
|
陈嘉新
authored
|
8
9
|
label-width="90px"
style="width: 90%; margin-top: 20px"
|
陈嘉新
authored
|
10
|
>
|
陈嘉新
authored
|
11
|
<el-form-item :label="$t('taskManage.taskNumber')">
|
陈嘉新
authored
|
12
13
|
<el-input
v-model="queryConfig.taskNumber"
|
陈嘉新
authored
|
14
15
16
|
:placeholder="
$t('taskManage.PleaseEnter') + $t('taskManage.taskNumber')
"
|
陈嘉新
authored
|
17
|
></el-input>
|
陈嘉新
authored
|
18
|
</el-form-item>
|
陈嘉新
authored
|
19
|
<el-form-item :label="$t('taskManage.remoteTask')">
|
陈嘉新
authored
|
20
21
|
<el-input
v-model="queryConfig.remoteTask"
|
陈嘉新
authored
|
22
23
24
|
:placeholder="
$t('taskManage.PleaseEnter') + $t('taskManage.remoteTask')
"
|
陈嘉新
authored
|
25
|
></el-input>
|
陈嘉新
authored
|
26
|
</el-form-item>
|
陈嘉新
authored
|
27
|
<el-form-item :label="$t('taskManage.container')">
|
陈嘉新
authored
|
28
29
|
<el-input
v-model="queryConfig.barcode"
|
陈嘉新
authored
|
30
31
32
|
:placeholder="
$t('taskManage.PleaseEnter') + $t('taskManage.container')
"
|
陈嘉新
authored
|
33
|
></el-input>
|
陈嘉新
authored
|
34
|
</el-form-item>
|
陈嘉新
authored
|
35
|
<el-form-item :label="$t('taskManage.form')">
|
陈嘉新
authored
|
36
37
|
<el-input
v-model="queryConfig.from"
|
陈嘉新
authored
|
38
39
40
|
:placeholder="
$t('taskManage.PleaseEnter') + $t('taskManage.form')
"
|
陈嘉新
authored
|
41
|
></el-input>
|
陈嘉新
authored
|
42
|
</el-form-item>
|
陈嘉新
authored
|
43
|
<el-form-item :label="$t('taskManage.to')">
|
陈嘉新
authored
|
44
45
|
<el-input
v-model="queryConfig.to"
|
陈嘉新
authored
|
46
|
:placeholder="$t('taskManage.PleaseEnter') + $t('taskManage.to')"
|
陈嘉新
authored
|
47
|
></el-input>
|
陈嘉新
authored
|
48
|
</el-form-item>
|
陈嘉新
authored
|
49
50
51
52
53
54
55
|
<el-form-item :label="$t('taskManage.status')">
<el-select
v-model="value"
:placeholder="
$t('taskManage.PleaseSelect') + $t('taskManage.status')
"
>
|
陈嘉新
authored
|
56
57
58
59
60
|
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
|
|
61
|
/>
|
陈嘉新
authored
|
62
|
</el-select>
|
陈嘉新
authored
|
63
|
</el-form-item>
|
陈嘉新
authored
|
64
|
<el-form-item :label="$t('taskManage.startTime')">
|
陈嘉新
authored
|
65
|
<el-date-picker
|
陈嘉新
authored
|
66
|
v-model="form.startTime"
|
陈嘉新
authored
|
67
|
type="datetime"
|
陈嘉新
authored
|
68
69
70
|
:placeholder="
$t('taskManage.PleaseSelect') + $t('taskManage.startTime')
"
|
陈嘉新
authored
|
71
|
style="width: 99%"
|
|
72
|
/>
|
陈嘉新
authored
|
73
|
</el-form-item>
|
陈嘉新
authored
|
74
|
<el-form-item :label="$t('taskManage.endTime')">
|
陈嘉新
authored
|
75
|
<el-date-picker
|
陈嘉新
authored
|
76
|
v-model="form.endTime"
|
陈嘉新
authored
|
77
|
type="datetime"
|
陈嘉新
authored
|
78
79
80
|
:placeholder="
$t('taskManage.PleaseSelect') + $t('taskManage.endTime')
"
|
陈嘉新
authored
|
81
|
style="width: 99%"
|
|
82
|
/>
|
陈嘉新
authored
|
83
|
</el-form-item>
|
陈嘉新
authored
|
84
|
|
陈嘉新
authored
|
85
86
87
|
<el-form-item>
<el-row>
<el-col :span="8">
|
陈嘉新
authored
|
88
89
90
|
<el-button
type="primary"
size="small"
|
陈嘉新
authored
|
91
|
icon="el-icon-search"
|
陈嘉新
authored
|
92
|
@click="btnAction()"
|
陈嘉新
authored
|
93
|
>{{ $t("taskManage.query") }}</el-button
|
陈嘉新
authored
|
94
95
96
|
>
</el-col>
<el-col :span="8">
|
陈嘉新
authored
|
97
98
99
100
101
|
<el-button
type="success"
size="small"
icon="el-icon-plus"
@click="btnAdd()"
|
陈嘉新
authored
|
102
|
>{{ $t("taskManage.Add") }}</el-button
|
陈嘉新
authored
|
103
|
>
|
陈嘉新
authored
|
104
105
|
</el-col>
<el-col :span="8">
|
陈嘉新
authored
|
106
107
108
109
110
|
<el-button
type="danger"
size="small"
icon="el-icon-delete"
@click="deleteData()"
|
陈嘉新
authored
|
111
|
>{{ $t("taskManage.delete") }}</el-button
|
陈嘉新
authored
|
112
|
>
|
陈嘉新
authored
|
113
114
115
116
|
</el-col>
</el-row>
</el-form-item>
<el-form-item>
|
陈嘉新
authored
|
117
118
119
120
121
|
<el-button
type="success"
size="small"
icon="el-icon-upload"
@click="issued()"
|
陈嘉新
authored
|
122
|
>{{ $t("taskManage.Issued") }}</el-button
|
陈嘉新
authored
|
123
|
>
|
陈嘉新
authored
|
124
125
126
127
128
|
<el-button
class="T1"
icon="el-icon-download"
size="small"
@click="ExportList()"
|
陈嘉新
authored
|
129
|
>{{ $t("taskManage.export") }}</el-button
|
陈嘉新
authored
|
130
|
>
|
陈嘉新
authored
|
131
132
|
</el-form-item>
<el-form-item>
|
陈嘉新
authored
|
133
134
135
136
137
|
<el-button
class="T1"
size="small"
type="danger"
@click="forceComplete()"
|
陈嘉新
authored
|
138
|
>{{ $t("taskManage.ForcedCompletion") }}</el-button
|
陈嘉新
authored
|
139
|
>
|
陈嘉新
authored
|
140
141
142
143
144
|
<el-button
class="T1"
size="small"
type="warning"
@click="maintenance()"
|
陈嘉新
authored
|
145
|
>{{ $t("taskManage.maintenance") }}</el-button
|
陈嘉新
authored
|
146
147
148
|
>
</el-form-item>
<el-form-item>
|
陈嘉新
authored
|
149
150
151
|
<el-button class="T1" size="small" @click="logoReset()">{{
$t("taskManage.LogoReset")
}}</el-button>
|
陈嘉新
authored
|
152
153
|
</el-form-item>
</el-form>
|
陈嘉新
authored
|
154
155
156
157
|
</div>
<div class="dv-container-right">
<el-table
v-loading="listLoading"
|
陈嘉新
authored
|
158
|
:data="sysTable"
|
陈嘉新
authored
|
159
160
|
element-loading-text="Loading"
border
|
陈嘉新
authored
|
161
162
|
stripe
:height="TableHeight"
|
陈嘉新
authored
|
163
|
@selection-change="handleSelectionChange"
|
陈嘉新
authored
|
164
|
:header-cell-style="{ color: '#000000' }"
|
陈嘉新
authored
|
165
|
>
|
陈嘉新
authored
|
166
167
|
<el-table-column type="selection" align="center" width="55">
</el-table-column>
|
陈嘉新
authored
|
168
|
<el-table-column align="center" :label="$t('taskManage.internal')">
|
陈嘉新
authored
|
169
|
<template slot-scope="scope">
|
陈嘉新
authored
|
170
|
{{ scope.row.id }}
|
陈嘉新
authored
|
171
172
|
</template>
</el-table-column>
|
陈嘉新
authored
|
173
|
<el-table-column :label="$t('taskManage.remoteTask')" width="100">
|
陈嘉新
authored
|
174
|
<template slot-scope="scope">
|
陈嘉新
authored
|
175
|
{{ scope.row.remoteTask }}
|
陈嘉新
authored
|
176
177
|
</template>
</el-table-column>
|
陈嘉新
authored
|
178
|
<el-table-column :label="$t('taskManage.RemotePreTask')" width="130">
|
陈嘉新
authored
|
179
|
<template slot-scope="scope">
|
陈嘉新
authored
|
180
|
{{ scope.row.preRemoteTask }}
|
陈嘉新
authored
|
181
182
|
</template>
</el-table-column>
|
陈嘉新
authored
|
183
|
<el-table-column :label="$t('taskManage.container')" width="100">
|
陈嘉新
authored
|
184
|
<template slot-scope="scope">
|
陈嘉新
authored
|
185
|
{{ scope.row.barcode }}
|
陈嘉新
authored
|
186
187
|
</template>
</el-table-column>
|
陈嘉新
authored
|
188
|
<el-table-column :label="$t('taskManage.TaskType')" width="100">
|
陈嘉新
authored
|
189
|
<template slot-scope="scope">
|
陈嘉新
authored
|
190
|
{{ scope.row.type }}
|
陈嘉新
authored
|
191
192
|
</template>
</el-table-column>
|
陈嘉新
authored
|
193
|
<el-table-column :label="$t('taskManage.status')">
|
陈嘉新
authored
|
194
|
<template slot-scope="scope">
|
陈嘉新
authored
|
195
|
{{ scope.row.status }}
|
陈嘉新
authored
|
196
197
|
</template>
</el-table-column>
|
陈嘉新
authored
|
198
|
<el-table-column :label="$t('taskManage.form')">
|
陈嘉新
authored
|
199
|
<template slot-scope="scope">
|
陈嘉新
authored
|
200
|
{{ scope.row.from }}
|
陈嘉新
authored
|
201
202
|
</template>
</el-table-column>
|
陈嘉新
authored
|
203
|
<el-table-column :label="$t('taskManage.to')">
|
陈嘉新
authored
|
204
|
<template slot-scope="scope">
|
陈嘉新
authored
|
205
|
{{ scope.row.to }}
|
陈嘉新
authored
|
206
207
|
</template>
</el-table-column>
|
陈嘉新
authored
|
208
|
<el-table-column :label="$t('taskManage.RoutePoint')" width="120">
|
陈嘉新
authored
|
209
|
<template slot-scope="scope">
|
陈嘉新
authored
|
210
|
{{ scope.row.approachPoint }}
|
陈嘉新
authored
|
211
212
|
</template>
</el-table-column>
|
陈嘉新
authored
|
213
|
<el-table-column :label="$t('taskManage.currentNode')" width="120">
|
陈嘉新
authored
|
214
|
<template slot-scope="scope">
|
陈嘉新
authored
|
215
|
{{ scope.row.current }}
|
陈嘉新
authored
|
216
217
|
</template>
</el-table-column>
|
陈嘉新
authored
|
218
|
<el-table-column :label="$t('taskManage.priority')">
|
陈嘉新
authored
|
219
|
<template slot-scope="scope">
|
陈嘉新
authored
|
220
|
{{ scope.row.priority }}
|
陈嘉新
authored
|
221
222
|
</template>
</el-table-column>
|
陈嘉新
authored
|
223
|
<el-table-column :label="$t('taskManage.stage')">
|
陈嘉新
authored
|
224
|
<template slot-scope="scope">
|
陈嘉新
authored
|
225
|
{{ scope.row.mStage }}
|
陈嘉新
authored
|
226
227
|
</template>
</el-table-column>
|
陈嘉新
authored
|
228
|
<el-table-column :label="$t('taskManage.TaskFeedback')" width="120">
|
陈嘉新
authored
|
229
|
<template slot-scope="scope">
|
陈嘉新
authored
|
230
|
{{ scope.row.commit }}
|
陈嘉新
authored
|
231
232
|
</template>
</el-table-column>
|
陈嘉新
authored
|
233
|
<el-table-column :label="$t('taskManage.length')">
|
陈嘉新
authored
|
234
|
<template slot-scope="scope">
|
陈嘉新
authored
|
235
|
{{ scope.row.length }}
|
陈嘉新
authored
|
236
237
|
</template>
</el-table-column>
|
陈嘉新
authored
|
238
|
<el-table-column :label="$t('taskManage.width')">
|
陈嘉新
authored
|
239
|
<template slot-scope="scope">
|
陈嘉新
authored
|
240
|
{{ scope.row.width }}
|
陈嘉新
authored
|
241
242
|
</template>
</el-table-column>
|
陈嘉新
authored
|
243
|
<el-table-column :label="$t('taskManage.height')">
|
陈嘉新
authored
|
244
|
<template slot-scope="scope">
|
陈嘉新
authored
|
245
|
{{ scope.row.height }}
|
陈嘉新
authored
|
246
247
|
</template>
</el-table-column>
|
陈嘉新
authored
|
248
|
<el-table-column :label="$t('taskManage.weight')">
|
陈嘉新
authored
|
249
|
<template slot-scope="scope">
|
陈嘉新
authored
|
250
|
{{ scope.row.weight }}
|
陈嘉新
authored
|
251
252
|
</template>
</el-table-column>
|
陈嘉新
authored
|
253
|
<el-table-column :label="$t('taskManage.goodsType')" width="100">
|
陈嘉新
authored
|
254
|
<template slot-scope="scope">
|
陈嘉新
authored
|
255
|
{{ scope.row.goodsType }}
|
陈嘉新
authored
|
256
257
|
</template>
</el-table-column>
|
陈嘉新
authored
|
258
|
<el-table-column :label="$t('taskManage.warehouseCode')" width="100">
|
陈嘉新
authored
|
259
|
<template slot-scope="scope">
|
陈嘉新
authored
|
260
|
{{ scope.row.warehouseCode }}
|
陈嘉新
authored
|
261
262
|
</template>
</el-table-column>
|
陈嘉新
authored
|
263
|
<el-table-column :label="$t('taskManage.completeTime')" width="160">
|
陈嘉新
authored
|
264
|
<template slot-scope="scope">
|
陈嘉新
authored
|
265
|
{{ scope.row.completeTime }}
|
陈嘉新
authored
|
266
267
|
</template>
</el-table-column>
|
陈嘉新
authored
|
268
|
<el-table-column :label="$t('taskManage.createdTime')" width="160">
|
陈嘉新
authored
|
269
|
<template slot-scope="scope">
|
陈嘉新
authored
|
270
|
{{ scope.row.created }}
|
陈嘉新
authored
|
271
272
|
</template>
</el-table-column>
|
陈嘉新
authored
|
273
|
<el-table-column :label="$t('taskManage.founder')">
|
陈嘉新
authored
|
274
|
<template slot-scope="scope">
|
陈嘉新
authored
|
275
|
{{ scope.row.createdBy }}
|
陈嘉新
authored
|
276
277
|
</template>
</el-table-column>
|
陈嘉新
authored
|
278
|
<el-table-column :label="$t('taskManage.updateTime')" width="160">
|
陈嘉新
authored
|
279
|
<template slot-scope="scope">
|
陈嘉新
authored
|
280
|
{{ scope.row.updated }}
|
陈嘉新
authored
|
281
282
|
</template>
</el-table-column>
|
陈嘉新
authored
|
283
|
<el-table-column :label="$t('taskManage.UpdatePerson')">
|
陈嘉新
authored
|
284
|
<template slot-scope="scope">
|
陈嘉新
authored
|
285
|
{{ scope.row.updatedBy }}
|
陈嘉新
authored
|
286
287
|
</template>
</el-table-column>
|
陈嘉新
authored
|
288
|
</el-table>
|
陈嘉新
authored
|
289
290
291
|
<!-- 分页 -->
<div class="pagination-container">
<el-pagination
|
陈嘉新
authored
|
292
293
294
295
|
style="margin-top: 15px"
align="center"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
|
陈嘉新
authored
|
296
|
:current-page="queryConfig.currentPage"
|
陈嘉新
authored
|
297
|
:page-sizes="[20, 50, 100]"
|
陈嘉新
authored
|
298
|
:page-size="queryConfig.pageSize"
|
陈嘉新
authored
|
299
|
layout="total, sizes, prev, pager, next, jumper"
|
陈嘉新
authored
|
300
|
:total="total"
|
陈嘉新
authored
|
301
|
/>
|
陈嘉新
authored
|
302
|
</div>
|
陈嘉新
authored
|
303
|
</div>
|
陈嘉新
authored
|
304
|
<!-- 新增弹框 -->
|
陈嘉新
authored
|
305
306
307
|
<el-dialog
title="主任务新增"
:visible.sync="dialogFormVisible"
|
陈嘉新
authored
|
308
|
width="30%"
|
陈嘉新
authored
|
309
|
>
|
陈嘉新
authored
|
310
|
<el-form label-width="120px">
|
陈嘉新
authored
|
311
312
|
<el-row :gutter="20">
<el-col :span="12">
|
陈嘉新
authored
|
313
314
315
316
317
|
<el-form-item label="任务类型">
<el-select
v-model="elAddDialog.type"
placeholder="请选择任务类型"
>
|
陈嘉新
authored
|
318
319
320
321
322
323
324
325
326
327
|
<el-option
v-for="item in optionsAdd"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
|
陈嘉新
authored
|
328
329
330
331
332
|
<el-form-item label="优先级">
<el-input
v-model="elAddDialog.priority"
placeholder="请选择优先级"
/>
|
陈嘉新
authored
|
333
334
335
336
337
|
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
|
陈嘉新
authored
|
338
339
340
341
342
|
<el-form-item label="容器号">
<el-input
v-model="elAddDialog.barcode"
placeholder="请选择容器号"
/>
|
陈嘉新
authored
|
343
344
345
346
|
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="起点">
|
陈嘉新
authored
|
347
|
<el-input v-model="elAddDialog.from" placeholder="请选择起点" />
|
陈嘉新
authored
|
348
349
350
351
352
|
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
|
陈嘉新
authored
|
353
354
355
356
357
|
<el-form-item label="途径点">
<el-input
v-model="elAddDialog.approachPoint"
placeholder="请选择途径点"
/>
|
陈嘉新
authored
|
358
359
360
|
</el-form-item>
</el-col>
<el-col :span="12">
|
陈嘉新
authored
|
361
362
|
<el-form-item label="终点">
<el-input v-model="elAddDialog.to" placeholder="请选择终点" />
|
陈嘉新
authored
|
363
364
365
366
367
|
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
|
陈嘉新
authored
|
368
|
<el-form-item label="仓库">
|
陈嘉新
authored
|
369
370
371
|
<el-input
v-model="elAddDialog.warehouseCode"
:disabled="true"
|
陈嘉新
authored
|
372
|
placeholder="请选择仓库"
|
|
373
|
/>
|
陈嘉新
authored
|
374
375
376
377
378
379
380
|
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label=""> </el-form-item>
</el-col>
</el-row>
</el-form>
|
陈嘉新
authored
|
381
|
<div slot="footer" class="dialog-footer">
|
陈嘉新
authored
|
382
|
<el-button type="primary" @click="taskAdd()">创 建</el-button>
|
陈嘉新
authored
|
383
|
<el-button @click="close()">取 消</el-button>
|
陈嘉新
authored
|
384
385
|
</div>
</el-dialog>
|
陈嘉新
authored
|
386
|
<!-- 维护弹框 -->
|
陈嘉新
authored
|
387
388
389
390
391
|
<el-dialog
title="主任务维护"
:visible.sync="dialogFormVisibleTwo"
:showClose="false"
>
|
陈嘉新
authored
|
392
393
|
<div class="containerTwo">
<div class="box1">
|
陈嘉新
authored
|
394
|
<div class="dv-title" style="margin-left: 10px">
|
陈嘉新
authored
|
395
396
|
当前任务号:{{ elMaintenance.id
}}<el-button @click="reset()" class="T1" style="margin-left: 10px"
|
陈嘉新
authored
|
397
398
399
400
|
>重置所有</el-button
>
</div>
<div></div>
|
陈嘉新
authored
|
401
402
403
|
</div>
<div class="box2">
<div class="small-box">
|
陈嘉新
authored
|
404
|
<div class="dv-title">远程任务维护</div>
|
陈嘉新
authored
|
405
406
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
407
408
|
<div class="dv-maintenance-text">远程任务号:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
409
410
411
412
|
<el-input
v-model="elMaintenance.remoteTask"
placeholder="请选择远程任务号"
/>
|
陈嘉新
authored
|
413
|
</div>
|
陈嘉新
authored
|
414
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
415
416
417
|
<el-button class="T1" @click="remoteTaskModify()"
>修改</el-button
>
|
陈嘉新
authored
|
418
419
420
|
</div>
</div>
<div class="inner-inner-box2">
|
陈嘉新
authored
|
421
422
|
<div class="dv-maintenance-text">前置远程任务号:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
423
424
425
426
|
<el-input
v-model="elMaintenance.preRemoteTask"
placeholder="请选择前置远程任务号"
/>
|
陈嘉新
authored
|
427
|
</div>
|
陈嘉新
authored
|
428
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
429
430
431
|
<el-button class="T1" @click="preRemoteTaskModify()"
>修改</el-button
>
|
陈嘉新
authored
|
432
433
434
435
436
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
437
|
<div class="dv-title">位置维护</div>
|
陈嘉新
authored
|
438
439
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
440
441
|
<div class="dv-maintenance-text">起点:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
442
443
444
445
|
<el-input
v-model="elMaintenance.from"
placeholder="请选择起点"
/>
|
陈嘉新
authored
|
446
|
</div>
|
陈嘉新
authored
|
447
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
448
|
<el-button class="T1" @click="formModify()">修改</el-button>
|
陈嘉新
authored
|
449
450
451
|
</div>
</div>
<div class="inner-inner-box2">
|
陈嘉新
authored
|
452
453
|
<div class="dv-maintenance-text">终点:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
454
455
456
457
|
<el-input
v-model="elMaintenance.to"
placeholder="请选择终点"
/>
|
陈嘉新
authored
|
458
|
</div>
|
陈嘉新
authored
|
459
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
460
|
<el-button class="T1" @click="toModify()">修改</el-button>
|
陈嘉新
authored
|
461
462
463
464
465
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
466
|
<div class="dv-title">阶段维护</div>
|
陈嘉新
authored
|
467
468
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
469
470
|
<div class="dv-maintenance-text">任务执行阶段:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
471
472
|
<el-select
v-model="elMaintenance.mStage"
|
陈嘉新
authored
|
473
|
placeholder="请选择任务执行阶段"
|
陈嘉新
authored
|
474
475
476
477
478
479
480
481
|
>
<el-option
v-for="item in optionsStage"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
|
陈嘉新
authored
|
482
|
</div>
|
陈嘉新
authored
|
483
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
484
485
486
|
<el-button class="T1" @click="mStageModify()"
>修改</el-button
>
|
陈嘉新
authored
|
487
488
489
490
491
492
|
</div>
</div>
<div class="inner-inner-box2"></div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
493
|
<div class="dv-title">途径点维护</div>
|
陈嘉新
authored
|
494
495
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
496
497
|
<div class="dv-maintenance-text">途径点:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
498
|
<el-select
|
陈嘉新
authored
|
499
500
|
v-model="elMaintenance.approachPoint"
multiple
|
陈嘉新
authored
|
501
|
placeholder="请选择途径点"
|
陈嘉新
authored
|
502
503
504
505
506
507
|
>
<el-option
v-for="item in optionsPick"
:key="item.value"
:label="item.label"
:value="item.value"
|
陈嘉新
authored
|
508
509
|
>
</el-option>
|
陈嘉新
authored
|
510
|
</el-select>
|
陈嘉新
authored
|
511
|
</div>
|
陈嘉新
authored
|
512
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
513
514
515
|
<el-button class="T1" @click="approachPointModify()"
>修改</el-button
>
|
陈嘉新
authored
|
516
517
518
519
520
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
521
|
<div class="dv-title">状态维护</div>
|
陈嘉新
authored
|
522
523
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
524
525
|
<div class="dv-maintenance-text">任务状态:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
526
527
|
<el-select
v-model="elMaintenance.status"
|
陈嘉新
authored
|
528
|
placeholder="请选择任务状态"
|
陈嘉新
authored
|
529
530
531
532
533
534
535
536
|
>
<el-option
v-for="item in optionsStatus"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
|
陈嘉新
authored
|
537
|
</div>
|
陈嘉新
authored
|
538
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
539
540
541
|
<el-button class="T1" @click="statusModify()"
>修改</el-button
>
|
陈嘉新
authored
|
542
543
544
545
546
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
547
|
<div class="dv-title">优先级维护</div>
|
陈嘉新
authored
|
548
549
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
550
551
|
<div class="dv-maintenance-text">优先级:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
552
553
554
555
|
<el-input
v-model="elMaintenance.priority"
placeholder="请选择优先级"
/>
|
陈嘉新
authored
|
556
|
</div>
|
陈嘉新
authored
|
557
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
558
559
560
|
<el-button class="T1" @click="priorityModify()"
>修改</el-button
>
|
陈嘉新
authored
|
561
562
563
564
565
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
566
|
<div class="dv-title">当前设备维护</div>
|
陈嘉新
authored
|
567
568
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
569
570
|
<div class="dv-maintenance-text">当前设备:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
571
572
|
<el-select
v-model="elMaintenance.current"
|
陈嘉新
authored
|
573
|
placeholder="请选择当前设备"
|
陈嘉新
authored
|
574
575
576
577
578
579
580
581
|
>
<el-option
v-for="item in optionsDevice"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
|
陈嘉新
authored
|
582
|
</div>
|
陈嘉新
authored
|
583
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
584
585
586
|
<el-button class="T1" @click="currentModify()"
>修改</el-button
>
|
陈嘉新
authored
|
587
588
589
590
591
|
</div>
</div>
</div>
</div>
<div class="small-box">
|
陈嘉新
authored
|
592
|
<div class="dv-title">回传维护</div>
|
陈嘉新
authored
|
593
594
|
<div class="inner-box2">
<div class="inner-inner-box1">
|
陈嘉新
authored
|
595
596
|
<div class="dv-maintenance-text">任务回传:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
597
598
|
<el-select
v-model="elMaintenance.commit"
|
陈嘉新
authored
|
599
|
placeholder="请选择任务回传"
|
陈嘉新
authored
|
600
601
602
603
604
605
606
607
|
>
<el-option
v-for="item in optionsCommitd"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
|
陈嘉新
authored
|
608
|
</div>
|
陈嘉新
authored
|
609
|
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
610
611
612
|
<el-button class="T1" @click="commitModify()"
>修改</el-button
>
|
陈嘉新
authored
|
613
614
615
616
617
|
</div>
</div>
</div>
</div>
</div>
|
陈嘉新
authored
|
618
619
620
621
622
623
|
<div class="box3">
<div class="dv-title">货物类别维护</div>
<div class="dv-maintenance2">
<div class="dv-maintenance2-left">
<div class="dv-maintenance-text">长:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
624
625
626
627
|
<el-input
v-model="elMaintenance.length"
placeholder="请选择长"
/>
|
陈嘉新
authored
|
628
629
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
630
|
<el-button class="T1" @click="lengthModify()">修改</el-button>
|
陈嘉新
authored
|
631
632
633
634
635
|
</div>
</div>
<div class="dv-maintenance2-right">
<div class="dv-maintenance-text">宽:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
636
637
638
639
|
<el-input
v-model="elMaintenance.width"
placeholder="请选择宽"
/>
|
陈嘉新
authored
|
640
641
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
642
|
<el-button class="T1" @click="widthModify()">修改</el-button>
|
陈嘉新
authored
|
643
644
645
646
647
648
649
|
</div>
</div>
</div>
<div class="dv-maintenance3">
<div class="dv-maintenance3-left">
<div class="dv-maintenance-text">高:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
650
651
652
653
|
<el-input
v-model="elMaintenance.height"
placeholder="请选择高"
/>
|
陈嘉新
authored
|
654
655
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
656
|
<el-button class="T1" @click="heightModify()">修改</el-button>
|
陈嘉新
authored
|
657
658
659
660
661
|
</div>
</div>
<div class="dv-maintenance3-right">
<div class="dv-maintenance-text">重:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
662
663
664
665
|
<el-input
v-model="elMaintenance.weight"
placeholder="请选择重"
/>
|
陈嘉新
authored
|
666
667
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
668
|
<el-button class="T1" @click="weightModify()">修改</el-button>
|
陈嘉新
authored
|
669
670
671
672
673
674
|
</div>
</div>
</div>
<div class="dv-maintenance4">
<div class="dv-maintenance-text">货物类型:</div>
<div class="dv-maintenance-text2">
|
陈嘉新
authored
|
675
676
677
678
|
<el-input
v-model="elMaintenance.goodsType"
placeholder="请选择货物类型"
/>
|
陈嘉新
authored
|
679
680
|
</div>
<div class="dv-maintenance-text3">
|
陈嘉新
authored
|
681
682
683
|
<el-button class="T1" @click="goodsTypeModify()"
>修改</el-button
>
|
陈嘉新
authored
|
684
685
686
|
</div>
</div>
</div>
|
陈嘉新
authored
|
687
688
|
</div>
<div slot="footer" class="dialog-footer">
|
陈嘉新
authored
|
689
|
<el-button @click="close()">取 消</el-button>
|
陈嘉新
authored
|
690
691
|
</div>
</el-dialog>
|
陈嘉新
authored
|
692
693
694
695
696
|
</div>
</div>
</template>
<script>
|
陈嘉新
authored
|
697
698
699
700
701
702
703
|
import {
getHostType,
getTableList,
AddMTask,
DeleteTaskByIds,
SendTaskToWCS,
CompleteTask,
|
陈嘉新
authored
|
704
|
GetMTaskById,
|
陈嘉新
authored
|
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
|
RemoteTaskEdit,
PreRemoteTaskEdit,
FromEdit,
ToEdit,
PriorityEdit,
LengthEdit,
WidthEdit,
HeightEdit,
WeightEdit,
GoodsTypeEdit,
MStageEdit,
ApproachPointEdit,
StatusEdit,
CurrentEdit,
CommitEdit,
|
陈嘉新
authored
|
720
|
ResetTaskCommitFlag,
|
陈嘉新
authored
|
721
|
} from "@/api/taskManagement/host";
|
陈嘉新
authored
|
722
|
import downloadFile from "@/api/user";
|
陈嘉新
authored
|
723
724
725
|
export default {
data() {
return {
|
陈嘉新
authored
|
726
727
728
729
|
sysTable: [],
// 查询条件
queryConfig: {
currentPage: 1,
|
陈嘉新
authored
|
730
|
pageSize: 20,
|
陈嘉新
authored
|
731
732
733
734
735
|
taskNumber: "",
remoteTask: "",
barcode: "",
from: "",
to: "",
|
陈嘉新
authored
|
736
|
},
|
陈嘉新
authored
|
737
738
739
740
|
//新增参数
elAddDialog: {
remoteTask: "",
preRemoteTask: "",
|
陈嘉新
authored
|
741
|
type: "",
|
陈嘉新
authored
|
742
|
from: "",
|
陈嘉新
authored
|
743
|
to: "",
|
陈嘉新
authored
|
744
|
approachPoint: "",
|
陈嘉新
authored
|
745
746
|
barcode: "",
priority: 0,
|
陈嘉新
authored
|
747
|
warehouseCode: "CS0001",
|
陈嘉新
authored
|
748
749
|
platform: "WCS",
},
|
陈嘉新
authored
|
750
|
//维护弹出层条件
|
陈嘉新
authored
|
751
|
elMaintenance: {},
|
陈嘉新
authored
|
752
|
total: 0,
|
陈嘉新
authored
|
753
|
listLoading: false,
|
陈嘉新
authored
|
754
|
dialogFormVisible: false,
|
陈嘉新
authored
|
755
756
|
dialogFormVisibleTwo: false,
name: "",
|
陈嘉新
authored
|
757
758
|
options: [
{
|
陈嘉新
authored
|
759
760
761
|
value: "",
label: "全部",
},
|
陈嘉新
authored
|
762
|
],
|
陈嘉新
authored
|
763
|
optionsAdd: [],
|
陈嘉新
authored
|
764
765
766
767
768
|
optionsCommitd: [],
optionsStatus: [],
optionsStage: [],
optionsDevice: [],
optionsPick: [],
|
陈嘉新
authored
|
769
|
value: "",
|
陈嘉新
authored
|
770
771
|
form: {
startTime: this.$moment()
|
陈嘉新
authored
|
772
773
774
|
.subtract(7, "days")
.format("YYYY-MM-DD 00:00:00"),
endTime: this.$moment().add(1, "days").format("YYYY-MM-DD 23:59:59"),
|
陈嘉新
authored
|
775
|
},
|
陈嘉新
authored
|
776
|
multipleSelection: [],
|
陈嘉新
authored
|
777
|
userCode: "",
|
陈嘉新
authored
|
778
|
export: "http://localhost:5221/api/MTask/ExportMTask",
|
陈嘉新
authored
|
779
|
};
|
陈嘉新
authored
|
780
781
|
},
created() {
|
陈嘉新
authored
|
782
|
this.dictionary("MTaskStatus", 1);
|
陈嘉新
authored
|
783
|
this.getTableList();
|
陈嘉新
authored
|
784
|
this.userCode = this.$store.state.user.name;
|
陈嘉新
authored
|
785
|
},
|
陈嘉新
authored
|
786
787
788
789
790
|
computed: {
TableHeight() {
return `calc(100vh - 200px )`;
},
},
|
陈嘉新
authored
|
791
|
methods: {
|
陈嘉新
authored
|
792
793
|
//字典表数据
dictionary(data, key) {
|
陈嘉新
authored
|
794
795
796
797
798
|
this.optionsCommitd = [];
this.optionsStatus = [];
this.optionsStage = [];
this.optionsDevice = [];
this.optionsPick = [];
|
陈嘉新
authored
|
799
|
this.optionsAdd = [];
|
陈嘉新
authored
|
800
801
802
803
804
805
|
let params = { Code: data };
getHostType(params).then((response) => {
response.data.dictDetails.forEach((x) => {
if (data == "CommitFlags") {
this.optionsCommitd.push({ value: x.code, label: x.name });
} else if (data == "MTaskStatus") {
|
陈嘉新
authored
|
806
807
808
809
810
|
if (key == 1) {
this.options.push({ value: x.code, label: x.name });
} else {
this.optionsStatus.push({ value: x.code, label: x.name });
}
|
陈嘉新
authored
|
811
812
813
814
815
816
817
818
819
820
821
822
823
824
|
} else if (data == "MTaskStage") {
this.optionsStage.push({ value: x.code, label: x.name });
} else if (data == "SRM") {
this.optionsDevice.push({ value: x.code, label: x.name });
} else if (data == "SRMInStation") {
this.optionsDevice.push({ value: x.code, label: x.name });
} else if (data == "SRMOutStation") {
this.optionsDevice.push({ value: x.code, label: x.name });
} else if (data == "SRMInOrOutStation") {
this.optionsDevice.push({ value: x.code, label: x.name });
} else if (data == "PickPort") {
this.optionsPick.push({ value: x.code, label: x.name });
} else if (data == "OutPort") {
this.optionsPick.push({ value: x.code, label: x.name });
|
陈嘉新
authored
|
825
826
827
828
829
|
} else if (data == "MTaskType") {
this.optionsAdd.push({ value: x.code, label: x.name });
if (this.optionsAdd.length > 0) {
this.elAddDialog.type = this.optionsAdd[0].value;
}
|
陈嘉新
authored
|
830
831
832
833
|
}
});
});
},
|
陈嘉新
authored
|
834
|
//查询按钮
|
陈嘉新
authored
|
835
|
btnAction() {
|
陈嘉新
authored
|
836
|
this.getTableList();
|
陈嘉新
authored
|
837
|
},
|
陈嘉新
authored
|
838
|
//新增按钮
|
陈嘉新
authored
|
839
|
btnAdd() {
|
陈嘉新
authored
|
840
|
this.dictionary("MTaskType");
|
陈嘉新
authored
|
841
|
this.dialogFormVisible = true;
|
陈嘉新
authored
|
842
|
},
|
陈嘉新
authored
|
843
844
845
846
|
//新增创建按钮
taskAdd() {
const params = this.elAddDialog;
this.listLoading = true;
|
陈嘉新
authored
|
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
|
AddMTask(params).then((response) => {
if (response.code == "Success") {
this.getTableList();
this.$message({
message: "恭喜你,这是一条成功消息",
type: "success",
});
}
});
},
//删除按钮
deleteData() {
if (this.multipleSelection.length == 0) {
this.$alert("请选择最少一条数据!", "标题名称", {
confirmButtonText: "确定",
});
} else {
let prams = [];
this.multipleSelection.forEach((x) => {
prams.push(x.id);
});
DeleteTaskByIds(prams).then((response) => {
if (response.code == "Success") {
this.getTableList();
|
陈嘉新
authored
|
871
|
this.messge(response);
|
陈嘉新
authored
|
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
|
}
});
}
},
//下发按钮
issued() {
if (this.multipleSelection.length == 0) {
this.$alert("请选择最少一条数据!", "标题名称", {
confirmButtonText: "确定",
});
} else {
let prams = [];
this.multipleSelection.forEach((x) => {
prams.push(x.id);
});
SendTaskToWCS(prams).then((response) => {
if (response.code == "Success") {
this.getTableList();
|
陈嘉新
authored
|
890
|
this.messge(response);
|
陈嘉新
authored
|
891
892
893
894
895
896
897
898
899
|
}
});
}
},
//导出按钮
ExportList() {
const params = {
pageNumber: this.queryConfig.currentPage,
perPageCount: this.queryConfig.pageSize,
|
陈嘉新
authored
|
900
901
902
903
904
905
906
907
908
909
|
queryConfig: {
taskNo: this.queryConfig.taskNumber,
remoteTask: this.queryConfig.remoteTask,
barcode: this.queryConfig.barcode,
from: this.queryConfig.from,
to: this.queryConfig.to,
taskStatus: this.value,
begin: this.form.startTime,
end: this.form.endTime,
},
|
陈嘉新
authored
|
910
|
};
|
陈嘉新
authored
|
911
912
913
|
let text = "主任务数据.xlsx";
// 调用下载函数
downloadFile(this.export, params, text);
|
陈嘉新
authored
|
914
915
|
},
//获取表格行数据
|
陈嘉新
authored
|
916
917
|
handleSelectionChange(val) {
this.multipleSelection = val;
|
陈嘉新
authored
|
918
919
920
|
},
// 表格数据
getTableList() {
|
|
921
|
const params = {
|
陈嘉新
authored
|
922
923
|
pageNumber: this.queryConfig.currentPage,
perPageCount: this.queryConfig.pageSize,
|
陈嘉新
authored
|
924
925
926
927
928
929
930
931
932
933
|
queryConfig: {
taskNo: this.queryConfig.taskNumber,
remoteTask: this.queryConfig.remoteTask,
barcode: this.queryConfig.barcode,
from: this.queryConfig.from,
to: this.queryConfig.to,
taskStatus: this.value,
begin: this.form.startTime,
end: this.form.endTime,
},
|
陈嘉新
authored
|
934
|
};
|
陈嘉新
authored
|
935
|
this.listLoading = true;
|
陈嘉新
authored
|
936
|
getTableList(params).then((response) => {
|
陈嘉新
authored
|
937
|
this.total = response.data.totalCount;
|
陈嘉新
authored
|
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
|
response.data.data.forEach((x) => {
switch (x.mStage) {
case 0:
x.mStage = "入库";
break;
case 1:
x.mStage = "出库";
break;
case 2:
x.mStage = "库内";
break;
default:
break;
}
switch (x.type) {
case 0:
x.type = "入库";
break;
case 1:
x.type = "出库";
break;
case 2:
x.type = "移库";
break;
case 4:
x.type = "换站";
break;
case 8:
x.type = "分拣";
break;
default:
break;
}
switch (x.commit) {
case 0:
x.commit = "未提交";
break;
case 1:
x.commit = "已提交";
break;
case 2:
x.commit = "无需提交";
break;
case 3:
x.commit = "提交失败";
break;
default:
break;
}
switch (x.status) {
case 0:
x.status = "任务创建";
break;
case 10:
x.status = "任务下发";
break;
case 20:
x.status = "堆垛机任务创建";
break;
case 30:
x.status = "堆垛机任务完成";
break;
case 40:
x.status = "响应接出口请求";
break;
case 50:
x.status = "到达分拣口";
break;
case 60:
x.status = "分拣回库中";
break;
case 70:
x.status = "响应接入位置到达";
break;
case 100:
x.status = "任务完成";
break;
case 130:
x.status = "任务异常结束";
break;
case "UnCompleted":
x.status = "任务未完成";
break;
default:
break;
}
});
|
陈嘉新
authored
|
1025
|
this.sysTable = response.data.data;
|
陈嘉新
authored
|
1026
|
this.listLoading = false;
|
陈嘉新
authored
|
1027
1028
1029
1030
1031
|
});
},
// 强制完成按钮
forceComplete() {
if (this.multipleSelection.length == 1) {
|
陈嘉新
authored
|
1032
1033
1034
1035
1036
1037
|
let prams = {
id: this.multipleSelection[0].id,
};
CompleteTask(prams).then((response) => {
if (response.code == "Success") {
this.getTableList();
|
陈嘉新
authored
|
1038
|
this.messge(response);
|
陈嘉新
authored
|
1039
1040
|
}
});
|
陈嘉新
authored
|
1041
1042
1043
1044
|
} else {
this.elAlert();
}
},
|
陈嘉新
authored
|
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
|
//回传标志重置
logoReset() {
this.$alert("是否重置所有回传失败的任务标志", "标题名称", {
confirmButtonText: "确定",
callback: (action) => {
let prams = {
warehouseCode: this.elAddDialog.warehouseCode,
};
ResetTaskCommitFlag(prams).then((response) => {
if (response.code == "Success") {
this.$message({
type: "info",
message: `重置成功!`,
});
}
});
},
});
},
|
陈嘉新
authored
|
1064
|
// 维护按钮
|
陈嘉新
authored
|
1065
|
maintenance() {
|
陈嘉新
authored
|
1066
|
if (this.multipleSelection.length == 1) {
|
陈嘉新
authored
|
1067
1068
1069
|
this.dictionary("CommitFlags");
this.dictionary("MTaskStatus");
this.dictionary("MTaskStage");
|
陈嘉新
authored
|
1070
|
|
陈嘉新
authored
|
1071
1072
1073
1074
|
this.dictionary("SRM");
this.dictionary("SRMInStation");
this.dictionary("SRMOutStation");
this.dictionary("SRMInOrOutStation");
|
陈嘉新
authored
|
1075
|
|
陈嘉新
authored
|
1076
1077
|
this.dictionary("PickPort");
this.dictionary("OutPort");
|
陈嘉新
authored
|
1078
1079
1080
1081
1082
|
let params = {
id: this.multipleSelection[0].id,
};
GetMTaskById(params).then((response) => {
if (response.code == "Success") {
|
陈嘉新
authored
|
1083
1084
1085
1086
|
if (
response.data.approachPoint == "" ||
response.data.approachPoint == null
) {
|
陈嘉新
authored
|
1087
1088
1089
1090
1091
1092
1093
|
response.data.approachPoint = [];
} else {
response.data.approachPoint = response.data.approachPoint
.split(", ")
.map((item) => item.trim());
}
|
陈嘉新
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
|
switch (response.data.mStage) {
case 0:
response.data.mStage = "In";
break;
case 1:
response.data.mStage = "Out";
break;
case 2:
response.data.mStage = "InStore";
break;
default:
break;
}
switch (response.data.commit) {
case 0:
response.data.commit = "Uncommited";
break;
case 1:
response.data.commit = "Commited";
break;
case 2:
response.data.commit = "UnNeedCommit";
break;
case 3:
response.data.commit = "CommitFailure";
break;
default:
break;
}
switch (response.data.status) {
case 0:
response.data.status = "Create";
break;
case 10:
response.data.status = "TaskSend";
break;
case 20:
response.data.status = "SRMTaskCreated";
break;
case 30:
response.data.status = "SRMTaskCompleted";
break;
case 40:
response.data.status = "OutStationRequest";
break;
case 50:
response.data.status = "ArrivePickStation";
break;
case 60:
response.data.status = "PickStationToStore";
break;
case 70:
response.data.status = "InStationArrived";
break;
case 100:
response.data.status = "TaskCompleted";
break;
case 130:
response.data.status = "TaskErrorCompleted";
break;
case "UnCompleted":
response.data.status = "UnCompleted";
break;
default:
break;
}
this.elMaintenance = response.data;
this.dialogFormVisibleTwo = true;
}
});
|
陈嘉新
authored
|
1164
1165
1166
|
} else {
this.elAlert();
}
|
陈嘉新
authored
|
1167
|
},
|
陈嘉新
authored
|
1168
|
//分页
|
陈嘉新
authored
|
1169
1170
|
handleSizeChange(val) {
this.queryConfig.pageSize = val;
|
陈嘉新
authored
|
1171
|
this.queryConfig.currentPage = 1;
|
陈嘉新
authored
|
1172
1173
1174
1175
1176
|
this.getTableList();
},
handleCurrentChange(val) {
this.queryConfig.currentPage = val;
|
陈嘉新
authored
|
1177
1178
|
this.getTableList();
},
|
陈嘉新
authored
|
1179
|
//提示数据
|
陈嘉新
authored
|
1180
1181
1182
1183
1184
|
elAlert() {
this.$alert("请选择一条数据!", "标题名称", {
confirmButtonText: "确定",
});
},
|
陈嘉新
authored
|
1185
|
//维护重置
|
陈嘉新
authored
|
1186
|
reset() {
|
陈嘉新
authored
|
1187
|
this.maintenance();
|
陈嘉新
authored
|
1188
|
},
|
陈嘉新
authored
|
1189
1190
|
//远程任务号
remoteTaskModify() {
|
陈嘉新
authored
|
1191
|
let prams = this.pramsData(this.elMaintenance.remoteTask, 0);
|
陈嘉新
authored
|
1192
1193
1194
1195
1196
1197
1198
1199
|
RemoteTaskEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//前置远程任务号
preRemoteTaskModify() {
|
陈嘉新
authored
|
1200
|
let prams = this.pramsData(this.elMaintenance.preRemoteTask, 0);
|
陈嘉新
authored
|
1201
1202
1203
1204
1205
1206
1207
1208
|
PreRemoteTaskEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//起点
formModify() {
|
陈嘉新
authored
|
1209
|
let prams = this.pramsData(this.elMaintenance.from, 0);
|
陈嘉新
authored
|
1210
1211
1212
1213
1214
1215
1216
1217
|
FromEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//终点
toModify() {
|
陈嘉新
authored
|
1218
|
let prams = this.pramsData(this.elMaintenance.to, 0);
|
陈嘉新
authored
|
1219
1220
1221
1222
1223
1224
1225
1226
|
ToEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//优先级
priorityModify() {
|
陈嘉新
authored
|
1227
|
let prams = this.pramsData(this.elMaintenance.priority, 0);
|
陈嘉新
authored
|
1228
1229
1230
1231
1232
1233
1234
1235
|
PriorityEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//长
lengthModify() {
|
陈嘉新
authored
|
1236
|
let prams = this.pramsData(this.elMaintenance.length, 0);
|
陈嘉新
authored
|
1237
1238
1239
1240
1241
1242
1243
1244
|
LengthEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//宽
widthModify() {
|
陈嘉新
authored
|
1245
|
let prams = this.pramsData(this.elMaintenance.width, 0);
|
陈嘉新
authored
|
1246
1247
1248
1249
1250
1251
1252
1253
|
WidthEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//高
heightModify() {
|
陈嘉新
authored
|
1254
|
let prams = this.pramsData(this.elMaintenance.height, 0);
|
陈嘉新
authored
|
1255
1256
1257
1258
1259
1260
1261
1262
|
HeightEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//重
weightModify() {
|
陈嘉新
authored
|
1263
|
let prams = this.pramsData(this.elMaintenance.weight, 0);
|
陈嘉新
authored
|
1264
1265
1266
1267
1268
1269
1270
1271
|
WeightEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//货物类型
goodsTypeModify() {
|
陈嘉新
authored
|
1272
|
let prams = this.pramsData(this.elMaintenance.goodsType, 0);
|
陈嘉新
authored
|
1273
1274
1275
1276
1277
1278
1279
1280
|
GoodsTypeEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//阶段
mStageModify() {
|
陈嘉新
authored
|
1281
|
let prams = this.pramsData(this.elMaintenance.mStage, 0);
|
陈嘉新
authored
|
1282
1283
1284
1285
1286
1287
1288
1289
|
MStageEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//途径点
approachPointModify() {
|
陈嘉新
authored
|
1290
|
let prams = this.pramsData(this.elMaintenance.approachPoint, 1);
|
陈嘉新
authored
|
1291
1292
1293
1294
1295
1296
1297
1298
|
ApproachPointEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//任务状态
statusModify() {
|
陈嘉新
authored
|
1299
|
let prams = this.pramsData(this.elMaintenance.status, 0);
|
陈嘉新
authored
|
1300
1301
1302
1303
1304
1305
1306
1307
|
StatusEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//当前设备
currentModify() {
|
陈嘉新
authored
|
1308
|
let prams = this.pramsData(this.elMaintenance.current, 0);
|
陈嘉新
authored
|
1309
|
console.log(prams, "prams");
|
陈嘉新
authored
|
1310
1311
1312
1313
1314
1315
1316
1317
|
CurrentEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
//任务回传
commitModify() {
|
陈嘉新
authored
|
1318
|
let prams = this.pramsData(this.elMaintenance.commit, 0);
|
陈嘉新
authored
|
1319
1320
1321
1322
1323
1324
|
CommitEdit(prams).then((response) => {
if (response.code == "Success") {
this.messge(response);
}
});
},
|
陈嘉新
authored
|
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
|
//维护修改参数
pramsData(data, key) {
let item;
if (key == 1) {
let lst = data,
result = lst.join(", ");
item = {
id: this.multipleSelection[0].id,
data: result,
userCode: this.userCode,
};
} else {
item = {
id: this.multipleSelection[0].id,
data: data,
userCode: this.userCode,
};
}
return item;
},
|
陈嘉新
authored
|
1345
1346
1347
1348
1349
1350
|
messge(response) {
this.$message({
message: response.msg,
type: "success",
});
},
|
陈嘉新
authored
|
1351
1352
|
close() {
this.getTableList();
|
陈嘉新
authored
|
1353
|
this.dialogFormVisible = false;
|
陈嘉新
authored
|
1354
1355
|
this.dialogFormVisibleTwo = false;
},
|
陈嘉新
authored
|
1356
1357
|
},
};
|
陈嘉新
authored
|
1358
|
</script>
|
陈嘉新
authored
|
1359
|
<style lang="scss">
|
陈嘉新
authored
|
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
|
::v-deep.el-table thead {
color: #101010;
font-weight: 600;
}
/* 自定义滚动条样式 */
.el-table__body-wrapper {
overflow: auto; /* 使表格内容可滚动 */
}
.el-table__body-wrapper::-webkit-scrollbar {
height: 8px; /* 设置滚动条高度 */
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
background-color: #c0c4cc; /* 滚动条颜色 */
border-radius: 4px; /* 滚动条圆角 */
}
.el-table__body-wrapper::-webkit-scrollbar-track {
background: #f5f7fa; /* 滚动条轨道颜色 */
}
|
陈嘉新
authored
|
1381
1382
1383
1384
1385
1386
1387
1388
|
.app-container-father {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
display: flex;
.dv-container-left {
width: 20%;
|
陈嘉新
authored
|
1389
|
// background-color: #eeeeee;
|
陈嘉新
authored
|
1390
|
height: 85vh;
|
|
1391
|
// border-radius: 7px;
|
陈嘉新
authored
|
1392
|
box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
|
陈嘉新
authored
|
1393
|
overflow: auto;
|
陈嘉新
authored
|
1394
|
}
|
陈嘉新
authored
|
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
|
/* 自定义滚动条样式 */
.dv-container-left::-webkit-scrollbar {
width: 8px; /* 设置滚动条的宽度 */
}
.dv-container-left::-webkit-scrollbar-thumb {
background-color: #c0c4cc; /* 滚动条的颜色 */
border-radius: 4px; /* 滚动条的圆角 */
}
.dv-container-left::-webkit-scrollbar-track {
background: #f5f7fa; /* 滚动条轨道的颜色 */
}
|
陈嘉新
authored
|
1408
1409
1410
1411
|
.dv-container-right {
width: 79%;
height: 88vh;
margin-left: 1%;
|
陈嘉新
authored
|
1412
|
.pagination-container {
|
陈嘉新
authored
|
1413
|
text-align: center; /* 使分页组件靠右 */
|
陈嘉新
authored
|
1414
1415
1416
|
margin-top: 20px; /* 添加顶部间距 */
}
}
|
陈嘉新
authored
|
1417
1418
1419
1420
1421
|
.containerTwo {
width: 100%;
border: 1px solid #ccc; /* 大 div 的边框 */
overflow: auto;
|
陈嘉新
authored
|
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
|
margin-top: -30px;
.dv-title {
height: 30px; /* 第一个子 div 的高度 */
display: flex; /* 使用 Flexbox */
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
font-weight: 700;
}
.dv-maintenance-text {
width: 35%;
height: 100%;
display: flex;
justify-content: flex-end; /* 内容靠右 */
align-items: center; /* 垂直居中 */
}
.dv-maintenance-text2 {
width: 35%;
height: 100%;
display: flex;
justify-content: center; /* 内容靠右 */
align-items: center; /* 垂直居中 */
}
.dv-maintenance-text3 {
width: 30%;
height: 100%;
display: flex;
justify-content: center; /* 内容靠右 */
align-items: center; /* 垂直居中 */
}
|
陈嘉新
authored
|
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
|
}
.box1 {
width: 100%;
height: 50px; /* 修改后的高度 */
display: flex; /* 使用 Flexbox */
flex-wrap: wrap; /* 超出换行 */
align-items: center; /* 垂直居中对齐 */
}
.box2 {
width: 100%;
display: flex; /* 使用 Flexbox */
flex-wrap: wrap; /* 超出换行 */
align-items: center; /* 垂直居中对齐 */
|
陈嘉新
authored
|
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
|
.small-box {
width: 50%; /* 每个小 div 的宽度 */
box-sizing: border-box; /* 包含边框和内边距 */
border: 1px solid #ccc; /* 大 div 的边框 */
}
.inner-box2 {
height: 100px; /* 第二个子 div 的高度 */
display: flex; /* 使用 Flexbox */
flex-direction: column; /* 垂直排列子 div */
}
.inner-inner-box1 {
height: 45%; /* 第一个内层子 div 的高度 */
display: flex; /* 使用 Flexbox */
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
}
.inner-inner-box2 {
height: 50%; /* 第二个内层子 div 的高度 */
display: flex; /* 使用 Flexbox */
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
}
.inner-inner-box3 {
height: 100%; /* 第三个内层子 div 的高度 */
display: flex; /* 使用 Flexbox */
}
|
陈嘉新
authored
|
1490
1491
|
}
.box3 {
|
陈嘉新
authored
|
1492
|
width: 70%;
|
陈嘉新
authored
|
1493
|
height: 100px;
|
陈嘉新
authored
|
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
|
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
|
1544
|
}
|
陈嘉新
authored
|
1545
1546
1547
1548
1549
|
/* 修改复选框大小 */
.el-table .el-checkbox {
transform: scale(1.8) !important; /* 调整大小 */
margin-top: 5px;
}
|
陈嘉新
authored
|
1550
1551
1552
|
.T1 {
border: 1px solid #b3d8ff;
}
|
陈嘉新
authored
|
1553
1554
1555
1556
|
.button-col {
display: flex;
justify-content: flex-end; /* 按钮靠右对齐 */
}
|
陈嘉新
authored
|
1557
1558
|
}
</style>
|