|
|
@ -24,7 +24,7 @@ |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<label>物料类型:</label> |
|
|
|
<select readonly id="selectMaterialType" name="materialType" class="form-control m-b select2-multiple" th:with="childList=${@category.getChildByCode('materialType')}" required> |
|
|
|
<select readonly id="selectMaterialType" name="materialType" th:with="childList=${@category.getChildByCode('materialType')}" required> |
|
|
|
<optgroup> |
|
|
|
<option value=""></option> |
|
|
|
</optgroup> |
|
|
@ -32,7 +32,6 @@ |
|
|
|
<option th:each="childSon: ${child.children}" th:value="${childSon.code}" th:text="${#strings.concat(child.name,'-',childSon.name)}"></option> |
|
|
|
</optgroup> |
|
|
|
</select> |
|
|
|
<input type="text" id="materialType" name="materialType" hidden /> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<label>审核状态:</label> |
|
|
@ -48,9 +47,12 @@ |
|
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> |
|
|
|
</select> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
<label>工程员:</label> |
|
|
|
<input type="text" id="createBy" name="createBy"/> |
|
|
|
<select id="businessMembers" name="businessMembers" > |
|
|
|
<option value="">所有</option> |
|
|
|
</select> |
|
|
|
</li> |
|
|
|
<li class="select-time"> |
|
|
|
<label>录入时间:</label> |
|
|
@ -112,6 +114,21 @@ |
|
|
|
var loginName = currentUser.loginName; |
|
|
|
var prefix = ctx + "erp/bom"; |
|
|
|
$(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 options = { |
|
|
|
url: prefix + "/list", |
|
|
|
createUrl: prefix + "/add", |
|
|
@ -195,7 +212,7 @@ |
|
|
|
return $.table.selectDictLabel(useStatusDatas, value); |
|
|
|
} |
|
|
|
}, |
|
|
|
{title: '工程员',field: 'createBy'}, |
|
|
|
{title: '工程员',field: 'businessMembers'}, |
|
|
|
{title: 'bom号',field: 'bomNo',}, |
|
|
|
{title: '关联料号',field: 'materialNo'}, |
|
|
|
{ |
|
|
|