双重预防项目-国泰新华二开定制版
heheng
2025-04-15 7be0d5b901b999d2347774df3cc1a64927838bb3
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
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改应急物资')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-emergencySupplies-edit" th:object="${emergencySupplies}">
            <input name="emergencySuppliesId" th:field="*{emergencySuppliesId}" type="hidden">
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">创建人id:</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="createUserId" th:field="*{createUserId}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">更新者id:</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="updateUserId" th:field="*{updateUserId}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否为微型消防站:</label>
                <div class="col-sm-8">
                    <input name="isMiniatureFireStation" th:field="*{isMiniatureFireStation}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">物资名称:</label>
                <div class="col-sm-8">
                    <input name="materialName" th:field="*{materialName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">数量:</label>
                <div class="col-sm-8">
                    <input name="quantity" th:field="*{quantity}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">存放地点:</label>
                <div class="col-sm-8">
                    <textarea name="storageLocation" class="form-control" required>[[*{storageLocation}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">维护人:</label>
                <div class="col-sm-8">
                    <textarea name="maintenance" class="form-control" required>[[*{maintenance}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">检查情况:</label>
                <div class="col-sm-8">
                    <textarea name="inspection" class="form-control" required>[[*{inspection}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">要求周期:</label>
                <div class="col-sm-8">
                    <textarea name="cycle" class="form-control" required>[[*{cycle}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "dc/emergencySupplies";
        $("#form-emergencySupplies-edit").validate({
            focusCleanup: true
        });
 
        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-emergencySupplies-edit').serialize());
            }
        }
    </script>
</body>
</html>