50 lines
811 B
Vue
50 lines
811 B
Vue
<template>
|
|
<view class="material-box">
|
|
<view class="title left">{{materialInfo.packageCode}}</view>
|
|
<view class="title right">{{materialInfo.entryWarehouseTime}}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name:"material-item",
|
|
props:{
|
|
materialInfo:{
|
|
default:{
|
|
packageCode:'未知货物',
|
|
entryWarehouseTime:'未知入库时间'
|
|
}
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.material-box{
|
|
width: 100%;
|
|
height: 100px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 10px;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
.material-box .title{
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
.right{
|
|
text-align: right;
|
|
}
|
|
.material-box .time{
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
</style> |