ソースを参照

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/main/resources/mapper/PrjAnnualbudgetDao.xml
ly 10 ヶ月 前
コミット
99a44d55f0

+ 6 - 3
src/main/java/com/liang/controller/PrjAnnualBudgetRecordController.java

@@ -26,6 +26,8 @@ public class PrjAnnualBudgetRecordController extends BaseController {
26 26
 
27 27
     @Resource
28 28
     private PrjAnnualBudgetRecordService prjAnnualBudgetRecordService;
29
+    @Resource
30
+    private  PrjAnnualbudgetdetailService prjAnnualbudgetdetailService;
29 31
 
30 32
     /**
31 33
      * 在年度预算修改记录表中添加修改前的数据(年度预算明细)
@@ -65,10 +67,11 @@ public class PrjAnnualBudgetRecordController extends BaseController {
65 67
                              @RequestParam(required = false, defaultValue = "", value = "sortName") String sortName,
66 68
                              @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder) {
67 69
         PageHelper.startPage(pageNum, pageSize);
68
-        List<PrjAnnualBudgetRecord> list = prjAnnualBudgetRecordService.queryRecordByNdysid(xmid);
69
-        PageInfo<PrjAnnualBudgetRecord> pageinfo = new PageInfo<>(list);
70
+//        List<PrjAnnualBudgetRecord> list = prjAnnualBudgetRecordService.queryRecordByNdysid(xmid);
71
+        List<PrjAnnualbudgetdetail> list = prjAnnualbudgetdetailService.getXGJL(xmid);
72
+        PageInfo<PrjAnnualbudgetdetail> pageinfo = new PageInfo<>(list);
70 73
         //取出查询结果
71
-        List<PrjAnnualBudgetRecord> rows = pageinfo.getList();
74
+        List<PrjAnnualbudgetdetail> rows = pageinfo.getList();
72 75
         int total = (int) pageinfo.getTotal();
73 76
         Map<String, Object> result = new HashMap<>();
74 77
         result.put(RESULT_ROWS, rows);

+ 9 - 2
src/main/java/com/liang/controller/PrjAnnualbudgetController.java

@@ -212,13 +212,18 @@ public class PrjAnnualbudgetController extends BaseController {
212 212
                              @RequestParam(required = false, defaultValue = "", value = "rwsmc") String rwsmc,
213 213
                              @RequestParam(required = false, defaultValue = "", value = "nf") String nf,
214 214
                              @RequestParam(required = false, defaultValue = "", value = "sortName") String sortName,
215
-                             @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder) {
215
+                             @RequestParam(required = false, defaultValue = "", value = "sortOrder") String sortOrder,
216
+                             @RequestParam(required = false, defaultValue = "", value = "add") String add) {
216 217
         SysUserInfo userInfo = getSysUserInfo();
217 218
         List<String> postName = sysUserInfoService.getPostNameByUserId(userInfo.getUserId());
218 219
         String post = "";
219 220
         if (postName.size() > 0) {
220 221
             for (int i = 0; i < postName.size(); i++) {
221
-                if (PostInfoEnum.KYZZ.postName().equals(postName.get(i))) {
222
+//                if (PostInfoEnum.KYZZ.postName().equals(postName.get(i))) {
223
+//                    post = "过";
224
+//                }
225
+                if (PostInfoEnum.KYFZR.postName().equals(postName.get(i))||PostInfoEnum.KJBBMZR.equals(postName.get(i))||PostInfoEnum.KJXMGLZZ
226
+                        .postName().equals(postName.get(i))) {
222 227
                     post = "过";
223 228
                 }
224 229
             }
@@ -235,10 +240,12 @@ public class PrjAnnualbudgetController extends BaseController {
235 240
         paraMap.put("spzt", spzt);
236 241
         paraMap.put("rwsmc", rwsmc);
237 242
         paraMap.put("nf", nf);
243
+        paraMap.put("add",add);
238 244
 
239 245
         if (!userInfo.getAccount().equals("admin")) {
240 246
             if (!"过".equals(post)) {
241 247
                 paraMap.put("userId", userInfo.getUserId().toString());
248
+                paraMap.put("deptName",userInfo.getDeptName());
242 249
             }
243 250
         }
244 251
         List<PrjAnnualbudget> list = prjAnnualbudgetService.getNdysList(paraMap);

+ 41 - 2
src/main/java/com/liang/controller/StaBudgetapprovalController.java

@@ -14,6 +14,7 @@ import com.liang.service.*;
14 14
 import io.swagger.annotations.ApiOperation;
15 15
 import lombok.Synchronized;
16 16
 import jdk.nashorn.internal.runtime.linker.LinkerCallSite;
17
+import org.apache.poi.hpsf.Decimal;
17 18
 import org.springframework.data.domain.Page;
18 19
 import org.springframework.data.domain.PageRequest;
19 20
 import org.springframework.http.ResponseEntity;
@@ -189,7 +190,7 @@ public class StaBudgetapprovalController extends BaseController {
189 190
         String post = "";
190 191
         if (postName.size() > 0) {
191 192
             for (int i = 0; i < postName.size(); i++) {
192
-                if ("科研专责".equals(postName.get(i))) {
193
+                if (PostInfoEnum.KYZZ.equals(postName.get(i))||PostInfoEnum.KYFZR.equals(postName.get(i))) {
193 194
                     post = "过";
194 195
                 }
195 196
             }
@@ -222,6 +223,9 @@ public class StaBudgetapprovalController extends BaseController {
222 223
         if (!userInfo.getAccount().equals("admin")) {
223 224
             if (!"过".equals(post)) {
224 225
                 paraMap.put("userId", userInfo.getUserId().toString());
226
+            }else {
227
+                paraMap.put("deptName",userInfo.getDeptName());
228
+
225 229
             }
226 230
         }
227 231
         List<StaBudgetapproval> list = staBudgetapprovalService.getFysqList(paraMap);
@@ -238,7 +242,7 @@ public class StaBudgetapprovalController extends BaseController {
238 242
     }
239 243
 
240 244
     /**
241
-     * 新建数据
245
+     * 新建数据(年度预算页面)
242 246
      *
243 247
      * @return
244 248
      */
@@ -248,6 +252,26 @@ public class StaBudgetapprovalController extends BaseController {
248 252
         model.addAttribute("userInfo", userInfo);
249 253
         return "annualbudget/add_apply";
250 254
     }
255
+    /**
256
+     * 新建数据(费用申请页面)
257
+     *
258
+     * @return
259
+     */
260
+    @RequestMapping(value = "/forAdd", method = RequestMethod.GET)
261
+    public String forAdd(Model model) {
262
+        SysUserInfo userInfo = getSysUserInfo();
263
+        model.addAttribute("userInfo", userInfo);
264
+        return "stabudgetapproval/add";
265
+    }
266
+
267
+    @RequestMapping(value = "/init_prjAnnualbudget", method = RequestMethod.GET)
268
+    public String init_prjAnnualbudget(Model model) {
269
+        //项目类型
270
+        List<Map<String, String>> xmlxList = projecttypeService.getXMLX();
271
+        model.addAttribute("xmlxList", xmlxList);
272
+
273
+        return "stabudgetapproval/list_annualbudget";
274
+    }
251 275
 
252 276
     /**
253 277
      * 保存数据(费用申请)
@@ -1630,5 +1654,20 @@ public class StaBudgetapprovalController extends BaseController {
1630 1654
         String bh = staBudgetapprovalService.getBhById(id);
1631 1655
         return BaseResult.success(bh);
1632 1656
     }
1657
+
1658
+    /**
1659
+     * 获取项目总预算
1660
+     *
1661
+     * @return
1662
+     */
1663
+    @ResponseBody
1664
+    @PostMapping("/getXMZYS/{id}")
1665
+    public BaseResult getXMZYS(@PathVariable String id) {
1666
+        Double xmzys = prjAnnualbudgetdetailService.getXMZYS(id);
1667
+//        select YSJE from prj_AnnualBudgetDetail where NYS = b.NYS and FJ = ''
1668
+        return BaseResult.success(xmzys);
1669
+    }
1670
+
1671
+
1633 1672
 }
1634 1673
 

+ 4 - 0
src/main/java/com/liang/dao/PrjAnnualbudgetdetailDao.java

@@ -134,5 +134,9 @@ public interface PrjAnnualbudgetdetailDao {
134 134
     List<PrjAnnualbudgetYzxqkVo> getNf(@Param("nys")Integer nys);
135 135
 
136 136
     List<PrjAnnualbudgetdetail> listAllBudgetDetail(@Param("nys") Integer nys);
137
+
138
+    List<PrjAnnualbudgetdetail> getXGJL(int xmid);
139
+
140
+    Double getXMZYS(String id);
137 141
 }
138 142
 

+ 4 - 0
src/main/java/com/liang/service/PrjAnnualbudgetdetailService.java

@@ -91,4 +91,8 @@ public interface PrjAnnualbudgetdetailService {
91 91
     Integer getSubNodeCount(@Param("nys") Integer nys, @Param("page") Integer page, @Param("limit") Integer limit);
92 92
 
93 93
     List<PrjAnnualbudgetdetail> listAllBudgetDetail(@Param("nys") Integer nys);
94
+
95
+    List<PrjAnnualbudgetdetail> getXGJL(int xmid);
96
+
97
+    Double getXMZYS(String id);
94 98
 }

+ 12 - 0
src/main/java/com/liang/service/impl/PrjAnnualbudgetdetailServiceImpl.java

@@ -234,4 +234,16 @@ public class PrjAnnualbudgetdetailServiceImpl implements PrjAnnualbudgetdetailSe
234 234
         return this.prjAnnualbudgetdetailDao.listAllBudgetDetail(nys);
235 235
     }
236 236
 
237
+    @Override
238
+    public List<PrjAnnualbudgetdetail> getXGJL(int xmid) {
239
+        return this.prjAnnualbudgetdetailDao.getXGJL(xmid);
240
+    }
241
+
242
+    @Override
243
+    public Double getXMZYS(String id) {
244
+        Double xmzys = prjAnnualbudgetdetailDao.getXMZYS(id);
245
+        System.out.println("xmzys = " + xmzys);
246
+        return xmzys;
247
+    }
248
+
237 249
 }

+ 3 - 0
src/main/resources/mapper/PrjAnnualbudgetDao.xml

@@ -378,6 +378,9 @@
378 378
         <if test="nf != null and nf != ''">
379 379
             and a.NF = #{nf}
380 380
         </if>
381
+        <if test="add != null and add != ''">
382
+            and a.SPZT = '审批结束'
383
+        </if>
381 384
         <choose>
382 385
             <when test="sortName != null and sortName != '' and sortOrder != null and sortOrder != ''">
383 386
                 order by ${sortName} ${sortOrder}

+ 12 - 0
src/main/resources/mapper/PrjAnnualbudgetdetailDao.xml

@@ -655,5 +655,17 @@
655 655
         where
656 656
            nys in (select  ID from prj_AnnualBudget where rws = (select  rws from prj_AnnualBudget where id = #{nys}))
657 657
     </select>
658
+    <select id="getXGJL" resultType="com.liang.entity.PrjAnnualbudgetdetail">
659
+        select a.fymc,a.xmzys,a.ysje,b.nf
660
+        from
661
+            prj_AnnualBudgetDetail  a
662
+        left join prj_AnnualBudget b on  a.NYS = b.id
663
+        where
664
+            NYS =#{xmid}
665
+    </select>
666
+    <select id="getXMZYS" resultType="java.lang.Double">
667
+        select YSJE from prj_AnnualBudgetDetail where NYS = #{id} and FJ = ''
668
+    </select>
669
+
658 670
 </mapper>
659 671
 

+ 3 - 0
src/main/resources/mapper/StaBudgetapprovalDao.xml

@@ -445,6 +445,9 @@
445 445
         <if test="userId != null and userId != ''">
446 446
             and (b.SQR = #{userId} or #{userId} in (select SHR from prj_ApproveRecord where XMID = b.ID))
447 447
         </if>
448
+        <if test="deptName!= null and deptName != ''">
449
+            and d.dept_name = #{deptName}
450
+        </if>
448 451
         <if test="sqmc != null and sqmc != ''">
449 452
             and b.SQMC like '%'+#{sqmc}+'%'
450 453
         </if>

+ 0 - 1
src/main/resources/templates/annualbudget/add_apply.html

@@ -441,7 +441,6 @@
441 441
                 </div>
442 442
             </div>
443 443
 
444
-</form>
445 444
 </div>
446 445
 <!--常规结束-->
447 446
 <!--其它信息开始-->

+ 5 - 6
src/main/resources/templates/annualbudget/view_record.html

@@ -55,17 +55,16 @@
55 55
                 [
56 56
                     {type: 'numbers', align: 'center'},
57 57
                     {field: 'fymc', width: '20%', title: '费用名称'},
58
+                    {field: 'nf', width: '10%', title: '年份'},
58 59
                     {field: 'xmzys', width: '20%', title: '项目总预算'},
59
-                    {field: 'ysje', width: '10%', title: '预算金额', align: 'center'},
60
-                    {field: 'xmz', width: '10%', title: '项目组', align: 'center'},
61
-                    {field: 'byj', width: '10%', title: '备用金', align: 'center'},
62
-                    {field: 'bjsj', width: '15%', title: '编辑时间', align: 'center'}
60
+                    {field: 'sptgysje', width: '20%', title: '审批通过状态'},
61
+                    {field: 'ysje', width: '20%', title: '现在'},
63 62
                 ]
64 63
             ],
65 64
             sortName: 'jtsj',
66 65
             autoSort: false,
67
-            limits: [10, 15, 20, 25, 50, 100],
68
-            limit: 10,
66
+            limits: [20, 25, 50, 100],
67
+            limit: 30,
69 68
             page: true,
70 69
             skin: 'grid',
71 70
             parseData: function (res) { //res 即为原始返回的数据

File diff suppressed because it is too large
+ 4213 - 0
src/main/resources/templates/stabudgetapproval/add.html


+ 217 - 0
src/main/resources/templates/stabudgetapproval/list_annualbudget.html

@@ -0,0 +1,217 @@
1
+<!DOCTYPE html>
2
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
3
+<head>
4
+  <meta charset="UTF-8">
5
+  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
+  <title>年度预算列表</title>
7
+  <link rel="stylesheet" th:href="@{/lib/layui/css/layui.css}" media="all">
8
+  <link rel="stylesheet" th:href="@{/css/public.css}" media="all">
9
+  <link rel="stylesheet" th:href="@{/lib/font-awesome-4.7.0/css/font-awesome.min.css}" media="all">
10
+</head>
11
+<body>
12
+<div class="layuimini-container">
13
+  <div class="layuimini-main" style="margin-bottom: -30px">
14
+    <fieldset class="table-search-fieldset">
15
+      <legend>搜索信息(<b>收起-展开</b>)</legend>
16
+      <div id="search-div" style="margin: 5px 10px -10px 0px">
17
+        <form class="layui-form" action="" lay-filter="search-form">
18
+          <div class="layui-form-item">
19
+            <div class="layui-inline" style="margin-left: -10px">
20
+              <label class="layui-form-label" style="width: 60px">项目名称</label>
21
+              <div class="layui-input-inline" style="width: 200px">
22
+                <input type="text" id="mc" name="xmmc" autocomplete="off" class="layui-input">
23
+              </div>
24
+            </div>
25
+            <div class="layui-inline" style="margin-left: -10px">
26
+              <label class="layui-form-label" style="width: 60px">ERP编号</label>
27
+              <div class="layui-input-inline" style="width: 150px">
28
+                <input type="text" name="erpbh" autocomplete="off" class="layui-input">
29
+              </div>
30
+            </div>
31
+            <div class="layui-inline" style="margin-left: -10px">
32
+              <label class="layui-form-label" style="width: 60px">年份</label>
33
+              <div class="layui-input-inline" style="width: 150px">
34
+                <input type="text" name="nf" autocomplete="off" class="layui-input">
35
+              </div>
36
+            </div>
37
+            <div class="layui-inline" style="margin-left: -10px">
38
+              <label class="layui-form-label" style="width: 60px">项目类型</label>
39
+              <div class="layui-input-inline" style="width: 150px">
40
+                <select name="xmlx" id="xmlx" lay-filter="status">
41
+                  <option value="">全部</option>
42
+                  <option th:each="item:${xmlxList}" th:text="${item.name}"
43
+                          th:value="${item.code}"></option>
44
+                </select>
45
+              </div>
46
+            </div>
47
+            <div class="layui-inline">
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>
54
+            </div>
55
+          </div>
56
+        </form>
57
+      </div>
58
+    </fieldset>
59
+    <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
60
+
61
+    <!-- 右侧悬浮按钮 -->
62
+    <div class="layui-form layuimini-form">
63
+      <div class="right-bottom-btn">
64
+        <button class="layui-btn" lay-filter="selectBtn">
65
+          <i class="layui-icon layui-icon-ok"></i>选择
66
+        </button>
67
+        <button class="layui-btn" lay-filter="cancleBtn">
68
+          <i class="layui-icon layui-icon-close"></i>取消
69
+        </button>
70
+      </div>
71
+    </div>
72
+  </div>
73
+</div>
74
+<script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
75
+<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
76
+<script th:src="@{/lib/coco-message/coco-message.js}" charset="utf-8"></script>
77
+<script th:src="@{/js/lay-config.js}" charset="utf-8"></script>
78
+<script th:src="@{/lib/xm-select-v1.2.2/xm-select.js}" charset="utf-8"></script>
79
+<script th:inline="javascript" type="text/javascript">
80
+  AjaxUtil.ctx = /*[[@{/}]]*/'';
81
+  layui.use(['form', 'table'], function () {
82
+    var form = layui.form,
83
+            table = layui.table;
84
+    var project = null;
85
+    var currTable = table.render({
86
+      elem: '#currentTableId',
87
+      url: AjaxUtil.ctx + 'prjAnnualbudget/mylist',
88
+      method: 'post',
89
+      where:{
90
+        add: '1',
91
+      },
92
+      // toolbar: '#toolbarDemo',
93
+      // defaultToolbar: ['filter', 'exports', 'print'],
94
+      cols: [
95
+        [
96
+          {type: 'numbers'},
97
+          {field: 'xmmc', width: '30%', title: '项目名称'},
98
+          {field: 'mc', width: '30%', title: '年度预算名称'},
99
+          {field: 'erpbh', width: '13%', title: 'ERP编号'},
100
+          {field: 'xmlxmc', width: '18%', title: '项目类型'},
101
+          {field: 'nf', width: '10%', title: '年份'},
102
+          {field: 'xmfzrxm', width: '10%', title: '项目负责人'},
103
+        ]
104
+      ],
105
+      autoSort: false,
106
+      limits: [10, 15, 20, 25, 50, 100],
107
+      limit: 10,
108
+      page: true,
109
+      skin: 'grid',
110
+      parseData: function (res) { //res 即为原始返回的数据
111
+        return {
112
+          "code": res.code, //解析接口状态
113
+          "msg": res.message, //解析提示文本
114
+          "count": res.data.total, //解析数据长度
115
+          "data": res.data.rows //解析数据列表
116
+        };
117
+      },
118
+      done: function (res, curr, count) { // done为数据渲染完的回调
119
+        // 测试打印出后端返回的权限列表
120
+        // let permissionSet = [[${permissionSet}]];
121
+        // console.log(JSON.stringify(permissionSet));
122
+      }
123
+    });
124
+
125
+    // 监听搜索操作
126
+    form.on('submit(data-search-btn)', function (data) {
127
+      // 执行搜索重载
128
+      currTable.reload({
129
+        page: {
130
+          curr: 1 // 页码从1开始
131
+        },
132
+        where: form.val("search-form")
133
+      });
134
+      return false;
135
+    });
136
+
137
+    // 监听重置操作
138
+    form.on('submit(data-reset-btn)', function (data) {
139
+      form.val("search-form", {
140
+        "xmmc": '',
141
+        "erpbh": '',
142
+        "xmlx": '',
143
+        "nf":''
144
+      });
145
+      // 执行搜索重载
146
+      currTable.reload({
147
+        page: {
148
+          curr: 1
149
+        },
150
+        where: form.val("search-form")
151
+      });
152
+      return false;
153
+    });
154
+
155
+    //监听行选中
156
+    table.on('row(currentTableFilter)', function (obj) {
157
+      annualbudget = obj.data;
158
+      obj.tr.addClass('layui-bg-blue').siblings().removeClass('layui-bg-blue');
159
+      localStorage.setItem("ysid", annualbudget.id);
160
+      localStorage.setItem("xmid", annualbudget.rws);
161
+      localStorage.setItem("nf", annualbudget.nf);
162
+      localStorage.setItem("xmmc", annualbudget.mc == null ? '' : annualbudget.mc);
163
+      localStorage.setItem("erpbh", annualbudget.erpbh == null ? '' : annualbudget.erpbh);
164
+      localStorage.setItem("xmlx", annualbudget.xmlx == null ? '' : annualbudget.xmlx);
165
+      localStorage.setItem("xmlxmc", annualbudget.xmlxmc == null ? '' : annualbudget.xmlxmc);
166
+      localStorage.setItem("xmfzr", annualbudget.xmfzr == null ? '' : annualbudget.xmfzr);
167
+      localStorage.setItem("xmfzrxm", annualbudget.dkyfzrxm == null ? '' : annualbudget.dkyfzrxm);
168
+      localStorage.setItem("ssbm", annualbudget.ssbm == null ? '' : annualbudget.ssbm);
169
+      localStorage.setItem("ssbmmc", annualbudget.ssbmmc == null ? '' : annualbudget.ssbmmc);
170
+      localStorage.setItem("annualbudget",annualbudget.dkyfzr == null ? '' :  annualbudget.dkyfzr);
171
+    });
172
+
173
+    //双击
174
+    table.on('rowDouble(currentTableFilter)', function (obj) {
175
+      project = obj.data;
176
+      obj.tr.addClass('layui-bg-blue').siblings().removeClass('layui-bg-blue');
177
+
178
+      localStorage.setItem("ysid", annualbudget.id);
179
+      localStorage.setItem("xmid", annualbudget.rws);
180
+      localStorage.setItem("nf", annualbudget.nf);
181
+      localStorage.setItem("xmmc", annualbudget.mc == null ? '' : annualbudget.mc);
182
+      localStorage.setItem("erpbh", annualbudget.erpbh == null ? '' : annualbudget.erpbh);
183
+      localStorage.setItem("xmlx", annualbudget.xmlx == null ? '' : annualbudget.xmlx);
184
+      localStorage.setItem("xmlxmc", annualbudget.xmlxmc == null ? '' : annualbudget.xmlxmc);
185
+      localStorage.setItem("xmfzr", annualbudget.xmfzr == null ? '' : annualbudget.xmfzr);
186
+      localStorage.setItem("xmfzrxm", annualbudget.dkyfzrxm == null ? '' : annualbudget.dkyfzrxm);
187
+      localStorage.setItem("ssbm", annualbudget.ssbm == null ? '' : annualbudget.ssbm);
188
+      localStorage.setItem("ssbmmc", annualbudget.ssbmmc == null ? '' : annualbudget.ssbmmc);
189
+      localStorage.setItem("annualbudget",annualbudget.dkyfzr == null ? '' :  annualbudget.dkyfzr);
190
+      localStorage.setItem("updateflag", "1");
191
+
192
+
193
+      parent.layer.close(parent.layer.getFrameIndex(window.name));// 关闭子窗口
194
+    });
195
+
196
+    // 监听选择按钮
197
+    $("button[lay-filter='selectBtn']").click(function () {
198
+      if (annualbudget == null) {
199
+        Message.warning("请选择年度预算", 1000);
200
+        return;
201
+      }
202
+      localStorage.setItem("updateflag", "1");
203
+
204
+      parent.layer.close(parent.layer.getFrameIndex(window.name));// 关闭子窗口
205
+    });
206
+
207
+    // 监听取消按钮
208
+    $("button[lay-filter='cancleBtn']").click(function () {
209
+      localStorage.setItem("xmid", '');
210
+      localStorage.setItem("updateflag", "0");
211
+      var iframeIndex = parent.layer.getFrameIndex(window.name);
212
+      parent.layer.close(iframeIndex);
213
+    });
214
+  });
215
+</script>
216
+</body>
217
+</html>

+ 4 - 4
src/main/resources/templates/stabudgetapproval/list_apply.html

@@ -135,9 +135,9 @@
135 135
 
136 136
         <script type="text/html" id="toolbarDemo">
137 137
             <div class="layui-btn-container">
138
-                <!--                <button class="layui-btn layui-btn-sm data-add-btn" lay-event="add">-->
139
-                <!--                    <i class="layui-icon layui-icon-addition" style="font-size: 10px;"></i>新建-->
140
-                <!--                </button>-->
138
+                <button class="layui-btn layui-btn-sm data-add-btn" lay-event="add">
139
+                    <i class="layui-icon layui-icon-addition" style="font-size: 10px;"></i>新建
140
+                </button>
141 141
                 <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="edit">
142 142
                     <i class="layui-icon layui-icon-edit" style="font-size: 10px;"></i>编辑
143 143
                 </button>
@@ -347,7 +347,7 @@
347 347
                     shade: 0.3,
348 348
                     maxmin: true,
349 349
                     area: ['1020px', layerheight + 'px'],
350
-                    content: AjaxUtil.ctx + 'staBudgetapproval/forApplyAdd',
350
+                    content: AjaxUtil.ctx + 'staBudgetapproval/forAdd',
351 351
                     end: function (index) {
352 352
                         // 重载表格
353 353
                         if (updateflag == 1)

+ 2 - 2
src/main/resources/templates/stabudgetapproval/view_apply.html

@@ -1263,7 +1263,7 @@
1263 1263
                 title: '查看项目任务书',
1264 1264
                 type: 2,
1265 1265
                 shade: 0.3,
1266
-                // maxmin: true,
1266
+                maxmin: true,
1267 1267
                 shadeClose: true,
1268 1268
                 area: ['1100px', layerheight + 'px'],
1269 1269
                 content: AjaxUtil.ctx + 'prjProject/forView/' + xmId,
@@ -1279,7 +1279,7 @@
1279 1279
                 title: '查看年度预算',
1280 1280
                 type: 2,
1281 1281
                 shade: 0.3,
1282
-                // maxmin: true,
1282
+                maxmin: true,
1283 1283
                 shadeClose: true,
1284 1284
                 area: ['1010px', layerheight + 'px'],
1285 1285
                 content: AjaxUtil.ctx + 'prjAnnualbudget/forNdysView1/' + xmId +'/'+ nf,