万材erp项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

168 lines
8.3 KiB

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改设备档案信息')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-equipment-edit" th:object="${sysEquipment}">
<input name="equipmentId" th:field="*{equipmentId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">设备编号:</label>
<div class="col-sm-8">
<input name="equipmentCode" th:field="*{equipmentCode}" 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="equipmentName" th:field="*{equipmentName}" 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="equipmentModel" th:field="*{equipmentModel}" 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="equipmentWeight" th:field="*{equipmentWeight}" 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="unitOfMeasurement" th:field="*{unitOfMeasurement}" class="form-control" type="text">-->
<select name="unitOfMeasurement" id="unit" class="form-control select-list" th:field="*{unitOfMeasurement}" th:with="type=${@dict.getType('sys_unit_class')}">
<option value=""></option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备类别:</label>
<div class="col-sm-8">
<input name="equipmentCategory" th:field="*{equipmentCategory}" 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="factoryNumber" th:field="*{factoryNumber}" 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="equipmentPrice" th:field="*{equipmentPrice}" 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="manufacturerNumber" th:field="*{manufacturerNumber}" 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="input-group date">
<input name="dateOfManufacture" th:field="*{dateOfManufacture}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">所在部门:</label>
<div class="col-sm-8">
<!-- <input name="equipmentDept" th:field="*{equipmentDept}" class="form-control" type="text">-->
<select name="equipmentDept" id="dept" class="form-control select-list" th:field="*{equipmentDept}" th:with="type=${@dict.getType('sys_dept_type')}">
<option value=""></option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">设备厂家名称:</label>
<div class="col-sm-8">
<input name="manufacturerName" th:field="*{manufacturerName}" 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="input-group date">
<input name="dateOfUse" th:value="*{dateOfUse}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">折旧年数:</label>
<div class="col-sm-8">
<input name="depreciationYear" th:field="*{depreciationYear}" 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="depreciationRate" th:field="*{depreciationRate}" 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="storageLocation" th:field="*{storageLocation}" 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="completionOfProcess" th:field="*{completionOfProcess}" 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="equipmentManager" th:field="*{equipmentManager}" 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="equipmentRemark" th:field="*{equipmentRemark}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "system/equipment";
$("#form-equipment-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-equipment-edit').serialize());
}
}
$("input[name='dateOfManufacture']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='dateOfUse']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>