wzy
2021-01-11 1f4ac41109041ef9e2eb163cc03123e3a267650b
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <LINK rel="Bookmark" href="../images/favicon.ico">
    <!-- 本框架基本脚本和样式 -->
    <script type="text/javascript" th:src="@{/js/systools/MBaseVue.js}"></script>
    <script type="text/javascript" th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
    <script type="text/javascript" th:src="@{/plugin/moment.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/systools/MBase.js}"></script>
    <script type="text/javascript" th:src="@{/js/function/vip.js}"></script>
    <link rel="stylesheet" th:href="@{/plugin/element-ui/index.css}">
 
    <script type="text/javascript" th:src="@{/js/function/vip.js}"></script>
    <script type="text/javascript" th:src="@{/js/function/meiduCommon.js}"></script>
    <title></title>
    <style>
        .ibox-content {
            background-color: rgba(240, 242, 245, 1);
        }
        label {
            width: 100%;
            margin: 5px 0 !important;
        }
    </style>
</head>
<div class="ibox-content" id="app">
    <el-container>
        <el-aside style="width: 300px; background-color: white; padding: 10px;">
            <el-row style="border-bottom: #E4E7ED 1px solid;">
                <el-col :span="20" style="padding: 10px;">
                    <el-row type="flex" align="middle">
                        <el-col :span="7">
                            <el-avatar :size="60" :src="circleUrl"></el-avatar>
                        </el-col>
                        <el-col :span="15" style="margin-left: 10px;">
                            <label>{{vipInfo.vipName}}({{vipInfo.vipLevel.levelName}})</label>
                            <label>{{vipInfo.vipNo}}</label>
                        </el-col>
                    </el-row>
                    <el-row style="line-height: 20px;">
                        <label>订单号: <span>{{order.orderNo}}</span></label>
                        <label>下单顾问: <span>{{order.staffName}}</span></label>
                        <label>消费门店: <span>{{order.shopName}}</span></label>
                        <label>订单时间: <span>{{order.orderTime}}</span></label>
                        <label>备  注: <span>{{order.remark}}</span></label>
                    </el-row>
                </el-col>
            </el-row>
            <el-row style="padding: 10px; border-bottom: #E4E7ED 1px solid;">
                <el-col :span="24">
                    <el-row>
                        <el-col :span="6" style="text-align: right;">
                            <label>总金额</label>
                            <label>整单折扣</label>
                            <label style="font-size: 14px;">应收金额</label>
                            <label>欠款</label>
                            <label>已还</label>
                            <label>退款</label>
                        </el-col>
                        <el-col :span="14" style="text-align: right;">
                            <label>¥ 92</label>
                            <label>¥ -12</label>
                            <label>¥ 80</label>
                            <label>¥ 30</label>
                            <label>¥ 30</label>
                            <label>¥ 20</label>
                        </el-col>
                    </el-row>
                </el-col>
            </el-row>
            <el-row style="padding: 10px; border-bottom: #E4E7ED 1px solid;">
                <el-col :span="24">
                    <el-row>
                        <h3>收款明细</h3>
                    </el-row>
                    <el-row>
                        <el-col :span="6" style="text-align: right;">
                            <label>微信</label>
                            <label>支付宝</label>
                            <label>银行卡</label>
                            <label>欠款</label>
                        </el-col>
                        <el-col :span="14" style="text-align: right;">
                            <label>¥ 92</label>
                            <label>¥ 12</label>
                            <label>¥ 80</label>
                            <label>¥ 20</label>
                        </el-col>
                    </el-row>
                </el-col>
            </el-row>
            <el-row type="flex" justify="center" style="margin: 20px;">
                <el-button size="medium" type="primary">打印</el-button>
            </el-row>
        </el-aside>
        <el-main style="background-color: white; margin-right: 15px; margin-left: 15px; padding: 20px 30px;">
            <el-tabs v-model="activeName" @tab-click="handleClick">
                <el-tab-pane label="订单明细" name="first">
                    <el-row>
                        <el-button size="medium" type="primary">退款</el-button>
                    </el-row>
                    <el-table
                            :data="orderItems"
                            style="width: 100%">
                        <el-table-column
                                type="index"
                                width="50">
                        </el-table-column>
                        <el-table-column
                                prop="goodsNo"
                                label="产品编号"
                                width="180">
                        </el-table-column>
                        <el-table-column
                                prop="goodsName"
                                label="产品名称"
                                width="180">
                        </el-table-column>
                        <el-table-column
                                prop="goodsType"
                                label="产品类型">
                        </el-table-column>
                        <el-table-column
                                prop="price"
                                label="单价">
                        </el-table-column>
                        <el-table-column
                                prop="count"
                                label="数量">
                        </el-table-column>
                        <el-table-column
                                prop="zkPrice"
                                label="折扣单价">
                        </el-table-column>
                        <el-table-column
                                prop="zkTotal"
                                label="小计">
                        </el-table-column>
                    </el-table>
                </el-tab-pane>
                <el-tab-pane label="业绩设置" name="second">
                    <el-table
                            :data="achieveItems"
                            style="width: 100%">
                        <el-table-column
                                type="index"
                                width="50">
                        </el-table-column>
                        <el-table-column
                                prop="goodsNo"
                                label="产品编号"
                                width="180">
                        </el-table-column>
                        <el-table-column
                                prop="goodsName"
                                label="产品名称"
                                width="180">
                        </el-table-column>
                        <el-table-column
                                prop="goodsType"
                                label="收款">
                        </el-table-column>
                        <el-table-column
                                prop="price"
                                label="业绩类型">
                        </el-table-column>
                        <el-table-column
                                prop="count"
                                label="业绩">
                        </el-table-column>
                        <el-table-column
                                prop="zkPrice"
                                label="提成">
                        </el-table-column>
                        <el-table-column
                                prop="zkTotal"
                                label="员工">
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button type="text" size="small">分享</el-button>
                                <el-button type="text" size="small">删除</el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-tab-pane>
                <el-tab-pane label="交易流水" name="third">
                    <el-table
                            :data="flowItems"
                            style="width: 100%">
                        <el-table-column
                                type="index"
                                width="50">
                        </el-table-column>
                        <el-table-column
                                prop="orderNo"
                                label="订单号"
                                width="180">
                        </el-table-column>
                        <el-table-column
                                prop="flowContent"
                                label="交易内容"
                                width="180">
                        </el-table-column>
                        <el-table-column
                                prop="flowType"
                                label="交易类型">
                        </el-table-column>
                        <el-table-column
                                prop="amount"
                                label="交易金额">
                        </el-table-column>
                        <el-table-column
                                prop="payMethod"
                                label="支付方式">
                        </el-table-column>
                        <el-table-column
                                prop="flowNo"
                                label="流水号">
                        </el-table-column>
                    </el-table>
                </el-tab-pane>
            </el-tabs>
        </el-main>
    </el-container>
</div>
</body>
 
<script type="text/javascript" th:src="@{/js/plugin/LodopFuncs.js}"></script>
<script type="text/javascript" th:src="@{/js/systools/AjaxProxyVue.js}"></script>
<script type="text/javascript" th:src="@{/js/plugin/vue.js}"></script>
<script type="text/javascript" th:src="@{/plugin/element-ui/index.js}"></script>
<script type="text/javascript" th:src="@{/js/systools/MJsBase.js}"></script>
<script type="text/javascript"  th:inline="javascript">
    //<![CDATA[
    var app = new Vue({
        el : "#app",
        data : {
            vipInfo : "",
            order : "",
            activeName : "first",
            circleUrl : "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png",
            orderItems : [],
            achieveItems : [],
            flowItems : [],
 
        },
        created : function() {
            this.vipInfo = /*[[${vipInfo}]]*/
            this.order = /*[[${order}]]*/
            this.order.orderTime = moment(this.order.orderTime).format("YYYY-MM-DD HH:mm");
            console.log(this.vipInfo);
            console.log(this.order);
        },
        methods : {
            printf() {
                var id = 1;
                layer.open({
                    type: 2,
                    title: "打印服务单",
                    area: ['250px', '550px'],
                    maxmin: true,
                    content: [basePath + '/admin/redirect/hive/beautySalon/print-service?id=' + id]
                });
            },
            handleClick() {
 
            },
            toBack() {
                MTools.closeForm();
            },
        }
    });
    //]]>
    function print() {
        var id=$("#orderId").val();
        layer.open({
            type: 2,
            title: "打印订单",
            area: ['250px', '550px'],
            maxmin: true,
            content: [basePath + '/admin/redirect/hive/beautySalon/print-order?id=' + id]
        });
    };
 
 
</script>
</html>