wankeda
2025-06-24 1caea0fdc7ed1788d854a2aba8853984b4494e01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<template>
  <div id="centerRight1">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-line" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2">任务列表</span>
        </div>
      </div>
      <div class="d-flex jc-center body-box">
        <dv-scroll-board  class="dv-scr-board" :config="config" />
      </div>
    </div>
  </div>
</template>
 
<script>
import { addListener } from "process";
export default {
  data() {
    return {
      config: {
        header: [
          "托盘号",
          "堆垛机",
          "类型",
          "起始货位",
          "目的货位",
          "状态",
        ],
        data: [
          // [
          //   "XAJ2083588-CB98G",
          //   "化成库",
          //   "SC1",
          //   "出库",
          //   "002-005-001",
          //   "001-001-001",
          //   "执行中",
          // ],
         
          // [
          //   "XAFN011547-CB9NK",
          //   "分容库",
          //   "SC2",
          //   "出库",
          //   "006-002-004",
          //   "001-001-001",
          //   "已完成",
          // ],
          
          // [
          //   "XAFN041547-CB9NK",
          //   "分容库",
          //   "SC1",
          //   "入库",
          //   "001-001-001",
          //   "005-004-001",
          //   "已完成",
          // ],
        ],
        rowNum: 7, //表格行数
        headerHeight: 30,
        headerBGC: "#ff2B46", //表头
        oddRowBGC: "#002B46", //奇数行
        evenRowBGC: "#042B53", //偶数行
        index: true,
        columnWidth: [45, 180, 70, 75, 67, 110, 110, 80],
        align: ["center"],
      },
    };
  },
  components: {},
  mounted() {},
  methods: {
  async LEDtaskinfo(){
  let rep = await LEDtaskinfo((a)=>{
    console.log(a);
  })
  if(rep.status){
  
   var a=[];
   let dlist=rep.data.data;
   for (let index = 0; index < dlist.length; index++) {
        var dic = dlist[index]; //{a;b}
        var b = [];
        b.push(dic.barcode);
        b.push(dic.materielid);
        b.push(dic.type);
        b.push(dic.fromlocationid);
        b.push(dic.tolocationid);
        b.push(dic.task_state);
       
        a.push(b);
     
   }
   
  let that=this;
      that.config= {
        header: [
          "托盘号",
          "物料编号",
          "类型",
          "起始货位",
          "目的货位",
          "状态",
        ],
        data:a,
        rowNum: 10, //表格行数
        headerHeight: 30,
        headerBGC: "#ff2B46", //表头
        oddRowBGC: "#002B46", //奇数行
        evenRowBGC: "#042B53", //偶数行
        index: true,
        columnWidth: [45, 180, 70, 75, 67, 110, 110, 80],
        align: ["center"]
      };
 
 
}
   }
 
  },
    created() {
  let thi=this;
 thi.LEDtaskinfo();
    }
};
</script>
 
<style lang="scss" scoped>
$box-height: 410px;
$box-width: 700px;
#centerRight1 {
  padding: 16px;
  padding-top: 20px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .body-box {
    border-radius: 10px;
    overflow: hidden;
    .dv-scr-board {
      width: 670px;
      height: 340px;
    }
  }
}
</style>