2024-04-18 08:26:44 +08:00

53 lines
1.0 KiB
Vue

<template>
<view class="material-box">
<uni-card :title="materialInfo.patchCode" :is-full="true">
<template v-slot:extra>
<u-tag v-if="index===0" text="主箱" plain size="mini" type="error"></u-tag>
<u-tag v-else text="次箱" plain size="mini" type="info"></u-tag>
</template>
</uni-card>
<!-- <view class="title left">{{materialInfo.patchCode}}</view>
<view class="title right">{{materialInfo.productionTime}}</view> -->
</view>
</template>
<script>
export default {
name: "material-item",
props: {
index: {
default: -1,
},
materialInfo: {
default: {
// 原始编码
originalCode: "",
// 批次号
patchCode: "",
// 班组
team: "",
// 零件号
partNumner: "",
// 工单号
workoderID: "",
// 数量
quantity: 0,
//生产时间
productionTime: "",
// 产品描述
productionDescribe: ""
}
},
data() {
return {
};
}
},
}
</script>
<style scoped>
.material-box {}
</style>