RuoYi/ruoyi-admin/src/main/resources/templates/platform/companyarea/edit.html

136 lines
4.9 KiB
HTML
Raw Normal View History

<!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-companyarea-edit" th:object="${companyArea}">
<input type="hidden" name="createBy" id="createBy" />
<input type="hidden" name="updateBy" id="updateBy" />
<input name="companyAreaId" th:field="*{companyAreaId}" type="hidden">
<div class="row mt10">
<div class="col-sm-6">
<label class="col-sm-4 control-label is-required">名称:</label>
<div class="col-sm-8">
<input name="companyAreaName" th:field="*{companyAreaName}" class="form-control" type="text" required>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">单据号:</label>
<div class="col-sm-8">
<input name="docNum" th:field="*{docNum}" class="form-control" type="text">
</div>
</div>
</div>
<div class="row mt10">
<div class="col-sm-6">
<label class="col-sm-4 control-label is-required">资料状态:</label>
<div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('platf_doc_statu')}">
<input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}" required>
<label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div>
</div>
</div>
</div>
<div class="row mt10">
<div class="col-sm-12">
<div class="form-group">
<label class="col-sm-2 control-label">备注:</label>
<div class="col-sm-10">
<textarea name="remark" maxlength="500" class="form-control" rows="3" >[[*{remark}]]</textarea>
</div>
</div>
</div>
</div>
<div class="row mt10">
<div class="col-sm-6">
<label class="col-sm-4 control-label is-required">制单人:</label>
<div class="col-sm-8">
<input name="createByuserName" th:field="*{createByuserName}" class="form-control" type="text" required>
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label is-required">制单时间:</label>
<div class="col-sm-8">
<input name="createTime" th:field="*{createTime}" class="form-control" type="text" required>
</div>
</div>
</div>
<div class="row mt10">
<div class="col-sm-6">
<label class="col-sm-4 control-label">修改人:</label>
<div class="col-sm-8">
<input name="updateByuserName" th:field="*{updateByuserName}" class="form-control" type="text">
</div>
</div>
<div class="col-sm-6">
<label class="col-sm-4 control-label">修改时间:</label>
<div class="col-sm-8">
<input name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
</div>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
$("#updateBy").val([[${user.loginName}]]);
$("#updateByuserName").val([[${user.userName}]]);
$("#updateTime").val
( $.common.dateFormat(new Date(),'yyyy-MM-dd HH:mm:ss') ) ; //获取日期与时间
var prefix = ctx + "platform/companyarea";
$("#form-companyarea-edit").validate({
onkeyup: false,
rules:{
econName:{
remote: {
url: prefix + "/checkCompanyAreaUnique",
type: "post",
dataType: "json",
data: {
"CompanyAreaName" : function() {
return $.common.trim($("#CompanyAreaName").val());
}
},
dataFilter: function(data, type) {
return $.validate.unique(data);
}
}
},
},
messages: {
"CompanyAreaName": {
remote: "营业面积 名称已经存在"
}
},
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-companyarea-edit').serialize());
}
}
</script>
</body>
</html>