edit.html 9.09 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-cyclecountDetail-edit" th:object="${cyclecountDetail}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">盘点单编码:</label>
                <div class="col-sm-8">
                    <input id="inventoryCode" name="inventoryCode" th:field="*{inventoryCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">公司id:</label>
                <div class="col-sm-8">
                    <input id="companyId" name="companyId" th:field="*{companyId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">库位id:</label>
                <div class="col-sm-8">
                    <input id="locationId" name="locationId" th:field="*{locationId}" 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="locationCode" name="locationCode" th:field="*{locationCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">物料Id:</label>
                <div class="col-sm-8">
                    <input id="materialId" name="materialId" th:field="*{materialId}" 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="materialCode" name="materialCode" th:field="*{materialCode}" 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="receiptCode" name="receiptCode" th:field="*{receiptCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">入库单id:</label>
                <div class="col-sm-8">
                    <input id="receiptId" name="receiptId" th:field="*{receiptId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">入库单明细id:</label>
                <div class="col-sm-8">
                    <input id="receiptDetailId" name="receiptDetailId" th:field="*{receiptDetailId}" 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="batch" name="batch" th:field="*{batch}" 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="lot" name="lot" th:field="*{lot}" 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="project" name="project" th:field="*{project}" 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="manufactureDate" name="manufactureDate" th:field="*{manufactureDate}" 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="expirationDate" name="expirationDate" th:field="*{expirationDate}" 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="inventoryStatus" name="inventoryStatus" th:field="*{inventoryStatus}" 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="systemQty" name="systemQty" th:field="*{systemQty}" 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="countedQty" name="countedQty" th:field="*{countedQty}" 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="gapQty" name="gapQty" th:field="*{gapQty}" 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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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">
                    <input id="enable" name="enable" th:field="*{enable}" 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" th:field="*{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" th:field="*{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" th:field="*{userDef3}" 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 + "inventory/cyclecountDetail"
		$("#form-cyclecountDetail-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-cyclecountDetail-edit').serialize());
			}
		});
	</script>
</body>
</html>