张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<template>
    <view class="check_details_index">
        <view class="check_details_header">{{checkDetails.inspectName}}</view>
        <view class="check_details_matter">
            <view class="check_details_card">
                <view class="check_details_text">检查情况</view>
                <view class="check_details_items">
                    <view class="check_details_name">整改人:</view>
                    <view class="check_details_datas">{{checkDetails.realName}}</view>
                </view>
            </view>
            <view class="check_details_contents">{{checkDetails.inspectContent}}</view>
            <view style="overflow:auto;height: 345px;">
                <view class="check_details_phone" v-for="(item,index) in checkPhone">
                    <!-- <u-image :src="`https://pipe.thhy-tj.com/${item.imgPath}`" ></u-image> -->
                    <u-album :urls="[`https://pipe.thhy-tj.com/${item.imgPath}`]"></u-album>
                </view>
            </view>
        </view>
        <view class="check_details_matter" style="margin-top:15px" v-if="checkDetails.isState ==='2'">
            <view class="check_details_card">
                <view class="check_details_text">反馈情况</view>
                <view class="check_details_items">
                    <view class="check_details_name">整改人:</view>
                    <view class="check_details_datas">{{checkDetails.realName}}</view>
                </view>
            </view>
            <view class="check_details_contents">{{checkDetails.feedbackContent}}</view>
            <view style="overflow:auto;height: 345px;">
                <view class="check_details_phone" v-for="(item,index) in overCheckPhone">
                    <!-- <u-image :src="`https://pipe.thhy-tj.com/${item.imgPath}`" ></u-image> -->
                    <u-album :urls="[`https://pipe.thhy-tj.com/${item.imgPath}`]"></u-album>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default{
        data(){
            return{
                checkDetails:[],//安全检查详情
                overCheckPhone:[],//反馈结果
                checkPhone:[],//检查结果图片
            }
        },
        onLoad(option) {
            console.log(option)
            this.getDetailsInfo(option.secureInspectId)
        },
        methods:{
            //获取信息详情
            getDetailsInfo(val){
                this.$api.reboSystem.detailsCheckSafe({secureInspectId:val}).then(res=>{
                    if(res.statusMsg === 'ok'){
                        this.checkDetails = res.data
                        this.overCheckPhone = res.data.tsecureInspectPaths.filter(item=>item.isType ===2)
                        this.checkPhone = res.data.tsecureInspectPaths.filter(item=>item.isType ===1)
                    }else{
                        uni.$u.toast(res.statusMsg);
                    }
                })
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .check_details_index{
        height: 100%;
        overflow: hidden;
        background-color: #F6F6F6;
        padding: 15px;
        
        .check_details_header{
            color: #1977FF;
            height:10vh;
            display: flex;
            align-items: center;
            padding-left: 10px;
            font-size: 16px;
            margin-bottom: 15px;
            background-color: #FFFFFF;
            border-radius: 6px;
        }
        .check_details_matter{
            height: calc(100vh - 112px);
            background-color: #FFFFFF;
            border-radius: 6px;
            
            .check_details_card{
                padding: 15px 10px;
                border-bottom: 1px solid #EAEAEA;
                display: flex;
                justify-content: space-between;
                .check_details_text{
                    font-size:17px ;
                    font-weight: 520;
                    color: #333333;
                }
                .check_details_items{
                    display: flex;
                    .check_details_name{
                        color: #999999;
                        font-size: 17px;
                    }
                    .check_details_datas{
                        color: #1977FF;
                        font-size: 17px;
                    }
                }
            }
            .check_details_contents{
                height: calc(100% - 460px);
                margin: 15px;
                padding: 15px;
                display: flex;
                // align-items: center;
                background-color: #F6FAFF;
                color:#666666 ;
                overflow: auto;
            }
            .check_details_phone{
                margin-top: 10px;
                margin-bottom: 10px;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }
    }
    ::v-deep image{
        width: 320px!important;
        height: 240px!important;
    }
</style>