<!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-WorkTrayHistoryInfo-edit" th:object="${tRpWorktrayhistoryinfo}">
            <input name="currentStation" th:field="*{currentStation}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">当前工位：</label>
                <div class="col-sm-8">
                    <input name="currentStation" th:field="*{currentStation}" 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="barCode" th:field="*{barCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">RFID条码：</label>
                <div class="col-sm-8">
                    <input name="rfidNum" th:field="*{rfidNum}" 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="state" class="form-control m-b" th:with="type=${@dict.getType('palletState')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{state}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "nanjing/WorkTrayHistoryInfo";
        $("#form-WorkTrayHistoryInfo-edit").validate({
            focusCleanup: true
        });

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