MrShi
2025-07-02 39ae52b3f65e2bba3b6570adb51e791cb3befff7
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<template>
    <view class="box" v-if="info">
        <view class="box_head">
            <view class="box_head_info">
                <view class="box_head_info_title">赔付总金额:</view>
                <view class="box_head_info_price">¥ {{price}}</view>
                <view class="bian" v-if="info.feeUpdate === 1">
                    <view class="bian_head">
                        <image src="/static/icon/ic_t1ips@2x.png" mode="widthFix"></image>
                        <text>变更说明:</text>
                    </view>
                    <view class="bian_info">{{info.supplementSettleClaimsLog}}</view>
                </view>
                <view class="list">
                    <view class="list_label">赔付项目</view>
                    <view class="list_row" v-for="(item, index) in list" :key="index">
                        <view class="list_row_top">
                            <view class="left">{{item.name}}</view>
                            <view class="right">¥{{item.fee || 0}}</view>
                        </view>
                        <view class="list_row_info">费用说明:{{item.describe || ''}}</view>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    import { mapState } from 'vuex'
    export default {
        data() {
            return {
                id: null,
                list: [],
                price: 0,
                info: null
            };
        },
        onLoad(option) {
            this.id = option.id
            this.getDetails()
        },
        methods: {
            getDetails() {
                this.$u.api.settleClaimsById(this.id)
                    .then(res => {
                        if (res.code === 200) {
                            this.info = res.data
                            let arr = res.data.hpAccountContent ? JSON.parse(res.data.hpAccountContent) : []
                            this.list = arr.filter(item => [0,1].includes(item.type))
                            this.price = res.data.hpAccount + res.data.hpOtherAccount
                        }
                    })
            },
        }
    }
</script>
<style>
    page {
        background-color: #f7f7f7;
    }
</style>
<style lang="scss" scoped>
    .box {
        width: 100%;
        .box_head {
            width: 100%;
            height: 240rpx;
            padding: 30rpx;
            box-sizing: border-box;
            background: linear-gradient( 180deg, #437CB3 0%, #F7F7F7 100%);
            .box_head_info {
                width: 100%;
                padding: 32rpx 30rpx;
                box-sizing: border-box;
                background-color: rgba(255, 255, 255, 0.7);
                border-radius: 16rpx;
                position: relative;
                .box_head_info_title {
                    font-weight: 400;
                    font-size: 32rpx;
                    color: #333333;
                }
                .box_head_info_price {
                    font-weight: bold;
                    font-size: 52rpx;
                    color: #111111;
                    margin-top: 16rpx;
                }
                .bian {
                    width: 100%;
                    padding: 24rpx 20rpx;
                    box-sizing: border-box;
                    background: rgba(255,151,29,0.1);
                    border-radius: 8rpx;
                    margin-top: 30rpx;
                    .bian_head {
                        width: 100%;
                        display: flex;
                        align-items: center;
                        image {
                            width: 32rpx;
                            height: 32rpx;
                            margin-right: 8rpx;
                        }
                        text {
                            font-weight: 500;
                            font-size: 28rpx;
                            color: #111111;
                        }
                    }
                    .bian_info {
                        width: 100%;
                        margin-top: 16rpx;
                        font-weight: 400;
                        font-size: 28rpx;
                        color: #333333;
                    }
                }
                .list {
                    width: 100%;
                    margin-top: 40rpx;
                    .list_label {
                        font-weight: 400;
                        font-size: 32rpx;
                        color: #777777;
                        margin-bottom: 30rpx;
                    }
                    .list_row {
                        width: 100%;
                        display: flex;
                        flex-direction: column;
                        margin-bottom: 30rpx;
                        &:last-child {
                            margin: 0 !important;
                        }
                        .list_row_top {
                            width: 100%;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            .left {
                                font-weight: 500;
                                font-size: 30rpx;
                                color: #222222;
                            }
                            .right {
                                font-weight: 500;
                                font-size: 30rpx;
                                color: #FF0000;
                            }
                        }
                        .list_row_info {
                            font-weight: 400;
                            font-size: 26rpx;
                            color: #777777;
                            margin-top: 20rpx;
                        }
                    }
                }
            }
        }
    }
</style>