From 7063979731c57320abe8de6d4358886d3c2ccd48 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期四, 24 八月 2023 17:15:10 +0800
Subject: [PATCH] 延期整改

---
 src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/delayDangerRectify.html |  107 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/dangerRectify.html      |    7 +++
 2 files changed, 114 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/dangerRectify.html b/src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/dangerRectify.html
index 96aeb1b..0da8daf 100644
--- a/src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/dangerRectify.html
+++ b/src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/dangerRectify.html
@@ -149,6 +149,7 @@
                         var actions = [];
                         if (row.rectifyStatus == 0) {
                             actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="editDangerRectify(\'' + row.id + '\')"><i class="fa fa-edit"></i>整改</a> ');
+                            actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="delayDangerRectify(\'' + row.id + '\')"><i class="fa fa-edit"></i>延期整改</a> ');
                             return actions.join('');
                         } else if (row.rectifyStatus == 1) {
                             actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="detailDangerRectify(\'' + row.id + '\')"><i class="fa fa-search"></i>查看</a> ');
@@ -166,6 +167,12 @@
         $.modal.open("隐患整改", editDangerRectifyUrl.replace("{id}", id));
     }
 
+    /* 隐患整改--整改 */
+    function delayDangerRectify(id) {
+        var delayDangerRectifyUrl = prefix + "/delayDangerRectify/{id}";
+        $.modal.open("延期整改", delayDangerRectifyUrl.replace("{id}", id));
+    }
+
     /* 隐患整改--查看 */
     function detailDangerRectify(id) {
         var detailDangerRectifyUrl = prefix + "/detailDangerRectify/{id}";
diff --git a/src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/delayDangerRectify.html b/src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/delayDangerRectify.html
new file mode 100644
index 0000000..5e8b624
--- /dev/null
+++ b/src/main/resources/templates/tr/hiddenDangerCheck/dangerRectify/delayDangerRectify.html
@@ -0,0 +1,107 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org">
+<head>
+    <th:block th:include="include :: header('延期整改')"/>
+    <th:block th:include="include :: datetimepicker-css"/>
+    <th:block th:include="include :: jquery-steps-css"/>
+
+    <!--多图上传样式-->
+    <link rel="stylesheet" href="/ajax/libs/layui/css/layui.css" media="all">
+    <style type="text/css">
+        #tablist li a {
+            height: 5em;
+        }
+
+        #tablist li.notExecute a {
+            line-height: 5em;
+            text-align: center;
+        }
+
+        label.error{
+            position :absolute !important;
+        }
+        #preFileList{
+            display: flex;
+            align-items: flex-start;
+            margin-top: 10px;
+        }
+        #postFileList{
+            display: flex;
+            align-items: flex-start;
+            margin-top: 10px;
+        }
+        .file-list-item1,.file-temp1,.file-list-item2,.file-temp2{
+            width: 100px;
+            margin-right: 10px;
+        }
+        [class^="file-list-item"] div:nth-child(1){
+            width: 100%;
+            overflow: hidden;
+            position: relative;
+        }
+        [class^="file-list-item"] div:nth-child(1) img{
+            width: 100px;
+            height: 100px;
+        }
+        [class^="file-list-item"] div:nth-child(1) .layui-badge1,.layui-badge2{
+            position: absolute;
+            left: 2px;
+            top: 2px;
+        }
+        [class^="file-list-item"] div:nth-child(2){
+            width: 100%;
+            height: 36px;
+            text-align: center;
+            line-height: 36px;
+            margin-top: 4px;
+        }
+        [class^="file-list-item"] div:nth-child(2) [class^="file-cancel"]{
+            width: 100%;
+            height: 36px;
+        }
+        [class^="file-list-item"] div:nth-child(2) [class^="file-cancel"]:hover{
+            background: #ED5565;
+            color: #fff;
+        }
+    </style>
+</head>
+<body class="white-bg">
+<div class="wrapper wrapper-content animated fadeInRight ibox-content">
+    <form class="form-horizontal m" id="form-hdcp-edit" th:object="${hdcp}">
+        <h4 class="form-header h4">延期整改</h4>
+
+        <input name="id" th:field="*{id}" type="hidden">
+<!--        <input name="checkId" th:field="*{checkId}" type="hidden">-->
+        <div class="form-group showByDangerLevelChange">
+            <label class="col-sm-3 control-label is-required">完成期限:</label>
+            <div class="col-sm-8">
+                <div class="input-group date">
+                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
+                    <input name="rectifyDeadlineTime" class="form-control" type="text" readonly="readonly" required>
+                </div>
+            </div>
+        </div>
+    </form>
+</div>
+<th:block th:include="include :: footer"/>
+<th:block th:include="include :: datetimepicker-js"/>
+<th:block th:include="include :: jquery-steps-js"/>
+<script type="text/javascript">
+
+    function submitHandler() {
+        if ($.validate.form()) {
+            var data = $('#form-hdcp-edit').serializeArray();
+            console.log(data,'data')
+            $.operate.save(prefix + "/editDangerRectifySave", data);
+        }
+    }
+
+    $("input[name='rectifyDeadlineTime']").datetimepicker({
+        format: "yyyy-mm-dd",
+        minView: "month",
+        autoclose: true
+    });
+
+</script>
+</body>
+</html>
\ No newline at end of file

--
Gitblit v1.9.2