<!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-ledger_rfid-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">RFID编码：</label>
                <div class="col-sm-8">
                    <input name="rifdCode" 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 name="batchCode" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所在位置：</label>
                <div class="col-sm-8">
                    <select name="locationType" class="form-control m-b" th:with="type=${@dict.getType('store_tag')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">位置编码：</label>
                <div class="col-sm-8">
                    <input name="locationCode" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否报废：</label>
                <div class="col-sm-8">
                    <select name="isScrap" class="form-control m-b" th:with="type=${@dict.getType('bf_y_n')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "manage/ledger_rfid"
        $("#form-ledger_rfid-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-ledger_rfid-add').serialize());
            }
        }
    </script>
</body>
</html>