|
@@ -27,25 +27,29 @@
|
27
|
27
|
<div class="layui-inline" style="margin-right: 10px;">
|
28
|
28
|
<label class="layui-form-label" style="width: 80px;">项目名称</label>
|
29
|
29
|
<div class="layui-input-inline" style="width: 224px;">
|
30
|
|
- <input type="text" id="xmmc" name="xmmc" autocomplete="off" class="layui-input">
|
|
30
|
+ <input type="text" id="XMMC" name="XMMC" autocomplete="off" class="layui-input">
|
31
|
31
|
</div>
|
32
|
32
|
</div>
|
33
|
33
|
<div class="layui-inline" style="margin-right: 10px;">
|
34
|
34
|
<label class="layui-form-label" style="width: 80px;">erp编号</label>
|
35
|
35
|
<div class="layui-input-inline" style="width: 140px;">
|
36
|
|
- <input type="text" id="erpbh" name="erpbh" autocomplete="off" class="layui-input">
|
|
36
|
+ <input type="text" id="ERPBH" name="ERPBH" autocomplete="off" class="layui-input">
|
37
|
37
|
</div>
|
38
|
38
|
</div>
|
39
|
39
|
<div class="layui-inline" style="margin-right: 10px;">
|
40
|
40
|
<label class="layui-form-label" style="width: 80px;">费用申请号</label>
|
41
|
41
|
<div class="layui-input-inline" style="width: 140px;">
|
42
|
|
- <input type="text" id="fysqbh" name="fysqbh" autocomplete="off" class="layui-input">
|
|
42
|
+ <input type="text" id="FYSQBH" name="FYSQBH" autocomplete="off" class="layui-input">
|
43
|
43
|
</div>
|
44
|
44
|
</div>
|
45
|
45
|
<div class="layui-inline" style="margin-right: 10px;">
|
46
|
|
- <label class="layui-form-label" style="width: 80px;">年度</label>
|
47
|
|
- <div class="layui-input-inline" style="width: 140px;">
|
48
|
|
- <input type="text" id="nf" name="nf" autocomplete="off" class="layui-input">
|
|
46
|
+ <label class="layui-form-label" style="width: 60px">年份</label>
|
|
47
|
+ <div class="layui-input-inline" style="width: 150px">
|
|
48
|
+ <select name="NF" id="NF" lay-filter="status">
|
|
49
|
+ <option value="">全部</option>
|
|
50
|
+ <option th:each="item:${yearList}" th:text="${item.nf}"
|
|
51
|
+ th:value="${item.nf}"></option>
|
|
52
|
+ </select>
|
49
|
53
|
</div>
|
50
|
54
|
</div>
|
51
|
55
|
</div>
|
|
@@ -58,7 +62,7 @@
|
58
|
62
|
</div>
|
59
|
63
|
<div class="layui-form-mid">-</div>
|
60
|
64
|
<div class="layui-input-inline" style="width: 100px;">
|
61
|
|
- <input type="text" name="JZRQ" id="JZRQ" placeholder="结束日期" class="layui-input" readonly>
|
|
65
|
+ <input type="text" name="JSRQ" id="JSRQ" placeholder="结束日期" class="layui-input" readonly>
|
62
|
66
|
</div>
|
63
|
67
|
</div>
|
64
|
68
|
<div class="layui-inline" style="margin-right: 10px; margin-left: 10px;">
|
|
@@ -77,6 +81,9 @@
|
77
|
81
|
</fieldset>
|
78
|
82
|
|
79
|
83
|
<script type="text/html" id="toolbarDemo">
|
|
84
|
+ <button class="layui-btn layui-btn-sm" lay-event="export" style="background-color: #2f363c" >
|
|
85
|
+ <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>批量导出
|
|
86
|
+ </button>
|
80
|
87
|
|
81
|
88
|
</script>
|
82
|
89
|
|
|
@@ -119,7 +126,7 @@
|
119
|
126
|
elem: '#QSRQ'
|
120
|
127
|
});
|
121
|
128
|
laydate.render({
|
122
|
|
- elem: '#JZRQ'
|
|
129
|
+ elem: '#JSRQ'
|
123
|
130
|
});
|
124
|
131
|
|
125
|
132
|
|
|
@@ -133,15 +140,16 @@
|
133
|
140
|
[
|
134
|
141
|
{type: "checkbox", fixed: 'left'},
|
135
|
142
|
{type: 'numbers', align: 'center',title: '序号'},
|
136
|
|
- {field: 'BM', width: '7%', title: '项目部门'},
|
137
|
143
|
{field: 'XMMC', width: '15%', title: '项目名称', sort: true},
|
138
|
|
- {field: 'BH', width: '10%', title: '项目编号'},
|
139
|
|
- {field: '', width: '10%', title: '申请科研费号'},
|
|
144
|
+ {field: 'BM', width: '7%', title: '项目部门'},
|
|
145
|
+ {field: 'ERPBH', width: '10%', title: '项目编号'},
|
|
146
|
+ {field: 'BH', width: '10%', title: '申请科研费号'},
|
|
147
|
+ {field: 'NF', width: '7%', title: '年份'},
|
140
|
148
|
{field: 'XMLXMC', width: '10%', title: '项目类型'},
|
141
|
149
|
{field: 'XMFZR', width: '9%', title: '项目负责人'},
|
142
|
|
- {field: 'FYSQ', width: '15%', title: '申请金额'},
|
143
|
|
- {field: 'BZJEH', width: '10%', title: '报账金额(含税)'},
|
144
|
|
- {field: 'BZJEBH', width: '10%', title: '报账金额(不含税)'},
|
|
150
|
+ {field: 'SQJE', width: '10%', title: '申请金额'},
|
|
151
|
+ {field: 'BZJE', width: '10%', title: '报账金额(含税)'},
|
|
152
|
+ {field: 'BHSJE', width: '10%', title: '报账金额(不含税)'},
|
145
|
153
|
{field: 'SFBYJ', width: '10%', title: '是否备用金'},
|
146
|
154
|
{field: 'SQSJ', width: '10%', title: '申请时间'},
|
147
|
155
|
{field: 'ID', width: '0', title: 'id', hide: true}
|
|
@@ -186,9 +194,12 @@
|
186
|
194
|
// 监听重置操作
|
187
|
195
|
form.on('submit(data-reset-btn)', function (data) {
|
188
|
196
|
form.val("search-form", {
|
189
|
|
- "MC": '',
|
190
|
|
- "QSRQ": '',
|
191
|
|
- 'JZRQ': ''
|
|
197
|
+ "XMMC": '',
|
|
198
|
+ "ERPBH": '',
|
|
199
|
+ 'FYSQBH': '',
|
|
200
|
+ 'QSRQ': '',
|
|
201
|
+ 'JSRQ': '',
|
|
202
|
+ 'NF': ''
|
192
|
203
|
});
|
193
|
204
|
// 执行搜索重载
|
194
|
205
|
currTable.reload({
|
|
@@ -210,10 +221,29 @@
|
210
|
221
|
}
|
211
|
222
|
});
|
212
|
223
|
});
|
213
|
|
- var cancelIndex;
|
214
|
|
- /**
|
215
|
|
- * toolbar监听事件
|
216
|
|
- */
|
|
224
|
+
|
|
225
|
+ // 条件,批量导出
|
|
226
|
+ table.on('toolbar(currentTableFilter)', function (obj) {
|
|
227
|
+ if (obj.event ==='export'){
|
|
228
|
+ var formData = form.val('search-form');
|
|
229
|
+ console.log(formData);
|
|
230
|
+ var formDataString = JSON.stringify(formData);
|
|
231
|
+ AjaxUtil.post({
|
|
232
|
+ url:AjaxUtil.ctx +'staPrintingFee/getAll/'+formDataString,
|
|
233
|
+ contentType: "application/json",
|
|
234
|
+ timeout: 15000, //大批量导出时会出现超时问题
|
|
235
|
+ success: function(res){
|
|
236
|
+ console.log(res);
|
|
237
|
+ table.exportFile('currentTableId',res.data,'xlsx');
|
|
238
|
+ },
|
|
239
|
+ error:function (error) {
|
|
240
|
+ Message.error(error,2000)
|
|
241
|
+
|
|
242
|
+ }
|
|
243
|
+ });
|
|
244
|
+ }
|
|
245
|
+
|
|
246
|
+ });
|
217
|
247
|
});
|
218
|
248
|
|
219
|
249
|
|