Browse Source

[fix]

工程管理 物料信息
修改物料VO类,新增当前状态字段;
修改erp物料service列表查询方法,当前任务显示改为当前状态;
修改物料列表页面,新增当前状态列替换当前任务显示;
dev
王晓迪 3 months ago
parent
commit
705cc6d93a
  1. 10
      ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterialVo.java
  2. 5
      ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpMaterialServiceImpl.java
  3. 3
      ruoyi-admin/src/main/resources/templates/erp/material/material.html

10
ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpMaterialVo.java

@ -14,6 +14,8 @@ public class ErpMaterialVo extends ErpMaterial {
private String taskId;
/** 任务名称 */
private String taskName;
private String taskStatus;
/** 办理时间 */
private Date doneTime;
/** 创建人 */
@ -115,6 +117,14 @@ public class ErpMaterialVo extends ErpMaterial {
this.ids = ids;
}
public String getTaskStatus() {
return taskStatus;
}
public void setTaskStatus(String taskStatus) {
this.taskStatus = taskStatus;
}
@Override
public String toString() {
return "ErpMaterialVo{" +

5
ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpMaterialServiceImpl.java

@ -147,11 +147,12 @@ public class ErpMaterialServiceImpl implements IErpMaterialService
} else {
materialVo.setTaskName("未启动");
}
materialVo.setTaskStatus(materialVo.getTaskName());
if(materialVo.getAuditStatus()!=null){
if(materialVo.getAuditStatus().equals("1")){
materialVo.setTaskName("审核通过");
materialVo.setTaskStatus("审核通过");
}else if(materialVo.getAuditStatus().equals("2")){
materialVo.setTaskName("审核拒绝");
materialVo.setTaskStatus("审核拒绝");
}
}
returnList.add(materialVo);

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

@ -135,7 +135,7 @@
columns: [
{checkbox: true},
{title: '主键ID',field: 'id',visible: false},
{title: '当前状态',field: 'taskName',align: 'center',
{title: '当前状态',field: 'taskStatus',align: 'center',
formatter: function(value, row, index) {
if(row.auditStatus!="1"&&value != "未启动"){
return '<span class="badge badge-danger">' + value + '</span>';
@ -165,6 +165,7 @@
},
{title: '申请时间',field: 'applyTime',sortable: true,},
{title: '上次更新时间',field: 'updateTime',},
{title: '当前任务名称',field: 'taskName',visible: false},
{title: '流程实例ID',field: 'instanceId',visible: false},
{title: '流程提交实例ID',field: 'submitInstanceId',visible: false},
{title: '流程作废实例ID',field: 'cancelInstanceId',visible: false},

Loading…
Cancel
Save