info.html
16.1 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
<div class="contentpanel">
<form id="basicForm" role="form" class="form-horizontal form-bordered" method="get" action="/supplier/agreement/save">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">添加合同</h4>
</div>
<!-- panel-heading -->
<div class="panel-body">
<div class="row">
<div class="panel-body nopadding">
<div class="form-group">
<label class="col-sm-1 control-label">合同名称</label>
<div class="col-sm-6">
{{agreementName}}
</div>
</div>
<!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">有效期</label>
<div class="col-sm-2">
{{agreementStartTime}}
</div>
<div class="col-sm-2">
{{agreementEndTime}}
</div>
</div>
<!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">合同编号</label>
<div class="col-sm-6">
{{agreementCode}}
</div>
</div>
<!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">结算周期</label>
<div class="col-sm-6">
{{settlementPeriod}}
</div>
</div>
<!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">发票类型</label>
<div class="col-sm-6">
{{invoiceTypeName}}
</div>
</div>
<!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">合同条款</label>
<div class="col-sm-11">
<table id="formTable1" class="table table-bordered">
<thead class="">
<tr role="row">
<th style="text-align: center">品牌名称</th>
<th style="text-align: center">服务项</th>
<th style="text-align: center">结算条款</th>
</tr>
</thead>
<tbody id="clauseListBox"></tbody>
</table>
</div>
</div>
<!-- form-group -->
<div class="form-group">
<label class="col-sm-1 control-label">纸质合同</label>
<div class="col-sm-11">
<a href="{{agreementFile}}" target="_blank">查看纸质合同</a>
</div>
</div>
<!-- form-group -->
</div>
<div class="panel-footer">
<div class="row">
<div class="col-sm-9 col-sm-offset-3">
<input type="hidden" id="contractsDatas" value="{{contractsDatas}}">
<input type="hidden" id="agreementId" value="{{agreementId}}">
</div>
</div>
</div>
<!-- panel-footer -->
</div>
<!-- row -->
</div>
<!-- panel-body -->
</div>
</form>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">ºÏͬÌõ¿î</h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">È¡Ïû</button>
<button type="button" class="btn btn-primary" data-toggle="saveRule">±£´æ</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">合同条款</h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary" data-toggle="saveRule">保存</button>
</div>
</div>
</div>
</div>
<script id="brand-tpl" type="x-tmpl-handlebars">
<div class="form-group">
<label class="col-sm-2 control-label">品牌</label>
<div class="col-sm-4">
<select name="supplier_id" id="supplier_name" style="width:280px;" tabindex="-1" title="" class="select2-offscreen">
<option value="">选择供应商</option>
{{# filterName}}
<option value="{{value}}">{{name}}</option>
{{/ filterName}}
</select>
</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">信息处理及店铺运营扣点</label>
<div class="col-sm-2">
<select class="form-control input-sm" id="operation_service" value="\{{operation_service.type}}">
<option value="1" >代运营-YOHO运营</option>
<option value="0">商家自运营</option>
</select>
</div>
<div class="col-sm-2">
<input type="text" min="0.0001" max="1" class="form-control input-sm" value="\{{operation_service.value}}" id="operation_service_koudian" >
</div>
<div class="col-sm-3" style="padding-top: 10px">注:扣点最多4位小数。</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">拍摄服务扣点</label>
<div class="col-sm-2">
<select class="form-control input-sm" id="photographic_service" value="\{{operation_service.type}}">
<option value="0">不使用</option>
<option value="1" selected="">使用摄影服务</option>
<option value="2">特殊摄影服务</option>
</select>
</div>
<div class="col-sm-2">
<input type="text" min="0.0001" max="1" class="form-control input-sm" value="\{{photographic_service.value}}" id="photographic_service_koudian" >
</div>
<div class="col-sm-3" style="padding-top: 10px">注:扣点最多4位小数。</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">测量服务扣点</label>
<div class="col-sm-2">
<select id="size_service" class="form-control input-sm" value="\{{size_service.type}}">
<option value="0">不使用尺码测量</option>
<option value="1" selected="">使用尺码测量</option>
</select>
</div>
<div class="col-sm-2">
<input type="text" min="0.0001" max="1" class="form-control input-sm" value="\{{size_service.value}}" id="size_service_koudian">
</div>
<div class="col-sm-3" style="padding-top: 10px">注:扣点最多4位小数。</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">仓储服务扣点</label>
<div class="col-sm-2">
<input type="text" min="0.0001" max="1" class="form-control input-sm" value="\{{storage_service_koudian}}" id="storage_service_koudian">
</div>
<div class="col-sm-3" style="padding-top: 10px">注:扣点最多4位小数。</div>
</div><!-- form-group -->
<div class="form-group">
<label class="col-sm-2 control-label">类目</label>
<div class="col-sm-2">
<select class="form-control input-sm" name="max_sort_id" id="maxSort">
</select>
</div>
<div class="col-sm-2">
<select class="form-control input-sm" name="middle_sort_id" id="middleSort">
</select>
</div>
<div class="col-sm-2">
<select class="form-control input-sm" name="small_sort_id" id="smallSort">
</select>
</div>
<div class="col-sm-2">
<select class="form-control input-sm" name="sort_id" id="sort">
</select>
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-success btn-xs" style="clear:both;float:left;" data-toggle="addRule">添加规则</button>
</div>
</div><!-- form-group -->
<div class="form-group">
<div class="col-sm-12">
<table id="formTable1" class="table table-bordered">
<thead class="">
<tr role="row">
<th style="text-align: center">一级类目</th>
<th style="text-align: center">二级类目</th>
<th style="text-align: center">三级类目</th>
<th style="text-align: center">四级类目</th>
<th style="text-align: center">交易佣金</th>
<th style="text-align: center">平台运营扣点</th>
<th style="text-align: center">操作</th>
</tr>
</thead>
<tbody id="clauseBox">
\{{#each ruledatas}}
<tr>
<td>\{{maxSort.name}}</td>
<td>\{{middleSort.name}}</td>
<td>\{{smallSort.name}}</td>
<td>\{{sort.name}}</td>
<td>
\{{#each commissions}}
<table id="formTable1" class="table table-bordered">
<thead class="">
<tr role="row">
<th>条款</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="hidden" value="\{{zhe}}">
>=<input type="text" style="width:40px;padding-left:2px;" value="0">折,
扣<input placeholder="扣点" type="text" style="width:40px;padding-left:2px;" value="{{kou}}" >个点</td>
<td>
\{{# isdel}}
<button class="btn btn-warning btn-xs" type="button" data-toggle="deleteSettlement">删除</button>
\{{/ isdel}}
</td>
</tr>
</tbody>
</table>
\{{/ each}}
<button type="button" class="btn btn-info btn-xs" data-toggle="addSettlement">添加一条结算规则</button></td>
<td><input type="text" value="\{{discount}}" ></td>
<td>
<button type="button" class="btn btn-danger btn-xs" data-toggle="deleteRule">删除</button>
</td>
</tr>
\{{/ each}}
</tbody>
</table>
</div>
</div><!-- form-group -->
</script>
<script id="tr-tpl" type="x-tmpl-handlebars">
<tr>
<td>\{{maxSort}}</td>
<td>\{{middleSort}}</td>
<td>\{{smallSort}}</td>
<td>\{{sort}}</td>
<td>\{{{subtable}}}
<button type="button" class="btn btn-info btn-xs" data-toggle="addSettlement">添加一条结算规则</button></td>
<td><input type="text" value="0.00"></td>
<td>
<button type="button" class="btn btn-danger btn-xs" data-toggle="deleteRule">删除</button>
</td>
</tr>
</script>
<script id="subtable-tpl" type="x-tmpl-handlebars">
<table id="formTable1" class="table table-bordered">
<thead class="">
<tr role="row">
<th>条款</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="hidden" value="">
>=<input type="text" style="width:40px;padding-left:2px;" value="0">折,
扣<input placeholder="扣点" type="text" style="width:40px;padding-left:2px;" value="0.00" >个点</td>
<td>
\{{# isdel}}
<button class="btn btn-warning btn-xs" type="button" data-toggle="deleteSettlement">删除</button>
\{{/ isdel}}
</td>
</tr>
</tbody>
</table>
</script>
<script id="clauselist-tpl" type="x-tmpl-handlebars">
\{{#each clauselist}}
<tr >
<td>\{{supplier_name.name}}</td>
<td style="text-align:right">
信息处理及店铺运营扣点(\{{operation_service.value}})
<br>拍摄服务扣点(\{{photographic_service.value}})
<br>测量服务扣点(\{{size_service.value}})
<br>仓储服务扣点(\{{storage_service_koudian}})
</td>
<td>
<table class="table table-bordered">
<thead>
<tr role="row">
<th>类目</th>
<th>交易佣金</th>
<th>平台运营折扣点</th>
</tr>
</thead>
<tbody>
\{{#each ruledatas}}
<tr>
<td rowspan="1">
\{{maxSort.name}} / \{{middleSort.name}} / \{{smallSort.name}} / \{{sort.name}}
</td>
<td>
\{{#each commissions}}
<p>>= \{{zhe}} 折,扣 \{{kou}} 个点</p>
\{{/ each}}
</td>
<td rowspan="1">
\{{discount}}
</td>
</tr>
\{{/ each}}
</tbody>
</table>
</td>
</tr>
\{{/ each}}
</script>