|
|
@ -112,17 +112,11 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">工程员:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<select name="userId" class="form-control m-b"> |
|
|
|
<option value="">所有</option> |
|
|
|
<select id="userId_add" name="userId" th:field="*{userId}" class="form-control m-b"> |
|
|
|
<option th:each="user : ${userData}" th:value="${user.userId}" th:text="${user.userName}"></option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">工程员姓名:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
|
<input name="userName" th:field="*{userName}" class="form-control" type="text"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-3 control-label">备注信息:</label> |
|
|
|
<div class="col-sm-8"> |
|
|
@ -138,6 +132,28 @@ |
|
|
|
focusCleanup: true |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$(function () { |
|
|
|
$.ajax({ |
|
|
|
url: ctx + 'erp/developModifyOrder/getEngineerList', |
|
|
|
type: 'post', |
|
|
|
data: { roleKey: 'gcwyRole' }, |
|
|
|
success: function (res) { |
|
|
|
if (res.data.length > 0) { |
|
|
|
var userData = res.data; |
|
|
|
for (let i in userData) { |
|
|
|
$("#userId_add").append( |
|
|
|
"<option value='" + userData[i].userId + "'>" + userData[i].userName + "</option>" // 显示用户姓名 |
|
|
|
); |
|
|
|
} |
|
|
|
$("userId_add").val(userData[i].userId).trigger("change"); |
|
|
|
} else { |
|
|
|
$.modal.msgError(res.msg); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
|
|
|
|
function submitHandler() { |
|
|
|
if ($.validate.form()) { |
|
|
|
$.operate.save(prefix + "/edit", $('#form-developModifyOrder-edit').serialize()); |
|
|
|