Browse Source

合同管理新建页面BUg 修复

ly 2 months ago
parent
commit
37f1ff5c39

+ 27 - 13
src/main/resources/mapper/PrjContractDao.xml

@@ -21,6 +21,7 @@
21 21
         <result property="yssj" column="YSSJ" jdbcType="VARCHAR"/>
22 22
         <result property="sfsxtndw" column="SFSXTNDW" jdbcType="INTEGER"/>
23 23
         <result property="yqrq" column="YQRQ" jdbcType="VARCHAR"/>
24
+        <result property="sfys" column="SFYS" jdbcType="INTEGER"/>
24 25
 
25 26
     </resultMap>
26 27
 
@@ -113,8 +114,8 @@
113 114
 
114 115
     <!--新增所有列-->
115 116
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
116
-        insert into prj_Contract(HTMC, WJ, HTJE, CJR, CJSJ, RWS, ZBPC, ZXDW, YSZL,KSSJ,JSSJ,SPZT,SFSXTNDW,YSSJ,YQRQ)
117
-        values (#{htmc}, #{wj}, #{htje}, #{cjr}, GETDATE(), #{rws}, #{zbpc}, #{zxdw}, #{yszl},#{kssj},#{jssj},#{spzt},#{sfsxtndw},#{yssj},#{yqrq})
117
+        insert into prj_Contract(HTMC, WJ, HTJE, CJR, CJSJ, RWS, ZBPC, ZXDW, YSZL,KSSJ,JSSJ,SPZT,SFSXTNDW,YSSJ,YQRQ,SFYS)
118
+        values (#{htmc}, #{wj}, #{htje}, #{cjr}, GETDATE(), #{rws}, #{zbpc}, #{zxdw}, #{yszl},#{kssj},#{jssj},#{spzt},#{sfsxtndw},#{yssj},#{yqrq},#{sfys})
118 119
     </insert>
119 120
 
120 121
     <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
@@ -150,32 +151,45 @@
150 151
         update prj_Contract
151 152
         <set>
152 153
             <if test="htmc != null and htmc != ''">
153
-                HTMC = #{htmc},
154
+                HTMC = #{htmc}
154 155
             </if>
155 156
             <if test="wj != null and wj !=''">
156
-                WJ = #{wj},
157
+                ,WJ = #{wj}
157 158
             </if>
158 159
             <if test="htje != null and htje !=''">
159
-                HTJE = #{htje},
160
+                ,HTJE = #{htje}
160 161
             </if>
161 162
             <if test="rws != null and rws != ''">
162
-                RWS = #{rws},
163
+                ,RWS = #{rws}
163 164
             </if>
164 165
             <if test="yszl != null and yszl !=''">
165
-                YSZL = #{yszl},
166
+                ,YSZL = #{yszl}
166 167
             </if>
167 168
             <if test="zbpc != null and zbpc !=''">
168
-                ZBPC = #{zbpc},
169
+                ,ZBPC = #{zbpc}
169 170
             </if>
170 171
             <if test="zxdw != null and zxdw != ''">
171
-                ZXDW = #{zxdw},
172
+                ,ZXDW = #{zxdw}
172 173
             </if>
173 174
             <if test="zt != null and zt != ''">
174
-                ZT = #{zt},
175
+                ,ZT = #{zt}
175 176
             </if>
176
-                KSSJ = #{kssj},
177
-                JSSJ = #{jssj},
178
-                YSSJ = #{yssj}
177
+            <if test="kssj != null">
178
+                ,KSSJ = #{kssj}
179
+            </if>
180
+            <if test="jssj != null">
181
+                ,JSSJ = #{jssj}
182
+            </if>
183
+            <if test="yssj != null">
184
+                ,YSSJ = #{yssj}
185
+            </if>
186
+            <if test="sfys != null and sfys != ''">
187
+                ,SFYS = #{sfys}
188
+            </if>
189
+            <if test="sfsxtndw != null and sfsxtndw != ''">
190
+                ,SFSXTNDW = #{sfsxtndw}
191
+            </if>
192
+
179 193
         </set>
180 194
         where ID = #{id}
181 195
     </update>

+ 2 - 1
src/main/resources/mapper/StaPayapprovalDao.xml

@@ -313,7 +313,8 @@
313 313
     </update>
314 314
     <update id="updateHtje">
315 315
         update sta_PayApproval
316
-        set HTJE = #{htje}
316
+        set
317
+            HTJE = #{htje}
317 318
         where HT = #{id}
318 319
     </update>
319 320
 

+ 80 - 12
src/main/resources/templates/prjcontract/add.html

@@ -73,26 +73,36 @@
73 73
                             </div>
74 74
                         </div>
75 75
                         <div class="layui-form-item layui-inline" style="width: 100%">
76
-                            <p style="width: 100%;margin-left: 10%;color: red">注:请注意,合同周期务必处于项目周期的时间范围之内。</p>
76
+                            <p style="width: 100%;margin-left: 10%;color: red">注:请注意,任务书带出时间为项目周期时间,请按合同自行调整。<br>规则:合同执行周期务必处于项目周期的时间范围之内。</p>
77 77
                         </div>
78 78
                         <div class="layui-form-item layui-inline" style="width: 100%">
79
-                            <label class="layui-form-label required" style="width: 10%">验收时间</label>
80
-                            <div class="layui-input-inline" style="width: 25%">
81
-                                <input type="text" id="yssj" name="yssj" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="招标批次不能为空!" placeholder="请选择验收时间...">
79
+
80
+                            <label class="layui-form-label required" style="width: 10%">是否验收</label>
81
+                            <div class="layui-input-inline" style="width: 5%">
82
+                                <input type="checkbox" name="sfys" id="sfys" title="ON|OFF" lay-skin="switch" lay-filter="sfys" checked>
83
+                            </div>
84
+                            <div id="mydiv">
85
+                                <label class="layui-form-label required" style="width: 10%">验收时间</label>
86
+                                <div class="layui-input-inline" style="width: 25%">
87
+                                    <input type="text" id="yssj" name="yssj" autocomplete="off" class="layui-input"   placeholder="请选择验收时间...">
88
+                                </div>
82 89
                             </div>
90
+
83 91
                             <label class="layui-form-label required" style="width: 15%">是否是系统内单位</label>
84 92
                             <div class="layui-input-inline" style="width: 10%">
85
-                                <select name="sfsxtndw" id="sfsxtndw">
93
+                      <!--          <select name="sfsxtndw" id="sfsxtndw">
86 94
                                     <option value="0">是</option>
87 95
                                     <option value="1">否</option>
88
-                                </select>
96
+                                </select>-->
97
+                                <input type="checkbox" name="sfsxtndw" id="sfsxtndw" title="ON|OFF" lay-skin="switch" lay-filter="sfsxtndw" checked>
89 98
                             </div>
90 99
                         </div>
91 100
                         <div class="layui-form-item layui-inline" style="width: 100%;display: none" id="yqrqs" >
92
-                            <label class="layui-form-label" style="width: 10%">延期日期</label>
93
-                            <div class="layui-input-inline" style="width: 25%">
94
-                                <input type="text" id="yqrq" name="yqrq" autocomplete="off" class="layui-input">
95
-                            </div>
101
+                                <label class="layui-form-label" style="width: 10%">延期日期</label>
102
+                                <div class="layui-input-inline" style="width: 25%">
103
+                                    <input type="text" id="yqrq" name="yqrq" autocomplete="off" class="layui-input">
104
+                                </div>
105
+
96 106
                         </div>
97 107
 
98 108
                         <div class="layui-form-item layui-inline" style="width: 100%">
@@ -331,6 +341,46 @@
331 341
             }
332 342
         });
333 343
         //任务书
344
+        // 定义原始校验规则
345
+        var verify = {
346
+            required:function (value) {
347
+                if (value === ''){
348
+                    return '项目已验收,验收时间不能为空!';
349
+                }
350
+                
351
+            }
352
+        };
353
+
354
+        // 复选框 监听
355
+        form.on('switch(sfys)', function (data) {
356
+            console.log('进来了');
357
+            if (data.elem.checked) {
358
+                $('#mydiv').css('display','block');
359
+                $('#sfys').val(1);
360
+                form.verify(verify);
361
+                console.log('复选框已选中');
362
+                return;
363
+            } else {
364
+                console.log('复选框已取消选中');
365
+                $('#mydiv').css('display','none');
366
+                $('#sfys').val(0);
367
+                form.verify({});
368
+                return;
369
+            }
370
+        });
371
+        // 复选框 监听
372
+        form.on('switch(sfsxtndw)', function (data) {
373
+            console.log('进来了');
374
+            if (data.elem.checked) {
375
+                $('#sfsxtndw').val(1);
376
+                console.log('复选框已选中');
377
+                return;
378
+            } else {
379
+                console.log('复选框已取消选中');
380
+                $('#sfsxtndw').val(0);
381
+                return;
382
+            }
383
+        });
334 384
         form.on('select(ysrws)', function (data) {
335 385
             var len = $("#ysrws")[0].length;
336 386
             while (len > 2)
@@ -355,12 +405,16 @@
355 405
                         rwsqssj = localStorage.getItem("rwsqssj");
356 406
                         rwswcsj = localStorage.getItem("rwswcsj");
357 407
                         xmzys = localStorage.getItem("jf");
408
+                        qs = localStorage.getItem("qs");
409
+                        wc = localStorage.getItem("wc");
358 410
                         var updateflag = localStorage.getItem("updateflag");
359 411
                         if (updateflag == "1") {
360 412
                             var rwsmc = localStorage.getItem("rwsmc");
361 413
                             $("#ysrws").append("<option value=" + rwsId + " selected>" + rwsmc + "</option>");
362 414
                             $("#rws").val(rwsId);
363 415
                             $("#rwsmc").val(rwsmc);
416
+                            $("#kssj").val(qs);
417
+                            $("#jssj").val(wc);
364 418
                         } else {
365 419
                             $("#ysrws").val(0);
366 420
                             $("#rws").val('');
@@ -530,12 +584,26 @@
530 584
         // 监听确认按钮(常规)
531 585
         form.on('submit(saveBtn)', function (data) {
532 586
             var htje =data.field.htje;
587
+            var sfys = document.getElementById('sfys').value;
588
+            var yssj = document.getElementById('yssj').value;
589
+            var sfsxtndw = document.getElementById('sfsxtndw').value;
590
+            if (sfsxtndw == 'on'){
591
+                data.field.sfsxtndw = 1;
592
+            }
593
+            console.log('sfys:'+sfys)
594
+            if (sfys == 1 || sfys == 'on'){
595
+                if (yssj == ''){
596
+                    layer.msg('项目已验收,验收时间不能为空!',{icon:2});
597
+                    return ;
598
+                }
599
+                data.field.sfys = 1;
600
+            }
533 601
             if (xmzys == null || xmzys == ''){
534
-                alert('保存失败,当前任务书项目总预算为空,请完善当前任务书的子课题!')
602
+                layer.msg('保存失败,当前任务书项目总预算为空,请完善当前任务书的子课题!',{icon:2});
535 603
                 return false;
536 604
             }
537 605
             if (htje > xmzys/10000){//校验合同金额是否大于项目总预算
538
-                alert('保存失败,填写的合同金额大于任务书项目总预算,项目总预算为:'+xmzys/10000+'万元');
606
+                layer.msg('保存失败,填写的合同金额大于任务书项目总预算,项目总预算为:'+xmzys/10000+'万元',{icon: 2});
539 607
                 return false;
540 608
             }
541 609
             //合同文件

+ 4 - 0
src/main/resources/templates/prjcontract/list_project.html

@@ -161,6 +161,8 @@
161 161
             localStorage.setItem("ssbm", project.ssbm == null ? '' : project.ssbm);
162 162
             localStorage.setItem("ssbmmc", project.ssbmmc == null ? '' : project.ssbmmc);
163 163
             localStorage.setItem("jf", project.jf == null ? '' : project.jf);
164
+            localStorage.setItem("qs",project.qs == null ?'' :project.qs);
165
+            localStorage.setItem("wc",project.wc == null ? '':project.wc);
164 166
         });
165 167
 
166 168
         //双击
@@ -181,6 +183,8 @@
181 183
             localStorage.setItem("ssbmmc", project.ssbmmc == null ? '' : project.ssbmmc);
182 184
             localStorage.setItem("jf", project.jf == null ? '' : project.jf);
183 185
             localStorage.setItem("updateflag", "1");
186
+            localStorage.setItem("qs",project.qs == null ?'' :project.qs);
187
+            localStorage.setItem("wc",project.wc == null ? '':project.wc);
184 188
 
185 189
             parent.layer.close(parent.layer.getFrameIndex(window.name));// 关闭子窗口
186 190
         });

+ 74 - 8
src/main/resources/templates/prjcontract/update.html

@@ -120,17 +120,21 @@
120 120
                             </div>
121 121
                         </div>
122 122
                         <div class="layui-form-item layui-inline" style="width: 100%">
123
-                            <label class="layui-form-label required" style="width: 10%">验收时间</label>
124
-                            <div class="layui-input-inline" style="width: 25%">
125
-                                <input type="text" id="yssj" name="yssj" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="招标批次不能为空!" th:value="${contract.yssj}">
123
+
124
+                            <label class="layui-form-label required" style="width: 10%">是否验收</label>
125
+                            <div class="layui-input-inline" style="width: 10%">
126
+                                <input type="checkbox" name="sfys" id="sfys" title="ON|OFF" lay-skin="switch" lay-filter="sfys" checked>
127
+                            </div>
128
+                            <div id="sfysdiv">
129
+                                <label class="layui-form-label required" style="width: 10%">验收时间</label>
130
+                                <div class="layui-input-inline" style="width: 25%">
131
+                                    <input type="text" id="yssj" name="yssj" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="招标批次不能为空!" th:value="${contract.yssj}">
132
+                                </div>
133
+
126 134
                             </div>
127 135
                             <label class="layui-form-label required" style="width: 15%">是否是系统内单位</label>
128 136
                             <div class="layui-input-inline" style="width: 10%">
129
-                                <input type="text" name="display_sfsxtndw" id="display_sfsxtndw" placeholder="终止时间" class="layui-input" lay-verify="required" lay-reqtext="结束不能为空"
130
-                                       th:value="${contract.sfsxtndw == 0?'是':'否'}"
131
-                                       readonly>
132
-                                <input type="hidden" name="sfsxtndw" id="sfsxtndw"
133
-                                       th:value="${contract.sfsxtndw}">
137
+                                <input type="checkbox" name="sfsxtndw" id="sfsxtndw" title="ON|OFF" lay-skin="switch" lay-filter="sfsxtndw" checked>
134 138
                             </div>
135 139
                         </div>
136 140
 
@@ -231,6 +235,30 @@
231 235
         </div>
232 236
     </div>
233 237
 </form>
238
+<script>
239
+    const sfys = [[${contract.sfys}]];
240
+    const sfsxtnbdw = [[${contract.sfsxtndw}]];
241
+    var sf = document.getElementById('sfys');
242
+    var nbdw = document.getElementById('sfsxtndw');
243
+    if (sfys == 1){
244
+        sf.checked = true;
245
+        sf.value = 1;
246
+       document.getElementById('sfysdiv').style.display = 'block';
247
+
248
+    }else {
249
+        sf.checked = false;
250
+        sf.value = 0;
251
+        document.getElementById('sfysdiv').style.display = 'none';
252
+    }
253
+    if (sfsxtnbdw == 1){
254
+        nbdw.checked = true;
255
+        nbdw.value = 1;
256
+    }else {
257
+        nbdw.checked = false;
258
+        nbdw.value = 0;
259
+    }
260
+
261
+</script>
234 262
 
235 263
 <script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
236 264
 <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
@@ -349,6 +377,44 @@
349 377
 
350 378
             }
351 379
         });
380
+        var verify = {
381
+            required:function (value) {
382
+                if (value === ''){
383
+                    return '项目已验收,验收时间不能为空!';
384
+                }
385
+
386
+            }
387
+        };
388
+        // 监听是否验收
389
+        form.on('switch(sfys)',function (data) {
390
+            if (data.elem.checked) {
391
+                $('#sfysdiv').css('display','block');
392
+                $('#sfys').val(1);
393
+                form.verify(verify);
394
+                console.log('复选框已选中');
395
+                return;
396
+            } else {
397
+                console.log('复选框已取消选中');
398
+                $('#sfysdiv').css('display','none');
399
+                $('#sfys').val(0);
400
+                form.verify({});
401
+                return;
402
+            }
403
+
404
+        });
405
+        // 监听是否是内部单位
406
+        form.on('switch(sfsxtndw)', function (data) {
407
+            console.log('进来了');
408
+            if (data.elem.checked) {
409
+                $('#sfsxtndw').val(1);
410
+                console.log('复选框已选中');
411
+                return;
412
+            } else {
413
+                console.log('复选框已取消选中');
414
+                $('#sfsxtndw').val(0);
415
+                return;
416
+            }
417
+        });
352 418
 
353 419
         // 用于存放表格数据
354 420
         var dataHtwj = new Array();

+ 85 - 28
src/main/resources/templates/prjcontract/view.html

@@ -25,51 +25,74 @@
25 25
             <div class="layui-tab-item layui-show" style="min-height: 550px; margin-bottom: 5px">
26 26
                 <form class="layui-form" action="" lay-filter="formDemo">
27 27
                     <div class="layui-form layuimini-form">
28
+
29
+
30
+
28 31
                         <div class="layui-form-item layui-inline" style="width: 100%">
29
-                            <label class="layui-form-label" style="width: 60px">任务书</label>
30
-                            <div class="layui-input-inline" style="width: 790px">
32
+                            <label class="layui-form-label required" style="width: 10%">任务书</label>
33
+                            <div class="layui-input-inline" style="width: 80%">
31 34
                                 <input type="hidden" id="rws" name="rws" class="layui-input" th:value="${contract.rws}"
32 35
                                        readonly>
33 36
                                 <input type="text" id="rwsmc" name="rwsmc" class="layui-input"
34 37
                                        th:value="${contract.rwsmc}" readonly>
35 38
                             </div>
36 39
                         </div>
40
+
37 41
                         <div class="layui-form-item layui-inline" style="width: 100%">
38
-                            <label class="layui-form-label" style="width: 60px">合同名称</label>
39
-                            <div class="layui-input-inline" style="width: 380px">
40
-                                <input type="hidden" id="id" name="id" class="layui-input" th:value="${contract.id}">
41
-                                <input type="text" id="htmc" name="htmc" th:value="${contract.htmc}" class="layui-input"
42
-                                       readonly>
42
+                            <label class="layui-form-label required" style="width: 10%">合同名称</label>
43
+                            <div class="layui-input-inline" style="width: 25%">
44
+                                <input type="hidden" id="id" name="id" class="layui-input" th:value="${contract.id}" >
45
+                                <input type="text" id="htmc" name="htmc" lay-verify="required" lay-reqtext="合同名称不能为空" autocomplete="off" class="layui-input" th:value="${contract.htmc}" readonly>
43 46
                             </div>
44
-                            <label class="layui-form-label" style="width: 100px">合同金额(万元)</label>
45
-                            <div class="layui-input-inline" style="width: 270px">
46
-                                <input type="number" id="htje" name="htje" class="layui-input"
47
-                                       th:value="${contract.htje}" readonly>
47
+                            <label class="layui-form-label required" style="width: 15%">合同金额(万元)</label>
48
+                            <div class="layui-input-inline" style="width: 35%">
49
+                                <input type="number" id="htje" name="htje" class="layui-input" lay-verify="required" lay-reqtext="合同金额不能为空"
50
+                                       th:value="${contract.htje}"  readonly
51
+                                       autocomplete="off">
48 52
                             </div>
49 53
                         </div>
50 54
 
51 55
                         <div class="layui-form-item layui-inline" style="width: 100%">
52
-                            <label class="layui-form-label " style="width: 60px">招标批次</label>
53
-                            <div class="layui-input-inline" style="width: 380px">
54
-                                <input type="text" id="zbpc" name="zbpc" autocomplete="off" class="layui-input"
55
-                                       th:value="${contract.zbpc}" readonly>
56
+                            <label class="layui-form-label required" style="width: 10%">招标批次</label>
57
+                            <div class="layui-input-inline" style="width: 25%">
58
+                                <input type="text" id="zbpc" name="zbpc" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="招标批次不能为空" th:value="${contract.zbpc}"  readonly>
56 59
                             </div>
57
-                            <label class="layui-form-label " style="width: 100px">中选单位</label>
58
-                            <div class="layui-input-inline" style="width: 270px">
59
-                                <input type="text" id="zxdw" name="zxdw" class="layui-input" autocomplete="off"
60
-                                       th:value="${contract.zxdw}" readonly>
60
+                            <label class="layui-form-label" style="width: 15%">中选单位</label>
61
+                            <div class="layui-input-inline" style="width: 35%">
62
+                                <input type="text" id="zxdw" name="zxdw" class="layui-input" autocomplete="off" th:value="${contract.zxdw}" readonly >
61 63
                             </div>
62 64
                         </div>
65
+
63 66
                         <div class="layui-form-item layui-inline" style="width: 100%">
64
-                            <label class="layui-form-label required" style="width: 60px">执行周期</label>
65
-                            <div class="layui-input-inline" style="width: 380px">
67
+                            <label class="layui-form-label required" style="width: 10%">执行周期</label>
68
+                            <div class="layui-input-inline" style="width: 25%">
66 69
                                 <input type="text" name="kssj" id="kssj" placeholder="开始时间" class="layui-input" lay-verify="required" lay-reqtext="开始时间不能为空"
67
-                                       th:value="${contract.kssj}" readonly>
70
+                                       th:value="${contract.kssj}"
71
+                                       readonly>
68 72
                             </div>
69 73
                             <div class="layui-form-mid">-</div>
70
-                            <div class="layui-input-inline" style="width: 380px">
74
+                            <div class="layui-input-inline" style="width: 25%">
71 75
                                 <input type="text" name="jssj" id="jssj" placeholder="终止时间" class="layui-input" lay-verify="required" lay-reqtext="结束不能为空"
72
-                                       th:value="${contract.jssj}" readonly>
76
+                                       th:value="${contract.jssj}"
77
+                                       readonly>
78
+                            </div>
79
+                        </div>
80
+                        <div class="layui-form-item layui-inline" style="width: 100%">
81
+
82
+                            <label class="layui-form-label required" style="width: 10%">是否验收</label>
83
+                            <div class="layui-input-inline" style="width: 10%">
84
+                                <input type="checkbox" name="sfys" id="sfys" title="ON|OFF" lay-skin="switch" lay-filter="sfys" disabled checked>
85
+                            </div>
86
+                            <div id="sfysdiv">
87
+                                <label class="layui-form-label required" style="width: 10%">验收时间</label>
88
+                                <div class="layui-input-inline" style="width: 25%">
89
+                                    <input type="text" id="yssj" name="yssj" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="招标批次不能为空!" th:value="${contract.yssj}" readonly>
90
+                                </div>
91
+
92
+                            </div>
93
+                            <label class="layui-form-label required" style="width: 15%">是否是系统内单位</label>
94
+                            <div class="layui-input-inline" style="width: 10%">
95
+                                <input type="checkbox" name="sfsxtndw" id="sfsxtndw" title="ON|OFF" lay-skin="switch" lay-filter="sfsxtndw" disabled checked>
73 96
                             </div>
74 97
                         </div>
75 98
 
@@ -88,19 +111,29 @@
88 111
                                 </div>
89 112
                                 <table class="layui-hide" id="currentTableId1" name="currentTableId1"
90 113
                                        lay-filter="currentTableFilter1"
91
-                                       style="                           padding-top: 0px;margin-top: 0px"></table>
92
-                                <label>上传招标合同、中标通知书、合同流转单。</label>
114
+                                       style="padding-top: 0px;margin-top: 0px"></table>
115
+                                <label>上传招标合同、中标通知书、合同流转单(上传文件形式:word.pdf.excel)。</label>
93 116
                             </div>
94 117
                         </div>
95 118
 
96 119
                         <div class="layui-form-item layui-inline" style="width: 100%">
97 120
                             <label class="layui-form-label" style="width: 60px">验收资料</label>
98 121
                             <div class="layuimini-container"
99
-                                 style="margin-left: 90px; margin-right: 20px; margin-bottom: -30px">
122
+                                 style="margin-left: 90px; margin-right: 20px; padding-bottom: 10px">
100 123
                                 <input type="hidden" id="yszl" name="yszl" class="layui-input"
101 124
                                        th:value="${contract.yszl}">
125
+                                <div class="layui-btn-group" style="margin-bottom: -8px">
126
+                                    <button type="button" class="layui-btn  layui-btn-primary layui-btn-sm upload"
127
+                                            id="upLoad2" lay-data="{fileType:'yszl'}"><i class="layui-icon"></i>上传
128
+                                    </button>
129
+                                    <button type="button" class="layui-btn  layui-btn-primary layui-btn-sm"
130
+                                            lay-filter="deleteFile2"><i class="layui-icon"></i>删除
131
+                                    </button>
132
+                                </div>
102 133
                                 <table class="layui-hide" id="currentTableId2" name="currentTableId2"
103
-                                       lay-filter="currentTableFilter2"></table>
134
+                                       lay-filter="currentTableFilter2"
135
+                                       style="padding-top: 0px;margin-top: 0px"></table>
136
+                                <label>需上传合同约定的技术报告、测试报告、第三方检测报告、图纸、文宣专利等乙方应提供成果;外委验收意见(包括完成情况表及专家签名)。</label>
104 137
                             </div>
105 138
                         </div>
106 139
 
@@ -134,6 +167,30 @@
134 167
         </div>
135 168
     </div>
136 169
 </form>
170
+<script>
171
+    const sfys = [[${contract.sfys}]];
172
+    const sfsxtnbdw = [[${contract.sfsxtndw}]];
173
+    var sf = document.getElementById('sfys');
174
+    var nbdw = document.getElementById('sfsxtndw');
175
+    if (sfys == 1){
176
+        sf.checked = true;
177
+        sf.value = 1;
178
+        document.getElementById('sfysdiv').style.display = 'block';
179
+
180
+    }else {
181
+        sf.checked = false;
182
+        sf.value = 0;
183
+        document.getElementById('sfysdiv').style.display = 'none';
184
+    }
185
+    if (sfsxtnbdw == 1){
186
+        nbdw.checked = true;
187
+        nbdw.value = 1;
188
+    }else {
189
+        nbdw.checked = false;
190
+        nbdw.value = 0;
191
+    }
192
+
193
+</script>
137 194
 
138 195
 <script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
139 196
 <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>