-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable-show.html
757 lines (730 loc) · 29 KB
/
table-show.html
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
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ERP Common Page</title>
<link rel="shortcut icon" href="/assets/img/favicon.ico"/>
<link rel="stylesheet" href="/assets/table-demo/js/skins/default/laydate.css">
<link rel="stylesheet" href="/assets/table-demo/js/need/laydate.css">
<link rel="stylesheet" type="text/css" href="/assets/table-demo/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="/assets/table-demo/css/table-common.css"/>
<link rel="stylesheet" type="text/css" href="/assets/table-demo/css/table-popup.css"/>
<script src="/assets/table-demo/js/jquery-1.11.3.js"></script>
<script src="/assets/table-demo/js/jquery.easydrag.handler.beta2.js"></script>
<script src="/assets/table-demo/js/laydate.js"></script>
<script src="/assets/table-demo/js/treeList.js"></script>
<style type="text/css">
.c_1 {
width: 8%;
}
.c_2 {
width: 14%;
}
.c_3 {
width: 10%;
}
.c_4 {
width: 21%;
}
.c_5,
.c_6 {
width: 12%;
}
.c_7 {
width: 12%;
}
/* 小计 跨列格
width = (8% + 14% + 10%) / 8% = 400% 只要比结果小就可以
*/
.c_content {
width: 400%;
font-size: 12px;
text-align: center;
}
</style>
<style type="text/css">
.mixTr > td {
padding: 0 !important;
}
.mixTr > td > table {
width: 100%;
}
.mixTr > td > table td {
border: 1px solid #ccc;
}
</style>
</head>
<body>
<div class="single_zr" style="overflow: hidden;">
<div class="right_container">
<!--面包屑导航-->
<div class="breadcrumb_nav">
<p class="current_nav">
<span class="current_nav_title">当前位置:</span>
<a class="current_nav_item" href="">一级标题</a>
<span class="indicator">>></span>
<span class="current_nav_item">二级标题</span>
<span class="indicator">>></span>
<span class="current_nav_item font_red">当前标题</span>
</p>
<!--查询按钮-->
<div class="search_drop_down_btn"
onclick="openShutManager(this,'drop_down_search',false,'<img src=/assets/table-demo/img/everyclose_btn.png />','<img src=/assets/table-demo/img/click_btn.png />')">
<img src="/assets/table-demo/img/everyclose_btn.png"/>
</div>
</div>
<!-- 查询框 -->
<div id="drop_down_search" class="drop_down_search_bar">
<form action="" method="post">
<p class="search_title_bar">
<span class="search_title"><i></i> 查询管理</span>
</p>
<div class="search_box">
<!-- 控件项 - 标准 -->
<div class="search_item">
<label for="applicant">申请人</label>
<input type="text" id="applicant" class="clear_item"/>
</div>
<!-- 控件项 - 选项 -->
<div class="search_item">
<label for="state">缴纳状态</label>
<select id="state" class="clear_item">
<option value="7">全部</option>
<option value="1">未缴纳</option>
</select>
</div>
<!-- 控件项 - 单一日期 -->
<div class="search_item search_date_range">
<label for="apply_date">提交日期</label>
<input type="text" id="apply_date" onclick="laydate()" readonly class="clear_item"/>
</div>
<!-- 控件项 - 起始日期 -->
<div class="search_item search_date_range">
<label for="apply_start_date">申请日期</label>
<input type="text" id="apply_start_date" readonly class="clear_item"/>
</div>
<!-- 控件项 - 终止日期 -->
<div class="search_item search_date_range_indicator">
<label for="apply_end_date">-</label>
<input type="text" id="apply_end_date" readonly class="clear_item"/>
</div>
<!-- 查询 -->
<input class="search_btn" type="submit" value="查询" readonly/>
<!-- 重置 -->
<input class="reset_btn" type="button" value="重置" readonly/>
</div>
</form>
</div>
<!-- 通用导航条(文字) -->
<div class="nav_bar">
<ul class="nav_text_box">
<li>上月公积金</li>
<li>本月变动</li>
<li>下月变动</li>
<li class="hover">全部</li>
</ul>
</div>
<!-- 通用导航条(图标) -->
<div class="nav_bar">
<ul class="nav_icon_box">
<li><i class="icon icon-add"></i>添加(黄底)</li>
<li><a href="#"><i class="icon icon-add_blue"></i>添加(白底)</a></li>
<li><input type="text" placeholder="说明"></li>
<li><input type="button" value="搜索" class="btn btn-primary"></li>
<li><i class="icon icon-delete"></i>删除</li>
<li><span class="btn btn-default">默认</span></li>
<li><span class="btn btn-danger">危险</span></li>
<li><span class="btn btn-warning">提示</span></li>
<li><a href="#" class="btn btn-info">信息</a></li>
<li>
<select>
<option value="1">111</option>
</select>
</li>
</ul>
</div>
<!-- 通用导航条(作为头部使用) -->
<div class="nav_bar head">
<ul class="nav_icon_box">
<li><i class="icon icon-edit"></i>编辑</li>
<li><i class="icon icon-email"></i>邮件</li>
<li><i class="icon icon-home"></i>主页</li>
<li><i class="icon icon-payment"></i>支付</li>
<li><i class="icon icon-people"></i>人员</li>
<li><i class="icon icon-print"></i>打印</li>
<li><i class="icon icon-query"></i>查询</li>
<li><i class="icon icon-right"></i>确认</li>
<li><i class="icon icon-upload"></i>上传</li>
</ul>
</div>
<!-- 滚动导航条 -->
<div class="dept_list ">
<div class="dept_list_box ">
<div class="btn_box ">
<div class="btnlf "><</div>
<div class="btnrt ">></div>
</div>
<div class="dept_list_container ">
<ul>
<li><a href="#" class="hover">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
<li><a href="#">xxxxxxx</a></li>
</ul>
</div>
</div>
</div>
<!-- 表格主体 -->
<div class="table_list_box ">
<table class="table_list_content">
<thead>
<tr class="table_list_title ">
<th class="c_1">申请人</th>
<th class="c_2">所在部门</th>
<th class="c_3">类型</th>
<th class="c_4">详细说明</th>
<th class="c_5">申请日期</th>
<th class="c_6">接收日期</th>
<th class="c_7">接收日期</th>
<th>审核状态</th>
</tr>
</thead>
<tbody>
<tr class="table_list_row mixTr">
<td>
<table>
<!-- 循环tr -->
<tr>
<!-- 仅索引为0时 显示 rowspan为数组长度-->
<td rowspan="5" class="c_1">1</td>
<td rowspan="5" class="c_2">2</td>
<!-- 仅索引为0时 显示-->
<td class="c_3">3</td>
<td class="c_4">4</td>
<td class="c_5">5</td>
<td class="c_6">6</td>
<td class="c_7">7</td>
<td>8</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
</table>
</td>
</tr>
</tbody>
<tfoot>
<tr class="table_list_row ">
<td class="c_1 no_rbor">
<div class="c_content font_red">总计</div>
</td>
<td class="c_2 no_rbor"></td>
<td class="c_3"></td>
<td class="c_4">XXXX</td>
<td class="c_5">XXXX</td>
<td class="c_6">XXXX</td>
<td class="c_7">XXXX</td>
<td>xxxxx</td>
</tr>
<tr class="table_list_row ">
<td colspan="8 ">没有任何记录!</td>
</tr>
</tfoot>
</table>
<div class="page_down">
<a href="#">首页</a>
<a style="color:#fff;background:#d1d1d1;">1</a>
<a href="#">尾页</a>
</div>
</div>
<!--<div class="table_list_box ">
<table class="table_list_content double">
<thead>
<tr class="table_list_title ">
<th class="c_1" rowspan="2">申请人</th>
<th class="c_2" rowspan="2">所在部门</th>
<th colspan="2">类型</th>
<th class="c_5">申请日期</th>
<th class="c_6">接收日期</th>
<th class="c_7">接收日期</th>
<th rowspan="2">审核状态</th>
</tr>
<tr class="table_list_title ">
<th class="c_3">类型</th>
<th class="c_4">详细说明</th>
<th colspan="3">申请日期</th>
</tr>
</thead>
<tbody>
<tr class="table_list_row ">
<td class="c_1">XXXX</td>
<td class="c_2">XXXX</td>
<td class="c_3">XXXX</td>
<td class="c_4">XXXX</td>
<td class="c_5">XXXX</td>
<td class="c_6">XXXX</td>
<td class="c_7">XXXX</td>
<td>xxxxx</td>
</tr>
<tr class="table_list_row ">
<td class="c_1 no_rbor no_bbor"></td>
<td class="c_2 no_rbor no_bbor"></td>
<td class="c_3 no_bbor"></td>
<td class="c_4">XXXX</td>
<td class="c_5">XXXX</td>
<td class="c_6">XXXX</td>
<td class="c_7">XXXX</td>
<td>xxxxx</td>
</tr>
<tr class="table_list_row ">
<td class="c_1 no_rbor no_bbor">
<div class="c_content">小计</div>
</td>
<td class="c_2 no_rbor no_bbor"></td>
<td class="c_3 no_bbor"></td>
<td class="c_4">XXXX</td>
<td class="c_5">XXXX</td>
<td class="c_6">XXXX</td>
<td class="c_7">XXXX</td>
<td>xxxxx</td>
</tr>
<tr class="table_list_row ">
<td class="c_1 no_rbor"></td>
<td class="c_2 no_rbor"></td>
<td class="c_3"></td>
<td class="c_4">XXXX</td>
<td class="c_5">XXXX</td>
<td class="c_6">XXXX</td>
<td class="c_7">XXXX</td>
<td>xxxxx</td>
</tr>
</tbody>
<tfoot>
<tr class="table_list_row ">
<td class="c_1 no_rbor">
<div class="c_content font_red">总计</div>
</td>
<td class="c_2 no_rbor"></td>
<td class="c_3"></td>
<td class="c_4">XXXX</td>
<td class="c_5">XXXX</td>
<td class="c_6">XXXX</td>
<td class="c_7">XXXX</td>
<td>xxxxx</td>
</tr>
<tr class="table_list_row ">
<td colspan="8 ">没有任何记录!</td>
</tr>
</tfoot>
</table>
<div class="page_down">
<a href="#">首页</a>
<a style="color:#fff;background:#d1d1d1;">1</a>
<a href="#">尾页</a>
</div>
</div>-->
</div>
</div>
<!-- 弹窗 -->
<div class="popup_win">
<!-- 头部 -->
<div class="popwin_header" id="popwin_header">
<img class="popwin_close" src="/assets/table-demo/img/close_icon.jpg"/>
<p class="popwin_breadcrumb">
行政事务 >> 二 >> 三 >>
<span class="font_red">查看</span>
<span class="font_blue" id="print">打印</span>
<span class="fr" onclick="popattBoxOpen(1)">一号>></span>
<span class="fr" onclick="popattBoxOpen(2)">二号>></span>
<span class="fr" onclick="popattBoxOpen(3)">三号>></span>
</p>
</div>
<!-- 主体 -->
<div class="popwin_body">
<div class="apply_process_box">
<p class="ap_title">流程</p>
<div class="ap_chart">
<span class="ap_item ap_ends">开始</span>
<i class="arrow_right"></i>
<!-- 通过审核 -->
<span class="ap_item ap_pass ">AAA</span>
<i class="arrow_right"></i>
<!-- 正在审核 -->
<span class="ap_item ap_current">BBB</span>
<i class="arrow_right"></i>
<!-- 还未审核 -->
<span class="ap_item">CCC</span>
<i class="arrow_right"></i>
<span class="ap_item ap_ends">结束</span>
</div>
</div>
<div class="popwin_content scroll_bar">
<div class="content_box">
<h1>标题</h1>
</div>
<div class="content_box">
<h2>基本信息</h2>
<div class="row-c">
<div class="col-a">
<label>输入</label>
<input type="text" value="AAA" readonly/>
</div>
<div class="col-a">
<label>选项</label>
<select disabled>
<option value="A">AAA</option>
</select>
</div>
<div class="col-a">
<label>日期</label>
<input type="text" value="AAAA" readonly onclick="laydate()" class="input_date"/>
</div>
<div class="col-c">
<label>原因</label>
<textarea readonly>AAA</textarea>
</div>
<fieldset readonly>
<legend>说明</legend>
<textarea readonly>AAA</textarea>
</fieldset>
</div>
</div>
<div class="content_box">
<h2>附件</h2>
<ul id="att_list">
<!--图片-->
<li>
<img src="/assets/table-demo/img/nopic.jpg" onclick="imgMagnify($(this).attr('src'))"/>
<a href="javascript:window.parent.window.document.getElementById('picsubmit').contentWindow.delpic('{$v[0]}')">删除</a>
</li>
<!--文件-->
<li>
<a target="_blank" href="{$v[0]}" class="att_file" download="">
<img src="/assets/table-demo/img/load.jpg"/>
</a>
<a href="javascript:window.parent.window.document.getElementById('picsubmit').contentWindow.delpic('{$v[0]}')">删除</a>
</li>
<!--无图-->
<li>
<img src="/assets/table-demo/img/nopic.jpg" alt="暂无图片"/>
</li>
</ul>
</div>
<div class="content_box">
<h2>货物明细</h2>
<!-- 表头固定 -->
<div class="table_box">
<div class="table_header">
<table>
<tr>
<th width="10%">序号</th>
<th width="10%">产品名称</th>
<th width="10%">产品规格</th>
<th width="10%">箱规</th>
<th width="10%">数量/箱</th>
<th width="10%">单价/元</th>
<th width="10%">总金额/元</th>
<th>备注</th>
</tr>
</table>
</div>
<!-- 主体定高超高滚动 -->
<div class="table_content scroll_bar">
<table>
<tr>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td>AAA</td>
</tr>
<tr>
<td width="10%" class="font_red">总计</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td width="10%">AAA</td>
<td>AAA</td>
</tr>
</table>
</div>
</div>
</div>
<div class="content_box">
<h2>审核流程</h2>
<table class="process_box">
<thead>
<tr>
<th width="10%">用户</th>
<th width="40%">操作</th>
<th width="20%">审核状态</th>
<th width="30%">处理时间</th>
</tr>
</thead>
<tbody>
<tr>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="opinion_box">
<textarea name="opinion" id="opinion" placeholder="请填写意见"></textarea>
</div>
</div>
<!-- 底部 -->
<div class="popwin_footer">
<input type="button" value="关闭" class="popwin_close" readonly>
<input type="button" value="提交" class="fr"/>
<input type="button" value="取回" class="fr" onclick="newtakeback(this)" data-id="{$apply.yc_id}"
data-apply="contractManage" data-state="{$apply.sc_state}" data-op="sc" data-sys='administration'>
<select class="assign_person">
<option value="1">张嘉望</option>
</select>
<input type="button" value="驳回" class="reject_file">
</div>
<!-- 附属弹窗 -->
<div class="popwin_attach">
<!--一号 该弹窗目前排位第 1-->
<div class="popatt_box">
<p class="popatt_header">
<img class="popatt_close" onclick="popattBoxClose(this)" src="/assets/table-demo/img/close_icon.jpg"/>
一号
</p>
<div class="popatt_body">
<table>
<thead>
<tr>
<th width="20%">编号</th>
<th width="50%">资产名称</th>
<th width="10%">数量</th>
<th width="20%">估价</th>
</tr>
</thead>
<tbody>
<tr>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="popatt_box">
<p class="popatt_header">
<img class="popatt_close" onclick="popattBoxClose(this)" src="/assets/table-demo/img/close_icon.jpg"/>
二号
</p>
<div class="popatt_body">
<table>
<thead>
<tr>
<th width="20%">编号</th>
<th width="50%">资产名称</th>
<th width="10%">数量</th>
<th width="20%">估价</th>
</tr>
</thead>
<tbody>
<tr>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="popatt_box">
<p class="popatt_header">
<img class="popatt_close" onclick="popattBoxClose(this)" src="/assets/table-demo/img/close_icon.jpg"/>
三号
</p>
<div class="popatt_body">
<table>
<thead>
<tr>
<th width="20%">编号</th>
<th width="50%">资产名称</th>
<th width="10%">数量</th>
<th width="20%">估价</th>
</tr>
</thead>
<tbody>
<tr>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
<td>AAA</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- 模态框 -->
<div class="popup_wrap"></div>
<script>
/* 所有弹窗底部必须调用此方法! 参数为关闭按钮选择器,容器选择器,导航条ID*/
$(function () {
popup_window();
});
/* 弹窗拖动与关闭 */
function popup_window(btn, box, handlerId) {
if (!btn) {
btn = '.popwin_close'
}
if (!box) {
box = '.popup_win'
}
if (!handlerId) {
handlerId = 'popwin_header'
}
// 关闭按钮
$(btn).click(function (e) {
e.stopPropagation();
$(box).hide().removeClass().addClass(box.replace('.', '')).css('margin-right', 0);
});
// 拖动
$(box).easydrag().setHandler(handlerId);
}
/* 附属弹窗关闭 */
function popattBoxClose(e) {
$(e).parents('div.popatt_box').slideUp('fast');
}
/* 附属弹窗打开 */
function popattBoxOpen(n) {
n = parseInt(n) - 1;
var box = '.popup_win';
if (!$(box).is(':visible')) {
box = '.popup_apply'
}
var boxAtt = $(box + ' div.popatt_box').eq(n);
boxAtt.slideToggle('fast');
}
/* 点击行查看详情 */
$('tbody .table_list_row').click(function () {
$('.popup_win').show();
});
/* 查询 - 打开关闭 */
function openShutManager(oSourceObj, oTargetObj, shutAble, oOpenTip, oShutTip) {
var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
var openTip = oOpenTip || "";
var shutTip = oShutTip || "";
if (targetObj.style.display != "none") {
if (shutAble) return;
targetObj.style.display = "none";
if (openTip && shutTip) {
sourceObj.innerHTML = shutTip;
}
} else {
targetObj.style.display = "block";
if (openTip && shutTip) {
sourceObj.innerHTML = openTip;
}
}
}
/* 部门列表滚动*/
$(".btn_box ").on("click ", function (e) {
var $scrollBox = $(".dept_list_container ");
var scrollLeft = $scrollBox.scrollLeft();
if (e.target.className == "btnlf ") {
$scrollBox.scrollLeft(scrollLeft - 103);
return false;
}
if (e.target.className == "btnrt ") {
$scrollBox.scrollLeft(scrollLeft + 103);
return false;
}
});
/* 全选 */
$('input.select_all').click(function () {
$('input.select_item').prop('checked', this.checked);
});
/* 查询日期设置 */
function setDateRange(startId, endId) {
startId = startId || 'apply_start_date';
endId = endId || 'apply_end_date';
var apply_start_date = {
elem: '#' + startId,
choose: function (datas) {
apply_end_date.min = datas; //开始日选好后,重置结束日的最小日期
apply_end_date.apply_start_date = datas; //将结束日的初始值设定为开始日
}
},
apply_end_date = {
elem: '#' + endId,
choose: function (datas) {
apply_start_date.max = datas; //结束日选好后,重置开始日的最大日期
}
};
laydate(apply_start_date);
laydate(apply_end_date);
}
setDateRange();
/* 重置 */
$('.reset_btn').click(function () {
$('input.clear_item').val('');
$('select.clear_item option:first-child').attr('selected', true);
});
/* 快捷查询 */
$('.search_box input[type=text]:not([readonly])').keydown(function (e) {
if (e.keyCode == 13) {
$(this).closest('form').submit();
}
});
</script>
</body>
</html>