Browse Source

[update]bom物料添加工程员查询功能

dev
zhangsiqi 7 months ago
parent
commit
d06d325a48
  1. 25
      ruoyi-admin/src/main/resources/templates/erp/bom/bom.html
  2. 23
      ruoyi-admin/src/main/resources/templates/erp/bom/detail.html
  3. 23
      ruoyi-admin/src/main/resources/templates/erp/bom/edit.html

25
ruoyi-admin/src/main/resources/templates/erp/bom/bom.html

@ -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'},
{

23
ruoyi-admin/src/main/resources/templates/erp/bom/detail.html

@ -64,6 +64,14 @@
<textarea name="describe" class="form-control" readonly>[[*{describe}]]</textarea>
</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>
</form>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="insertRow()" disabled>
@ -111,6 +119,21 @@
}
$(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);
}
}
});
$("#selectMaterialType").val(materilaType1);
var options = {
url: prefix + "/oneLevelList",

23
ruoyi-admin/src/main/resources/templates/erp/bom/edit.html

@ -65,6 +65,14 @@
<textarea name="describe" class="form-control" readonly>[[*{describe}]]</textarea>
</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>
</form>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="insertRow()">
@ -127,6 +135,21 @@
}
$(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);
}
}
});
$("#selectMaterialType").val(materialType1);
var options = {
url: prefix + "/oneLevelList",

Loading…
Cancel
Save