Browse Source

[fix] 销售管理

销售vo类新增任务状态字段
修改销售订单的分页查询方法,新增给任务名称赋值的同时给任务状态赋值
新增前端页面当前状态字段为任务状态,隐藏当前任务名称和审核状态
修复销售订单没有调整申请按钮的问题
dev
liuxiaoxu 3 months ago
parent
commit
1820095db8
  1. 12
      ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderVo.java
  2. 5
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java
  3. 22
      ruoyi-admin/src/main/resources/templates/system/salesOrder/salesOrder.html

12
ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesOrderVo.java

@ -10,6 +10,10 @@ public class SysSalesOrderVo extends SysSalesOrder{
private String taskId;
/** 任务名称 */
private String taskName;
/** 任务状态 */
private String taskStatus;
/** 办理时间 */
private Date doneTime;
/** 创建人 */
@ -117,4 +121,12 @@ public class SysSalesOrderVo extends SysSalesOrder{
public void setApplyTitle(String applyTitle) {
this.applyTitle = applyTitle;
}
public String getTaskStatus() {
return taskStatus;
}
public void setTaskStatus(String taskStatus) {
this.taskStatus = taskStatus;
}
}

5
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesOrderServiceImpl.java

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

22
ruoyi-admin/src/main/resources/templates/system/salesOrder/salesOrder.html

@ -273,7 +273,7 @@
{ title: '流程实例类型', field: 'instanceTypeName',visible: false},
{title: '申请人ID',field: 'applyUser', 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>';
@ -295,15 +295,17 @@
},
{title: '当前任务ID',field: 'taskId',visible: false},
{ title: '待办用户ID',field: 'todoUserId', visible: false},
// { title: '当前任务名称',field: 'taskName',
// align: 'center',
// formatter: function(value, row, index) {
// return '<span class="badge badge-primary">' + value + '</span>';
// }
// },
// {title: '审核状态',field: 'auditStatus',formatter: function(value, row, index) {
// return $.table.selectDictLabel(auditStatusDatas, value);}
// },
{ title: '当前任务名称',field: 'taskName',visible: false,
align: 'center',
formatter: function(value, row, index) {
return '<span class="badge badge-primary">' + value + '</span>';
}
},
{title: '审核状态',field: 'auditStatus',visible: false,
formatter: function(value, row, index) {
return $.table.selectDictLabel(auditStatusDatas, value);}
},
{title: '使用状态',field: 'useStatus',formatter:function(value, row, index) {
return $.table.selectDictLabel(useStatusDatas, value);}
},

Loading…
Cancel
Save