content.vue 1.8 KB
<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>