Browse Source

[feat] 修改该开发修改添加页面,新增查询生产单物料方法,新增查询生产物料bom信息查询方法,新增开发修改单子表信息,新增bom查询父级及相关部门根据materialNo查询bom信息。开发修改单调整页面样式。

dev
zhangsiqi 5 months ago
parent
commit
0f550540ef
  1. 29
      ruoyi-admin/src/main/resources/templates/erp/material/add.html
  2. 9
      ruoyi-admin/src/main/resources/templates/erp/material/edit.html
  3. 12
      ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html
  4. 12
      ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html
  5. 13
      ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html
  6. 12
      ruoyi-admin/src/main/resources/templates/erp/material/taskYfzjVerify.html

29
ruoyi-admin/src/main/resources/templates/erp/material/add.html

@ -69,7 +69,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">入库部门:</label> <label class="col-sm-3 control-label is-required">入库部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" required> <select id="selectWarehouseDept" name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
@ -77,7 +77,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">工程员:</label> <label class="col-sm-3 control-label is-required">工程员:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="businessMembers" id="businessMembers_add" class="form-control m-b" disabled required /> <input name="businessMembers" id="businessMembers_add" class="form-control m-b" readonly required />
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -164,27 +164,10 @@
//获取工程员 //获取工程员
$(function(){ $(function(){
$("#businessMembers_add").val(loginName); $("#businessMembers_add").val(loginName);
$("#businessMembers_add").text(userName);
supplierName();
engineer(); engineer();
$("#add-weiwai").hide(); $("#add-weiwai").hide();
}) })
//获取供应商
function supplierName(){
$.ajax({
url: ctx + 'system/supplier/getSupplier',
type: 'post',
success: function (res) {
if (res.rows.length > 0) {
var usertData = res.rows;
for (let i in usertData) {
$("#form-material-add select[name='supplierName']").append(
"<option value='" + usertData[i].supplierName + "'>" + usertData[i].supplierName + "</option>");
}
}
}
})
}
function engineer(){ function engineer(){
$.ajax({ $.ajax({
url: ctx + 'erp/material/getEngineerList', url: ctx + 'erp/material/getEngineerList',
@ -194,7 +177,7 @@
var usertData = res.rows; var usertData = res.rows;
for (let i in usertData) { for (let i in usertData) {
$("select[name='businessMembers']").append( $("select[name='businessMembers']").append(
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>"); "<option value='" + usertData[i].loginName + "'>" + usertData[i].userName + "</option>");
} }
} else { } else {
$.modal.msgError(res.msg); $.modal.msgError(res.msg);
@ -255,6 +238,10 @@
function submitHandler() { function submitHandler() {
if ($.validate.form()) { if ($.validate.form()) {
$("#selectMaterialType").removeAttr("disabled");
$("#selectProcessMethod").removeAttr("disabled");
$("#selectUnit").removeAttr("disabled");
$("#selectWarehouseDept").removeAttr("disabled");
var materialType = $('#selectMaterialType').select2('val'); var materialType = $('#selectMaterialType').select2('val');
$('#materialType').val(materialType); $('#materialType').val(materialType);
$.operate.save(prefix + "/add", $('#form-material-add').serialize()); $.operate.save(prefix + "/add", $('#form-material-add').serialize());

9
ruoyi-admin/src/main/resources/templates/erp/material/edit.html

@ -72,7 +72,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">工程员:</label> <label class="col-sm-3 control-label is-required">工程员:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="businessMembers" id="businessMembers_edit" class="form-control m-b" required > <select name="businessMembers" id="businessMembers_edit" class="form-control m-b" disabled required >
</select> </select>
</div> </div>
</div> </div>
@ -258,10 +258,10 @@
if (res.rows.length > 0) { if (res.rows.length > 0) {
var usertData = res.rows; var usertData = res.rows;
for (let i in usertData) { for (let i in usertData) {
engineerSelect.append( $("#businessMembers_edit").append(
"<option value='" + usertData[i].userName + "'>" + usertData[i].userName + "</option>"); "<option value='" + usertData[i].loginName + "'>" + usertData[i].userName + "</option>");
} }
engineerSelect.val(erpMaterial.businessMembers); $("#businessMembers_edit").val(erpMaterial.businessMembers);
} else { } else {
$.modal.msgError(res.msg); $.modal.msgError(res.msg);
} }
@ -271,6 +271,7 @@
//获取供应商 //获取供应商
function submitHandler() { function submitHandler() {
if ($.validate.form()) { if ($.validate.form()) {
$("#businessMembers_edit").removeAttr("disabled");
var materialType = $('#selectMaterialType').select2('val'); var materialType = $('#selectMaterialType').select2('val');
$('#materialType').val(materialType); $('#materialType').val(materialType);
$.operate.save(prefix + "/edit", $('#form-material-edit').serialize()); $.operate.save(prefix + "/edit", $('#form-material-edit').serialize());

12
ruoyi-admin/src/main/resources/templates/erp/material/taskGcjlVerify.html

@ -64,7 +64,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">半成品类型:</label> <label class="col-sm-3 control-label is-required">半成品类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" required disabled> <select id="selectProcessMethod" name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" required disabled>
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>
</select> </select>
@ -73,7 +73,7 @@
<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">
<select name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}" disabled> <select id="selectUnit" name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}" disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option>
</select> </select>
</div> </div>
@ -93,7 +93,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">入库部门:</label> <label class="col-sm-3 control-label is-required">入库部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" required disabled> <select id="selectWarehouseDept" name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" required disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option>
</select> </select>
</div> </div>
@ -101,7 +101,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">工程员:</label> <label class="col-sm-3 control-label is-required">工程员:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="businessMembers" th:field="*{businessMembers}" id="businessMembers_edit" class="form-control m-b" required disabled> <input name="businessMembers" th:field="*{businessMembers}" id="businessMembers_edit" class="form-control m-b" required readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -259,6 +259,10 @@
$("#form-gcjl-edit").validate({focusCleanup: true}); $("#form-gcjl-edit").validate({focusCleanup: true});
function submitHandler() { function submitHandler() {
if ($.validate.form()) { if ($.validate.form()) {
$("#selectMaterialType").removeAttr("disabled");
$("#selectProcessMethod").removeAttr("disabled");
$("#selectUnit").removeAttr("disabled");
$("#selectWarehouseDept").removeAttr("disabled");
var materialType = $('#selectMaterialType').select2('val'); var materialType = $('#selectMaterialType').select2('val');
$('#materialType').val(materialType); $('#materialType').val(materialType);
if ($('textarea[name="comment"]').val()) { if ($('textarea[name="comment"]').val()) {

12
ruoyi-admin/src/main/resources/templates/erp/material/taskGczgVerify.html

@ -64,7 +64,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">半成品类型:</label> <label class="col-sm-3 control-label is-required">半成品类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" required disabled> <select id="selectProcessMethod" name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" required disabled>
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>
</select> </select>
@ -73,7 +73,7 @@
<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">
<select name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}" disabled> <select id="selectUnit" name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}" disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option>
</select> </select>
</div> </div>
@ -93,7 +93,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">入库部门:</label> <label class="col-sm-3 control-label is-required">入库部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" disabled required> <select id="selectWarehouseDept" name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" disabled required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option>
</select> </select>
</div> </div>
@ -101,7 +101,7 @@
<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">
<input name="businessMembers" th:field="*{businessMembers}" id="businessMembers_edit" class="form-control m-b" required disabled> <input name="businessMembers" th:field="*{businessMembers}" id="businessMembers_edit" class="form-control m-b" required readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -258,6 +258,10 @@
$("#form-edit").validate({focusCleanup: true}); $("#form-edit").validate({focusCleanup: true});
function submitHandler() { function submitHandler() {
if ($.validate.form()) { if ($.validate.form()) {
$("#selectMaterialType").removeAttr("disabled");
$("#selectProcessMethod").removeAttr("disabled");
$("#selectUnit").removeAttr("disabled");
$("#selectWarehouseDept").removeAttr("disabled");
var materialType = $('#selectMaterialType').select2('val'); var materialType = $('#selectMaterialType').select2('val');
$('#materialType').val(materialType); $('#materialType').val(materialType);
if ($('textarea[name="comment"]').val()) { if ($('textarea[name="comment"]').val()) {

13
ruoyi-admin/src/main/resources/templates/erp/material/taskModifyApply.html

@ -65,7 +65,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">半成品类型:</label> <label class="col-sm-3 control-label is-required">半成品类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" required> <select id="selectProcessMethod" name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" required>
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>
</select> </select>
@ -74,7 +74,7 @@
<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">
<select name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}"> <select id="selectUnit" name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option>
</select> </select>
</div> </div>
@ -94,7 +94,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">入库部门:</label> <label class="col-sm-3 control-label is-required">入库部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" required disabled> <select id="selectWarehouseDept" name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" required disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option>
</select> </select>
</div> </div>
@ -102,8 +102,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">工程员:</label> <label class="col-sm-3 control-label is-required">工程员:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="businessMembers" id="businessMembers_edit" class="form-control m-b" required disabled> <input name="businessMembers" id="businessMembers_edit" class="form-control m-b" required readonly>
</select>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -269,6 +268,10 @@
}); });
function submitHandler() { function submitHandler() {
if ($.validate.form()) { if ($.validate.form()) {
$("#selectMaterialType").removeAttr("disabled");
$("#selectProcessMethod").removeAttr("disabled");
$("#selectUnit").removeAttr("disabled");
$("#selectWarehouseDept").removeAttr("disabled");
var materialType = $('#selectMaterialType').select2('val'); var materialType = $('#selectMaterialType').select2('val');
$('#materialType').val(materialType); $('#materialType').val(materialType);
var taskId = [[${taskId}]]; var taskId = [[${taskId}]];

12
ruoyi-admin/src/main/resources/templates/erp/material/taskYfzjVerify.html

@ -64,7 +64,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">半成品类型:</label> <label class="col-sm-3 control-label is-required">半成品类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled required> <select id="selectProcessMethod" name="processMethod" class="form-control m-b" th:with="type=${@dict.getType('processMethod')}" disabled required>
<option value="">请选择</option> <option value="">请选择</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processMethod}"></option>
</select> </select>
@ -73,7 +73,7 @@
<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">
<select name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}" disabled> <select id="selectUnit" name="unit" class="form-control m-b" th:with="type=${@dict.getType('sys_unit_class')}" disabled>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{unit}"></option>
</select> </select>
</div> </div>
@ -93,7 +93,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">入库部门:</label> <label class="col-sm-3 control-label is-required">入库部门:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" disabled required> <select id="selectWarehouseDept" name="warehouseDept" class="form-control m-b" th:with="type=${@dict.getType('warehouseDept')}" disabled required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{warehouseDept}"></option>
</select> </select>
</div> </div>
@ -101,7 +101,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">工程员:</label> <label class="col-sm-3 control-label is-required">工程员:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<input name="businessMembers" th:field="*{businessMembers}" id="businessMembers_edit" class="form-control m-b" required disabled> <input name="businessMembers" th:field="*{businessMembers}" id="businessMembers_edit" class="form-control m-b" required readonly>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -258,6 +258,10 @@
$("#form-edit").validate({focusCleanup: true}); $("#form-edit").validate({focusCleanup: true});
function submitHandler() { function submitHandler() {
if ($.validate.form()) { if ($.validate.form()) {
$("#selectMaterialType").removeAttr("disabled");
$("#selectProcessMethod").removeAttr("disabled");
$("#selectUnit").removeAttr("disabled");
$("#selectWarehouseDept").removeAttr("disabled");
var materialType = $('#selectMaterialType').select2('val'); var materialType = $('#selectMaterialType').select2('val');
$('#materialType').val(materialType); $('#materialType').val(materialType);
if ($('textarea[name="comment"]').val()) { if ($('textarea[name="comment"]').val()) {

Loading…
Cancel
Save