Commit 03959e6b865e3ee7becb37e0006baef7d7b07f4a
1 parent
70b87cb8
任务状态筛选优化
Signed-off-by: TanYibin <5491541@qq.com>
Showing
1 changed file
with
10 additions
and
13 deletions
ant-design-vue-jeecg/src/views/system/task/ShipmentTaskHeaderList.vue
... | ... | @@ -263,8 +263,7 @@ export default { |
263 | 263 | key: 'zoneCode', |
264 | 264 | scopedSlots: {customRender: 'zoneCode'}, |
265 | 265 | filterMultiple: true, |
266 | - filters: [ | |
267 | - ] | |
266 | + filters: [] | |
268 | 267 | }, |
269 | 268 | { |
270 | 269 | title: '起始库位', |
... | ... | @@ -288,13 +287,7 @@ export default { |
288 | 287 | key: 'status_dictText', |
289 | 288 | scopedSlots: {customRender: 'status_dictText'}, |
290 | 289 | filterMultiple: false, |
291 | - filters: [ | |
292 | - {text: '生成任务', value: '1'}, | |
293 | - {text: '下发任务', value: '10'}, | |
294 | - {text: '开始执行', value: '20'}, | |
295 | - {text: '到达拣选台', value: '50'}, | |
296 | - {text: '任务完成', value: '100'}, | |
297 | - ] | |
290 | + filters: [] | |
298 | 291 | }, |
299 | 292 | { |
300 | 293 | title: '异常信息', |
... | ... | @@ -389,9 +382,9 @@ export default { |
389 | 382 | return; |
390 | 383 | } |
391 | 384 | //页面没加载完,此时methods里的方法找不到,使用定时器模拟点击 |
392 | - let timeSearch=setInterval(()=>{ | |
393 | - let eleSearch= document.getElementById("search"); | |
394 | - if (eleSearch!=null){ | |
385 | + let timeSearch = setInterval(()=>{ | |
386 | + let eleSearch = document.getElementById("search"); | |
387 | + if (eleSearch != null) { | |
395 | 388 | //调用成功,清除定时器 |
396 | 389 | clearInterval(timeSearch) |
397 | 390 | eleSearch.click(); |
... | ... | @@ -429,7 +422,6 @@ export default { |
429 | 422 | '下发任务': 'blue', |
430 | 423 | '到达拣选站台': 'orange', |
431 | 424 | '任务完成': 'grey', |
432 | - | |
433 | 425 | '整盘出库': 'blue', |
434 | 426 | '分拣出库': 'green', |
435 | 427 | default: 'blue' |
... | ... | @@ -437,6 +429,11 @@ export default { |
437 | 429 | return colors[status] || colors.default; |
438 | 430 | }, |
439 | 431 | initDictConfig() { |
432 | + initDictOptions('task_header_status').then((res) => { | |
433 | + if (res.success) { | |
434 | + this.columns[7].filters = res.result; | |
435 | + } | |
436 | + }); | |
440 | 437 | }, |
441 | 438 | clickThenSelect(record,index) { |
442 | 439 | return { |
... | ... |