Browse Source

[fix]

工程管理 bom信息
修改编辑bom页面提交表单方法,将含有disabled属性的select元素提交前去除该属性;
修改编辑后端接口,更改保存编辑数据、提交审核方法;
dev
王晓迪 4 months ago
parent
commit
f134f3b568
  1. 2
      ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpBomController.java
  2. 5
      ruoyi-admin/src/main/resources/templates/erp/bom/edit.html

2
ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpBomController.java

@ -343,7 +343,7 @@ public class ErpBomController extends BaseController
erpBom.setUseStatus("0");
// 审核状态-待审核
erpBom.setAuditStatus("0");
erpBomService.submitApply(erpBom);
erpBomService.submitUpdateApply(erpBom);
return AjaxResult.success();
}

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

@ -63,7 +63,7 @@
<div class="form-group">
<label class="col-sm-3 control-label is-required">描述:</label>
<div class="col-sm-8">
<textarea name="describe" class="form-control" disabled required>[[*{describe}]]</textarea>
<textarea name="describe" class="form-control" readonly required>[[*{describe}]]</textarea>
</div>
</div>
<div class="form-group">
@ -120,6 +120,9 @@
function submitHandler() {
if ($.validate.form()) {
$("#selectEngineer").removeAttr("disabled");
$("#selectMaterialType").removeAttr("disabled");
$("#selectProcessMethod").removeAttr("disabled");
$("#selectUnit").removeAttr("disabled");
var formData = $("#form-bom-edit").serializeArray();
console.log("formData",formData);
var tableData = $("#bootstrap-sub-table-1").bootstrapTable('getData');

Loading…
Cancel
Save