linwe
2023-11-11 3e41ee72b156f6aef1f4f5dcf579271edcd2fddb
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
<template>
    <view class="">
             <view class="list">
                 <view class="list-item bgc-ff mb-20"  v-for="(i,k) in list"  :key="k"  @click="navTo(i.taskId)">
                     <view class="item-title flex a-i-c j-c-s-b mb-20">
                         <text class="f-32 fw">{{i.hotelName}}</text>
                         <u-tag v-if="i.confirmFlag == 1" text="待审批" type="warning" plain plainFill></u-tag>
                         <u-tag v-if="i.confirmFlag == 2" text="审核通过" type="success" plain plainFill></u-tag>
                         <u-tag v-if="i.confirmFlag == 3" text="审核拒绝" type="error" plain plainFill></u-tag>
                     </view>
                     <view class="item-row flex a-i-c j-c-s-b">
                         <text class="f-28">时间</text>
                         <text class="f-28 c-66">{{i.createTime}}</text>
                     </view>
                 </view>
             </view>    
    </view>
</template>
 
<script>
    import {getLabelReportingList} from "@/api/reporting/reporting.js"
    export default {
        data(){
            return {
                list:[]
            }
        },
        
        onLoad(option){
            this.getList(option.type)
        },
        
        methods:{
            getList(type){
                getLabelReportingList({
                    userId:uni.getStorageSync("userInfo").user_id,
                    page:1,
                    size:20,
                    eventType:type
                }).then(res=>{
                    console.log(res)
                    this.list = res.data.records;
                })
            },
            navTo(id){
                uni.navigateTo({
                    url:`/subPackage/workbench/views/bailReportDetail?id=${id}`
                })
            }
        }
    }
</script>
 
<style lang="scss">
    page{
        background-color:#F5F5F5;
    }
    .list{
        margin:20rpx 30rpx 0;
    }
    .list-item{
        padding:0 30rpx 20rpx;
        border-radius: 8rpx;
        .item-title{
            padding:30rpx 0;
            border-bottom:1px solid #F5F5F5;
        }
        .item-row{
            padding:10rpx 0;
            .address{
                width:65%;
            }
        }
    }
</style>