双重预防项目-国泰新华二开定制版
heheng
2025-06-24 e98eeaaa5766511fdb8e6d5e412eb1c59d1f07ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!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"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-job-edit" th:object="${specialCheckTaskLog}">
        <input id="indexId" name="indexId" type="hidden" th:field="*{indexId}"/>
 
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">专项检查任务:</label>
            <div class="col-sm-8">
                <select id="taskId" name="taskId" th:field="*{taskId}" class="form-control" required>
                    <option th:each="task : ${tbBaseCheckTask}" th:text="${task.taskName}" th:value="${task.id}"></option>
                </select>
            </div>
        </div>
<!--        <input id="createUserId" name="createUserId" type="hidden" th:field="*{createUserId}"/>-->
<!--        <input id="createBy" name="createBy" type="hidden" th:field="*{createBy}"/>-->
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">风险分析对象:</label>
            <div class="col-sm-8">
                <select id="hazardCode" name="hazardCode" th:field="*{hazardCode}" class="form-control" required>
                    <option th:each="hazard : ${hazardList}" th:text="${hazard.riskListName}" th:value="${hazard.riskListNum}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">检查类型:</label>
            <div class="col-sm-8">
                <select name="checkType" th:field="*{checkType}" class="form-control m-b" required id="checkType">
                    <option value="">请选择</option>
                    <option value="1">企业自查</option>
                    <option value="2">市级及以下检查</option>
                    <option value="3">省级检查</option>
                    <option value="4">部级检查</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <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="checkDate" th:value="${#dates.format(specialCheckTaskLog.checkDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text" required>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">是否停产整顿:</label>
            <div class="col-sm-8">
                <select name="resultStatus" th:field="*{resultStatus}" class="form-control m-b" required id="resultStatus">
                    <option value="">请选择</option>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
        </div>
 
<!--        <input id="jobGroup" name="jobGroup" type="hidden" value="specialCheckTaskLog"/>-->
 
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "tr/specialCheckTaskLog";
    var now = new Date();
    var hour = now.getHours(); //获取当前小时数(0-23)
    var minute = now.getMinutes(); //获取当前分钟数(0-59)
    var second = now.getSeconds(); //获取当前秒数(0-59)
    $("input[name='checkDate']").datetimepicker({
        format: "yyyy-mm-dd" + ' ' + '12:00:00',
        minView: "month",
        autoclose: true
    });
 
 
    $("#form-job-edit").validate({
        onkeyup: false,
        focusCleanup: true
    });
 
    function submitHandler() {
        if ($.validate.form()){
            $.operate.save(prefix + "/edit", $('#form-job-edit').serialize());
        }
    }
</script>
</body>
</html>