tabbasic.vm
7.31 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
<div class="border-header">
<div class="row mb5">
<div class="col-md-12">
<strong>基本信息</strong>
</div>
</div>
<div class="row">
<div class="col-md-6">
<span class="st2">订单状态 :<span>$!{model.orderStatus.name}</span>
</div>
<div class="col-md-6">
<span class="st2">下单时间 :$dateTool.format('yyyy-MM-dd HH:mm:ss',${model.submitTime})</span>
</span>
</div>
</div>
<div class="row">
<div class="col-md-6">
<span class="st2">支付方式 :$!{model.payType.name}</span>
</div>
<div class="col-md-6">
<span class="st2">支付时间 :
#if(${model.payTime})$dateTool.format('yyyy-MM-dd HH:mm:ss',$!{model.payTime})#end
</span>
</div>
</div>
<div class="row">
<div class="col-md-6">
<span class="st2">配送方式 :$!{model.deliveryType.name}</span>
</div>
<div class="col-md-6">
<span class="st2">自提/送货时间 :
#if($!{model.deliveryType.index} == 10)
#if(${model.reservationTime})$dateTool.format('yyyy-MM-dd HH:mm:ss',$!{model.reservationTime})#end
#elseif($!{model.deliveryType.index} == 20)
#if(${model.deliveryTime})$dateTool.format('yyyy-MM-dd HH:mm:ss',$!{model.deliveryTime})#end
#end
</span>
</div>
</div>
<div class="row">
<div class="col-md-12">
<span class="st2">订单金额 :$!{model.deliveryType.name}</span>
</div>
</div>
<div class="row">
<div class="col-md-12">
<span class="st2">买家留言:#if("$!{model.buyerMemo}" != "") $!{model.buyerMemo} #else 无 #end </span>
</div>
</div>
</div>
<br/>
<table style="width:100%;">
<td style="width:49%">
<div class="border-header">
<div class="row mb5">
<div class="col-md-12">
<strong>卖家信息 </strong>
</div>
</div>
<table>
<tr>
<td><span class="st2">账号:$!{model.sellerName}</span></td>
</tr>
<tr><td><span class="st2">店铺名称:$!{model.shopName}</span></td></tr>
<tr><td><span class="st2">联系电话:$!{model.shopPhoneNumber}</span></td></tr>
<tr><td><span class="st2">店铺地址:$!{model.shopAddress}</span></td></tr>
</table>
</div>
</td>
<td style="width:1%;"></td>
<td>
<div class="border-header">
<div class="row mb5">
<div class="col-md-12">
<strong>买家信息</strong>
</div>
</div>
<table>
<tr>
<td><span class="st2">买家账号:$!{model.buyerName}</span></td>
</tr>
<tr><td><span class="st2">收货人:$!{model.receiverName}</span></td></tr>
<tr><td><span class="st2">联系电话:$!{model.receiverPhoneNumber}</span></td></tr>
<tr><td><span class="st2">联系电话:$!{model.deliveryAddress}</span></td></tr>
<tr><td> </td></tr>
</table>
</div>
</td>
</table>
</br>
<div class="border-header">
<div class="row mb5">
<div class="col-md-12">
<strong>商品信息</strong>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table id="sample-table-1" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th class="center">商品名称</th>
<th class="center">价格</th>
<th class="center">数量</th>
<th class="center">预估金额</th>
<th class="center">实际金额</th>
<th class="center">运费</th>
<th class="center">总计</th>
</tr>
</thead>
<tbody>
#foreach(${item} in ${model.orderItems})
<tr>
<td class="textC">$!{item.skuTitle}</td>
<td class="textC">$currencyTool.cent2TenNoSymbol($!{item.skuPrice})元/$!{item.priceUnit}</td>
<td class="textC">$!{item.amount}</td>
#if($!{velocityCount} == 1)
<td class="textC" rowspan="$!{model.orderItems.size()}">
<span style="color:red">
#if($!{model.totalPrice}!=0)
$currencyTool.cent2TenNoSymbol($!{model.totalPrice})元
#end
</span>
</td>
<td class="textC" rowspan="$!{model.orderItems.size()}">
<span style="color:red">
#if($!{model.realTotalPrice}!=0)
$currencyTool.cent2TenNoSymbol($!{model.realTotalPrice})元
#end
</span>
</td>
<td class="textC" rowspan="$!{model.orderItems.size()}">
<span style="color:red">
#if($!{model.postage}!=0)
$currencyTool.cent2TenNoSymbol($!{model.postage})元
#end
</span>
</td>
<td class="textC" rowspan="$!{model.orderItems.size()}">
#set($allPriceTotal=$!{model.postage}+$!{model.realTotalPrice})
<span style="font-size:17px;color:red">$currencyTool.cent2TenNoSymbol(${allPriceTotal})元</span>
</td>
#end
</tr>
#end
</tbody>
</table>
</div>
</div>
</div>
</br>
<div class="row">
<div class="col-md-12 align-right">
<div align="right">
<table>
<tr >
<td align="right">
<span style="font-size:17px;">订单总金额:</span>
</td>
<td>
#if($!{model.realTotalPrice})
<span style="font-size:17px;">$currencyTool.cent2TenNoSymbol($!{model.realTotalPrice})元</span>
#end
</td>
</tr>
<tr >
<td align="right">
<span style="font-size:17px;">运费总金额:</span>
</td>
<td>
<span style="font-size:17px;">$currencyTool.cent2TenNoSymbol($!{model.postage})元</span>
</td>
</tr>
<tr>
<td colspan="2">
<hr style="height:2px;border:none;border-top:2px ridge black;">
</td>
</tr>
<tr>
<td align="right">
<span style="font-size:17px;">总计:</span>
</td>
<td >
#set($allPriceTotal=$!{model.postage} + $!{model.realTotalPrice})
<span style="font-size:17px;">$currencyTool.cent2TenNoSymbol($!{allPriceTotal})元</span>
</td>
</tr>
</table>
</div>
</div>
</div>