|
@@ -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,25 +62,25 @@
|
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">
|
65
|
69
|
<label class="layui-form-label" style="width: 80px">临时人员姓名</label>
|
66
|
70
|
<div class="layui-input-inline" style="width: 140px">
|
67
|
|
- <input type="text" id="SSBMNAME" name="SSBMNAME" class="layui-input"
|
|
71
|
+ <input type="text" id="XM" name="XM" class="layui-input"
|
68
|
72
|
autocomplete="off"/>
|
69
|
73
|
</div>
|
70
|
74
|
</div>
|
71
|
75
|
<div class="layui-inline">
|
72
|
76
|
<label class="layui-form-label" style="width: 80px">聘用日期</label>
|
73
|
77
|
<div class="layui-input-inline" style="width: 100px;">
|
74
|
|
- <input type="text" name="SQRQStart" id="SQRQStart" placeholder="开始日期"
|
|
78
|
+ <input type="text" name="PYQSSJ" id="PYQSSJ" placeholder="开始日期"
|
75
|
79
|
class="layui-input" readonly>
|
76
|
80
|
</div>
|
77
|
81
|
<div class="layui-form-mid">-</div>
|
78
|
82
|
<div class="layui-input-inline" style="width: 100px;">
|
79
|
|
- <input type="text" name="SQRQEnd" id="SQRQEnd" placeholder="结束日期" class="layui-input"
|
|
83
|
+ <input type="text" name="PYDQSSJ" id="PYDQSSJ" placeholder="结束日期" class="layui-input"
|
80
|
84
|
readonly>
|
81
|
85
|
</div>
|
82
|
86
|
</div>
|
|
@@ -98,7 +102,9 @@
|
98
|
102
|
</fieldset>
|
99
|
103
|
|
100
|
104
|
<script type="text/html" id="toolbarDemo">
|
101
|
|
-
|
|
105
|
+ <button class="layui-btn layui-btn-sm" lay-event="export" style="background-color: #2f363c" >
|
|
106
|
+ <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>批量导出
|
|
107
|
+ </button>
|
102
|
108
|
</script>
|
103
|
109
|
|
104
|
110
|
<input type="hidden" id="userId" name="userId" class="layui-input" th:value="${userId}">
|
|
@@ -131,16 +137,16 @@
|
131
|
137
|
|
132
|
138
|
//日期
|
133
|
139
|
laydate.render({
|
134
|
|
- elem: '#SQRQStart'
|
|
140
|
+ elem: '#PYQSSJ'
|
135
|
141
|
});
|
136
|
142
|
laydate.render({
|
137
|
|
- elem: '#SQRQEnd'
|
|
143
|
+ elem: '#PYDQSSJ'
|
138
|
144
|
});
|
139
|
145
|
laydate.render({
|
140
|
146
|
elem: '#QSRQ'
|
141
|
147
|
});
|
142
|
148
|
laydate.render({
|
143
|
|
- elem: '#JZRQ'
|
|
149
|
+ elem: '#JSRQ'
|
144
|
150
|
});
|
145
|
151
|
|
146
|
152
|
var currTable = table.render({
|
|
@@ -153,21 +159,24 @@
|
153
|
159
|
[
|
154
|
160
|
{type: "checkbox", fixed: 'left'},
|
155
|
161
|
{type: 'numbers', align: 'center'},
|
|
162
|
+ {field: 'XMMC', width: '10%', title: '项目名称'},
|
156
|
163
|
{field: 'BM', width: '7%', title: '项目部门'},
|
157
|
|
- {field: 'XMMC', width: '15%', title: '项目名称', sort: true},
|
|
164
|
+ {field: 'XMLXMC',width: '10%',title: '项目类型'},
|
|
165
|
+ {field: 'ERPBH',width: '10%',title: 'ERP编号'},
|
|
166
|
+ {field: 'ApprovalBH', width: '15%', title: '科研费号'},
|
|
167
|
+ {field: 'NF',width: '5%',title: '年份'},
|
158
|
168
|
{field: 'XMFZR', width: '7%', title: '项目负责人'},
|
159
|
169
|
{field: 'XM', width: '9%', title: '临聘人员姓名'},
|
160
|
170
|
{field: 'SFZH', width: '15%', title: '身份证号'},
|
161
|
|
- {field: 'QSRQ', width: '10%', title: '起始日期'},
|
162
|
|
- {field: 'JSRQ', width: '10%', title: '结束日期'},
|
163
|
|
- {field: 'FYSQ', width: '10%', title: '申请费用'},
|
164
|
|
- {field: 'BZFY', width: '10%', title: '报账费用'},
|
|
171
|
+ {field: 'QSRQ', width: '10%', title: '聘用起始时间'},
|
|
172
|
+ {field: 'JSRQ', width: '10%', title: '聘用截止时间'},
|
|
173
|
+ {field: 'SQJE', width: '7%', title: '申请费用'},
|
|
174
|
+ {field: 'BZJE', width: '7%', title: '报账费用'},
|
165
|
175
|
{field: 'BYXX', width: '7%', title: '毕业学校'},
|
166
|
176
|
{field: 'ZY', width: '7%', title: '专业'},
|
167
|
177
|
{field: 'XL', width: '7%', title: '学历'},
|
168
|
178
|
{field: 'GZDD', width: '10%', title: '工作地点'},
|
169
|
|
- {field: 'BH', width: '15%', title: '科研费号'},
|
170
|
|
- {field: 'SFBYJ', width: '10%', title: '是否备用金'},
|
|
179
|
+ {field: 'SFBYJ', width: '7%', title: '是否备用金'},
|
171
|
180
|
{field: 'SQSJ', width: '10%', title: '申请时间'},
|
172
|
181
|
{field: 'ID', width: '0', title: 'id', hide: true}
|
173
|
182
|
]
|
|
@@ -211,12 +220,16 @@
|
211
|
220
|
// 监听重置操作
|
212
|
221
|
form.on('submit(data-reset-btn)', function (data) {
|
213
|
222
|
form.val("search-form", {
|
214
|
|
- "MC": '',
|
215
|
|
- "SSBMNAME": '',
|
216
|
|
- 'SQRQStart': '',
|
217
|
|
- 'SQRQEnd': '',
|
|
223
|
+ "XMMC": '',
|
|
224
|
+ "ERPBH": '',
|
|
225
|
+ 'FYSQB': '',
|
218
|
226
|
'QSRQ': '',
|
219
|
|
- 'JZRQ': ''
|
|
227
|
+ 'JSRQ': '',
|
|
228
|
+ 'XM': '',
|
|
229
|
+ 'PYQSSJ': '',
|
|
230
|
+ 'PYDQSSJ': '',
|
|
231
|
+ 'NF': '',
|
|
232
|
+
|
220
|
233
|
});
|
221
|
234
|
// 执行搜索重载
|
222
|
235
|
currTable.reload({
|
|
@@ -238,10 +251,28 @@
|
238
|
251
|
}
|
239
|
252
|
});
|
240
|
253
|
});
|
241
|
|
- var cancelIndex;
|
242
|
|
- /**
|
243
|
|
- * toolbar监听事件
|
244
|
|
- */
|
|
254
|
+ // 条件,批量导出
|
|
255
|
+ table.on('toolbar(currentTableFilter)', function (obj) {
|
|
256
|
+ if (obj.event ==='export'){
|
|
257
|
+ var formData = form.val('search-form');
|
|
258
|
+ console.log(formData);
|
|
259
|
+ var formDataString = JSON.stringify(formData);
|
|
260
|
+ AjaxUtil.post({
|
|
261
|
+ url:AjaxUtil.ctx +'staTempmember/getAll/'+formDataString,
|
|
262
|
+ contentType: "application/json",
|
|
263
|
+ timeout: 15000, //大批量导出时会出现超时问题
|
|
264
|
+ success: function(res){
|
|
265
|
+ console.log(res);
|
|
266
|
+ table.exportFile('currentTableId',res.data,'xlsx');
|
|
267
|
+ },
|
|
268
|
+ error:function (error) {
|
|
269
|
+ Message.error(error,2000)
|
|
270
|
+
|
|
271
|
+ }
|
|
272
|
+ });
|
|
273
|
+ }
|
|
274
|
+
|
|
275
|
+ });
|
245
|
276
|
});
|
246
|
277
|
|
247
|
278
|
|