content.vue
1.8 KB
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
<template>
<div class="dv-center">
<div class="card" v-for="(item, index) in listData" :key="index">
<span class="div-span-title">{{ item.code }}</span>
<!-- <div class="dv-workstationOne">
<div>站台信息:占位/无异常</div>
</div> -->
<div class="dv-workstationTwo">
<div style="padding-top: 1vw;">产品条码:{{ item.materialCode }}</div>
<div>任务模式:{{ item.taskType == 100 ? '入库' : item.taskType == 200 ? '出库' : item.taskType == 300 ? '移库' : '' }}</div>
<div>物料信息:{{ item.materialInfo }}</div>
<div>批次信息:{{ item.batch }}</div>
</div>
<div class="dv-workstationThree">
<div style="padding-top: 1vw;">任务号:{{ item.taskId }}</div>
<div>起点/终点:{{ item.fromCode }}/{{ item.toCode }}</div>
<div>创建时间:{{ item.createTime }}</div>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
listData: [{}, {}, {}, {}, {}],
}
},
methods: {
// 生产情况
getData(data) {
this.listData = data.map((item) => {
let obj = {}
Object.keys(item).forEach((key) => {
obj[key] = item[key] === null ? '' : item[key]
})
return obj
})
},
},
mounted() {
//eslint-disable-next-line no-debugger
debugger
},
}
</script>
<style scoped>
.dv-center {
display: flex;
/* gap: 0.7vw; */
justify-content: space-between;
}
.card {
width: 18.3vw;
border: 1px solid #1e3a7a;
border-radius: 0.4vw;
padding: 0.2vw 0 0 0.5vw;
/* flex: 1; */
}
.dv-workstationOne {
width: 100%;
height: 3vw;
color: #67c8fb;
font-size: 1.2vw;
display: flex;
align-items: center;
}
.dv-workstationTwo {
width: 100%;
height: 7.5vw;
line-height: 1.5vw;
font-size: 1.15vw;
}
.dv-workstationThree {
width: 100%;
height: 7.5vw;
color: #67c8fb;
line-height: 1.5vw;
font-size: 1.15vw;
}
</style>