add.html 11.8 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-receiptPreference-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">编码:</label>
            <div class="col-sm-8">
                <input id="code" name="code" 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="name" name="name" 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="receiptFlow" name="receiptFlow" 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="autoAssignLPN" name="autoAssignLPN" 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="onoffswitch">
                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="allowOverReceiving" name="allowOverReceiving">
                    <label class="onoffswitch-label" for="allowOverReceiving">
                        <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="allowOverReceivingQty" name="allowOverReceivingQty" 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="autoLocate" name="autoLocate" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF显示未收数量:</label>
            <div class="col-sm-8">
                <input id="showOpenQty" name="showOpenQty" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF组车收货:</label>
            <div class="col-sm-8">
                <input id="groupPutaway" name="groupPutaway" 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="manuallyBuildLPN" name="manuallyBuildLPN" 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="locationRule" name="locationRule" 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="emptyLocRule" name="emptyLocRule" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF逐件收货:</label>
            <div class="col-sm-8">
                <input id="checkinByPiece" name="checkinByPiece" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF自动提交收货:</label>
            <div class="col-sm-8">
                <input id="pieceConfirm" name="pieceConfirm" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">abc分类:</label>
            <div class="col-sm-8">
                <input id="abcClass" name="abcClass" 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="daysToExpire" name="daysToExpire" 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="expiringDays" name="expiringDays" 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="minShelfLifeDays" name="minShelfLifeDays" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">RF快速上架:</label>
            <div class="col-sm-8">
                <input id="allowQuickPutaway" name="allowQuickPutaway" 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="attributeTemplateCode" name="attributeTemplateCode" 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="useQuickCheckIn" name="useQuickCheckIn" 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 + "config/receiptPreference";
    $("#form-receiptPreference-add").validate({
        rules:{
            code:{
                required: true,
            },
            name:{
                required: true,
            },
            autoAssignLPN:{
                required: true,
            },
            allowOverReceiving:{
                required: true,
            },
            allowOverReceivingQty:{
                required: true,
            },
            autoLocate: {
                required: true,
            },
            showOpenQty: {
                required: true,
            },
            groupPutaway: {
                required: true,
            },
            manuallyBuildLPN: {
                required: true,
            },
            checkinByPiece: {
                required: true,
            },
            pieceConfirm: {
                required: true,
            },
            allowQuickPutaway: {
                required: true,
            }
        },
        submitHandler: function(form) {
            var tableValue = $.common.getTableValue("#form-receiptPreference-add");
            tableValue = formValueReplace(tableValue, "allowOverReceiving", $("input[name='allowOverReceiving']").is(':checked'));
            $.operate.save(prefix + "/edit", tableValue);
        }
    });
</script>
</body>
</html>