Files
shanghaiganxiangtuzhuangwor…/components/package-card/package-card.vue
2024-03-22 17:29:04 +08:00

103 lines
2.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="package-card-box">
<view class="package-card-header">
<view class="package-card-title">工单号{{ packageInfo.workoderID }}</view>
</view>
<view class="package-card-body">
<view class="package-card-describe">
<view>批次号{{ packageInfo.patchCode }}</view>
<view>零件号{{ packageInfo.partNumner }}</view>
<view>描述{{ packageInfo.productionDescribe }}</view>
</view>
<view class="package-card-time">
<view class="package-card-quantity">数量{{ packageInfo.quantity }}</view>
<view>生产日期</view>
<view>{{ packageInfo.productionTime }}</view>
</view>
</view>
</view>
</template>
<script>
// 【零件号(35233201041) 描述(鲨鱼鳍) 箱号+班组(BNW240312023_18B1) 数量 时间(出厂日期,生产日期,工单号/箱号提取) 】
export default {
name: 'package-card',
props: {
packageInfo: {
default: {
id:-1,
// 工单号
workoderID:'',
// 批次号(工单号+箱号+班组)
patchCode: '',
// 零件号
partNumner: '',
// 描述
productionDescribe: '',
// 出厂日期/生产日期
productionTime: '',
// 此箱数量
quantity: 0,
// 货物内部编号
originalCode:''
}
}
},
data() {
return {};
}
};
</script>
<style scoped>
.package-card-box {
width: 100%;
height: 260px;
display: flex;
flex-direction: column;
justify-content: center;
margin-top: 10px;
padding-left: 10px;
padding-right: 10px;
border-radius: 10px;
background-color: white;
}
.package-card-header {
font-size: 24px;
font-weight: 700;
width: 100%;
height: 30%;
display: flex;
flex-direction: row;
align-items: center;
border-bottom: 1px solid #ebebeb;
}
.package-card-body {
width: 100%;
height: 70%;
display: flex;
flex-direction: row;
align-items: center;
}
.package-card-describe {
font-size: 20px;
font-weight: 600;
width: 70%;
display: flex;
flex-direction: column;
}
.package-card-quantity{
margin-bottom: 10px;
}
.package-card-time {
color: rgba(0, 9, 0, 0.7);
font-size: 18px;
font-weight: 600;
width: 30%;
display: flex;
flex-direction: column;
align-items: center;
}
</style>