Ver código fonte

组件版本更新,审查意见模块功能完善

梁世豪 4 meses atrás
pai
commit
29328196ed

+ 12 - 15
src/main/resources/templates/reportinfo/add.html

@@ -541,9 +541,8 @@
541 541
                     <div class="layui-form-item">
542 542
                         <label class="layui-form-label" style="width: 90px">审查意见</label>
543 543
                         <div class="layui-input-inline" style="width: 85%">
544
-                            <textarea id="xmscyjhssfawb" name="xmscyjhssfawb" class="layui-textarea"
544
+                            <textarea id="sqdwldscyj1" name="sqdwldscyj1" class="layui-textarea"
545 545
                                       style="width: 100%;height: 339px"></textarea>
546
-                            <label class="layui-form-label" style="color:grey;width: 100%;text-align: left">文本内容,如果包含图片,请下载模板编辑后上传,并清空当前编辑框</label>
547 546
                         </div>
548 547
                     </div>
549 548
                     <div class="layui-form-item">
@@ -560,9 +559,9 @@
560 559
                         <button type="button" class="layui-btn layui-btn upload" lay-data="{fileType:'scyjFile'}">
561 560
                             <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>上传附件
562 561
                         </button>
563
-                        <a class="layui-btn layui-btn-primary" th:href="${scyjTemplate}">
564
-                            <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>下载模板
565
-                        </a>
562
+<!--                        <a class="layui-btn layui-btn-primary" th:href="${scyjTemplate}">-->
563
+<!--                            <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>下载模板-->
564
+<!--                        </a>-->
566 565
                         <button class="layui-btn layui-btn layui-btn-danger" lay-filter="delScyj">
567 566
                             <i class="layui-icon layui-icon-delete" style="font-size: 10px;"></i>删除
568 567
                         </button>
@@ -658,7 +657,7 @@
658 657
     </div>
659 658
 </div>
660 659
 <script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
661
-<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
660
+<script th:src="@{/lib/layui-v2.6.3/layui.js}" charset="utf-8"></script>
662 661
 <script th:src="@{/lib/coco-message/coco-message.js}" charset="utf-8"></script>
663 662
 <script th:src="@{/js/lay-config.js}" charset="utf-8"></script>
664 663
 <script th:src="@{/lib/xm-select-v1.2.2/xm-select.js}" charset="utf-8"></script>
@@ -713,9 +712,9 @@
713 712
                 cols: [
714 713
                     [
715 714
                         {type: 'radio'},
716
-                        {type: 'numbers', align: 'center'},
717
-                        {field: 'mc', width: '50%', title: '名称'},
718
-                        {field: 'dwqc', width: '50%', title: '单位全称'}
715
+                        {type: 'numbers',title:'序号', align: 'center'},
716
+                        {field: 'mc', width: '40%', title: '名称'},
717
+                        {field: 'dwqc', width: '40%', title: '单位全称'}
719 718
                     ]
720 719
                 ]
721 720
             },
@@ -1385,8 +1384,6 @@
1385 1384
                     [
1386 1385
                         {type: 'numbers'},
1387 1386
                         {field: 'mc', width: '25%', title: '名称'},
1388
-                        // {field: 'px', width: '6%', title: '排序'},
1389
-                        // {field: 'nf', width: '6%', title: '年份'},
1390 1387
                         {field: 'ysje', width: '12%', title: '预算金额(万元)'},
1391 1388
                         {field: "dw1", width: '15%', title: '陕西电科院(万元)', edit: 'number'},
1392 1389
                         {field: "dw2", width: '15%', title: '拟合作单位1(万元)', edit: 'number'},
@@ -1394,8 +1391,6 @@
1394 1391
                         {field: "dw4", width: '15%', title: '拟合作单位3(万元)', edit: 'number'},
1395 1392
                         {field: "dw5", width: '15%', title: '拟合作单位4(万元)', edit: 'number'},
1396 1393
                         {field: "dw6", width: '15%', title: '拟合作单位5(万元)', edit: 'number'}
1397
-                        // {field: 'hjbm', width: '8%', title: '合计编码'},
1398
-                        // {field: 'bz', width: '15%', title: '备注'}
1399 1394
                     ]
1400 1395
                 ]
1401 1396
             });
@@ -1579,6 +1574,7 @@
1579 1574
 
1580 1575
         // 监听确认按钮(基本信息)
1581 1576
         form.on('submit(saveNormal)', function (data) {
1577
+            console.log(data.field)
1582 1578
             var qsrq = document.getElementById('qs').value;
1583 1579
             var jsrq = document.getElementById('wc').value;
1584 1580
             var sd = new Date(qsrq);
@@ -1610,6 +1606,7 @@
1610 1606
                                 dataType: "json",
1611 1607
                                 success: function (result) {
1612 1608
                                     dataBudget = result;
1609
+                                    console.log(dataBudget)
1613 1610
                                 }
1614 1611
                             });
1615 1612
                             loadTreetable();
@@ -2066,7 +2063,7 @@
2066 2063
                     };
2067 2064
                     dataWB.push(dfWb);
2068 2065
                 }
2069
-                $("#sqdwldscyj1").val(JSON.stringify(dataWB));
2066
+                $("#scyjfj").val(JSON.stringify(dataWB));
2070 2067
 
2071 2068
                 var project = {
2072 2069
                     "id": xmId,
@@ -2076,7 +2073,7 @@
2076 2073
                 }
2077 2074
                 var index = layer.load(0, {shade: 0.1});
2078 2075
                 AjaxUtil.post({
2079
-                    url: AjaxUtil.ctx + "reportinfo/doUpdateFj",
2076
+                    url: AjaxUtil.ctx + "reportinfo/doUpdateScyj",
2080 2077
                     contentType: "application/json",
2081 2078
                     data: JSON.stringify(project),
2082 2079
                     success: function (res) {

+ 8 - 8
src/main/resources/templates/reportinfo/update.html

@@ -599,9 +599,9 @@
599 599
                     <div class="layui-form-item">
600 600
                         <label class="layui-form-label" style="width: 90px">审查意见</label>
601 601
                         <div class="layui-input-inline" style="width: 85%">
602
-                            <textarea id="xmscyjhssfawb" name="xmscyjhssfawb" class="layui-textarea"
602
+                            <textarea id="sqdwldscyj1" name="sqdwldscyj1" th:text = "${report.sqdwldscyj1}"class="layui-textarea"
603 603
                                       style="width: 100%;height: 339px"></textarea>
604
-                            <label class="layui-form-label" style="color:grey;width: 100%;text-align: left">文本内容,如果包含图片,请下载模板编辑后上传,并清空当前编辑框</label>
604
+<!--                            <label class="layui-form-label" style="color:grey;width: 100%;text-align: left">文本内容,如果包含图片,请下载模板编辑后上传,并清空当前编辑框</label>-->
605 605
                         </div>
606 606
                     </div>
607 607
                     <div class="layui-form-item">
@@ -618,9 +618,9 @@
618 618
                         <button type="button" class="layui-btn layui-btn upload" lay-data="{fileType:'scyjFile'}">
619 619
                             <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>上传附件
620 620
                         </button>
621
-                        <a class="layui-btn layui-btn-primary" th:href="${scyjTemplate}">
622
-                            <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>下载模板
623
-                        </a>
621
+<!--                        <a class="layui-btn layui-btn-primary" th:href="${scyjTemplate}">-->
622
+<!--                            <i class="layui-icon layui-icon-export" style="font-size: 10px;"></i>下载模板-->
623
+<!--                        </a>-->
624 624
                         <button class="layui-btn layui-btn layui-btn-danger" lay-filter="delScyj">
625 625
                             <i class="layui-icon layui-icon-delete" style="font-size: 10px;"></i>删除
626 626
                         </button>
@@ -733,7 +733,7 @@
733 733
     </div>
734 734
 </div>
735 735
 <script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
736
-<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
736
+<script th:src="@{/lib/layui-v2.6.3/layui.js}" charset="utf-8"></script>
737 737
 <script th:src="@{/lib/coco-message/coco-message.js}" charset="utf-8"></script>
738 738
 <script th:src="@{/js/lay-config.js}" charset="utf-8"></script>
739 739
 <script th:src="@{/lib/xm-select-v1.2.2/xm-select.js}" charset="utf-8"></script>
@@ -2108,7 +2108,7 @@
2108 2108
                     };
2109 2109
                     dataWB.push(dfWb);
2110 2110
                 }
2111
-                $("#sqdwldscyj1").val(JSON.stringify(dataWB));
2111
+                $("#scyjfj").val(JSON.stringify(dataWB));
2112 2112
 
2113 2113
                 var project = {
2114 2114
                     "id": xmId,
@@ -2118,7 +2118,7 @@
2118 2118
                 }
2119 2119
                 var index = layer.load(0, {shade: 0.1});
2120 2120
                 AjaxUtil.post({
2121
-                    url: AjaxUtil.ctx + "reportinfo/doUpdateFj",
2121
+                    url: AjaxUtil.ctx + "reportinfo/doUpdateScyj",
2122 2122
                     contentType: "application/json",
2123 2123
                     data: JSON.stringify(project),
2124 2124
                     success: function (res) {

+ 7 - 2
src/main/resources/templates/reportinfo/view.html

@@ -325,7 +325,7 @@
325 325
                     <div class="layui-form-item">
326 326
                         <label class="layui-form-label" style="width: 90px">审查意见</label>
327 327
                         <div class="layui-input-inline" style="width: 85%">
328
-                            <textarea id="xmscyjhssfawb" name="xmscyjhssfawb" class="layui-textarea"
328
+                            <textarea id="sqdwldscyj1" name="sqdwldscyj1" th:text = "${report.sqdwldscyj1}" class="layui-textarea"
329 329
                                       style="width: 100%;height: 339px"></textarea>
330 330
                             <label class="layui-form-label" style="color:grey;width: 100%;text-align: left">文本内容,如果包含图片,请下载模板编辑后上传,并清空当前编辑框</label>
331 331
                         </div>
@@ -406,7 +406,7 @@
406 406
     </div>
407 407
 </div>
408 408
 <script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
409
-<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
409
+<script th:src="@{/lib/layui-v2.6.3/layui.js}" charset="utf-8"></script>
410 410
 <script th:src="@{/lib/coco-message/coco-message.js}" charset="utf-8"></script>
411 411
 <script th:src="@{/js/lay-config.js}" charset="utf-8"></script>
412 412
 <script th:src="@{/lib/xm-select-v1.2.2/xm-select.js}" charset="utf-8"></script>
@@ -454,6 +454,7 @@
454 454
         var currTable_llsjyj = fileTableInit(table, '#currentTableId_LLSJYJ', eval('(' + [[${report.xmdllhsjyj}]] + ')'), 'llsjyjFile');
455 455
         var currTable_yjnr = fileTableInit(table, '#currentTableId_YJNR', eval('(' + [[${report.xmyjnrhssfa}]] + ')'), 'yjnrFile');
456 456
         var currTable_cddwtj = fileTableInit(table, '#currentTableId_CDDWTJ', eval('(' + [[${report.xmcddwdtj}]] + ')'), 'cddwtjFile');
457
+        var currTable_scyj = fileTableInit(table, '#currentTableId_SCYJ', eval('(' + [[${report.scyjfj}]] + ')'), 'scyjFile');
457 458
         var currTable_fj = fileTableInit(table, '#currentTableId_FJ', eval('(' + [[${report.fj}]] + ')'), 'fjFile');
458 459
         var currTable_qmgz = fileTableInit(table, '#currentTableId_QMGZ', eval('(' + [[${report.ygzmwj}]] + ')'), 'gmgzFile');
459 460
 
@@ -566,6 +567,10 @@
566 567
         table.on('rowDouble(currentTableId_CDDWTJ)', function (obj) {
567 568
             window.open(obj.data.Url);
568 569
         });
570
+        //双击(审查意见)
571
+        table.on('rowDouble(currentTableId_SCYJ)', function (obj) {
572
+            window.open(obj.data.Url);
573
+        });
569 574
         //双击(附件)
570 575
         table.on('rowDouble(currentTableId_FJ)', function (obj) {
571 576
             window.open(obj.data.Url);