Blame view

src/main/resources/templates/config/cycleCountPreference/add.html 6.13 KB
xqs authored
1
<!DOCTYPE HTML>
2
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
xqs authored
3
4
5
6
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
xqs authored
7
    <form class="form-horizontal m" id="form-cycleCountPreference-add">
8
        <!--<div class="form-group">
xqs authored
9
            <label class="col-sm-3 control-label">盘点首选项编码:</label>
xqs authored
10
11
12
            <div class="col-sm-8">
                <input id="code" name="code" class="form-control" type="text">
            </div>
13
        </div>-->
xqs authored
14
        <div class="form-group">
xqs authored
15
            <label class="col-sm-3 control-label">盘点首选项名称:</label>
xqs authored
16
17
18
19
            <div class="col-sm-8">
                <input id="name" name="name" class="form-control" type="text">
            </div>
        </div>
xqs authored
20
xqs authored
21
        <div class="form-group">
xqs authored
22
            <label class="col-sm-3 control-label">系统提示库位:</label>
xqs authored
23
            <div class="col-sm-8">
xqs authored
24
                <div class="onoffswitch">
25
26
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLocation"
                           name="promptLocation">
xqs authored
27
28
29
30
31
                    <label class="onoffswitch-label" for="promptLocation">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
xqs authored
32
33
            </div>
        </div>
xqs authored
34
xqs authored
35
        <div class="form-group">
xqs authored
36
            <label class="col-sm-3 control-label">系统提示容器:</label>
xqs authored
37
38
            <div class="col-sm-8">
                <div class="onoffswitch">
39
40
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLpn"
                           name="promptLpn">
xqs authored
41
                    <label class="onoffswitch-label" for="promptLpn">
xqs authored
42
43
44
45
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
xqs authored
46
47
48
            </div>
        </div>
xqs authored
49
        <div class="form-group">
xqs authored
50
            <label class="col-sm-3 control-label">系统提示物料:</label>
xqs authored
51
            <div class="col-sm-8">
xqs authored
52
                <div class="onoffswitch">
53
54
55
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptItem"
                           name="promptItem">
                    <label class="onoffswitch-label" for="promptItem">
xqs authored
56
57
58
59
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
xqs authored
60
            </div>
61
62
63
64
65
66
67
68
69
70
71
72
73
74
        </div>prompAdjustQty

        <div class="form-group">
            <label class="col-sm-3 control-label">显示差异数量:</label>
            <div class="col-sm-8">
                <div class="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="prompAdjustQty"
                           name="prompAdjustQty">
                    <label class="onoffswitch-label" for="prompAdjustQty">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
            </div>
xqs authored
75
        </div>
xqs authored
76
xqs authored
77
        <div class="form-group">
xqs authored
78
            <label class="col-sm-3 control-label">显示库存数量:</label>
xqs authored
79
            <div class="col-sm-8">
80
81
82
83
84
85
86
87
                    <div class="onoffswitch">
                        <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptQuantity"
                               name="promptQuantity">
                        <label class="onoffswitch-label" for="promptQuantity">
                            <span class="onoffswitch-inner"></span>
                            <span class="onoffswitch-switch"></span>
                        </label>
                    </div>
xqs authored
88
89
            </div>
        </div>
90
91
        <div class="form-group">
            <label class="col-sm-3 control-label">是否有效:</label>
xqs authored
92
            <div class="col-sm-8">
xqs authored
93
                <div class="onoffswitch">
94
95
96
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable"
                           name="enable">
                    <label class="onoffswitch-label" for="enable">
xqs authored
97
98
99
100
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                    </label>
                </div>
xqs authored
101
            </div>
xqs authored
102
        </div>
xqs authored
103
104
        <div class="form-group">
            <div class="form-control-static col-sm-offset-9">
xqs authored
105
                <input type="submit" class="btn btn-primary" value="提交">
xqs authored
106
107
108
109
110
111
112
                <button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
xqs authored
113
114
    var prefix = ctx + "config/cycleCountPreference";
    $("#form-cycleCountPreference-add").validate({
115
116
        rules: {
            code: {
xqs authored
117
118
                required: true,
            },
119
            name: {
xqs authored
120
121
                required: true,
            },
122
xqs authored
123
        },
124
        submitHandler: function (form) {
xqs authored
125
            var tableValue = $.common.getTableValue("#form-cycleCountPreference-add");
126
127
            tableValue = formValueReplace(tableValue, "promptLocation", $("input[name='promptLocation']").is(':checked'));
            tableValue = formValueReplace(tableValue, "promptLpn", $("input[name='promptLpn']").is(':checked'));
128
            tableValue = formValueReplace(tableValue, "prompAdjustQty", $("input[name='prompAdjustQty']").is(':checked'));
129
130
131
            tableValue = formValueReplace(tableValue, "promptItem", $("input[name='promptItem']").is(':checked'));
            tableValue = formValueReplace(tableValue, "promptQuantity", $("input[name='promptQuantity']").is(':checked'));
            tableValue = formValueReplace(tableValue, "enable", $("input[name='enable']").is(':checked'));
xqs authored
132
            $.operate.save(prefix + "/addSave", tableValue);
xqs authored
133
134
135
136
137
        }
    });
</script>
</body>
</html>