222
schangxiang@126.com
2025-09-24 68941a04cb2320daa22ba0d5ac79a4447c29998d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<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>