<template>
|
<view class="content" @click.stop="$emit('changeCheck',item,!item.check)" :class="item.check ? 'activeClass' : ''">
|
<view class="content_flex">
|
<view class="flex_index">{{index}}</view>
|
<view class="flex_code">工件ID: {{item.workPieceID}}</view>
|
<view class="flex_status">{{item.qualityStateName}}</view>
|
</view>
|
<view class="content_flex">
|
<view class="flex_color" style="width: 100%;">初始上线时间:{{item.workPieceinitOnlineTime}}</view>
|
<!-- <view class="flex_color" style="text-align: right;">当前工序: {{item.workingProcedureCurrent}}</view> -->
|
</view>
|
<view class="content_flex">
|
<view class="flex_color" style="width: 100%;">当前工序: {{item.workingProcedureCurrent}}</view>
|
</view>
|
<view class="content_flex">
|
<view class="flex_color" style="width: 100%;">不合格原因: {{item.qualityErrorInfo}}</view>
|
</view>
|
<view class="content_flex">
|
<view class="flex_color" style="width: 100%;">质量更新时间: {{item.qualityStateUpdateTime}}</view>
|
</view>
|
<!-- <view class="content_flex">
|
<view class="flex_code" style="width: 100%;">不合格原因: {{item.qualityErrorInfo}}</view>
|
</view> -->
|
</view>
|
</template>
|
|
<script>
|
export default {
|
props: {
|
index: {type: Number,required: true},
|
item: {type: Object,required: true}
|
},
|
emits:['updateCheck'],
|
data() {
|
return {
|
active: false
|
}
|
},
|
watch: {
|
active(val) {
|
this.$emit('updateCheck',this.index)
|
}
|
},
|
methods: {
|
|
}
|
}
|
</script>
|
|
<style scoped lang="scss">
|
.content {
|
width: 100%;
|
box-sizing: border-box;
|
border: 1px solid #fff;
|
padding: 15rpx;
|
margin-bottom: 10rpx;
|
.content_flex {
|
display: flex;
|
justify-content: flex-start;
|
align-items: center;
|
margin-bottom: 10rpx;
|
.flex_index {
|
width: 50rpx;
|
height: 50rpx;
|
background: $color-common;
|
color: #fff;
|
font-size: 30rpx;
|
line-height: 50rpx;
|
text-align: center;
|
border-radius: 50%;
|
margin-right: 15rpx;
|
}
|
.flex_code {
|
font-size: 32rpx;
|
color: $color-common;
|
width: 75%;
|
}
|
.flex_status {
|
width: 90rpx;
|
text-align: center;
|
padding: 10rpx;
|
background: $color-common;
|
color: #fff;
|
font-weight: 550;
|
align-self: flex-end;
|
|
}
|
.flex_color {
|
font-size: 32rpx;
|
color: #000;
|
width: 75%;
|
|
}
|
|
}
|
}
|
.activeClass {
|
border: 1px solid $color-common;
|
}
|
</style>
|