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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<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.orderNo}}</text>
                </view>
                <view class="flex justify-between">
                    <text>下单顾问</text>
                    <text class="gray">{{orderInfo.staffName}}</text>
                </view>
                <view class="flex justify-between">
                    <text>下单时间</text>
                    <text class="gray">{{orderInfo.orderTime}}</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">
                        <view class="name">
                            <text class="font-14 mr-15">{{item.goodsName}}</text>
                            <text class="gray">x{{item.count}}</text>
                        </view>
                        <view>
                            <text class="gray font-through" v-if="item.zkPrice!=item.price">¥{{item.price}}</text>
                            <text class="ml-10">¥{{item.zkPrice}}</text>
                        </view>
                    </view>
                    <view class="gray font-13">
                        <text>现金支付:</text>
                        <text>¥{{item.cashPay | formatNum}}</text>
                    </view>
                    <view class="gray font-13">
                        <text>储蓄卡支付:</text>
                        <text>¥{{item.cardPay | formatNum}}</text>
                    </view>
                </view>
            </view>
        </view>
        <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.cashPay | formatNum}}</text>
                </view>
                <view class="flex justify-between">
                    <text>储蓄卡支付</text>
                    <text class="gray">¥{{orderInfo.cardPay | formatNum}}</text>
                </view>
                <view class="flex justify-between">
                    <text>应付总额</text>
                    <text class="gray">¥{{orderInfo.needPay | formatNum}}</text>
                </view>
                <view class="flex justify-between">
                    <text>实付总额</text>
                    <text class="gray">¥{{orderInfo.realPay | formatNum}}</text>
                </view>
                <view class="flex justify-between">
                    <text>优惠总额</text>
                    <text class="gray">¥{{orderInfo.discount | formatNum}}</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 gray font-13">
                        <view class="name">
                            <text class="mr-15">{{item.goodsName}}</text>
                            <text>x{{item.count}}</text>
                        </view>
                        <text>¥{{item.price}}</text>
                    </view>
                    <view class="flex justify-between" v-for="op in item.achieves">
                        <text>{{op.name}}</text>
                        <text>业绩:{{op.achieve}}</text>
                    </view>
                    <view v-if="!item.achieves.length" class="gray">
                        未分配业绩
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
              orderInfo: {},
              orderList: []
            }  
        },
        onLoad(options) {
            this.loadOrderDetail(options.orderId);
        },
        methods:{
            loadOrderDetail(id){
                this.$httpUtils.request('/api/order/findOrderDetail/'+id).then((res) => {
                    if(res.status == 200){
                        let result = res.mapInfo.orderDetail;
                        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;
    }
    .font-through{
        text-decoration: line-through;
    }
    .name{
        line-height: 20px;
    }
</style>