|
|
@ -35,7 +35,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label is-required">半成品类型:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<select name="processMethod" class="form-control m-b" th:field="*{processMethod}" th:with="type=${@dict.getType('processMethod')}" required> |
|
|
|
<select name="processMethod" class="form-control m-b" th:field="*{processMethod}" th:with="type=${@dict.getType('processMethod')}" required> |
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
@ -43,7 +43,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">单位:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<select name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}"> |
|
|
|
<select name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}"> |
|
|
|
<option value=""></option> |
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option> |
|
|
|
</select> |
|
|
@ -64,7 +64,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label is-required">入库部门:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<select name="warehouseDept" class="form-control m-b" th:field="*{warehouseDept}" th:with="type=${@dict.getType('warehouseDept')}"> |
|
|
|
<select name="warehouseDept" class="form-control m-b" th:field="*{warehouseDept}" th:with="type=${@dict.getType('warehouseDept')}"> |
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" ></option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
@ -72,7 +72,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label is-required">工程员:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<select name="businessMembers" id="businessMembers_edit" class="form-control m-b" required > |
|
|
|
<select name="businessMembers" id="businessMembers_edit" class="form-control m-b" disabled required > |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -258,10 +258,10 @@ |
|
|
|
if (res.rows.length > 0) { |
|
|
|
var usertData = res.rows; |
|
|
|
for (let i in usertData) { |
|
|
|
engineerSelect.append( |
|
|
|
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>"); |
|
|
|
$("#businessMembers_edit").append( |
|
|
|
"<option value='" + usertData[i].loginName + "'>" + usertData[i].userName + "</option>"); |
|
|
|
} |
|
|
|
engineerSelect.val(erpMaterial.businessMembers); |
|
|
|
$("#businessMembers_edit").val(erpMaterial.businessMembers); |
|
|
|
} else { |
|
|
|
$.modal.msgError(res.msg); |
|
|
|
} |
|
|
@ -271,6 +271,7 @@ |
|
|
|
//获取供应商 |
|
|
|
function submitHandler() { |
|
|
|
if ($.validate.form()) { |
|
|
|
$("#businessMembers_edit").removeAttr("disabled"); |
|
|
|
var materialType = $('#selectMaterialType').select2('val'); |
|
|
|
$('#materialType').val(materialType); |
|
|
|
$.operate.save(prefix + "/edit", $('#form-material-edit').serialize()); |
|
|
|