fix
Helius
2021-02-20 45fb4b11ad51bb38306765b11a6747402e382cee
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
<template>
    <view class="list">
        <view class="list-item">
            <view class="list-header">
                <text>服务单信息</text>
            </view>
            <view class="list-content">
                <view class="flex justify-between">
                    <text>会员姓名</text>
                    <text class="gray">{{orderInfo.vipName}}</text>
                </view>
                <view class="flex justify-between">
                    <text>联系方式</text>
                    <text class="gray">{{orderInfo.phone}}</text>
                </view>
                <view class="flex justify-between">
                    <text>服务单号</text>
                    <text class="gray">{{orderInfo.serviceNo}}</text>
                </view>
                <view class="flex justify-between">
                    <text>预约时间</text>
                    <text class="gray">{{orderInfo.yyTime}}</text>
                </view>
                <view class="flex justify-between">
                    <text>预约床位</text>
                    <text class="gray">{{orderInfo.bedName || '-'}}</text>
                </view>
                <view class="flex justify-between">
                    <text>服务总时间</text>
                    <text class="gray">{{orderInfo.totalTime}}分钟</text>
                </view>
                <view class="flex justify-between">
                    <text>配料师</text>
                    <text class="gray">{{orderInfo.plsName || '-'}}</text>
                </view>
                <view class="flex justify-between">
                    <text>下单总顾问</text>
                    <text class="gray">{{orderInfo.staffName}}</text>
                </view>
            </view>
        </view>
        <view class="list-item">
            <view class="list-header">
                <text>服务明细</text>
            </view>
            <view class="list-content">
                <view class="list-content-row" v-for="item in orderList">
                    <view class="flex justify-between align-center font-15">
                        <view class="list-content-name">
                            <text class="mr-20 font-14">{{item.name}}</text>
                            <text>x{{item.count}}</text>
                        </view>
                        <text class="blue font-16">¥{{item.price}}</text>
                    </view>
                    <view class="flex justify-between mt-5 gray">
                        <text>服务开始时间</text>
                        <text>{{item.beginTime || '-'}}</text>
                    </view>
                    <view class="flex justify-between gray">
                        <text>服务结束时间</text>
                        <text>{{item.endTime || '-'}}</text>
                    </view>
                    <view class="flex justify-between gray">
                        <text>服务时长</text>
                        <text>{{item.timeLength}}分钟</text>
                    </view>
                    <view class="flex justify-between gray">
                        <text>美疗师</text>
                        <text>{{item.beautyName || '-'}}</text>
                    </view>
                    <view class="flex justify-between gray">
                        <text>提成</text>
                        <text>¥{{item.commission || 0}}</text>
                    </view>
                </view>
            </view>
        </view>
        <view class="list-item">
            <view class="list-header">
                <text>客户评价</text>
            </view>
            <view class="list-content gray">
                {{orderInfo.comment}}
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
              orderInfo: {},
              orderList: []
            }  
        },
        onLoad(options) {
            this.loadServiceOrderDetail(options.id);
        },
        methods:{
            loadServiceOrderDetail(id){
                console.log(id)
                this.$httpUtils.request('/api/serviceOrder/findServiceOrderDetail/'+id).then((res) => {
                    if(res.status == 200){
                        console.log(res)
                        let result = res.mapInfo.detail;
                        this.orderInfo = result;
                        this.orderList = result.items;
                    }
                })
            }
        }
    }
</script>
 
<style>
    page{
        background: #F6F6F8;
    }
    .list-item{
        background: #FFFFFF;
        border-radius: 4px;
        margin: 10px;
    }
    .list-header{
        padding: 12px 15px;
        font-size: 16px;
        font-weight: bold;
        border-bottom: 1px solid #EDEAF4;
    }
    .list-content{
        padding: 12px 15px;
        font-size: 14px;
        line-height: 28px;
    }
    .list-content-row{
        border-bottom: 1px solid #EDEAF4;
        padding: 8px 0;
    }
    .list-content-row:nth-child(1){
        padding-top: 0;
    }
    .list-content-row:nth-last-child(1){
        border-bottom: 0;
        padding-bottom: 0;
    }
    .list-content-name{
        max-width: 550rpx;
    }
    .font-through{
        text-decoration: line-through;
    }
</style>