|
|
@ -85,7 +85,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">工程员:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<select name="businessMembers" th:field="*{businessMembers}" id="businessMembers_edit" class="form-control m-b" required > |
|
|
|
<select name="businessMembers" id="businessMembers_edit" class="form-control m-b" required > |
|
|
|
<option value="">未选择</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
@ -269,6 +269,24 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
//获取工程员 |
|
|
|
$(function(){ |
|
|
|
$.ajax({ |
|
|
|
url: ctx + 'erp/material/getEngineerList', |
|
|
|
type: 'get', |
|
|
|
success: function (res) { |
|
|
|
if (res.rows.length > 0) { |
|
|
|
var usertData = res.rows; |
|
|
|
for (let i in usertData) { |
|
|
|
$("select[name='businessMembers']").append( |
|
|
|
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
$.modal.msgError(res.msg); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
var materialType = $("#materialType").val(); |
|
|
|
$("#selectMaterialType").val(materialType).trigger("change"); |
|
|
|
function submitHandler() { |
|
|
|