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