Browse Source

修复bug 问题

ly 10 months ago
parent
commit
d68941bb3f

+ 3 - 4
src/main/java/com/liang/controller/PrjProjectController.java

@@ -2351,10 +2351,9 @@ public class PrjProjectController extends BaseController {
2351 2351
      * 在记录表中添加修改前的数据
2352 2352
      * @return
2353 2353
      */
2354
+    @RequestMapping(value = "/addPrjProjectRecord/{xmid}",method =RequestMethod.POST)
2354 2355
     @ResponseBody
2355
-    @PostMapping("/addPrjProjectRecord/{xmid}")
2356
-//    @Transactional
2357
-    public BaseResult addBudgetRecord(@PathVariable("xmid") Integer xmid) {
2356
+    public BaseResult addBudgetRecord(@PathVariable  Integer xmid) {
2358 2357
 //        1.获取年度预算明细列表中的数据
2359 2358
         List<PrjBudget> xgjl = prjBudgetService.getXGJL(xmid);
2360 2359
 //        查询当前为第几次记录
@@ -2375,7 +2374,7 @@ public class PrjProjectController extends BaseController {
2375 2374
         if (prjProject.getSpzt().equals("审批结束")){
2376 2375
             prjProjectXgjlService.batchinsertXGJL(prjProjectXgjlList);
2377 2376
         }
2378
-        return BaseResult.success();
2377
+        return BaseResult.success("成功");
2379 2378
     }
2380 2379
 }
2381 2380
 

+ 17 - 1
src/main/java/com/liang/controller/StaPayapprovalController.java

@@ -62,6 +62,10 @@ public class StaPayapprovalController extends BaseController {
62 62
     private BaseProjecttypeService projecttypeService;
63 63
 
64 64
 
65
+    @Resource
66
+    private  PrjAnnualbudgetService prjAnnualbudgetService;
67
+
68
+
65 69
     /**
66 70
      * 分页查询
67 71
      *
@@ -198,6 +202,10 @@ public class StaPayapprovalController extends BaseController {
198 202
         model.addAttribute("fysq",fysq);
199 203
         }
200 204
 
205
+        //年份
206
+        List<String> yearList = prjAnnualbudgetService.getYearList();
207
+        model.addAttribute("yearList", yearList);
208
+
201 209
         return "payapply/mylist";
202 210
     }
203 211
 
@@ -215,7 +223,11 @@ public class StaPayapprovalController extends BaseController {
215 223
                              @RequestParam(required = false, defaultValue = "", value = "cjsj1") String cjsj1,
216 224
                              @RequestParam(required = false, defaultValue = "", value = "cjsj2") String cjsj2,
217 225
                              @RequestParam(required = false, defaultValue = "", value = "sortName") String sortName,
218
-                             @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder) {
226
+                             @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder,
227
+                             @RequestParam(required = false, defaultValue = "", value = "erpbh")String erpbh,
228
+                             @RequestParam(required = false, defaultValue = "", value = "bh")String bh,
229
+                             @RequestParam(required = false, defaultValue = "", value = "xmmc") String xmmc,
230
+                             @RequestParam(required = false, defaultValue = "", value = "nf") String nf) {
219 231
         SysUserInfo userInfo = getSysUserInfo();
220 232
         List<String> postName = sysUserInfoService.getPostNameByUserId(userInfo.getUserId());
221 233
         String post = "";
@@ -242,6 +254,10 @@ public class StaPayapprovalController extends BaseController {
242 254
         paraMap.put("spzt", spzt);
243 255
         paraMap.put("cjsj1", cjsj1);
244 256
         paraMap.put("cjsj2", cjsj2);
257
+        paraMap.put("erpbh",erpbh);
258
+        paraMap.put("bh",bh);
259
+        paraMap.put("nf",nf);
260
+        paraMap.put("xmmc",xmmc);
245 261
 
246 262
         if (!userInfo.getAccount().equals("admin")) {
247 263
             if (!"过".equals(post)) {

+ 1 - 1
src/main/resources/templates/annualbudget/list.html

@@ -267,7 +267,7 @@
267 267
                 "sfbyj": '',
268 268
                 "xmmc": '',
269 269
                 "ssbmmc": '',
270
-                "nf": '',
270
+                "nf": '0',
271 271
                 "spzt": '',
272 272
                 "sfbz": '',
273 273
                 "dkyfzr": '',

+ 30 - 27
src/main/resources/templates/annualbudget/mylist.html

@@ -18,35 +18,19 @@
18 18
                     <div class="layui-form-item">
19 19
                         <div class="layui-inline">
20 20
                             <label class="layui-form-label" style="width: 60px">项目名称</label>
21
-                            <div class="layui-input-inline" style="width: 300px">
21
+                            <div class="layui-input-inline" style="width: 145px">
22 22
                                 <input type="text" id="xmmc" name="xmmc" autocomplete="off" class="layui-input">
23 23
                             </div>
24 24
                         </div>
25
-                        <div class="layui-inline">
26
-                            <label class="layui-form-label" style="width: 60px">项目类型</label>
27
-                            <div class="layui-input-inline" style="width: 150px">
28
-                                <select name="xmlx" id="xmlx" lay-filter="status">
29
-                                    <option value="">全部</option>
30
-                                    <option th:each="item:${xmlxList}" th:text="${item.name}"
31
-                                            th:value="${item.code}"></option>
32
-                                </select>
33
-                            </div>
34
-                        </div>
35 25
                         <div class="layui-inline">
36 26
                             <label class="layui-form-label" style="width: 60px">ERP编号</label>
37
-                            <div class="layui-input-inline" style="width: 150px">
27
+                            <div class="layui-input-inline" style="width: 145px">
38 28
                                 <input type="text" id="erpbh" name="erpbh" autocomplete="off" class="layui-input">
39 29
                             </div>
40 30
                         </div>
41 31
                         <div class="layui-inline">
42
-                            <label class="layui-form-label" style="width: 60px">所属部门</label>
43
-                            <div class="layui-input-inline" style="width: 150px">
44
-                                <input type="text" id="ssbmmc" name="ssbmmc" autocomplete="off" class="layui-input">
45
-                            </div>
46
-                        </div>
47
-                        <div class="layui-inline">
48
-                            <label class="layui-form-label" style="width: 30px">年份</label>
49
-                            <div class="layui-input-inline" style="width: 150px">
32
+                            <label class="layui-form-label" style="width: 60px">年份</label>
33
+                            <div class="layui-input-inline" style="width: 145px">
50 34
                                 <select name="nf" id="nf" lay-filter="status">
51 35
                                     <option value="">全部</option>
52 36
                                     <option th:each="item:${yearList}" th:text="${item.nf}"
@@ -54,15 +38,9 @@
54 38
                                 </select>
55 39
                             </div>
56 40
                         </div>
57
-                        <div class="layui-inline">
58
-                            <label class="layui-form-label" style="width: 60px">任务书</label>
59
-                            <div class="layui-input-inline" style="width: 300px">
60
-                                <input type="text" id="rwsmc" name="rwsmc" autocomplete="off" class="layui-input">
61
-                            </div>
62
-                        </div>
63 41
                         <div class="layui-inline">
64 42
                             <label class="layui-form-label" style="width: 60px">审批状态</label>
65
-                            <div class="layui-input-inline" style="width: 150px">
43
+                            <div class="layui-input-inline" style="width: 145px">
66 44
                                 <select name="spzt" id="spzt" lay-filter="status">
67 45
                                     <option value="">全部</option>
68 46
                                     <option th:each="item:${approveList}" th:text="${item.name}"
@@ -70,6 +48,31 @@
70 48
                                 </select>
71 49
                             </div>
72 50
                         </div>
51
+                        <div class="layui-inline">
52
+                            <label class="layui-form-label" style="width: 60px">项目类型</label>
53
+                            <div class="layui-input-inline" style="width: 145px">
54
+                                <select name="xmlx" id="xmlx" lay-filter="status">
55
+                                    <option value="">全部</option>
56
+                                    <option th:each="item:${xmlxList}" th:text="${item.name}"
57
+                                            th:value="${item.code}"></option>
58
+                                </select>
59
+                            </div>
60
+                        </div>
61
+
62
+                        <div class="layui-inline">
63
+                            <label class="layui-form-label" style="width: 60px">所属部门</label>
64
+                            <div class="layui-input-inline" style="width: 145px">
65
+                                <input type="text" id="ssbmmc" name="ssbmmc" autocomplete="off" class="layui-input">
66
+                            </div>
67
+                        </div>
68
+
69
+                        <div class="layui-inline">
70
+                            <label class="layui-form-label" style="width: 60px">任务书</label>
71
+                            <div class="layui-input-inline" style="width: 145px">
72
+                                <input type="text" id="rwsmc" name="rwsmc" autocomplete="off" class="layui-input">
73
+                            </div>
74
+                        </div>
75
+
73 76
                         <div class="layui-inline" style="margin-left: 0px">
74 77
                             <button type="submit" class="layui-btn" lay-submit lay-filter="data-search-btn"><i
75 78
                                     class="layui-icon"></i> 搜 索

+ 1 - 1
src/main/resources/templates/payapply/adds.html

@@ -25,7 +25,7 @@
25 25
         </div>
26 26
         <div class="layui-form-item layui-inline" style="width: 100%">
27 27
             <label class="layui-form-label" style="width: 60px">任务书</label>
28
-            <div class="layui-input-inline" style="width: 855px">
28
+            <div class="layui-input-inline" style="width: 810px">
29 29
                 <input type="hidden" id="rws" name="rws" class="layui-input" lay-verify="required"
30 30
                        lay-reqtext="任务书不能为空">
31 31
                 <input type="hidden" id="rwsmc" name="rwsmc" class="layui-input">

+ 25 - 0
src/main/resources/templates/payapply/list.html

@@ -234,6 +234,31 @@
234 234
             });
235 235
             return false;
236 236
         });
237
+        // 监听重置操作
238
+        form.on('submit(data-reset-btn)', function (data) {
239
+            form.val("search-form", {
240
+                "erpbh": '',
241
+                "xmmc": '',
242
+                "bh": '',
243
+                "nf": '0',
244
+                "spzt": '',
245
+                "cjr": '',
246
+                "cjsj1":'',
247
+                "cjsj2":'',
248
+                "mc":'',
249
+                "bzr":'',
250
+                "fysqmc":''
251
+            });
252
+            // 执行搜索重载
253
+            currTable.reload({
254
+                page: {
255
+                    curr: 1
256
+                },
257
+                where: form.val("search-form")
258
+            });
259
+            return false;
260
+        });
261
+
237 262
 
238 263
         // 监听工具栏事件
239 264
         table.on('toolbar(currentTableFilter)', function (obj) {

+ 90 - 24
src/main/resources/templates/payapply/mylist.html

@@ -16,21 +16,57 @@
16 16
             <div id="search-div" style="margin: 5px 10px -10px 0px">
17 17
                 <form class="layui-form" action="" lay-filter="search-form">
18 18
                     <div class="layui-form-item">
19
-                        <label class="layui-form-label" style="width: 60px">审批状态</label>
20
-                        <div class="layui-input-inline" style="width: 150px">
21
-                            <select name="spzt" lay-filter="status">
22
-                                <option value="">全部</option>
23
-                                <option th:each="item:${approveList}" th:text="${item.name}"
24
-                                        th:value="${item.name}"></option>
25
-                            </select>
19
+                        <div class="layui-inline">
20
+                            <label class="layui-form-label" style="width: 60px">项目名称</label>
21
+                            <div class="layui-input-inline" style="width: 145px">
22
+                                <input type="text" name="xmmc" autocomplete="off" class="layui-input">
23
+                            </div>
24
+                        </div>
25
+                        <div class="layui-inline">
26
+                            <label class="layui-form-label" style="width: 60px">ERP编号</label>
27
+                            <div class="layui-input-inline" style="width: 145px">
28
+                                <input type="text" name="erpbh" autocomplete="off" class="layui-input">
29
+                            </div>
30
+                        </div>
31
+                        <div class="layui-inline">
32
+                            <label class="layui-form-label" style="width: 60px">科研费号</label>
33
+                            <div class="layui-input-inline" style="width: 145px">
34
+                                <input type="text" name="bh" autocomplete="off" class="layui-input">
35
+                            </div>
36
+                        </div>
37
+                        <div class="layui-inline">
38
+                            <label class="layui-form-label" style="width: 60px">年份</label>
39
+                            <div class="layui-input-inline" style="width: 145px">
40
+                                <select name="nf" id="nf" lay-filter="status">
41
+                                    <option value="">全部</option>
42
+                                    <option th:each="item:${yearList}" th:text="${item.nf}"
43
+                                            th:value="${item.nf}"></option>
44
+                                </select>
45
+                            </div>
26 46
                         </div>
27
-                        <label class="layui-form-label" style="width: 60px">费用申请</label>
28
-                        <div class="layui-input-inline" style="width: 150px">
29
-                            <input type="text" name="fysqmc" autocomplete="off" class="layui-input">
47
+                        <div class="layui-inline">
48
+                            <label class="layui-form-label" style="width: 60px">审批状态</label>
49
+                            <div class="layui-input-inline" style="width: 145px">
50
+                                <select name="spzt" lay-filter="status">
51
+                                    <option value="">全部</option>
52
+                                    <option th:each="item:${approveList}" th:text="${item.name}"
53
+                                            th:value="${item.name}"></option>
54
+                                </select>
55
+                            </div>
30 56
                         </div>
31
-                        <label class="layui-form-label" style="width: 60px">创建人</label>
32
-                        <div class="layui-input-inline" style="width: 150px">
33
-                            <input type="text" name="cjr" autocomplete="off" class="layui-input">
57
+                    </div>
58
+                    <div class="layui-form-item">
59
+                        <div class="layui-inline">
60
+                            <label class="layui-form-label" style="width: 60px">费用申请</label>
61
+                            <div class="layui-input-inline" style="width: 145px">
62
+                                <input type="text" name="fysqmc" autocomplete="off" class="layui-input">
63
+                            </div>
64
+                        </div>
65
+                        <div class="layui-inline">
66
+                            <label class="layui-form-label" style="width: 60px">创建人</label>
67
+                            <div class="layui-input-inline" style="width: 145px">
68
+                                <input type="text" name="cjr" autocomplete="off" class="layui-input">
69
+                            </div>
34 70
                         </div>
35 71
                         <div class="layui-inline">
36 72
                             <label class="layui-form-label" style="width: 60px">创建时间</label>
@@ -44,14 +80,18 @@
44 80
                                        readonly>
45 81
                             </div>
46 82
                         </div>
47
-
48
-                        <button type="submit" class="layui-btn" lay-submit lay-filter="data-search-btn"><i
49
-                                class="layui-icon"></i> 搜 索
50
-                        </button>
51
-                        <button type="submit" class="layui-btn layui-btn-primary" lay-submit
52
-                                lay-filter="data-reset-btn"><i class="layui-icon layui-icon-refresh"></i> 重 置
53
-                        </button>
83
+                        <div class="layui-inline">
84
+                            <button type="submit" class="layui-btn" lay-submit lay-filter="data-search-btn"><i
85
+                                    class="layui-icon"></i> 搜 索
86
+                            </button>
87
+                        </div>
88
+                        <div class="layui-inline">
89
+                            <button type="submit" class="layui-btn layui-btn-primary" lay-submit
90
+                                    lay-filter="data-reset-btn"><i class="layui-icon layui-icon-refresh"></i> 重 置
91
+                            </button>
92
+                        </div>
54 93
                     </div>
94
+
55 95
                 </form>
56 96
             </div>
57 97
         </fieldset>
@@ -132,14 +172,18 @@
132 172
                 [
133 173
                     {type: "checkbox", fixed: 'left'},
134 174
                     {type: 'numbers', fixed: 'left',title: '😊'},
135
-                    {field: 'spzt', width: '11%', title: '审批状态', fixed: 'left'},
175
+                    {field: 'xmmc',width: '15%',title: '项目名称', fixed: 'left'},
176
+                    {field: 'erpbh',width: '10%',title: 'ERP编号',fixed: 'left'},
177
+                    {field: 'bh',width: '10%',title: '科研费号',fixed: 'left'},
178
+                    {field: 'spzt', width: '11%', title: '审批状态'},
179
+                    {field: 'nf', width: '7%', title: '年份'},
136 180
                     {field: 'htmc', width: '11%', title: '合同'},
137 181
                     {field: 'fysqmc', width: '25%', title: '费用申请'},
138
-                    {field: 'bcfkje', width: '10%', title: '本次付款金额(万元)'},
182
+                    {field: 'bcfkje', width: '10%', title: '本次付款金额(万元)',align: 'right'},
139 183
                     {field: 'fkjhmc', width: '12%', title: '付款计划'},
140 184
                     {field: 'cjrxm', width: '7%', title: '创建人'},
141
-                    {field: 'cjrq', width: '8%', title: '创建时间', align: 'center'},
142
-                    {field: 'htje', title: '合同金额(万元)'}
185
+                    {field: 'cjrq', width: '15%', title: '创建时间', align: 'left'},
186
+                    {field: 'htje', width:'7%', title: '合同金额(万元)',align: 'right'}
143 187
                 ]
144 188
             ],
145 189
             autoSort: false,
@@ -173,6 +217,28 @@
173 217
             });
174 218
             return false;
175 219
         });
220
+        // 监听重置操作
221
+        form.on('submit(data-reset-btn)', function (data) {
222
+            form.val("search-form", {
223
+                "erpbh": '',
224
+                "xmmc": '',
225
+                "bh": '',
226
+                "nf": '',
227
+                "spzt": '',
228
+                "cjr": '',
229
+                "cjsj1":'',
230
+                "cjsj2":'',
231
+                "fysqmc":''
232
+            });
233
+            // 执行搜索重载
234
+            currTable.reload({
235
+                page: {
236
+                    curr: 1
237
+                },
238
+                where: form.val("search-form")
239
+            });
240
+            return false;
241
+        });
176 242
 
177 243
         // 监听工具栏事件
178 244
         table.on('toolbar(currentTableFilter)', function (obj) {

+ 23 - 0
src/main/resources/templates/reimburse/list.html

@@ -217,6 +217,29 @@
217 217
             });
218 218
             return false;
219 219
         });
220
+        // 监听重置操作
221
+        form.on('submit(data-reset-btn)', function (data) {
222
+            form.val("search-form", {
223
+                "erpbh": '',
224
+                "xmmc": '',
225
+                "bh": '',
226
+                "nf": '0',
227
+                "spzt": '',
228
+                "cjr": '',
229
+                "cjsj1":'',
230
+                "cjsj2":'',
231
+                "mc":'',
232
+                "bzr":''
233
+            });
234
+            // 执行搜索重载
235
+            currTable.reload({
236
+                page: {
237
+                    curr: 1
238
+                },
239
+                where: form.val("search-form")
240
+            });
241
+            return false;
242
+        });
220 243
 
221 244
         // 监听工具栏事件
222 245
         table.on('toolbar(currentTableFilter)', function (obj) {

+ 24 - 0
src/main/resources/templates/reimburse/mylist.html

@@ -157,6 +157,7 @@
157 157
                     {field: 'mc', width: '15%', title: '报账名称'},
158 158
                     {field: 'erpbh',width: '10%',title: 'ERP编号'},
159 159
                     {field: 'fysqbh', width: '10%',title: '科研费号'},
160
+                    {field: 'nf', width: '7%', title: '年份'},
160 161
                     {field: 'bzje', width: '8%', title: '报账金额(元)'},
161 162
                     {field: 'bhsje', width: '8%', title: '不含税金额(元)'},
162 163
                     {field: 'sf', width: '6%', title: '税费(元)'},
@@ -196,6 +197,29 @@
196 197
             });
197 198
             return false;
198 199
         });
200
+        // 监听重置操作
201
+        form.on('submit(data-reset-btn)', function (data) {
202
+            form.val("search-form", {
203
+                "erpbh": '',
204
+                "xmmc": '',
205
+                "bh": '',
206
+                "nf": '0',
207
+                "spzt": '',
208
+                "cjr": '',
209
+                "cjsj1":'',
210
+                "cjsj2":'',
211
+                "mc":'',
212
+                "bzr":''
213
+            });
214
+            // 执行搜索重载
215
+            currTable.reload({
216
+                page: {
217
+                    curr: 1
218
+                },
219
+                where: form.val("search-form")
220
+            });
221
+            return false;
222
+        });
199 223
 
200 224
         // 监听工具栏事件
201 225
         table.on('toolbar(currentTableFilter)', function (obj) {

+ 1 - 1
src/main/resources/templates/stabudgetapproval/list_imprest_my.html

@@ -202,7 +202,7 @@
202 202
         "spzt": '',
203 203
         "erpbh": '',
204 204
         "bh": '',
205
-        "nf": ''
205
+        "nf": '0'
206 206
       });
207 207
       // 执行搜索重载
208 208
       currTable.reload({

+ 1 - 1
src/main/resources/templates/stafeemanage/list_allapply.html

@@ -387,7 +387,7 @@
387 387
                 "sfbyj": '',
388 388
                 "xmmc": '',
389 389
                 "ssbmmc": '',
390
-                "nf": '',
390
+                "nf": '0',
391 391
                 "spzt": '',
392 392
                 "sfbz": '',
393 393
                 "dkyfzr": '',

+ 1 - 1
src/main/resources/templates/stafeemanage/list_approving.html

@@ -348,7 +348,7 @@
348 348
                 "sfbyj": '',
349 349
                 "xmmc": '',
350 350
                 "ssbmmc": '',
351
-                "nf": '',
351
+                "nf": '0',
352 352
                 "spzt": '',
353 353
                 "sfbz": '',
354 354
                 "dkyfzr": '',

+ 1 - 1
src/main/resources/templates/stafeemanage/list_feemanage.html

@@ -244,7 +244,7 @@
244 244
                 "xmlx": '',
245 245
                 "xmfzrxm": '',
246 246
                 "ssbmmc": '',
247
-                "nf": ''
247
+                "nf": '0'
248 248
             });
249 249
             // 执行搜索重载
250 250
             currTable.reload({