add.html 7.7 KB
<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head 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-wave-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">波次名称:</label>
            <div class="col-sm-8">
                <input id="waveName" name="waveName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">波次主表:</label>
            <div class="col-sm-8">
                <input id="masterCode" name="masterCode" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态:</label>
            <div class="col-sm-8">
                <input id="status" name="status" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否锁定:</label>
            <div class="col-sm-8">
                <div class="radio radio-info radio-inline" style="transform: scale(1.1, 1.1);">
                    <input type="radio" id="locked1" name="locked" value="true" checked="checked"
                           class="radio_select">
                    <label for="locked1"></label>
                </div>
                <div class="radio radio-danger radio-inline " style="transform: scale(1.1, 1.1);">
                    <input type="radio" id="locked2" name="locked" value="false">
                    <label for="locked2"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否需要补货:</label>
            <div class="col-sm-8">
                <div class="radio radio-info radio-inline" style="transform: scale(1.1, 1.1);">
                    <input type="radio" id="replenishmentReqd1" name="replenishmentReqd" value="true" checked="checked"
                           class="radio_select">
                    <label for="replenishmentReqd1"></label>
                </div>
                <div class="radio radio-danger radio-inline " style="transform: scale(1.1, 1.1);">
                    <input type="radio" id="replenishmentReqd2" name="replenishmentReqd" value="false">
                    <label for="replenishmentReqd2"></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">波次模式:</label>
            <div class="col-sm-8">
                <input id="waveMode" name="waveMode" class="form-control" type="text">
            </div>
        </div>
        <!--<div class="form-group">
            <label class="col-sm-3 control-label">数据版本:</label>
            <div class="col-sm-8">
                <input id="version" name="version" class="form-control" type="text">
            </div>
        </div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">创建时间:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="created" name="created" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">创建者:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="createdBy" name="createdBy" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">创建时间:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="lastUpdated" name="lastUpdated" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">更新者:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="lastUpdatedBy" name="lastUpdatedBy" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">是否有效:</label>-->
        <!--<div class="col-sm-8">-->
        <!--&lt;!&ndash;<input id="enable" name="enable" class="form-control" type="text">&ndash;&gt;-->
        <!--<div class="onoffswitch">-->
        <!--<input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable" name="enable">-->
        <!--<label class="onoffswitch-label" for="enable">-->
        <!--<span class="onoffswitch-inner"></span>-->
        <!--<span class="onoffswitch-switch"></span>-->
        <!--</label>-->
        <!--</div>-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">是否删除:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="deleted" name="deleted" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段1:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef1" name="userDef1" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段2:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef2" name="userDef2" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段3:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef3" name="userDef3" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段4:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef4" name="userDef4" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">	-->
        <!--<label class="col-sm-3 control-label">自定义字段5:</label>-->
        <!--<div class="col-sm-8">-->
        <!--<input id="userDef5" name="userDef5" class="form-control" type="text">-->
        <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <div class="form-control-static col-sm-offset-9">
                <button type="submit" class="btn btn-primary">提交</button>
                <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">
    var prefix = ctx + "shipment/wave";
    $("#form-wave-add").validate({
        rules:{
            waveName:{
                required: true,
            },
            masterCode:{
                required: true,
            },
            status:{
                required: true,
            },
            locked:{
                required: true,
            },
            replenishmentReqd:{
                required: true,
            },
            waveMode: {
                required: true,
            }
        },
        submitHandler: function(form) {
            var tableValue = $.common.getTableValue("#form-wave-add");
            $.operate.save(prefix + "/add", tableValue);
        }
    });
</script>
</body>
</html>