detail.html
14 KB
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<include file="public/layout" />
<style>
.ncm-goods-gift {
text-align: left;
}
.ncm-goods-gift ul {
display: inline-block;
font-size: 0;
vertical-align: middle;
}
.ncm-goods-gift li {
display: inline-block;
letter-spacing: normal;
margin-right: 4px;
vertical-align: top;
word-spacing: normal;
}
.ncm-goods-gift li a {
background-color: #fff;
display: table-cell;
height: 30px;
line-height: 0;
overflow: hidden;
text-align: center;
vertical-align: middle;
width: 30px;
}
.ncm-goods-gift li a img {
max-height: 30px;
max-width: 30px;
}
a.green{
background: #fff none repeat scroll 0 0;
border: 1px solid #f5f5f5;
border-radius: 4px;
color: #999;
cursor: pointer !important;
display: inline-block;
font-size: 12px;
font-weight: normal;
height: 20px;
letter-spacing: normal;
line-height: 20px;
margin: 0 5px 0 0;
padding: 1px 6px;
vertical-align: top;
}
a.green:hover { color: #FFF; background-color: #1BBC9D; border-color: #16A086; }
.ncap-order-style .ncap-order-details{
margin:20px auto;
}
.contact-info h3,.contact-info .form_class{
display: inline-block;
vertical-align: middle;
}
.form_class i.fa{
vertical-align: text-bottom;
}
</style>
<div class="page">
<div class="fixed-bar">
<div class="item-title"><a class="back" href="{$url|default='javascript:window.history.go(-1);'}" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
<div class="subject">
<h3>订单详情</h3>
<h5>商城实物商品交易订单查询及管理</h5>
</div>
<div class="subject" style="width:62%">
<if condition="$order['order_status'] lt 2">
<a href="{:U('Admin/order/edit_order',array('order_id'=>$order['order_id']))}" style="float:right;margin-right:10px;line-height: 30px;" class="ncap-btn-big ncap-btn-green" ><i class="fa fa-pencil-square-o"></i>修改订单</a>
</if>
<!--<if condition="($split eq 1) and ($order['order_status'] lt 2)">-->
<!--<a href="{:U('Admin/order/split_order',array('order_id'=>$order['order_id']))}" style="float:right;margin-right:10px" class="ncap-btn-big ncap-btn-green" ><i class="fa fa-external-link-square"></i>拆分订单</a>-->
<!--</if>-->
<a href="{:U('Order/order_print',array('order_id'=>$order['order_id']))}" style="float:right;margin-right:10px;line-height: 30px;" class="ncap-btn-big ncap-btn-green" ><i class="fa fa-print"></i>打印订单</a>
</div>
</div>
</div>
<div class="ncap-order-style">
<div class="titile">
<h3></h3>
</div>
<div class="ncap-order-details">
<form id="order-action">
<div class="tabs-panels">
<div class="misc-info">
<h3>基本信息</h3>
<dl>
<dt>订单 ID:</dt>
<dd>{$order.order_id}</dd>
<dt>订单号:</dt>
<dd>{$order.order_sn}</dd>
<dt>会员姓名:</dt>
<dd>{$order.user_vipname}</dd>
</dl>
<dl>
<dt>配送方式:</dt>
<dd><if condition="$order.exp_type eq 0">物流<else/>自提</if></dd>
<dt>会员手机:</dt>
<dd>{$order.user_mobile}</dd>
<dt>应付金额:</dt>
<dd>¥{$order.order_amount}</dd>
</dl>
<dl>
<dt>订单状态:</dt>
<dd>{$order['order_status_desc']}</dd>
<dt>下单时间:</dt>
<dd>{$order.add_time|date='Y-m-d H:i:s',###}</dd>
<dt>支付时间:</dt>
<dd><if condition="$order.pay_time neq 0">{$order.pay_time|date='Y-m-d H:i:s',###}<else/>N</if></dd>
</dl>
<dl>
<dt>交易流水号:</dt>
<dd>{$order['pay_sn']|default='无'}</dd>
<dt>门店信息:</dt>
<dd>{$order['pickup_name']}</dd>
<dt>订单备注:</dt>
<dd>{$order['user_note']}</dd>
</dl>
<dl>
<if condition="$order.order_sn neq $order.parent_sn">
<dt>组合单号:</dt>
<dd>{$order['parent_sn']}</dd>
</if>
</dl>
</div>
<!--收货地址之类-->
<eq name="$order.exp_type" value="0">
<div class="addr-note">
<h4>收货信息</h4>
<dl>
<dt>收货人:</dt>
<dd>{$order.consignee}</dd>
<dt>联系方式:</dt>
<dd>{$order.mobile}</dd>
</dl>
<dl>
<dt>收货地址:</dt>
<dd>{$order.address2}</dd>
</dl>
<!--<dl>-->
<!--<dt>邮编:</dt>-->
<!--<dd><if condition="$order.zipcode neq ''"> {$order.zipcode}<else/>N</if></dd>-->
<!--</dl>-->
<dl >
<dt>物流公司:</dt>
<dd>{$order.shipping_name}</dd>
<if condition="$order['invoice_no'] neq ''"> <dt>快递单号:</dt>
<dd>{$order.invoice_no}</dd></if>
</dl>
</div>
</eq>
<!--收货地址之类-->
<eq name="$order.exp_type" value="1">
<div class="addr-note">
<h4>自提信息</h4>
<dl>
<dt>收货人:</dt>
<dd>{$order.consignee}</dd>
<dt>联系方式:</dt>
<dd>{$order.mobile}</dd>
<dt>门店信息:</dt>
<dd>{$order.pickup_name}({$order.pickup_address})</dd>
</dl>
</div>
</eq>
<div class="goods-info">
<h4>商品信息</h4>
<table>
<thead>
<tr>
<th colspan="2">商品</th>
<th class="w100">规格</th>
<th class="w100">数量</th>
<th class="w100">手店单价</th>
<th class="w120">实际单价</th>
<th class="w100">单品小计</th>
<th class="w100">商品操作</th>
</tr>
</thead>
<tbody>
<volist name="orderGoods" id="good">
<tr>
<td class="w30"><div class="goods-thumb"><a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$good['goods_id'],'stoid'=>getAdmStoId()))}" target="_blank"><img alt="" src="{:getImg($good.original_img,'__PUBLIC__/images/not_adv.jpg',0,1)}" /> </a></div></td>
<td style="text-align: left;" class="w350"><a href="{:U('Mobile/Goods/goodsInfo',array('id'=>$good['goods_id'],'stoid'=>getAdmStoId()))}" target="_blank">{$good.goods_name}</a><br/>商品编号:{$good.goods_sn}<br/>商品条码:{$good.sku0}</td>
<td class="w100">{$good.goods_spec}</td>
<td class="w100">{$good.goods_num}</td>
<td class="w100">{$good.goods_price}</td>
<td class="w100">{$good.account}</td>
<td class="w100">{$good.goods_total}</td>
<td class="w100"><eq name=":isReturn($order.order_id,$good.goods_id)" value="0">
无
<else/>
<a href="{:U('Admin/order/return_info',array('id'=>return_id($order['order_id'],$good.goods_id)))}"
style="color:#999;">{:ReturnType($order.order_id,$good.goods_id)}</a>
</eq></td>
</tr>
</volist>
</table>
</div>
<div class="total-amount contact-info">
<if condition="$order.is_zsorder eq 4">
<h3>订单总额:¥{$order.user_money+$order.order_amount+$order.pt_tail_money}</h3>
<else/>
<h3>订单总额:¥{$order.total_amount}</h3>
</if>
<if condition="$order.pt_tail_money gt 0"><br><h3>尾款(<if condition="$order.tail_pay_type eq 0">微信<else/>余额</if>):
¥{$order.pt_tail_money}
</h3>
</if>
<if condition="$order.is_zsorder eq 4 and ($order.user_money+$order.order_amount) gt 0"><br><h3>定金(<if condition="$order.order_amount gt 0">微信<else/>余额</if>):¥{$order.user_money+$order.order_amount}</h3></if>
</div>
<div class="contact-info">
<h3>费用信息 </h3>
<div class="form_class">
<!--<a class="btn green" href="{:U('Admin/Order/editprice',array('order_id'=>$order['order_id']))}"><i class="fa fa-pencil-square-o"></i>修改费用</a>-->
</div>
<dl>
<dt>小计:</dt>
<dd>{$order.goods_price}</dd>
<dt>运费:</dt>
<dd>+{$order.shipping_price}</dd>
<dt>余额抵扣:</dt>
<if condition="$order.pt_status eq 4 or $order.pt_status eq 5">
<if condition="$order.tail_pay_type eq 1">
<dd>-{$order.user_money+$order.pt_tail_money}</dd>
<else/>
<dd>-{$order.user_money}</dd>
</if>
<else/>
<dd>-{$order.user_money}</dd>
</if>
</dl>
<dl>
<dt>优惠券抵扣:</dt>
<if condition="$bylist">
<dd>包邮券【满{$bylist.condition}元使用】</dd>
<else/>
<dd>-{$order.coupon_price}</dd>
</if>
<dt>价格调整: </dt>
<dd>减:{$order.discount}</dd>
<dt>应付 : </dt>
<if condition="$order.pt_status eq 4 or $order.pt_status eq 5">
<if condition="$order.tail_pay_type eq 0">
<dd><strong class="red_common">{$order.order_amount+$order.pt_tail_money}</strong></dd>
<else/>
<dd><strong class="red_common">{$order.order_amount}</strong></dd>
</if>
<else/>
<dd>{$order.order_amount}</dd>
</if>
</dl>
<dl>
<dt>积分:</dt>
<dd>-{$order.integral}</dd>
<dt>订单优惠:</dt>
<dd>-{$order.order_prom_amount}</dd>
<dt>优惠活动:</dt>
<dd>-{$order.discount_amount}</dd>
</dl>
<dl>
<if condition="$order.return_amount neq 0">
<dt>退款金额:</dt>
<dd>{$order.return_amount}</dd>
</if>
</dl>
</div>
<div class="contact-info" style="display: none;">
<h3>操作信息</h3>
<dl class="row">
<dt class="tit">
<label for="note">操作备注</label>
</dt>
<dd class="opt" style="margin-left:10px">
<textarea id="note" name="note" style="width:600px" rows="6" placeholder="请输入操作备注" class="tarea">{$keyword.text}</textarea>
</dd>
</dl>
<dl class="row">
<dt class="tit">
<label for="note">可执行操作</label>
</dt>
<dd class="opt" style="margin-left:10px">
<foreach name="button" item="vo" key="k">
<if condition="$k eq 'pay_cancel'">
<a class="ncap-btn-big ncap-btn-green" href="javascript:void(0)" data-url="{:U('Order/pay_cancel',array('order_id'=>$order['order_id']))}" onclick="pay_cancel(this)">{$vo}</a>
<elseif condition="$k eq 'delivery'"/>
<a class="ncap-btn-big ncap-btn-green" href="{:U('Order/delivery_info',array('order_id'=>$order['order_id']))}">{$vo}</a>
<elseif condition="$k eq 'refund'"/>
<else/>
<a class="ncap-btn-big ncap-btn-green" onclick="ajax_submit_form('order-action','{:U('Admin/order/order_action',array('order_id'=>$order['order_id'],'type'=>$k))}');" >
{$vo}</a>
</if>
</foreach>
</dd>
</dl>
</div>
<div class="goods-info">
<h4>操作记录</h4>
<table>
<thead>
<tr>
<th>操作者</th>
<th>操作时间</th>
<th>订单状态</th>
<th>付款状态</th>
<th>发货状态</th>
<th>描述</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<volist name="action_log" id="log">
<if condition="$log['action_username'] neq '超级管理员'">
<tr>
<td class="text-center">{$log.action_username}</td>
<td class="text-center">{$log.log_time|date='Y-m-d H:i:s',###}</td>
<td class="text-center">{$order_status[$log[order_status]]}</td>
<td class="text-center">
<if condition="$order.pay_time gt 0 && $log[order_status] eq 1">
已支付
<else/>
{$pay_status[$log[pay_status]]}
<if condition="$order['pay_code'] eq 'code'"><span style="color: red">(货到付款)</span></if>
</if>
</td>
<td class="text-center">{$shipping_status[$log[shipping_status]]}</td>
<td class="text-center">{$log.status_desc}</td>
<td class="text-center">{$log.action_note}</td>
</tr>
</if>
</volist>
</table>
</div>
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript">
function delfun() {
// 删除按钮
layer.confirm('确认删除?', {
btn: ['确定'] //按钮
}, function () {
console.log("确定");
}, function () {
console.log("取消");
});
}
</script>
</body>
</html>