commit
36bea57eb6
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.szxc.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskManage;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcTaskManageService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务管理Controller
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/szxc/taskManage")
|
||||||
|
public class SzxcTaskManageController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzxcTaskManageService szxcTaskManageService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskManage:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzxcTaskManage szxcTaskManage)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzxcTaskManage> list = szxcTaskManageService.selectSzxcTaskManageList(szxcTaskManage);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出任务管理列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskManage:export')")
|
||||||
|
@Log(title = "任务管理", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzxcTaskManage szxcTaskManage)
|
||||||
|
{
|
||||||
|
List<SzxcTaskManage> list = szxcTaskManageService.selectSzxcTaskManageList(szxcTaskManage);
|
||||||
|
ExcelUtil<SzxcTaskManage> util = new ExcelUtil<SzxcTaskManage>(SzxcTaskManage.class);
|
||||||
|
util.exportExcel(response, list, "任务管理数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取任务管理详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskManage:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(szxcTaskManageService.selectSzxcTaskManageById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskManage:add')")
|
||||||
|
@Log(title = "任务管理", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzxcTaskManage szxcTaskManage)
|
||||||
|
{
|
||||||
|
return toAjax(szxcTaskManageService.insertSzxcTaskManage(szxcTaskManage));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskManage:edit')")
|
||||||
|
@Log(title = "任务管理", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzxcTaskManage szxcTaskManage)
|
||||||
|
{
|
||||||
|
return toAjax(szxcTaskManageService.updateSzxcTaskManage(szxcTaskManage));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务管理
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskManage:remove')")
|
||||||
|
@Log(title = "任务管理", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(szxcTaskManageService.deleteSzxcTaskManageByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.szxc.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskRecard;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcTaskRecardService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务处理记录Controller
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/szxc/taskRecard")
|
||||||
|
public class SzxcTaskRecardController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ISzxcTaskRecardService szxcTaskRecardService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务处理记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskRecard:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(SzxcTaskRecard szxcTaskRecard)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<SzxcTaskRecard> list = szxcTaskRecardService.selectSzxcTaskRecardList(szxcTaskRecard);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出任务处理记录列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskRecard:export')")
|
||||||
|
@Log(title = "任务处理记录", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, SzxcTaskRecard szxcTaskRecard)
|
||||||
|
{
|
||||||
|
List<SzxcTaskRecard> list = szxcTaskRecardService.selectSzxcTaskRecardList(szxcTaskRecard);
|
||||||
|
ExcelUtil<SzxcTaskRecard> util = new ExcelUtil<SzxcTaskRecard>(SzxcTaskRecard.class);
|
||||||
|
util.exportExcel(response, list, "任务处理记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取任务处理记录详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskRecard:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(szxcTaskRecardService.selectSzxcTaskRecardById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务处理记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskRecard:add')")
|
||||||
|
@Log(title = "任务处理记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody SzxcTaskRecard szxcTaskRecard)
|
||||||
|
{
|
||||||
|
return toAjax(szxcTaskRecardService.insertSzxcTaskRecard(szxcTaskRecard));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务处理记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskRecard:edit')")
|
||||||
|
@Log(title = "任务处理记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody SzxcTaskRecard szxcTaskRecard)
|
||||||
|
{
|
||||||
|
return toAjax(szxcTaskRecardService.updateSzxcTaskRecard(szxcTaskRecard));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务处理记录
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('szxc:taskRecard:remove')")
|
||||||
|
@Log(title = "任务处理记录", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(szxcTaskRecardService.deleteSzxcTaskRecardByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,271 @@
|
|||||||
|
package com.ruoyi.szxc.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务管理对象 szxc_task_manage
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
public class SzxcTaskManage extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 上报人 */
|
||||||
|
@Excel(name = "上报人")
|
||||||
|
private String subName;
|
||||||
|
|
||||||
|
/** 上报日期 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "上报日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date subDate;
|
||||||
|
|
||||||
|
/** 联系电话 */
|
||||||
|
@Excel(name = "联系电话")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
/** 任务分类(字典) */
|
||||||
|
@Excel(name = "任务分类(字典)")
|
||||||
|
private String taskType;
|
||||||
|
|
||||||
|
/** 任务主题(字典) */
|
||||||
|
@Excel(name = "任务主题(字典)")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 任务描述 */
|
||||||
|
@Excel(name = "任务描述")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/** 截止日期 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "截止日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
private Date expiredDate;
|
||||||
|
|
||||||
|
/** 任务状态(字典) */
|
||||||
|
@Excel(name = "任务状态(字典)")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
/** 当前分派到部门 */
|
||||||
|
@Excel(name = "当前分派到部门")
|
||||||
|
private String sendedDept;
|
||||||
|
|
||||||
|
/** 当前分派到部门id */
|
||||||
|
@Excel(name = "当前分派到部门id")
|
||||||
|
private Long sendedDeptid;
|
||||||
|
|
||||||
|
/** 分派到用户 */
|
||||||
|
@Excel(name = "分派到用户")
|
||||||
|
private String handleName;
|
||||||
|
|
||||||
|
/** 分派到用户id */
|
||||||
|
@Excel(name = "分派到用户id")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/** 处理结果 */
|
||||||
|
@Excel(name = "处理结果")
|
||||||
|
private String handleResult;
|
||||||
|
|
||||||
|
/** 处理原由 */
|
||||||
|
@Excel(name = "处理原由")
|
||||||
|
private String handleReason;
|
||||||
|
|
||||||
|
/** 部门id */
|
||||||
|
@Excel(name = "部门id")
|
||||||
|
private Long deptId;
|
||||||
|
|
||||||
|
/** 网格名称 */
|
||||||
|
@Excel(name = "网格名称")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setSubName(String subName)
|
||||||
|
{
|
||||||
|
this.subName = subName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubName()
|
||||||
|
{
|
||||||
|
return subName;
|
||||||
|
}
|
||||||
|
public void setSubDate(Date subDate)
|
||||||
|
{
|
||||||
|
this.subDate = subDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getSubDate()
|
||||||
|
{
|
||||||
|
return subDate;
|
||||||
|
}
|
||||||
|
public void setPhone(String phone)
|
||||||
|
{
|
||||||
|
this.phone = phone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPhone()
|
||||||
|
{
|
||||||
|
return phone;
|
||||||
|
}
|
||||||
|
public void setTaskType(String taskType)
|
||||||
|
{
|
||||||
|
this.taskType = taskType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskType()
|
||||||
|
{
|
||||||
|
return taskType;
|
||||||
|
}
|
||||||
|
public void setTitle(String title)
|
||||||
|
{
|
||||||
|
this.title = title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTitle()
|
||||||
|
{
|
||||||
|
return title;
|
||||||
|
}
|
||||||
|
public void setContent(String content)
|
||||||
|
{
|
||||||
|
this.content = content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent()
|
||||||
|
{
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
public void setExpiredDate(Date expiredDate)
|
||||||
|
{
|
||||||
|
this.expiredDate = expiredDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getExpiredDate()
|
||||||
|
{
|
||||||
|
return expiredDate;
|
||||||
|
}
|
||||||
|
public void setStatus(String status)
|
||||||
|
{
|
||||||
|
this.status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatus()
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
public void setSendedDept(String sendedDept)
|
||||||
|
{
|
||||||
|
this.sendedDept = sendedDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSendedDept()
|
||||||
|
{
|
||||||
|
return sendedDept;
|
||||||
|
}
|
||||||
|
public void setSendedDeptid(Long sendedDeptid)
|
||||||
|
{
|
||||||
|
this.sendedDeptid = sendedDeptid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSendedDeptid()
|
||||||
|
{
|
||||||
|
return sendedDeptid;
|
||||||
|
}
|
||||||
|
public void setHandleName(String handleName)
|
||||||
|
{
|
||||||
|
this.handleName = handleName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHandleName()
|
||||||
|
{
|
||||||
|
return handleName;
|
||||||
|
}
|
||||||
|
public void setUserId(Long userId)
|
||||||
|
{
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserId()
|
||||||
|
{
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
public void setHandleResult(String handleResult)
|
||||||
|
{
|
||||||
|
this.handleResult = handleResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHandleResult()
|
||||||
|
{
|
||||||
|
return handleResult;
|
||||||
|
}
|
||||||
|
public void setHandleReason(String handleReason)
|
||||||
|
{
|
||||||
|
this.handleReason = handleReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHandleReason()
|
||||||
|
{
|
||||||
|
return handleReason;
|
||||||
|
}
|
||||||
|
public void setDeptId(Long deptId)
|
||||||
|
{
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeptId()
|
||||||
|
{
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
public void setDeptName(String deptName)
|
||||||
|
{
|
||||||
|
this.deptName = deptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeptName()
|
||||||
|
{
|
||||||
|
return deptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("subName", getSubName())
|
||||||
|
.append("subDate", getSubDate())
|
||||||
|
.append("phone", getPhone())
|
||||||
|
.append("taskType", getTaskType())
|
||||||
|
.append("title", getTitle())
|
||||||
|
.append("content", getContent())
|
||||||
|
.append("expiredDate", getExpiredDate())
|
||||||
|
.append("status", getStatus())
|
||||||
|
.append("sendedDept", getSendedDept())
|
||||||
|
.append("sendedDeptid", getSendedDeptid())
|
||||||
|
.append("handleName", getHandleName())
|
||||||
|
.append("userId", getUserId())
|
||||||
|
.append("handleResult", getHandleResult())
|
||||||
|
.append("handleReason", getHandleReason())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("deptId", getDeptId())
|
||||||
|
.append("deptName", getDeptName())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,238 @@
|
|||||||
|
package com.ruoyi.szxc.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务处理记录对象 szxc_task_recard
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
public class SzxcTaskRecard extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** id */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 任务id */
|
||||||
|
@Excel(name = "任务id")
|
||||||
|
private Long taskId;
|
||||||
|
|
||||||
|
/** 记录类型(字典) */
|
||||||
|
@Excel(name = "记录类型(字典)")
|
||||||
|
private String taskRecardType;
|
||||||
|
|
||||||
|
/** 下发部门 */
|
||||||
|
@Excel(name = "下发部门")
|
||||||
|
private String xfDept;
|
||||||
|
|
||||||
|
/** 下发人 */
|
||||||
|
@Excel(name = "下发人")
|
||||||
|
private String xfName;
|
||||||
|
|
||||||
|
/** 下发到部门 */
|
||||||
|
@Excel(name = "下发到部门")
|
||||||
|
private String xfdDept;
|
||||||
|
|
||||||
|
/** 下发到人 */
|
||||||
|
@Excel(name = "下发到人")
|
||||||
|
private String xfdName;
|
||||||
|
|
||||||
|
/** 转派部门 */
|
||||||
|
@Excel(name = "转派部门")
|
||||||
|
private String zpDept;
|
||||||
|
|
||||||
|
/** 转派人 */
|
||||||
|
@Excel(name = "转派人")
|
||||||
|
private String zpName;
|
||||||
|
|
||||||
|
/** 转派到部门 */
|
||||||
|
@Excel(name = "转派到部门")
|
||||||
|
private String zpdDept;
|
||||||
|
|
||||||
|
/** 转派到人 */
|
||||||
|
@Excel(name = "转派到人")
|
||||||
|
private String zpdName;
|
||||||
|
|
||||||
|
/** 处理部门 */
|
||||||
|
@Excel(name = "处理部门")
|
||||||
|
private String clDept;
|
||||||
|
|
||||||
|
/** 处理人 */
|
||||||
|
@Excel(name = "处理人")
|
||||||
|
private String clName;
|
||||||
|
|
||||||
|
/** 处理结果 */
|
||||||
|
@Excel(name = "处理结果")
|
||||||
|
private String clResult;
|
||||||
|
|
||||||
|
/** 转派人 */
|
||||||
|
@Excel(name = "转派人")
|
||||||
|
private String clReason;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setTaskId(Long taskId)
|
||||||
|
{
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTaskId()
|
||||||
|
{
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
public void setTaskRecardType(String taskRecardType)
|
||||||
|
{
|
||||||
|
this.taskRecardType = taskRecardType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskRecardType()
|
||||||
|
{
|
||||||
|
return taskRecardType;
|
||||||
|
}
|
||||||
|
public void setXfDept(String xfDept)
|
||||||
|
{
|
||||||
|
this.xfDept = xfDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXfDept()
|
||||||
|
{
|
||||||
|
return xfDept;
|
||||||
|
}
|
||||||
|
public void setXfName(String xfName)
|
||||||
|
{
|
||||||
|
this.xfName = xfName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXfName()
|
||||||
|
{
|
||||||
|
return xfName;
|
||||||
|
}
|
||||||
|
public void setXfdDept(String xfdDept)
|
||||||
|
{
|
||||||
|
this.xfdDept = xfdDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXfdDept()
|
||||||
|
{
|
||||||
|
return xfdDept;
|
||||||
|
}
|
||||||
|
public void setXfdName(String xfdName)
|
||||||
|
{
|
||||||
|
this.xfdName = xfdName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXfdName()
|
||||||
|
{
|
||||||
|
return xfdName;
|
||||||
|
}
|
||||||
|
public void setZpDept(String zpDept)
|
||||||
|
{
|
||||||
|
this.zpDept = zpDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZpDept()
|
||||||
|
{
|
||||||
|
return zpDept;
|
||||||
|
}
|
||||||
|
public void setZpName(String zpName)
|
||||||
|
{
|
||||||
|
this.zpName = zpName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZpName()
|
||||||
|
{
|
||||||
|
return zpName;
|
||||||
|
}
|
||||||
|
public void setZpdDept(String zpdDept)
|
||||||
|
{
|
||||||
|
this.zpdDept = zpdDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZpdDept()
|
||||||
|
{
|
||||||
|
return zpdDept;
|
||||||
|
}
|
||||||
|
public void setZpdName(String zpdName)
|
||||||
|
{
|
||||||
|
this.zpdName = zpdName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getZpdName()
|
||||||
|
{
|
||||||
|
return zpdName;
|
||||||
|
}
|
||||||
|
public void setClDept(String clDept)
|
||||||
|
{
|
||||||
|
this.clDept = clDept;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClDept()
|
||||||
|
{
|
||||||
|
return clDept;
|
||||||
|
}
|
||||||
|
public void setClName(String clName)
|
||||||
|
{
|
||||||
|
this.clName = clName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClName()
|
||||||
|
{
|
||||||
|
return clName;
|
||||||
|
}
|
||||||
|
public void setClResult(String clResult)
|
||||||
|
{
|
||||||
|
this.clResult = clResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClResult()
|
||||||
|
{
|
||||||
|
return clResult;
|
||||||
|
}
|
||||||
|
public void setClReason(String clReason)
|
||||||
|
{
|
||||||
|
this.clReason = clReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClReason()
|
||||||
|
{
|
||||||
|
return clReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("taskId", getTaskId())
|
||||||
|
.append("taskRecardType", getTaskRecardType())
|
||||||
|
.append("xfDept", getXfDept())
|
||||||
|
.append("xfName", getXfName())
|
||||||
|
.append("xfdDept", getXfdDept())
|
||||||
|
.append("xfdName", getXfdName())
|
||||||
|
.append("zpDept", getZpDept())
|
||||||
|
.append("zpName", getZpName())
|
||||||
|
.append("zpdDept", getZpdDept())
|
||||||
|
.append("zpdName", getZpdName())
|
||||||
|
.append("clDept", getClDept())
|
||||||
|
.append("clName", getClName())
|
||||||
|
.append("clResult", getClResult())
|
||||||
|
.append("clReason", getClReason())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
package com.ruoyi.szxc.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskManage;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务管理Mapper接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
public interface SzxcTaskManageMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询任务管理
|
||||||
|
*
|
||||||
|
* @param id 任务管理主键
|
||||||
|
* @return 任务管理
|
||||||
|
*/
|
||||||
|
public SzxcTaskManage selectSzxcTaskManageById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务管理列表
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 任务管理集合
|
||||||
|
*/
|
||||||
|
public List<SzxcTaskManage> selectSzxcTaskManageList(SzxcTaskManage szxcTaskManage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务管理
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcTaskManage(SzxcTaskManage szxcTaskManage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务管理
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcTaskManage(SzxcTaskManage szxcTaskManage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务管理
|
||||||
|
*
|
||||||
|
* @param id 任务管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskManageById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除任务管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskManageByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskRecard;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务处理记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
public interface SzxcTaskRecardMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询任务处理记录
|
||||||
|
*
|
||||||
|
* @param id 任务处理记录主键
|
||||||
|
* @return 任务处理记录
|
||||||
|
*/
|
||||||
|
public SzxcTaskRecard selectSzxcTaskRecardById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务处理记录列表
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 任务处理记录集合
|
||||||
|
*/
|
||||||
|
public List<SzxcTaskRecard> selectSzxcTaskRecardList(SzxcTaskRecard szxcTaskRecard);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务处理记录
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcTaskRecard(SzxcTaskRecard szxcTaskRecard);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务处理记录
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcTaskRecard(SzxcTaskRecard szxcTaskRecard);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务处理记录
|
||||||
|
*
|
||||||
|
* @param id 任务处理记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskRecardById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除任务处理记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskRecardByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
package com.ruoyi.szxc.service;
|
||||||
|
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskManage;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务管理Service接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
public interface ISzxcTaskManageService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询任务管理
|
||||||
|
*
|
||||||
|
* @param id 任务管理主键
|
||||||
|
* @return 任务管理
|
||||||
|
*/
|
||||||
|
public SzxcTaskManage selectSzxcTaskManageById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务管理列表
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 任务管理集合
|
||||||
|
*/
|
||||||
|
public List<SzxcTaskManage> selectSzxcTaskManageList(SzxcTaskManage szxcTaskManage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务管理
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcTaskManage(SzxcTaskManage szxcTaskManage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务管理
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcTaskManage(SzxcTaskManage szxcTaskManage);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除任务管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的任务管理主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskManageByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务管理信息
|
||||||
|
*
|
||||||
|
* @param id 任务管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskManageById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.szxc.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskRecard;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务处理记录Service接口
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
public interface ISzxcTaskRecardService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询任务处理记录
|
||||||
|
*
|
||||||
|
* @param id 任务处理记录主键
|
||||||
|
* @return 任务处理记录
|
||||||
|
*/
|
||||||
|
public SzxcTaskRecard selectSzxcTaskRecardById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务处理记录列表
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 任务处理记录集合
|
||||||
|
*/
|
||||||
|
public List<SzxcTaskRecard> selectSzxcTaskRecardList(SzxcTaskRecard szxcTaskRecard);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务处理记录
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertSzxcTaskRecard(SzxcTaskRecard szxcTaskRecard);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务处理记录
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateSzxcTaskRecard(SzxcTaskRecard szxcTaskRecard);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除任务处理记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的任务处理记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskRecardByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务处理记录信息
|
||||||
|
*
|
||||||
|
* @param id 任务处理记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteSzxcTaskRecardById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,97 @@
|
|||||||
|
package com.ruoyi.szxc.service.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskManage;
|
||||||
|
import com.ruoyi.szxc.mapper.SzxcTaskManageMapper;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcTaskManageService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务管理Service业务层处理
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzxcTaskManageServiceImpl implements ISzxcTaskManageService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzxcTaskManageMapper szxcTaskManageMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务管理
|
||||||
|
*
|
||||||
|
* @param id 任务管理主键
|
||||||
|
* @return 任务管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzxcTaskManage selectSzxcTaskManageById(Long id)
|
||||||
|
{
|
||||||
|
return szxcTaskManageMapper.selectSzxcTaskManageById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务管理列表
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 任务管理
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzxcTaskManage> selectSzxcTaskManageList(SzxcTaskManage szxcTaskManage)
|
||||||
|
{
|
||||||
|
return szxcTaskManageMapper.selectSzxcTaskManageList(szxcTaskManage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务管理
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzxcTaskManage(SzxcTaskManage szxcTaskManage)
|
||||||
|
{
|
||||||
|
szxcTaskManage.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return szxcTaskManageMapper.insertSzxcTaskManage(szxcTaskManage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务管理
|
||||||
|
*
|
||||||
|
* @param szxcTaskManage 任务管理
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzxcTaskManage(SzxcTaskManage szxcTaskManage)
|
||||||
|
{
|
||||||
|
szxcTaskManage.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return szxcTaskManageMapper.updateSzxcTaskManage(szxcTaskManage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除任务管理
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的任务管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcTaskManageByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return szxcTaskManageMapper.deleteSzxcTaskManageByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务管理信息
|
||||||
|
*
|
||||||
|
* @param id 任务管理主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcTaskManageById(Long id)
|
||||||
|
{
|
||||||
|
return szxcTaskManageMapper.deleteSzxcTaskManageById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.szxc.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.szxc.mapper.SzxcTaskRecardMapper;
|
||||||
|
import com.ruoyi.szxc.domain.SzxcTaskRecard;
|
||||||
|
import com.ruoyi.szxc.service.ISzxcTaskRecardService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务处理记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author hs
|
||||||
|
* @date 2024-04-28
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SzxcTaskRecardServiceImpl implements ISzxcTaskRecardService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private SzxcTaskRecardMapper szxcTaskRecardMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务处理记录
|
||||||
|
*
|
||||||
|
* @param id 任务处理记录主键
|
||||||
|
* @return 任务处理记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public SzxcTaskRecard selectSzxcTaskRecardById(Long id)
|
||||||
|
{
|
||||||
|
return szxcTaskRecardMapper.selectSzxcTaskRecardById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务处理记录列表
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 任务处理记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<SzxcTaskRecard> selectSzxcTaskRecardList(SzxcTaskRecard szxcTaskRecard)
|
||||||
|
{
|
||||||
|
return szxcTaskRecardMapper.selectSzxcTaskRecardList(szxcTaskRecard);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增任务处理记录
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertSzxcTaskRecard(SzxcTaskRecard szxcTaskRecard)
|
||||||
|
{
|
||||||
|
szxcTaskRecard.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return szxcTaskRecardMapper.insertSzxcTaskRecard(szxcTaskRecard);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改任务处理记录
|
||||||
|
*
|
||||||
|
* @param szxcTaskRecard 任务处理记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateSzxcTaskRecard(SzxcTaskRecard szxcTaskRecard)
|
||||||
|
{
|
||||||
|
szxcTaskRecard.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return szxcTaskRecardMapper.updateSzxcTaskRecard(szxcTaskRecard);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除任务处理记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的任务处理记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcTaskRecardByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return szxcTaskRecardMapper.deleteSzxcTaskRecardByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除任务处理记录信息
|
||||||
|
*
|
||||||
|
* @param id 任务处理记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteSzxcTaskRecardById(Long id)
|
||||||
|
{
|
||||||
|
return szxcTaskRecardMapper.deleteSzxcTaskRecardById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,151 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcTaskManageMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcTaskManage" id="SzxcTaskManageResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="subName" column="sub_name" />
|
||||||
|
<result property="subDate" column="sub_date" />
|
||||||
|
<result property="phone" column="phone" />
|
||||||
|
<result property="taskType" column="task_type" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="content" column="content" />
|
||||||
|
<result property="expiredDate" column="expired_date" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="sendedDept" column="sended_dept" />
|
||||||
|
<result property="sendedDeptid" column="sended__deptid" />
|
||||||
|
<result property="handleName" column="handle__name" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="handleResult" column="handle__result" />
|
||||||
|
<result property="handleReason" column="handle__reason" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="deptId" column="dept_id" />
|
||||||
|
<result property="deptName" column="dept_name" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcTaskManageVo">
|
||||||
|
select id, sub_name, sub_date, phone, task_type, title, content, expired_date, status, sended_dept, sended__deptid, handle__name, user_id, handle__result, handle__reason, remark, create_by, create_time, update_by, update_time, dept_id, dept_name from szxc_task_manage
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcTaskManageList" parameterType="SzxcTaskManage" resultMap="SzxcTaskManageResult">
|
||||||
|
<include refid="selectSzxcTaskManageVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="subName != null and subName != ''"> and sub_name like concat('%', #{subName}, '%')</if>
|
||||||
|
<if test="subDate != null "> and sub_date = #{subDate}</if>
|
||||||
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||||
|
<if test="taskType != null and taskType != ''"> and task_type = #{taskType}</if>
|
||||||
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||||
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||||
|
<if test="expiredDate != null "> and expired_date = #{expiredDate}</if>
|
||||||
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||||
|
<if test="sendedDept != null and sendedDept != ''"> and sended_dept = #{sendedDept}</if>
|
||||||
|
<if test="sendedDeptid != null "> and sended__deptid = #{sendedDeptid}</if>
|
||||||
|
<if test="handleName != null and handleName != ''"> and handle__name like concat('%', #{handleName}, '%')</if>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
<if test="handleResult != null and handleResult != ''"> and handle__result = #{handleResult}</if>
|
||||||
|
<if test="handleReason != null and handleReason != ''"> and handle__reason = #{handleReason}</if>
|
||||||
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||||
|
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcTaskManageById" parameterType="Long" resultMap="SzxcTaskManageResult">
|
||||||
|
<include refid="selectSzxcTaskManageVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcTaskManage" parameterType="SzxcTaskManage" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into szxc_task_manage
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="subName != null and subName != ''">sub_name,</if>
|
||||||
|
<if test="subDate != null">sub_date,</if>
|
||||||
|
<if test="phone != null">phone,</if>
|
||||||
|
<if test="taskType != null">task_type,</if>
|
||||||
|
<if test="title != null and title != ''">title,</if>
|
||||||
|
<if test="content != null">content,</if>
|
||||||
|
<if test="expiredDate != null">expired_date,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="sendedDept != null">sended_dept,</if>
|
||||||
|
<if test="sendedDeptid != null">sended__deptid,</if>
|
||||||
|
<if test="handleName != null">handle__name,</if>
|
||||||
|
<if test="userId != null">user_id,</if>
|
||||||
|
<if test="handleResult != null">handle__result,</if>
|
||||||
|
<if test="handleReason != null">handle__reason,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="deptId != null">dept_id,</if>
|
||||||
|
<if test="deptName != null">dept_name,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="subName != null and subName != ''">#{subName},</if>
|
||||||
|
<if test="subDate != null">#{subDate},</if>
|
||||||
|
<if test="phone != null">#{phone},</if>
|
||||||
|
<if test="taskType != null">#{taskType},</if>
|
||||||
|
<if test="title != null and title != ''">#{title},</if>
|
||||||
|
<if test="content != null">#{content},</if>
|
||||||
|
<if test="expiredDate != null">#{expiredDate},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="sendedDept != null">#{sendedDept},</if>
|
||||||
|
<if test="sendedDeptid != null">#{sendedDeptid},</if>
|
||||||
|
<if test="handleName != null">#{handleName},</if>
|
||||||
|
<if test="userId != null">#{userId},</if>
|
||||||
|
<if test="handleResult != null">#{handleResult},</if>
|
||||||
|
<if test="handleReason != null">#{handleReason},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="deptId != null">#{deptId},</if>
|
||||||
|
<if test="deptName != null">#{deptName},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcTaskManage" parameterType="SzxcTaskManage">
|
||||||
|
update szxc_task_manage
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="subName != null and subName != ''">sub_name = #{subName},</if>
|
||||||
|
<if test="subDate != null">sub_date = #{subDate},</if>
|
||||||
|
<if test="phone != null">phone = #{phone},</if>
|
||||||
|
<if test="taskType != null">task_type = #{taskType},</if>
|
||||||
|
<if test="title != null and title != ''">title = #{title},</if>
|
||||||
|
<if test="content != null">content = #{content},</if>
|
||||||
|
<if test="expiredDate != null">expired_date = #{expiredDate},</if>
|
||||||
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="sendedDept != null">sended_dept = #{sendedDept},</if>
|
||||||
|
<if test="sendedDeptid != null">sended__deptid = #{sendedDeptid},</if>
|
||||||
|
<if test="handleName != null">handle__name = #{handleName},</if>
|
||||||
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
<if test="handleResult != null">handle__result = #{handleResult},</if>
|
||||||
|
<if test="handleReason != null">handle__reason = #{handleReason},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||||
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcTaskManageById" parameterType="Long">
|
||||||
|
delete from szxc_task_manage where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcTaskManageByIds" parameterType="String">
|
||||||
|
delete from szxc_task_manage where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,141 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcTaskRecardMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcTaskRecard" id="SzxcTaskRecardResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="taskId" column="task_id" />
|
||||||
|
<result property="taskRecardType" column="task_recard_type" />
|
||||||
|
<result property="xfDept" column="xf_dept" />
|
||||||
|
<result property="xfName" column="xf_name" />
|
||||||
|
<result property="xfdDept" column="xfd_dept" />
|
||||||
|
<result property="xfdName" column="xfd_name" />
|
||||||
|
<result property="zpDept" column="zp_dept" />
|
||||||
|
<result property="zpName" column="zp_name" />
|
||||||
|
<result property="zpdDept" column="zpd_dept" />
|
||||||
|
<result property="zpdName" column="zpd_name" />
|
||||||
|
<result property="clDept" column="cl_dept" />
|
||||||
|
<result property="clName" column="cl_name" />
|
||||||
|
<result property="clResult" column="cl_result" />
|
||||||
|
<result property="clReason" column="cl_reason" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcTaskRecardVo">
|
||||||
|
select id, task_id, task_recard_type, xf_dept, xf_name, xfd_dept, xfd_name, zp_dept, zp_name, zpd_dept, zpd_name, cl_dept, cl_name, cl_result, cl_reason, remark, create_by, create_time, update_by, update_time from szxc_task_recard
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcTaskRecardList" parameterType="SzxcTaskRecard" resultMap="SzxcTaskRecardResult">
|
||||||
|
<include refid="selectSzxcTaskRecardVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="taskId != null "> and task_id = #{taskId}</if>
|
||||||
|
<if test="taskRecardType != null and taskRecardType != ''"> and task_recard_type = #{taskRecardType}</if>
|
||||||
|
<if test="xfDept != null and xfDept != ''"> and xf_dept = #{xfDept}</if>
|
||||||
|
<if test="xfName != null and xfName != ''"> and xf_name like concat('%', #{xfName}, '%')</if>
|
||||||
|
<if test="xfdDept != null and xfdDept != ''"> and xfd_dept = #{xfdDept}</if>
|
||||||
|
<if test="xfdName != null and xfdName != ''"> and xfd_name like concat('%', #{xfdName}, '%')</if>
|
||||||
|
<if test="zpDept != null and zpDept != ''"> and zp_dept = #{zpDept}</if>
|
||||||
|
<if test="zpName != null and zpName != ''"> and zp_name like concat('%', #{zpName}, '%')</if>
|
||||||
|
<if test="zpdDept != null and zpdDept != ''"> and zpd_dept = #{zpdDept}</if>
|
||||||
|
<if test="zpdName != null and zpdName != ''"> and zpd_name like concat('%', #{zpdName}, '%')</if>
|
||||||
|
<if test="clDept != null and clDept != ''"> and cl_dept = #{clDept}</if>
|
||||||
|
<if test="clName != null and clName != ''"> and cl_name like concat('%', #{clName}, '%')</if>
|
||||||
|
<if test="clResult != null and clResult != ''"> and cl_result = #{clResult}</if>
|
||||||
|
<if test="clReason != null and clReason != ''"> and cl_reason = #{clReason}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcTaskRecardById" parameterType="Long" resultMap="SzxcTaskRecardResult">
|
||||||
|
<include refid="selectSzxcTaskRecardVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcTaskRecard" parameterType="SzxcTaskRecard" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into szxc_task_recard
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="taskId != null">task_id,</if>
|
||||||
|
<if test="taskRecardType != null">task_recard_type,</if>
|
||||||
|
<if test="xfDept != null">xf_dept,</if>
|
||||||
|
<if test="xfName != null">xf_name,</if>
|
||||||
|
<if test="xfdDept != null">xfd_dept,</if>
|
||||||
|
<if test="xfdName != null">xfd_name,</if>
|
||||||
|
<if test="zpDept != null">zp_dept,</if>
|
||||||
|
<if test="zpName != null">zp_name,</if>
|
||||||
|
<if test="zpdDept != null">zpd_dept,</if>
|
||||||
|
<if test="zpdName != null">zpd_name,</if>
|
||||||
|
<if test="clDept != null">cl_dept,</if>
|
||||||
|
<if test="clName != null">cl_name,</if>
|
||||||
|
<if test="clResult != null">cl_result,</if>
|
||||||
|
<if test="clReason != null">cl_reason,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="taskId != null">#{taskId},</if>
|
||||||
|
<if test="taskRecardType != null">#{taskRecardType},</if>
|
||||||
|
<if test="xfDept != null">#{xfDept},</if>
|
||||||
|
<if test="xfName != null">#{xfName},</if>
|
||||||
|
<if test="xfdDept != null">#{xfdDept},</if>
|
||||||
|
<if test="xfdName != null">#{xfdName},</if>
|
||||||
|
<if test="zpDept != null">#{zpDept},</if>
|
||||||
|
<if test="zpName != null">#{zpName},</if>
|
||||||
|
<if test="zpdDept != null">#{zpdDept},</if>
|
||||||
|
<if test="zpdName != null">#{zpdName},</if>
|
||||||
|
<if test="clDept != null">#{clDept},</if>
|
||||||
|
<if test="clName != null">#{clName},</if>
|
||||||
|
<if test="clResult != null">#{clResult},</if>
|
||||||
|
<if test="clReason != null">#{clReason},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcTaskRecard" parameterType="SzxcTaskRecard">
|
||||||
|
update szxc_task_recard
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="taskId != null">task_id = #{taskId},</if>
|
||||||
|
<if test="taskRecardType != null">task_recard_type = #{taskRecardType},</if>
|
||||||
|
<if test="xfDept != null">xf_dept = #{xfDept},</if>
|
||||||
|
<if test="xfName != null">xf_name = #{xfName},</if>
|
||||||
|
<if test="xfdDept != null">xfd_dept = #{xfdDept},</if>
|
||||||
|
<if test="xfdName != null">xfd_name = #{xfdName},</if>
|
||||||
|
<if test="zpDept != null">zp_dept = #{zpDept},</if>
|
||||||
|
<if test="zpName != null">zp_name = #{zpName},</if>
|
||||||
|
<if test="zpdDept != null">zpd_dept = #{zpdDept},</if>
|
||||||
|
<if test="zpdName != null">zpd_name = #{zpdName},</if>
|
||||||
|
<if test="clDept != null">cl_dept = #{clDept},</if>
|
||||||
|
<if test="clName != null">cl_name = #{clName},</if>
|
||||||
|
<if test="clResult != null">cl_result = #{clResult},</if>
|
||||||
|
<if test="clReason != null">cl_reason = #{clReason},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcTaskRecardById" parameterType="Long">
|
||||||
|
delete from szxc_task_recard where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcTaskRecardByIds" parameterType="String">
|
||||||
|
delete from szxc_task_recard where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询任务管理列表
|
||||||
|
export function listTaskManage(query) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskManage/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询任务管理详细
|
||||||
|
export function getTaskManage(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskManage/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增任务管理
|
||||||
|
export function addTaskManage(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskManage',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改任务管理
|
||||||
|
export function updateTaskManage(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskManage',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除任务管理
|
||||||
|
export function delTaskManage(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskManage/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询任务处理记录列表
|
||||||
|
export function listTaskRecard(query) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskRecard/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询任务处理记录详细
|
||||||
|
export function getTaskRecard(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskRecard/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增任务处理记录
|
||||||
|
export function addTaskRecard(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskRecard',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改任务处理记录
|
||||||
|
export function updateTaskRecard(data) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskRecard',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除任务处理记录
|
||||||
|
export function delTaskRecard(id) {
|
||||||
|
return request({
|
||||||
|
url: '/szxc/taskRecard/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -0,0 +1,461 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="上报人" prop="subName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.subName"
|
||||||
|
placeholder="请输入上报人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="上报日期" prop="subDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="queryParams.subDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择上报日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="联系电话" prop="phone">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phone"
|
||||||
|
placeholder="请输入联系电话"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="任务主题(字典)" prop="title">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.title"
|
||||||
|
placeholder="请输入任务主题(字典)"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="截止日期" prop="expiredDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="queryParams.expiredDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择截止日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="当前分派到部门" prop="sendedDept">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.sendedDept"
|
||||||
|
placeholder="请输入当前分派到部门"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="当前分派到部门id" prop="sendedDeptid">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.sendedDeptid"
|
||||||
|
placeholder="请输入当前分派到部门id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分派到用户" prop="handleName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.handleName"
|
||||||
|
placeholder="请输入分派到用户"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分派到用户id" prop="userId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.userId"
|
||||||
|
placeholder="请输入分派到用户id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理结果" prop="handleResult">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.handleResult"
|
||||||
|
placeholder="请输入处理结果"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理原由" prop="handleReason">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.handleReason"
|
||||||
|
placeholder="请输入处理原由"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptId"
|
||||||
|
placeholder="请输入部门id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="网格名称" prop="deptName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.deptName"
|
||||||
|
placeholder="请输入网格名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['szxc:taskManage:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['szxc:taskManage:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['szxc:taskManage:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['szxc:taskManage:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="taskManageList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="id" align="center" prop="id" />
|
||||||
|
<el-table-column label="上报人" align="center" prop="subName" />
|
||||||
|
<el-table-column label="上报日期" align="center" prop="subDate" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.subDate, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="联系电话" align="center" prop="phone" />
|
||||||
|
<el-table-column label="任务分类(字典)" align="center" prop="taskType" />
|
||||||
|
<el-table-column label="任务主题(字典)" align="center" prop="title" />
|
||||||
|
<el-table-column label="任务描述" align="center" prop="content" />
|
||||||
|
<el-table-column label="截止日期" align="center" prop="expiredDate" width="180">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.expiredDate, '{y}-{m}-{d}') }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="任务状态(字典)" align="center" prop="status" />
|
||||||
|
<el-table-column label="当前分派到部门" align="center" prop="sendedDept" />
|
||||||
|
<el-table-column label="当前分派到部门id" align="center" prop="sendedDeptid" />
|
||||||
|
<el-table-column label="分派到用户" align="center" prop="handleName" />
|
||||||
|
<el-table-column label="分派到用户id" align="center" prop="userId" />
|
||||||
|
<el-table-column label="处理结果" align="center" prop="handleResult" />
|
||||||
|
<el-table-column label="处理原由" align="center" prop="handleReason" />
|
||||||
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
|
<el-table-column label="部门id" align="center" prop="deptId" />
|
||||||
|
<el-table-column label="网格名称" align="center" prop="deptName" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['szxc:taskManage:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['szxc:taskManage:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改任务管理对话框 -->
|
||||||
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="上报人" prop="subName">
|
||||||
|
<el-input v-model="form.subName" placeholder="请输入上报人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="上报日期" prop="subDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="form.subDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择上报日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="联系电话" prop="phone">
|
||||||
|
<el-input v-model="form.phone" placeholder="请输入联系电话" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="任务主题(字典)" prop="title">
|
||||||
|
<el-input v-model="form.title" placeholder="请输入任务主题(字典)" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="任务描述">
|
||||||
|
<editor v-model="form.content" :min-height="192"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="截止日期" prop="expiredDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="form.expiredDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择截止日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="当前分派到部门" prop="sendedDept">
|
||||||
|
<el-input v-model="form.sendedDept" placeholder="请输入当前分派到部门" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="当前分派到部门id" prop="sendedDeptid">
|
||||||
|
<el-input v-model="form.sendedDeptid" placeholder="请输入当前分派到部门id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分派到用户" prop="handleName">
|
||||||
|
<el-input v-model="form.handleName" placeholder="请输入分派到用户" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分派到用户id" prop="userId">
|
||||||
|
<el-input v-model="form.userId" placeholder="请输入分派到用户id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理结果" prop="handleResult">
|
||||||
|
<el-input v-model="form.handleResult" placeholder="请输入处理结果" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理原由" prop="handleReason">
|
||||||
|
<el-input v-model="form.handleReason" placeholder="请输入处理原由" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="部门id" prop="deptId">
|
||||||
|
<el-input v-model="form.deptId" placeholder="请输入部门id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="网格名称" prop="deptName">
|
||||||
|
<el-input v-model="form.deptName" placeholder="请输入网格名称" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listTaskManage, getTaskManage, delTaskManage, addTaskManage, updateTaskManage } from "@/api/szxc/taskManage";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "TaskManage",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 任务管理表格数据
|
||||||
|
taskManageList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
subName: null,
|
||||||
|
subDate: null,
|
||||||
|
phone: null,
|
||||||
|
taskType: null,
|
||||||
|
title: null,
|
||||||
|
content: null,
|
||||||
|
expiredDate: null,
|
||||||
|
status: null,
|
||||||
|
sendedDept: null,
|
||||||
|
sendedDeptid: null,
|
||||||
|
handleName: null,
|
||||||
|
userId: null,
|
||||||
|
handleResult: null,
|
||||||
|
handleReason: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
subName: [
|
||||||
|
{ required: true, message: "上报人不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
title: [
|
||||||
|
{ required: true, message: "任务主题(字典)不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
deptId: [
|
||||||
|
{ required: true, message: "部门id不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询任务管理列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listTaskManage(this.queryParams).then(response => {
|
||||||
|
this.taskManageList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
subName: null,
|
||||||
|
subDate: null,
|
||||||
|
phone: null,
|
||||||
|
taskType: null,
|
||||||
|
title: null,
|
||||||
|
content: null,
|
||||||
|
expiredDate: null,
|
||||||
|
status: null,
|
||||||
|
sendedDept: null,
|
||||||
|
sendedDeptid: null,
|
||||||
|
handleName: null,
|
||||||
|
userId: null,
|
||||||
|
handleResult: null,
|
||||||
|
handleReason: null,
|
||||||
|
remark: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
deptId: null,
|
||||||
|
deptName: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加任务管理";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids
|
||||||
|
getTaskManage(id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改任务管理";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateTaskManage(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addTaskManage(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal.confirm('是否确认删除任务管理编号为"' + ids + '"的数据项?').then(function() {
|
||||||
|
return delTaskManage(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('szxc/taskManage/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `taskManage_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@ -0,0 +1,425 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="任务id" prop="taskId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.taskId"
|
||||||
|
placeholder="请输入任务id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发部门" prop="xfDept">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xfDept"
|
||||||
|
placeholder="请输入下发部门"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发人" prop="xfName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xfName"
|
||||||
|
placeholder="请输入下发人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发到部门" prop="xfdDept">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xfdDept"
|
||||||
|
placeholder="请输入下发到部门"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发到人" prop="xfdName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.xfdName"
|
||||||
|
placeholder="请输入下发到人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派部门" prop="zpDept">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.zpDept"
|
||||||
|
placeholder="请输入转派部门"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派人" prop="zpName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.zpName"
|
||||||
|
placeholder="请输入转派人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派到部门" prop="zpdDept">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.zpdDept"
|
||||||
|
placeholder="请输入转派到部门"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派到人" prop="zpdName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.zpdName"
|
||||||
|
placeholder="请输入转派到人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理部门" prop="clDept">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.clDept"
|
||||||
|
placeholder="请输入处理部门"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理人" prop="clName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.clName"
|
||||||
|
placeholder="请输入处理人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理结果" prop="clResult">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.clResult"
|
||||||
|
placeholder="请输入处理结果"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派人" prop="clReason">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.clReason"
|
||||||
|
placeholder="请输入转派人"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['szxc:taskRecard:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['szxc:taskRecard:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['szxc:taskRecard:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['szxc:taskRecard:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="taskRecardList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label=" id" align="center" prop="id" />
|
||||||
|
<el-table-column label="任务id" align="center" prop="taskId" />
|
||||||
|
<el-table-column label="记录类型(字典)" align="center" prop="taskRecardType" />
|
||||||
|
<el-table-column label="下发部门" align="center" prop="xfDept" />
|
||||||
|
<el-table-column label="下发人" align="center" prop="xfName" />
|
||||||
|
<el-table-column label="下发到部门" align="center" prop="xfdDept" />
|
||||||
|
<el-table-column label="下发到人" align="center" prop="xfdName" />
|
||||||
|
<el-table-column label="转派部门" align="center" prop="zpDept" />
|
||||||
|
<el-table-column label="转派人" align="center" prop="zpName" />
|
||||||
|
<el-table-column label="转派到部门" align="center" prop="zpdDept" />
|
||||||
|
<el-table-column label="转派到人" align="center" prop="zpdName" />
|
||||||
|
<el-table-column label="处理部门" align="center" prop="clDept" />
|
||||||
|
<el-table-column label="处理人" align="center" prop="clName" />
|
||||||
|
<el-table-column label="处理结果" align="center" prop="clResult" />
|
||||||
|
<el-table-column label="转派人" align="center" prop="clReason" />
|
||||||
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['szxc:taskRecard:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['szxc:taskRecard:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改任务处理记录对话框 -->
|
||||||
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="任务id" prop="taskId">
|
||||||
|
<el-input v-model="form.taskId" placeholder="请输入任务id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发部门" prop="xfDept">
|
||||||
|
<el-input v-model="form.xfDept" placeholder="请输入下发部门" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发人" prop="xfName">
|
||||||
|
<el-input v-model="form.xfName" placeholder="请输入下发人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发到部门" prop="xfdDept">
|
||||||
|
<el-input v-model="form.xfdDept" placeholder="请输入下发到部门" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="下发到人" prop="xfdName">
|
||||||
|
<el-input v-model="form.xfdName" placeholder="请输入下发到人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派部门" prop="zpDept">
|
||||||
|
<el-input v-model="form.zpDept" placeholder="请输入转派部门" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派人" prop="zpName">
|
||||||
|
<el-input v-model="form.zpName" placeholder="请输入转派人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派到部门" prop="zpdDept">
|
||||||
|
<el-input v-model="form.zpdDept" placeholder="请输入转派到部门" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派到人" prop="zpdName">
|
||||||
|
<el-input v-model="form.zpdName" placeholder="请输入转派到人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理部门" prop="clDept">
|
||||||
|
<el-input v-model="form.clDept" placeholder="请输入处理部门" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理人" prop="clName">
|
||||||
|
<el-input v-model="form.clName" placeholder="请输入处理人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="处理结果" prop="clResult">
|
||||||
|
<el-input v-model="form.clResult" placeholder="请输入处理结果" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="转派人" prop="clReason">
|
||||||
|
<el-input v-model="form.clReason" placeholder="请输入转派人" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listTaskRecard, getTaskRecard, delTaskRecard, addTaskRecard, updateTaskRecard } from "@/api/szxc/taskRecard";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "TaskRecard",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 任务处理记录表格数据
|
||||||
|
taskRecardList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
taskId: null,
|
||||||
|
taskRecardType: null,
|
||||||
|
xfDept: null,
|
||||||
|
xfName: null,
|
||||||
|
xfdDept: null,
|
||||||
|
xfdName: null,
|
||||||
|
zpDept: null,
|
||||||
|
zpName: null,
|
||||||
|
zpdDept: null,
|
||||||
|
zpdName: null,
|
||||||
|
clDept: null,
|
||||||
|
clName: null,
|
||||||
|
clResult: null,
|
||||||
|
clReason: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询任务处理记录列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listTaskRecard(this.queryParams).then(response => {
|
||||||
|
this.taskRecardList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
taskId: null,
|
||||||
|
taskRecardType: null,
|
||||||
|
xfDept: null,
|
||||||
|
xfName: null,
|
||||||
|
xfdDept: null,
|
||||||
|
xfdName: null,
|
||||||
|
zpDept: null,
|
||||||
|
zpName: null,
|
||||||
|
zpdDept: null,
|
||||||
|
zpdName: null,
|
||||||
|
clDept: null,
|
||||||
|
clName: null,
|
||||||
|
clResult: null,
|
||||||
|
clReason: null,
|
||||||
|
remark: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map(item => item.id)
|
||||||
|
this.single = selection.length!==1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加任务处理记录";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids
|
||||||
|
getTaskRecard(id).then(response => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改任务处理记录";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateTaskRecard(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addTaskRecard(this.form).then(response => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal.confirm('是否确认删除任务处理记录编号为"' + ids + '"的数据项?').then(function() {
|
||||||
|
return delTaskRecard(ids);
|
||||||
|
}).then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download('szxc/taskRecard/export', {
|
||||||
|
...this.queryParams
|
||||||
|
}, `taskRecard_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Loading…
Reference in new issue