|
@ -10,6 +10,9 @@ |
|
|
<form class="form-horizontal m" id="form-edit" th:object="${formData}"> |
|
|
<form class="form-horizontal m" id="form-edit" th:object="${formData}"> |
|
|
<input name="id" th:field="*{id}" type="hidden"> |
|
|
<input name="id" th:field="*{id}" type="hidden"> |
|
|
<input name="taskId" th:field="*{taskId}" type="hidden"> |
|
|
<input name="taskId" th:field="*{taskId}" type="hidden"> |
|
|
|
|
|
<input name="taskName" th:field="*{taskName}" type="hidden"> |
|
|
|
|
|
<input name="instanceId" th:field="*{instanceId}" type="hidden"> |
|
|
|
|
|
<input name="instanceType" th:field="*{instanceType}" type="hidden"> |
|
|
<!--驳回调整允许更新内容--> |
|
|
<!--驳回调整允许更新内容--> |
|
|
<input type="hidden" name="saveEntity" value="true" /> |
|
|
<input type="hidden" name="saveEntity" value="true" /> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
@ -87,6 +90,14 @@ |
|
|
<textarea name="describe" class="form-control" >[[*{describe}]]</textarea> |
|
|
<textarea name="describe" class="form-control" >[[*{describe}]]</textarea> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<label class="col-sm-3 control-label">工程员:</label> |
|
|
|
|
|
<div class="col-sm-8"> |
|
|
|
|
|
<select name="businessMembers" class="form-control"> |
|
|
|
|
|
<option value="">请选择</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<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"> |
|
@ -237,20 +248,6 @@ |
|
|
isInteger: true, |
|
|
isInteger: true, |
|
|
minlength: 10, |
|
|
minlength: 10, |
|
|
maxlength: 10, |
|
|
maxlength: 10, |
|
|
// remote: { |
|
|
|
|
|
// url: prefix + "/checkMaterialNoUnique", |
|
|
|
|
|
// type: "post", |
|
|
|
|
|
// dataType: "json", |
|
|
|
|
|
// data: { |
|
|
|
|
|
// "materialNo": function() { |
|
|
|
|
|
// console.log($("#materialNo").val()) |
|
|
|
|
|
// return $.common.trim($("#materialNo").val()); |
|
|
|
|
|
// } |
|
|
|
|
|
// }, |
|
|
|
|
|
// dataFilter: function(data, type) { |
|
|
|
|
|
// return $.validate.unique(data); |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
messages: { |
|
|
messages: { |
|
@ -262,7 +259,23 @@ |
|
|
}, |
|
|
}, |
|
|
focusCleanup: true |
|
|
focusCleanup: true |
|
|
}); |
|
|
}); |
|
|
|
|
|
$(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); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}) |
|
|
function submitHandler() { |
|
|
function submitHandler() { |
|
|
if ($.validate.form()) { |
|
|
if ($.validate.form()) { |
|
|
var materialType = $('#selectMaterialType').select2('val'); |
|
|
var materialType = $('#selectMaterialType').select2('val'); |
|
|