万材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.
 
 
 
 

95 lines
4.3 KiB

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增生产加工工序明细')" />
<link th:href="@{/ajax/libs/select2/select2.css}" rel="stylesheet">
<link th:href="@{/ajax/libs/select2/select2-bootstrap.css}" rel="stylesheet">
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-procedure-add">
<div class="form-group">
<label class="col-sm-3 control-label">工序编号:</label>
<div class="col-sm-8">
<input name="procedureCode" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required" >车间名称:</label>
<div class="col-sm-8">
<!-- <input name="workshopName" class="form-control" type="text"/>-->
<select name="workshopName" class="form-control select-list js-example-tags" th:with="type=${@dict.getType('sys_procedure_workshopName')}">
<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 is-required" >工序名称:</label>
<div class="col-sm-8">
<input name="procedureName" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label" >先后次序:</label>
<div class="col-sm-8">
<input name="sequence" 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="eachCost" class="form-control" type="text">
<span style="color: red">注:标准加工成本价币种为:人民币</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label " >加工工时:</label>
<div class="col-sm-8">
<input name="procedureWorkhour" 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="associatedItem" class="form-control select-list js-example-tags" th:with="type=${@dict.getType('sys_procedure_associatedItem')}">
<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="procedureRemark" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:src="@{/ajax/libs/select2/select2.js}"></script>
<script th:inline="javascript">
var prefix = ctx + "system/procedure";
$("#form-procedure-add").validate({
focusCleanup: true,
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-procedure-add').serialize());
}
}
$(document).ready(function(){
$('.js-example-tags').select2({
tags: true,
insertTag: function (data, tag) {
// Insert the tag at the end of the results
data.push(tag);
}
});
});
</script>
</body>
</html>