巡检、点检模块添加

master
zhouhy 2 years ago
parent 9c1b143d5e
commit 607ade70ae

@ -0,0 +1,105 @@
package com.hw.dms.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
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.hw.common.log.annotation.Log;
import com.hw.common.log.enums.BusinessType;
import com.hw.common.security.annotation.RequiresPermissions;
import com.hw.dms.domain.DmsBaseInspectProject;
import com.hw.dms.service.IDmsBaseInspectProjectService;
import com.hw.common.core.web.controller.BaseController;
import com.hw.common.core.web.domain.AjaxResult;
import com.hw.common.core.utils.poi.ExcelUtil;
import com.hw.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author Open Platform
* @date 2024-01-17
*/
@RestController
@RequestMapping("/dmsBaseInspectProject")
public class DmsBaseInspectProjectController extends BaseController
{
@Autowired
private IDmsBaseInspectProjectService dmsBaseInspectProjectService;
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectProject:list")
@GetMapping("/list")
public TableDataInfo list(DmsBaseInspectProject dmsBaseInspectProject)
{
startPage();
List<DmsBaseInspectProject> list = dmsBaseInspectProjectService.selectDmsBaseInspectProjectList(dmsBaseInspectProject);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectProject:export")
@Log(title = "巡检项目信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DmsBaseInspectProject dmsBaseInspectProject)
{
List<DmsBaseInspectProject> list = dmsBaseInspectProjectService.selectDmsBaseInspectProjectList(dmsBaseInspectProject);
ExcelUtil<DmsBaseInspectProject> util = new ExcelUtil<DmsBaseInspectProject>(DmsBaseInspectProject.class);
util.exportExcel(response, list, "巡检项目信息数据");
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectProject:query")
@GetMapping(value = "/{inspectProjectId}")
public AjaxResult getInfo(@PathVariable("inspectProjectId") Long inspectProjectId)
{
return success(dmsBaseInspectProjectService.selectDmsBaseInspectProjectByInspectProjectId(inspectProjectId));
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectProject:add")
@Log(title = "巡检项目信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DmsBaseInspectProject dmsBaseInspectProject)
{
return toAjax(dmsBaseInspectProjectService.insertDmsBaseInspectProject(dmsBaseInspectProject));
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectProject:edit")
@Log(title = "巡检项目信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DmsBaseInspectProject dmsBaseInspectProject)
{
return toAjax(dmsBaseInspectProjectService.updateDmsBaseInspectProject(dmsBaseInspectProject));
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectProject:remove")
@Log(title = "巡检项目信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{inspectProjectIds}")
public AjaxResult remove(@PathVariable Long[] inspectProjectIds)
{
return toAjax(dmsBaseInspectProjectService.deleteDmsBaseInspectProjectByInspectProjectIds(inspectProjectIds));
}
}

@ -0,0 +1,105 @@
package com.hw.dms.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
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.hw.common.log.annotation.Log;
import com.hw.common.log.enums.BusinessType;
import com.hw.common.security.annotation.RequiresPermissions;
import com.hw.dms.domain.DmsBaseInspectStandard;
import com.hw.dms.service.IDmsBaseInspectStandardService;
import com.hw.common.core.web.controller.BaseController;
import com.hw.common.core.web.domain.AjaxResult;
import com.hw.common.core.utils.poi.ExcelUtil;
import com.hw.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author Open Platform
* @date 2024-01-17
*/
@RestController
@RequestMapping("/dmsBaseInspectStandard")
public class DmsBaseInspectStandardController extends BaseController
{
@Autowired
private IDmsBaseInspectStandardService dmsBaseInspectStandardService;
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectStandard:list")
@GetMapping("/list")
public TableDataInfo list(DmsBaseInspectStandard dmsBaseInspectStandard)
{
startPage();
List<DmsBaseInspectStandard> list = dmsBaseInspectStandardService.selectDmsBaseInspectStandardList(dmsBaseInspectStandard);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectStandard:export")
@Log(title = "巡检标准信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DmsBaseInspectStandard dmsBaseInspectStandard)
{
List<DmsBaseInspectStandard> list = dmsBaseInspectStandardService.selectDmsBaseInspectStandardList(dmsBaseInspectStandard);
ExcelUtil<DmsBaseInspectStandard> util = new ExcelUtil<DmsBaseInspectStandard>(DmsBaseInspectStandard.class);
util.exportExcel(response, list, "巡检标准信息数据");
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectStandard:query")
@GetMapping(value = "/{inspectStandardId}")
public AjaxResult getInfo(@PathVariable("inspectStandardId") Long inspectStandardId)
{
return success(dmsBaseInspectStandardService.selectDmsBaseInspectStandardByInspectStandardId(inspectStandardId));
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectStandard:add")
@Log(title = "巡检标准信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DmsBaseInspectStandard dmsBaseInspectStandard)
{
return toAjax(dmsBaseInspectStandardService.insertDmsBaseInspectStandard(dmsBaseInspectStandard));
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectStandard:edit")
@Log(title = "巡检标准信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DmsBaseInspectStandard dmsBaseInspectStandard)
{
return toAjax(dmsBaseInspectStandardService.updateDmsBaseInspectStandard(dmsBaseInspectStandard));
}
/**
*
*/
@RequiresPermissions("dms:dmsBaseInspectStandard:remove")
@Log(title = "巡检标准信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{inspectStandardIds}")
public AjaxResult remove(@PathVariable Long[] inspectStandardIds)
{
return toAjax(dmsBaseInspectStandardService.deleteDmsBaseInspectStandardByInspectStandardIds(inspectStandardIds));
}
}

@ -0,0 +1,105 @@
package com.hw.dms.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
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.hw.common.log.annotation.Log;
import com.hw.common.log.enums.BusinessType;
import com.hw.common.security.annotation.RequiresPermissions;
import com.hw.dms.domain.DmsPlanInspect;
import com.hw.dms.service.IDmsPlanInspectService;
import com.hw.common.core.web.controller.BaseController;
import com.hw.common.core.web.domain.AjaxResult;
import com.hw.common.core.utils.poi.ExcelUtil;
import com.hw.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author Open Platform
* @date 2024-01-17
*/
@RestController
@RequestMapping("/dmsPlanInspect")
public class DmsPlanInspectController extends BaseController
{
@Autowired
private IDmsPlanInspectService dmsPlanInspectService;
/**
*
*/
@RequiresPermissions("dms:dmsPlanInspect:list")
@GetMapping("/list")
public TableDataInfo list(DmsPlanInspect dmsPlanInspect)
{
startPage();
List<DmsPlanInspect> list = dmsPlanInspectService.selectDmsPlanInspectList(dmsPlanInspect);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("dms:dmsPlanInspect:export")
@Log(title = "巡检计划信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DmsPlanInspect dmsPlanInspect)
{
List<DmsPlanInspect> list = dmsPlanInspectService.selectDmsPlanInspectList(dmsPlanInspect);
ExcelUtil<DmsPlanInspect> util = new ExcelUtil<DmsPlanInspect>(DmsPlanInspect.class);
util.exportExcel(response, list, "巡检计划信息数据");
}
/**
*
*/
@RequiresPermissions("dms:dmsPlanInspect:query")
@GetMapping(value = "/{planInspectId}")
public AjaxResult getInfo(@PathVariable("planInspectId") Long planInspectId)
{
return success(dmsPlanInspectService.selectDmsPlanInspectByPlanInspectId(planInspectId));
}
/**
*
*/
@RequiresPermissions("dms:dmsPlanInspect:add")
@Log(title = "巡检计划信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DmsPlanInspect dmsPlanInspect)
{
return toAjax(dmsPlanInspectService.insertDmsPlanInspect(dmsPlanInspect));
}
/**
*
*/
@RequiresPermissions("dms:dmsPlanInspect:edit")
@Log(title = "巡检计划信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DmsPlanInspect dmsPlanInspect)
{
return toAjax(dmsPlanInspectService.updateDmsPlanInspect(dmsPlanInspect));
}
/**
*
*/
@RequiresPermissions("dms:dmsPlanInspect:remove")
@Log(title = "巡检计划信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{planInspectIds}")
public AjaxResult remove(@PathVariable Long[] planInspectIds)
{
return toAjax(dmsPlanInspectService.deleteDmsPlanInspectByPlanInspectIds(planInspectIds));
}
}

@ -0,0 +1,155 @@
package com.hw.dms.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hw.common.core.annotation.Excel;
import com.hw.common.core.web.domain.BaseEntity;
/**
* dms_base_inspect_project
*
* @author Open Platform
* @date 2024-01-17
*/
public class DmsBaseInspectProject extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键标识 */
private Long inspectProjectId;
/** 项目编号 */
@Excel(name = "项目编号")
private String inspectProjectCode;
/** 巡检项目 */
@Excel(name = "巡检项目")
private String inspectProject;
/** 检查类型(1巡检,2点检) */
@Excel(name = "检查类型(1巡检,2点检)")
private String inspectType;
/** 记录方式 */
@Excel(name = "记录方式")
private String recordMethod;
/** 上限 */
@Excel(name = "上限")
private BigDecimal upLimit;
/** 下限 */
@Excel(name = "下限")
private BigDecimal lowLimit;
/** 默认值 */
@Excel(name = "默认值")
private BigDecimal defValue;
/** 是否标识1-是0-否 */
@Excel(name = "是否标识1-是0-否")
private String isFlag;
public void setInspectProjectId(Long inspectProjectId)
{
this.inspectProjectId = inspectProjectId;
}
public Long getInspectProjectId()
{
return inspectProjectId;
}
public void setInspectProjectCode(String inspectProjectCode)
{
this.inspectProjectCode = inspectProjectCode;
}
public String getInspectProjectCode()
{
return inspectProjectCode;
}
public void setInspectProject(String inspectProject)
{
this.inspectProject = inspectProject;
}
public String getInspectProject()
{
return inspectProject;
}
public void setInspectType(String inspectType)
{
this.inspectType = inspectType;
}
public String getInspectType()
{
return inspectType;
}
public void setRecordMethod(String recordMethod)
{
this.recordMethod = recordMethod;
}
public String getRecordMethod()
{
return recordMethod;
}
public void setUpLimit(BigDecimal upLimit)
{
this.upLimit = upLimit;
}
public BigDecimal getUpLimit()
{
return upLimit;
}
public void setLowLimit(BigDecimal lowLimit)
{
this.lowLimit = lowLimit;
}
public BigDecimal getLowLimit()
{
return lowLimit;
}
public void setDefValue(BigDecimal defValue)
{
this.defValue = defValue;
}
public BigDecimal getDefValue()
{
return defValue;
}
public void setIsFlag(String isFlag)
{
this.isFlag = isFlag;
}
public String getIsFlag()
{
return isFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("inspectProjectId", getInspectProjectId())
.append("inspectProjectCode", getInspectProjectCode())
.append("inspectProject", getInspectProject())
.append("inspectType", getInspectType())
.append("recordMethod", getRecordMethod())
.append("upLimit", getUpLimit())
.append("lowLimit", getLowLimit())
.append("defValue", getDefValue())
.append("isFlag", getIsFlag())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

@ -0,0 +1,126 @@
package com.hw.dms.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hw.common.core.annotation.Excel;
import com.hw.common.core.web.domain.BaseEntity;
/**
* dms_base_inspect_standard
*
* @author Open Platform
* @date 2024-01-17
*/
public class DmsBaseInspectStandard extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键标识 */
private Long inspectStandardId;
/** 标准编号 */
@Excel(name = "标准编号")
private String standardCode;
/** 标准名称 */
@Excel(name = "标准名称")
private String standardName;
/** 巡检目的 */
@Excel(name = "巡检目的")
private String inspectObjective;
/** 巡检项目ID关联dms_base_inspect_project的inspect_project_id */
@Excel(name = "巡检项目ID关联dms_base_inspect_project的inspect_project_id")
private Long inspectProjectId;
/** 检查项总数 */
@Excel(name = "检查项总数")
private Long inspectItemCount;
/** 是否标识1-是0-否 */
@Excel(name = "是否标识1-是0-否")
private String isFlag;
public void setInspectStandardId(Long inspectStandardId)
{
this.inspectStandardId = inspectStandardId;
}
public Long getInspectStandardId()
{
return inspectStandardId;
}
public void setStandardCode(String standardCode)
{
this.standardCode = standardCode;
}
public String getStandardCode()
{
return standardCode;
}
public void setStandardName(String standardName)
{
this.standardName = standardName;
}
public String getStandardName()
{
return standardName;
}
public void setInspectObjective(String inspectObjective)
{
this.inspectObjective = inspectObjective;
}
public String getInspectObjective()
{
return inspectObjective;
}
public void setInspectProjectId(Long inspectProjectId)
{
this.inspectProjectId = inspectProjectId;
}
public Long getInspectProjectId()
{
return inspectProjectId;
}
public void setInspectItemCount(Long inspectItemCount)
{
this.inspectItemCount = inspectItemCount;
}
public Long getInspectItemCount()
{
return inspectItemCount;
}
public void setIsFlag(String isFlag)
{
this.isFlag = isFlag;
}
public String getIsFlag()
{
return isFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("inspectStandardId", getInspectStandardId())
.append("standardCode", getStandardCode())
.append("standardName", getStandardName())
.append("inspectObjective", getInspectObjective())
.append("inspectProjectId", getInspectProjectId())
.append("inspectItemCount", getInspectItemCount())
.append("isFlag", getIsFlag())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

@ -0,0 +1,171 @@
package com.hw.dms.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hw.common.core.annotation.Excel;
import com.hw.common.core.web.domain.BaseEntity;
/**
* dms_plan_inspect
*
* @author Open Platform
* @date 2024-01-17
*/
public class DmsPlanInspect extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键标识 */
private Long planInspectId;
/** 计划编号 */
@Excel(name = "计划编号")
private String planInspectCode;
/** 计划名称 */
@Excel(name = "计划名称")
private String planInspectName;
/** 检查类型(1巡检,2点检) */
@Excel(name = "检查类型(1巡检,2点检)")
private String inspectType;
/** 巡检线路ID关联dm_base_inspect_route的inspect_route_id */
@Excel(name = "巡检线路ID关联dm_base_inspect_route的inspect_route_id")
private Long inspectRouteId;
/** 设备总数 */
@Excel(name = "设备总数")
private Long deviceAmount;
/** 计划巡检时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "计划巡检时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date planTime;
/** 循环周期 */
@Excel(name = "循环周期")
private String cyclePeriod;
/** 执行人员 */
@Excel(name = "执行人员")
private String performer;
/** 是否标识1-是0-否 */
@Excel(name = "是否标识1-是0-否")
private String isFlag;
public void setPlanInspectId(Long planInspectId)
{
this.planInspectId = planInspectId;
}
public Long getPlanInspectId()
{
return planInspectId;
}
public void setPlanInspectCode(String planInspectCode)
{
this.planInspectCode = planInspectCode;
}
public String getPlanInspectCode()
{
return planInspectCode;
}
public void setPlanInspectName(String planInspectName)
{
this.planInspectName = planInspectName;
}
public String getPlanInspectName()
{
return planInspectName;
}
public void setInspectType(String inspectType)
{
this.inspectType = inspectType;
}
public String getInspectType()
{
return inspectType;
}
public void setInspectRouteId(Long inspectRouteId)
{
this.inspectRouteId = inspectRouteId;
}
public Long getInspectRouteId()
{
return inspectRouteId;
}
public void setDeviceAmount(Long deviceAmount)
{
this.deviceAmount = deviceAmount;
}
public Long getDeviceAmount()
{
return deviceAmount;
}
public void setPlanTime(Date planTime)
{
this.planTime = planTime;
}
public Date getPlanTime()
{
return planTime;
}
public void setCyclePeriod(String cyclePeriod)
{
this.cyclePeriod = cyclePeriod;
}
public String getCyclePeriod()
{
return cyclePeriod;
}
public void setPerformer(String performer)
{
this.performer = performer;
}
public String getPerformer()
{
return performer;
}
public void setIsFlag(String isFlag)
{
this.isFlag = isFlag;
}
public String getIsFlag()
{
return isFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("planInspectId", getPlanInspectId())
.append("planInspectCode", getPlanInspectCode())
.append("planInspectName", getPlanInspectName())
.append("inspectType", getInspectType())
.append("inspectRouteId", getInspectRouteId())
.append("deviceAmount", getDeviceAmount())
.append("planTime", getPlanTime())
.append("cyclePeriod", getCyclePeriod())
.append("performer", getPerformer())
.append("isFlag", getIsFlag())
.append("remark", getRemark())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

@ -0,0 +1,61 @@
package com.hw.dms.mapper;
import java.util.List;
import com.hw.dms.domain.DmsBaseInspectProject;
/**
* Mapper
*
* @author Open Platform
* @date 2024-01-17
*/
public interface DmsBaseInspectProjectMapper
{
/**
*
*
* @param inspectProjectId
* @return
*/
public DmsBaseInspectProject selectDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId);
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
public List<DmsBaseInspectProject> selectDmsBaseInspectProjectList(DmsBaseInspectProject dmsBaseInspectProject);
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
public int insertDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject);
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
public int updateDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject);
/**
*
*
* @param inspectProjectId
* @return
*/
public int deleteDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId);
/**
*
*
* @param inspectProjectIds
* @return
*/
public int deleteDmsBaseInspectProjectByInspectProjectIds(Long[] inspectProjectIds);
}

@ -0,0 +1,61 @@
package com.hw.dms.mapper;
import java.util.List;
import com.hw.dms.domain.DmsBaseInspectStandard;
/**
* Mapper
*
* @author Open Platform
* @date 2024-01-17
*/
public interface DmsBaseInspectStandardMapper
{
/**
*
*
* @param inspectStandardId
* @return
*/
public DmsBaseInspectStandard selectDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId);
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
public List<DmsBaseInspectStandard> selectDmsBaseInspectStandardList(DmsBaseInspectStandard dmsBaseInspectStandard);
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
public int insertDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard);
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
public int updateDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard);
/**
*
*
* @param inspectStandardId
* @return
*/
public int deleteDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId);
/**
*
*
* @param inspectStandardIds
* @return
*/
public int deleteDmsBaseInspectStandardByInspectStandardIds(Long[] inspectStandardIds);
}

@ -0,0 +1,61 @@
package com.hw.dms.mapper;
import java.util.List;
import com.hw.dms.domain.DmsPlanInspect;
/**
* Mapper
*
* @author Open Platform
* @date 2024-01-17
*/
public interface DmsPlanInspectMapper
{
/**
*
*
* @param planInspectId
* @return
*/
public DmsPlanInspect selectDmsPlanInspectByPlanInspectId(Long planInspectId);
/**
*
*
* @param dmsPlanInspect
* @return
*/
public List<DmsPlanInspect> selectDmsPlanInspectList(DmsPlanInspect dmsPlanInspect);
/**
*
*
* @param dmsPlanInspect
* @return
*/
public int insertDmsPlanInspect(DmsPlanInspect dmsPlanInspect);
/**
*
*
* @param dmsPlanInspect
* @return
*/
public int updateDmsPlanInspect(DmsPlanInspect dmsPlanInspect);
/**
*
*
* @param planInspectId
* @return
*/
public int deleteDmsPlanInspectByPlanInspectId(Long planInspectId);
/**
*
*
* @param planInspectIds
* @return
*/
public int deleteDmsPlanInspectByPlanInspectIds(Long[] planInspectIds);
}

@ -0,0 +1,61 @@
package com.hw.dms.service;
import java.util.List;
import com.hw.dms.domain.DmsBaseInspectProject;
/**
* Service
*
* @author Open Platform
* @date 2024-01-17
*/
public interface IDmsBaseInspectProjectService
{
/**
*
*
* @param inspectProjectId
* @return
*/
public DmsBaseInspectProject selectDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId);
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
public List<DmsBaseInspectProject> selectDmsBaseInspectProjectList(DmsBaseInspectProject dmsBaseInspectProject);
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
public int insertDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject);
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
public int updateDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject);
/**
*
*
* @param inspectProjectIds
* @return
*/
public int deleteDmsBaseInspectProjectByInspectProjectIds(Long[] inspectProjectIds);
/**
*
*
* @param inspectProjectId
* @return
*/
public int deleteDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId);
}

@ -0,0 +1,61 @@
package com.hw.dms.service;
import java.util.List;
import com.hw.dms.domain.DmsBaseInspectStandard;
/**
* Service
*
* @author Open Platform
* @date 2024-01-17
*/
public interface IDmsBaseInspectStandardService
{
/**
*
*
* @param inspectStandardId
* @return
*/
public DmsBaseInspectStandard selectDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId);
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
public List<DmsBaseInspectStandard> selectDmsBaseInspectStandardList(DmsBaseInspectStandard dmsBaseInspectStandard);
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
public int insertDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard);
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
public int updateDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard);
/**
*
*
* @param inspectStandardIds
* @return
*/
public int deleteDmsBaseInspectStandardByInspectStandardIds(Long[] inspectStandardIds);
/**
*
*
* @param inspectStandardId
* @return
*/
public int deleteDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId);
}

@ -0,0 +1,61 @@
package com.hw.dms.service;
import java.util.List;
import com.hw.dms.domain.DmsPlanInspect;
/**
* Service
*
* @author Open Platform
* @date 2024-01-17
*/
public interface IDmsPlanInspectService
{
/**
*
*
* @param planInspectId
* @return
*/
public DmsPlanInspect selectDmsPlanInspectByPlanInspectId(Long planInspectId);
/**
*
*
* @param dmsPlanInspect
* @return
*/
public List<DmsPlanInspect> selectDmsPlanInspectList(DmsPlanInspect dmsPlanInspect);
/**
*
*
* @param dmsPlanInspect
* @return
*/
public int insertDmsPlanInspect(DmsPlanInspect dmsPlanInspect);
/**
*
*
* @param dmsPlanInspect
* @return
*/
public int updateDmsPlanInspect(DmsPlanInspect dmsPlanInspect);
/**
*
*
* @param planInspectIds
* @return
*/
public int deleteDmsPlanInspectByPlanInspectIds(Long[] planInspectIds);
/**
*
*
* @param planInspectId
* @return
*/
public int deleteDmsPlanInspectByPlanInspectId(Long planInspectId);
}

@ -0,0 +1,102 @@
package com.hw.dms.service.impl;
import java.util.List;
import com.hw.common.core.utils.DateUtils;
import com.hw.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hw.dms.mapper.DmsBaseInspectProjectMapper;
import com.hw.dms.domain.DmsBaseInspectProject;
import com.hw.dms.service.IDmsBaseInspectProjectService;
/**
* Service
*
* @author Open Platform
* @date 2024-01-17
*/
@Service
public class DmsBaseInspectProjectServiceImpl implements IDmsBaseInspectProjectService
{
@Autowired
private DmsBaseInspectProjectMapper dmsBaseInspectProjectMapper;
/**
*
*
* @param inspectProjectId
* @return
*/
@Override
public DmsBaseInspectProject selectDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId)
{
return dmsBaseInspectProjectMapper.selectDmsBaseInspectProjectByInspectProjectId(inspectProjectId);
}
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
@Override
public List<DmsBaseInspectProject> selectDmsBaseInspectProjectList(DmsBaseInspectProject dmsBaseInspectProject)
{
return dmsBaseInspectProjectMapper.selectDmsBaseInspectProjectList(dmsBaseInspectProject);
}
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
@Override
public int insertDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject)
{
LoginUser user = new LoginUser();
dmsBaseInspectProject.setIsFlag("1");
dmsBaseInspectProject.setCreateBy(user.getUsername());
dmsBaseInspectProject.setCreateTime(DateUtils.getNowDate());
return dmsBaseInspectProjectMapper.insertDmsBaseInspectProject(dmsBaseInspectProject);
}
/**
*
*
* @param dmsBaseInspectProject
* @return
*/
@Override
public int updateDmsBaseInspectProject(DmsBaseInspectProject dmsBaseInspectProject)
{
LoginUser user = new LoginUser();
dmsBaseInspectProject.setUpdateBy(user.getUsername());
dmsBaseInspectProject.setUpdateTime(DateUtils.getNowDate());
return dmsBaseInspectProjectMapper.updateDmsBaseInspectProject(dmsBaseInspectProject);
}
/**
*
*
* @param inspectProjectIds
* @return
*/
@Override
public int deleteDmsBaseInspectProjectByInspectProjectIds(Long[] inspectProjectIds)
{
return dmsBaseInspectProjectMapper.deleteDmsBaseInspectProjectByInspectProjectIds(inspectProjectIds);
}
/**
*
*
* @param inspectProjectId
* @return
*/
@Override
public int deleteDmsBaseInspectProjectByInspectProjectId(Long inspectProjectId)
{
return dmsBaseInspectProjectMapper.deleteDmsBaseInspectProjectByInspectProjectId(inspectProjectId);
}
}

@ -0,0 +1,102 @@
package com.hw.dms.service.impl;
import java.util.List;
import com.hw.common.core.utils.DateUtils;
import com.hw.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hw.dms.mapper.DmsBaseInspectStandardMapper;
import com.hw.dms.domain.DmsBaseInspectStandard;
import com.hw.dms.service.IDmsBaseInspectStandardService;
/**
* Service
*
* @author Open Platform
* @date 2024-01-17
*/
@Service
public class DmsBaseInspectStandardServiceImpl implements IDmsBaseInspectStandardService
{
@Autowired
private DmsBaseInspectStandardMapper dmsBaseInspectStandardMapper;
/**
*
*
* @param inspectStandardId
* @return
*/
@Override
public DmsBaseInspectStandard selectDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId)
{
return dmsBaseInspectStandardMapper.selectDmsBaseInspectStandardByInspectStandardId(inspectStandardId);
}
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
@Override
public List<DmsBaseInspectStandard> selectDmsBaseInspectStandardList(DmsBaseInspectStandard dmsBaseInspectStandard)
{
return dmsBaseInspectStandardMapper.selectDmsBaseInspectStandardList(dmsBaseInspectStandard);
}
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
@Override
public int insertDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard)
{
dmsBaseInspectStandard.setIsFlag("1");
LoginUser user = new LoginUser();
dmsBaseInspectStandard.setCreateBy(user.getUsername());
dmsBaseInspectStandard.setCreateTime(DateUtils.getNowDate());
return dmsBaseInspectStandardMapper.insertDmsBaseInspectStandard(dmsBaseInspectStandard);
}
/**
*
*
* @param dmsBaseInspectStandard
* @return
*/
@Override
public int updateDmsBaseInspectStandard(DmsBaseInspectStandard dmsBaseInspectStandard)
{
LoginUser user = new LoginUser();
dmsBaseInspectStandard.setUpdateBy(user.getUsername());
dmsBaseInspectStandard.setUpdateTime(DateUtils.getNowDate());
return dmsBaseInspectStandardMapper.updateDmsBaseInspectStandard(dmsBaseInspectStandard);
}
/**
*
*
* @param inspectStandardIds
* @return
*/
@Override
public int deleteDmsBaseInspectStandardByInspectStandardIds(Long[] inspectStandardIds)
{
return dmsBaseInspectStandardMapper.deleteDmsBaseInspectStandardByInspectStandardIds(inspectStandardIds);
}
/**
*
*
* @param inspectStandardId
* @return
*/
@Override
public int deleteDmsBaseInspectStandardByInspectStandardId(Long inspectStandardId)
{
return dmsBaseInspectStandardMapper.deleteDmsBaseInspectStandardByInspectStandardId(inspectStandardId);
}
}

@ -0,0 +1,102 @@
package com.hw.dms.service.impl;
import java.util.List;
import com.hw.common.core.utils.DateUtils;
import com.hw.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hw.dms.mapper.DmsPlanInspectMapper;
import com.hw.dms.domain.DmsPlanInspect;
import com.hw.dms.service.IDmsPlanInspectService;
/**
* Service
*
* @author Open Platform
* @date 2024-01-17
*/
@Service
public class DmsPlanInspectServiceImpl implements IDmsPlanInspectService
{
@Autowired
private DmsPlanInspectMapper dmsPlanInspectMapper;
/**
*
*
* @param planInspectId
* @return
*/
@Override
public DmsPlanInspect selectDmsPlanInspectByPlanInspectId(Long planInspectId)
{
return dmsPlanInspectMapper.selectDmsPlanInspectByPlanInspectId(planInspectId);
}
/**
*
*
* @param dmsPlanInspect
* @return
*/
@Override
public List<DmsPlanInspect> selectDmsPlanInspectList(DmsPlanInspect dmsPlanInspect)
{
return dmsPlanInspectMapper.selectDmsPlanInspectList(dmsPlanInspect);
}
/**
*
*
* @param dmsPlanInspect
* @return
*/
@Override
public int insertDmsPlanInspect(DmsPlanInspect dmsPlanInspect)
{
LoginUser user = new LoginUser();
dmsPlanInspect.setCreateBy(user.getUsername());
dmsPlanInspect.setIsFlag("1");
dmsPlanInspect.setCreateTime(DateUtils.getNowDate());
return dmsPlanInspectMapper.insertDmsPlanInspect(dmsPlanInspect);
}
/**
*
*
* @param dmsPlanInspect
* @return
*/
@Override
public int updateDmsPlanInspect(DmsPlanInspect dmsPlanInspect)
{
LoginUser user = new LoginUser();
dmsPlanInspect.setUpdateBy(user.getUsername());
dmsPlanInspect.setUpdateTime(DateUtils.getNowDate());
return dmsPlanInspectMapper.updateDmsPlanInspect(dmsPlanInspect);
}
/**
*
*
* @param planInspectIds
* @return
*/
@Override
public int deleteDmsPlanInspectByPlanInspectIds(Long[] planInspectIds)
{
return dmsPlanInspectMapper.deleteDmsPlanInspectByPlanInspectIds(planInspectIds);
}
/**
*
*
* @param planInspectId
* @return
*/
@Override
public int deleteDmsPlanInspectByPlanInspectId(Long planInspectId)
{
return dmsPlanInspectMapper.deleteDmsPlanInspectByPlanInspectId(planInspectId);
}
}

@ -0,0 +1,111 @@
<?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.hw.dms.mapper.DmsBaseInspectProjectMapper">
<resultMap type="DmsBaseInspectProject" id="DmsBaseInspectProjectResult">
<result property="inspectProjectId" column="inspect_project_id" />
<result property="inspectProjectCode" column="inspect_project_code" />
<result property="inspectProject" column="inspect_project" />
<result property="inspectType" column="inspect_type" />
<result property="recordMethod" column="record_method" />
<result property="upLimit" column="up_limit" />
<result property="lowLimit" column="low_limit" />
<result property="defValue" column="def_value" />
<result property="isFlag" column="is_flag" />
<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="selectDmsBaseInspectProjectVo">
select inspect_project_id, inspect_project_code, inspect_project, inspect_type, record_method, up_limit, low_limit, def_value, is_flag, remark, create_by, create_time, update_by, update_time from dms_base_inspect_project
</sql>
<select id="selectDmsBaseInspectProjectList" parameterType="DmsBaseInspectProject" resultMap="DmsBaseInspectProjectResult">
<include refid="selectDmsBaseInspectProjectVo"/>
<where>
<if test="inspectProjectCode != null and inspectProjectCode != ''"> and inspect_project_code = #{inspectProjectCode}</if>
<if test="inspectProject != null and inspectProject != ''"> and inspect_project = #{inspectProject}</if>
<if test="inspectType != null and inspectType != ''"> and inspect_type = #{inspectType}</if>
<if test="recordMethod != null and recordMethod != ''"> and record_method = #{recordMethod}</if>
<if test="upLimit != null "> and up_limit = #{upLimit}</if>
<if test="lowLimit != null "> and low_limit = #{lowLimit}</if>
<if test="defValue != null "> and def_value = #{defValue}</if>
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
</where>
</select>
<select id="selectDmsBaseInspectProjectByInspectProjectId" parameterType="Long" resultMap="DmsBaseInspectProjectResult">
<include refid="selectDmsBaseInspectProjectVo"/>
where inspect_project_id = #{inspectProjectId}
</select>
<insert id="insertDmsBaseInspectProject" parameterType="DmsBaseInspectProject" useGeneratedKeys="true" keyProperty="inspectProjectId">
insert into dms_base_inspect_project
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="inspectProjectCode != null">inspect_project_code,</if>
<if test="inspectProject != null and inspectProject != ''">inspect_project,</if>
<if test="inspectType != null and inspectType != ''">inspect_type,</if>
<if test="recordMethod != null">record_method,</if>
<if test="upLimit != null">up_limit,</if>
<if test="lowLimit != null">low_limit,</if>
<if test="defValue != null">def_value,</if>
<if test="isFlag != null and isFlag != ''">is_flag,</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="inspectProjectCode != null">#{inspectProjectCode},</if>
<if test="inspectProject != null and inspectProject != ''">#{inspectProject},</if>
<if test="inspectType != null and inspectType != ''">#{inspectType},</if>
<if test="recordMethod != null">#{recordMethod},</if>
<if test="upLimit != null">#{upLimit},</if>
<if test="lowLimit != null">#{lowLimit},</if>
<if test="defValue != null">#{defValue},</if>
<if test="isFlag != null and isFlag != ''">#{isFlag},</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="updateDmsBaseInspectProject" parameterType="DmsBaseInspectProject">
update dms_base_inspect_project
<trim prefix="SET" suffixOverrides=",">
<if test="inspectProjectCode != null">inspect_project_code = #{inspectProjectCode},</if>
<if test="inspectProject != null and inspectProject != ''">inspect_project = #{inspectProject},</if>
<if test="inspectType != null and inspectType != ''">inspect_type = #{inspectType},</if>
<if test="recordMethod != null">record_method = #{recordMethod},</if>
<if test="upLimit != null">up_limit = #{upLimit},</if>
<if test="lowLimit != null">low_limit = #{lowLimit},</if>
<if test="defValue != null">def_value = #{defValue},</if>
<if test="isFlag != null and isFlag != ''">is_flag = #{isFlag},</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 inspect_project_id = #{inspectProjectId}
</update>
<delete id="deleteDmsBaseInspectProjectByInspectProjectId" parameterType="Long">
delete from dms_base_inspect_project where inspect_project_id = #{inspectProjectId}
</delete>
<delete id="deleteDmsBaseInspectProjectByInspectProjectIds" parameterType="String">
delete from dms_base_inspect_project where inspect_project_id in
<foreach item="inspectProjectId" collection="array" open="(" separator="," close=")">
#{inspectProjectId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,101 @@
<?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.hw.dms.mapper.DmsBaseInspectStandardMapper">
<resultMap type="DmsBaseInspectStandard" id="DmsBaseInspectStandardResult">
<result property="inspectStandardId" column="inspect_standard_id" />
<result property="standardCode" column="standard_code" />
<result property="standardName" column="standard_name" />
<result property="inspectObjective" column="inspect_objective" />
<result property="inspectProjectId" column="inspect_project_id" />
<result property="inspectItemCount" column="inspect_item_count" />
<result property="isFlag" column="is_flag" />
<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="selectDmsBaseInspectStandardVo">
select inspect_standard_id, standard_code, standard_name, inspect_objective, inspect_project_id, inspect_item_count, is_flag, remark, create_by, create_time, update_by, update_time from dms_base_inspect_standard
</sql>
<select id="selectDmsBaseInspectStandardList" parameterType="DmsBaseInspectStandard" resultMap="DmsBaseInspectStandardResult">
<include refid="selectDmsBaseInspectStandardVo"/>
<where>
<if test="standardCode != null and standardCode != ''"> and standard_code = #{standardCode}</if>
<if test="standardName != null and standardName != ''"> and standard_name like concat('%', #{standardName}, '%')</if>
<if test="inspectObjective != null and inspectObjective != ''"> and inspect_objective = #{inspectObjective}</if>
<if test="inspectProjectId != null "> and inspect_project_id = #{inspectProjectId}</if>
<if test="inspectItemCount != null "> and inspect_item_count = #{inspectItemCount}</if>
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
</where>
</select>
<select id="selectDmsBaseInspectStandardByInspectStandardId" parameterType="Long" resultMap="DmsBaseInspectStandardResult">
<include refid="selectDmsBaseInspectStandardVo"/>
where inspect_standard_id = #{inspectStandardId}
</select>
<insert id="insertDmsBaseInspectStandard" parameterType="DmsBaseInspectStandard" useGeneratedKeys="true" keyProperty="inspectStandardId">
insert into dms_base_inspect_standard
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="standardCode != null">standard_code,</if>
<if test="standardName != null and standardName != ''">standard_name,</if>
<if test="inspectObjective != null">inspect_objective,</if>
<if test="inspectProjectId != null">inspect_project_id,</if>
<if test="inspectItemCount != null">inspect_item_count,</if>
<if test="isFlag != null and isFlag != ''">is_flag,</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="standardCode != null">#{standardCode},</if>
<if test="standardName != null and standardName != ''">#{standardName},</if>
<if test="inspectObjective != null">#{inspectObjective},</if>
<if test="inspectProjectId != null">#{inspectProjectId},</if>
<if test="inspectItemCount != null">#{inspectItemCount},</if>
<if test="isFlag != null and isFlag != ''">#{isFlag},</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="updateDmsBaseInspectStandard" parameterType="DmsBaseInspectStandard">
update dms_base_inspect_standard
<trim prefix="SET" suffixOverrides=",">
<if test="standardCode != null">standard_code = #{standardCode},</if>
<if test="standardName != null and standardName != ''">standard_name = #{standardName},</if>
<if test="inspectObjective != null">inspect_objective = #{inspectObjective},</if>
<if test="inspectProjectId != null">inspect_project_id = #{inspectProjectId},</if>
<if test="inspectItemCount != null">inspect_item_count = #{inspectItemCount},</if>
<if test="isFlag != null and isFlag != ''">is_flag = #{isFlag},</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 inspect_standard_id = #{inspectStandardId}
</update>
<delete id="deleteDmsBaseInspectStandardByInspectStandardId" parameterType="Long">
delete from dms_base_inspect_standard where inspect_standard_id = #{inspectStandardId}
</delete>
<delete id="deleteDmsBaseInspectStandardByInspectStandardIds" parameterType="String">
delete from dms_base_inspect_standard where inspect_standard_id in
<foreach item="inspectStandardId" collection="array" open="(" separator="," close=")">
#{inspectStandardId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,116 @@
<?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.hw.dms.mapper.DmsPlanInspectMapper">
<resultMap type="DmsPlanInspect" id="DmsPlanInspectResult">
<result property="planInspectId" column="plan_inspect_id" />
<result property="planInspectCode" column="plan_inspect_code" />
<result property="planInspectName" column="plan_inspect_name" />
<result property="inspectType" column="inspect_type" />
<result property="inspectRouteId" column="inspect_route_id" />
<result property="deviceAmount" column="device_amount" />
<result property="planTime" column="plan_time" />
<result property="cyclePeriod" column="cycle_period" />
<result property="performer" column="performer" />
<result property="isFlag" column="is_flag" />
<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="selectDmsPlanInspectVo">
select plan_inspect_id, plan_inspect_code, plan_inspect_name, inspect_type, inspect_route_id, device_amount, plan_time, cycle_period, performer, is_flag, remark, create_by, create_time, update_by, update_time from dms_plan_inspect
</sql>
<select id="selectDmsPlanInspectList" parameterType="DmsPlanInspect" resultMap="DmsPlanInspectResult">
<include refid="selectDmsPlanInspectVo"/>
<where>
<if test="planInspectCode != null and planInspectCode != ''"> and plan_inspect_code = #{planInspectCode}</if>
<if test="planInspectName != null and planInspectName != ''"> and plan_inspect_name like concat('%', #{planInspectName}, '%')</if>
<if test="inspectType != null and inspectType != ''"> and inspect_type = #{inspectType}</if>
<if test="inspectRouteId != null "> and inspect_route_id = #{inspectRouteId}</if>
<if test="deviceAmount != null "> and device_amount = #{deviceAmount}</if>
<if test="planTime != null "> and plan_time = #{planTime}</if>
<if test="cyclePeriod != null and cyclePeriod != ''"> and cycle_period = #{cyclePeriod}</if>
<if test="performer != null and performer != ''"> and performer = #{performer}</if>
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
</where>
</select>
<select id="selectDmsPlanInspectByPlanInspectId" parameterType="Long" resultMap="DmsPlanInspectResult">
<include refid="selectDmsPlanInspectVo"/>
where plan_inspect_id = #{planInspectId}
</select>
<insert id="insertDmsPlanInspect" parameterType="DmsPlanInspect" useGeneratedKeys="true" keyProperty="planInspectId">
insert into dms_plan_inspect
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="planInspectCode != null">plan_inspect_code,</if>
<if test="planInspectName != null">plan_inspect_name,</if>
<if test="inspectType != null">inspect_type,</if>
<if test="inspectRouteId != null">inspect_route_id,</if>
<if test="deviceAmount != null">device_amount,</if>
<if test="planTime != null">plan_time,</if>
<if test="cyclePeriod != null">cycle_period,</if>
<if test="performer != null">performer,</if>
<if test="isFlag != null and isFlag != ''">is_flag,</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="planInspectCode != null">#{planInspectCode},</if>
<if test="planInspectName != null">#{planInspectName},</if>
<if test="inspectType != null">#{inspectType},</if>
<if test="inspectRouteId != null">#{inspectRouteId},</if>
<if test="deviceAmount != null">#{deviceAmount},</if>
<if test="planTime != null">#{planTime},</if>
<if test="cyclePeriod != null">#{cyclePeriod},</if>
<if test="performer != null">#{performer},</if>
<if test="isFlag != null and isFlag != ''">#{isFlag},</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="updateDmsPlanInspect" parameterType="DmsPlanInspect">
update dms_plan_inspect
<trim prefix="SET" suffixOverrides=",">
<if test="planInspectCode != null">plan_inspect_code = #{planInspectCode},</if>
<if test="planInspectName != null">plan_inspect_name = #{planInspectName},</if>
<if test="inspectType != null">inspect_type = #{inspectType},</if>
<if test="inspectRouteId != null">inspect_route_id = #{inspectRouteId},</if>
<if test="deviceAmount != null">device_amount = #{deviceAmount},</if>
<if test="planTime != null">plan_time = #{planTime},</if>
<if test="cyclePeriod != null">cycle_period = #{cyclePeriod},</if>
<if test="performer != null">performer = #{performer},</if>
<if test="isFlag != null and isFlag != ''">is_flag = #{isFlag},</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 plan_inspect_id = #{planInspectId}
</update>
<delete id="deleteDmsPlanInspectByPlanInspectId" parameterType="Long">
delete from dms_plan_inspect where plan_inspect_id = #{planInspectId}
</delete>
<delete id="deleteDmsPlanInspectByPlanInspectIds" parameterType="String">
delete from dms_plan_inspect where plan_inspect_id in
<foreach item="planInspectId" collection="array" open="(" separator="," close=")">
#{planInspectId}
</foreach>
</delete>
</mapper>

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询巡检项目信息列表
export function listDmsBaseInspectProject(query) {
return request({
url: '/dms/dmsBaseInspectProject/list',
method: 'get',
params: query
})
}
// 查询巡检项目信息详细
export function getDmsBaseInspectProject(inspectProjectId) {
return request({
url: '/dms/dmsBaseInspectProject/' + inspectProjectId,
method: 'get'
})
}
// 新增巡检项目信息
export function addDmsBaseInspectProject(data) {
return request({
url: '/dms/dmsBaseInspectProject',
method: 'post',
data: data
})
}
// 修改巡检项目信息
export function updateDmsBaseInspectProject(data) {
return request({
url: '/dms/dmsBaseInspectProject',
method: 'put',
data: data
})
}
// 删除巡检项目信息
export function delDmsBaseInspectProject(inspectProjectId) {
return request({
url: '/dms/dmsBaseInspectProject/' + inspectProjectId,
method: 'delete'
})
}

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询巡检标准信息列表
export function listDmsBaseInspectStandard(query) {
return request({
url: '/dms/dmsBaseInspectStandard/list',
method: 'get',
params: query
})
}
// 查询巡检标准信息详细
export function getDmsBaseInspectStandard(inspectStandardId) {
return request({
url: '/dms/dmsBaseInspectStandard/' + inspectStandardId,
method: 'get'
})
}
// 新增巡检标准信息
export function addDmsBaseInspectStandard(data) {
return request({
url: '/dms/dmsBaseInspectStandard',
method: 'post',
data: data
})
}
// 修改巡检标准信息
export function updateDmsBaseInspectStandard(data) {
return request({
url: '/dms/dmsBaseInspectStandard',
method: 'put',
data: data
})
}
// 删除巡检标准信息
export function delDmsBaseInspectStandard(inspectStandardId) {
return request({
url: '/dms/dmsBaseInspectStandard/' + inspectStandardId,
method: 'delete'
})
}

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询巡检计划信息列表
export function listDmsPlanInspect(query) {
return request({
url: '/dms/dmsPlanInspect/list',
method: 'get',
params: query
})
}
// 查询巡检计划信息详细
export function getDmsPlanInspect(planInspectId) {
return request({
url: '/dms/dmsPlanInspect/' + planInspectId,
method: 'get'
})
}
// 新增巡检计划信息
export function addDmsPlanInspect(data) {
return request({
url: '/dms/dmsPlanInspect',
method: 'post',
data: data
})
}
// 修改巡检计划信息
export function updateDmsPlanInspect(data) {
return request({
url: '/dms/dmsPlanInspect',
method: 'put',
data: data
})
}
// 删除巡检计划信息
export function delDmsPlanInspect(planInspectId) {
return request({
url: '/dms/dmsPlanInspect/' + planInspectId,
method: 'delete'
})
}

@ -0,0 +1,371 @@
<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="inspectProjectCode">
<el-input
v-model="queryParams.inspectProjectCode"
placeholder="请输入项目编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="巡检项目" prop="inspectProject">
<el-input
v-model="queryParams.inspectProject"
placeholder="请输入巡检项目"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="记录方式" prop="recordMethod">-->
<!-- <el-input-->
<!-- v-model="queryParams.recordMethod"-->
<!-- placeholder="请输入记录方式"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="上限" prop="upLimit">-->
<!-- <el-input-->
<!-- v-model="queryParams.upLimit"-->
<!-- placeholder="请输入上限"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="下限" prop="lowLimit">-->
<!-- <el-input-->
<!-- v-model="queryParams.lowLimit"-->
<!-- placeholder="请输入下限"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="默认值" prop="defValue">-->
<!-- <el-input-->
<!-- v-model="queryParams.defValue"-->
<!-- 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="['dms:dmsBaseInspectProject: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="['dms:dmsBaseInspectProject: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="['dms:dmsBaseInspectProject: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="['dms:dmsBaseInspectProject:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="dmsBaseInspectProjectList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="主键标识" align="center" prop="inspectProjectId" />-->
<el-table-column label="项目编号" align="center" prop="inspectProjectCode" />
<el-table-column label="巡检项目" align="center" prop="inspectProject" />
<!-- <el-table-column label="检查类型(1巡检,2点检)" align="center" prop="inspectType" />-->
<!-- <el-table-column label="检查类型" align="center" prop="inspectType">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="记录方式" align="center" prop="recordMethod" />
<el-table-column label="上限" align="center" prop="upLimit" />
<el-table-column label="下限" align="center" prop="lowLimit" />
<el-table-column label="默认值" align="center" prop="defValue" />
<!-- <el-table-column label="是否标识1-是0-否" align="center" prop="isFlag" />-->
<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="['dms:dmsBaseInspectProject:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['dms:dmsBaseInspectProject: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="inspectProjectCode">
<el-input v-model="form.inspectProjectCode" placeholder="请输入项目编号" />
</el-form-item>
<el-form-item label="巡检项目" prop="inspectProject">
<el-input v-model="form.inspectProject" placeholder="请输入巡检项目" />
</el-form-item>
<el-form-item label="记录方式" prop="recordMethod">
<el-input v-model="form.recordMethod" placeholder="请输入记录方式" />
</el-form-item>
<!-- <el-form-item label="检查类型" prop="checkState">-->
<!-- <el-radio-group v-model="form.inspectType">-->
<!-- <el-radio-->
<!-- v-for="dict in dict.type.dms_inspect_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.value"-->
<!-- >{{dict.label}}</el-radio>-->
<!-- </el-radio-group>-->
<!-- </el-form-item>-->
<el-form-item label="上限" prop="upLimit">
<el-input v-model="form.upLimit" placeholder="请输入上限" />
</el-form-item>
<el-form-item label="下限" prop="lowLimit">
<el-input v-model="form.lowLimit" placeholder="请输入下限" />
</el-form-item>
<el-form-item label="默认值" prop="defValue">
<el-input v-model="form.defValue" placeholder="请输入默认值" />
</el-form-item>
<!-- <el-form-item label="是否标识1-是0-否" prop="isFlag">-->
<!-- <el-input v-model="form.isFlag" placeholder="请输入是否标识1-是0-否" />-->
<!-- </el-form-item>-->
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" 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 { listDmsBaseInspectProject, getDmsBaseInspectProject, delDmsBaseInspectProject, addDmsBaseInspectProject, updateDmsBaseInspectProject } from "@/api/dms/dmsBaseInspectProject";
export default {
name: "DmsBaseInspectProject",
dicts:['dms_inspect_type'],
data() {
return {
inspectType:'',
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
dmsBaseInspectProjectList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
inspectProjectCode: null,
inspectProject: null,
inspectType: null,
recordMethod: null,
upLimit: null,
lowLimit: null,
defValue: null,
isFlag: null,
},
//
form: {},
//
rules: {
inspectProject: [
{ required: true, message: "巡检项目不能为空", trigger: "blur" }
],
inspectType: [
{ required: true, message: "检查类型(1巡检,2点检)不能为空", trigger: "change" }
],
isFlag: [
{ required: true, message: "是否标识1-是0-否不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询巡检项目信息列表 */
getList() {
if (this.$route.path=='/dms/inspect/dmsBaseInspectProject')
{
this.queryParams.inspectType =1
this.inspectType = 1
}
else
{
this.queryParams.inspectType = 2
this.inspectType= 2
}
this.loading = true;
listDmsBaseInspectProject(this.queryParams).then(response => {
this.dmsBaseInspectProjectList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
inspectProjectId: null,
inspectProjectCode: null,
inspectProject: null,
inspectType: null,
recordMethod: null,
upLimit: null,
lowLimit: null,
defValue: null,
isFlag: 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.inspectProjectId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加巡检项目信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const inspectProjectId = row.inspectProjectId || this.ids
getDmsBaseInspectProject(inspectProjectId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改巡检项目信息";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.inspectProjectId != null) {
this.form.inspectType = this.inspectType
updateDmsBaseInspectProject(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
this.form.inspectType = this.inspectType
addDmsBaseInspectProject(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const inspectProjectIds = row.inspectProjectId || this.ids;
this.$modal.confirm('是否确认删除巡检项目信息编号为"' + inspectProjectIds + '"的数据项?').then(function() {
return delDmsBaseInspectProject(inspectProjectIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('dms/dmsBaseInspectProject/export', {
...this.queryParams
}, `dmsBaseInspectProject_${new Date().getTime()}.xlsx`)
}
}
};
</script>

@ -106,11 +106,11 @@
</el-table-column>
<el-table-column label="线路名称" align="center" prop="routeName" />
<!-- <el-table-column label="线路类型(1巡检,2点检)" align="center" prop="inspectType" />-->
<el-table-column label="线路类型" align="center" prop="inspectType">
<template slot-scope="scope">
<dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>
</template>
</el-table-column>
<!-- <el-table-column label="线路类型" align="center" prop="inspectType">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="循环周期" align="center" prop="cyclePeriod" />
<!-- <el-table-column label="设备类型ID关联dms_base_device_type的device_type_id" align="center" prop="deviceTypeId" />-->
<el-table-column label="设备类型" align="center" prop="deviceTypeId" >
@ -180,15 +180,15 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="线路类型" prop="checkState">
<el-radio-group v-model="form.inspectType">
<el-radio
v-for="dict in dict.type.dms_inspect_type"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<!-- <el-form-item label="线路类型" prop="checkState">-->
<!-- <el-radio-group v-model="form.inspectType">-->
<!-- <el-radio-->
<!-- v-for="dict in dict.type.dms_inspect_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.value"-->
<!-- >{{dict.label}}</el-radio>-->
<!-- </el-radio-group>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="是否标识1-是0-否" prop="isFlag">-->
<!-- <el-input v-model="form.isFlag" placeholder="请输入是否标识1-是0-否" />-->
<!-- </el-form-item>-->
@ -213,6 +213,7 @@ export default {
dicts:['dms_inspect_type'],
data() {
return {
inspectType:'',
devicetypeList:[],
//
loading: true,
@ -275,6 +276,16 @@ export default {
},
/** 查询巡检线路信息列表 */
getList() {
if (this.$route.path=='/dms/inspect/dmsBaseInspectRoute')
{
this.queryParams.inspectType =1;
this.inspectType = 1;
}
else
{
this.queryParams.inspectType = 2
this.inspectType = 2;
}
this.loading = true;
listDmsBaseInspectRoute(this.queryParams).then(response => {
this.dmsBaseInspectRouteList = response.rows;
@ -342,12 +353,14 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.inspectRouteId != null) {
this.form.inspectType = this.inspectType;
updateDmsBaseInspectRoute(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
this.form.inspectType = this.inspectType;
addDmsBaseInspectRoute(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;

@ -0,0 +1,372 @@
<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="standardCode">
<el-input
v-model="queryParams.standardCode"
placeholder="请输入标准编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="标准名称" prop="standardName">
<el-input
v-model="queryParams.standardName"
placeholder="请输入标准名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="巡检目的" prop="inspectObjective">-->
<!-- <el-input-->
<!-- v-model="queryParams.inspectObjective"-->
<!-- placeholder="请输入巡检目的"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="巡检项目ID关联dms_base_inspect_project的inspect_project_id" prop="inspectProjectId">-->
<!-- <el-input-->
<!-- v-model="queryParams.inspectProjectId"-->
<!-- placeholder="请输入巡检项目ID关联dms_base_inspect_project的inspect_project_id"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="检查项总数" prop="inspectItemCount">-->
<!-- <el-input-->
<!-- v-model="queryParams.inspectItemCount"-->
<!-- placeholder="请输入检查项总数"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="是否标识1-是0-否" prop="isFlag">-->
<!-- <el-input-->
<!-- v-model="queryParams.isFlag"-->
<!-- placeholder="请输入是否标识1-是0-否"-->
<!-- 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="['dms:dmsBaseInspectStandard: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="['dms:dmsBaseInspectStandard: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="['dms:dmsBaseInspectStandard: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="['dms:dmsBaseInspectStandard:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="dmsBaseInspectStandardList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="主键标识" align="center" prop="inspectStandardId" />-->
<el-table-column label="标准编号" align="center" prop="standardCode" />
<el-table-column label="标准名称" align="center" prop="standardName" />
<el-table-column label="巡检目的" align="center" prop="inspectObjective" />
<!-- <el-table-column label="巡检项目ID关联dms_base_inspect_project的inspect_project_id" align="center" prop="inspectProjectId" />-->
<el-table-column label="巡检线路" align="center" prop="inspectProjectId" >
<template slot-scope="scope">
<span
v-for="(item, index) in dmsBaseInspectProjectList"
:key="index"
:value="item.dmsBaseInspectRouteList"
v-if="scope.row.inspectProjectId == item.inspectProjectId"
>
{{ item.inspectProject }}
</span>
</template>
</el-table-column>
<el-table-column label="检查项总数" align="center" prop="inspectItemCount" />
<!-- <el-table-column label="是否标识1-是0-否" align="center" prop="isFlag" />-->
<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="['dms:dmsBaseInspectStandard:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['dms:dmsBaseInspectStandard: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="100px">
<el-form-item label="标准编号" prop="standardCode">
<el-input v-model="form.standardCode" placeholder="请输入标准编号" />
</el-form-item>
<el-form-item label="标准名称" prop="standardName">
<el-input v-model="form.standardName" placeholder="请输入标准名称" />
</el-form-item>
<el-form-item label="巡检目的" prop="inspectObjective">
<el-input v-model="form.inspectObjective" placeholder="请输入巡检目的" />
</el-form-item>
<!-- <el-form-item label="巡检项目ID关联dms_base_inspect_project的inspect_project_id" prop="inspectProjectId">-->
<!-- <el-input v-model="form.inspectProjectId" placeholder="请输入巡检项目ID关联dms_base_inspect_project的inspect_project_id" />-->
<!-- </el-form-item>-->
<el-form-item label="巡检线路" prop="inspectProjectId" >
<el-select v-model="form.inspectProjectId" placeholder="请输入设备类型">
<el-option
v-for="item in dmsBaseInspectProjectList"
:key="item.inspectProjectId"
:label="item.inspectProject"
:value="item.inspectProjectId">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="检查项总数" prop="inspectItemCount">
<el-input v-model="form.inspectItemCount" placeholder="请输入检查项总数" />
</el-form-item>
<!-- <el-form-item label="是否标识1-是0-否" prop="isFlag">-->
<!-- <el-input v-model="form.isFlag" placeholder="请输入是否标识1-是0-否" />-->
<!-- </el-form-item>-->
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" 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 { listDmsBaseInspectStandard, getDmsBaseInspectStandard, delDmsBaseInspectStandard, addDmsBaseInspectStandard, updateDmsBaseInspectStandard } from "@/api/dms/dmsBaseInspectStandard";
import { listDmsBaseInspectProject } from '@/api/dms/dmsBaseInspectProject'
export default {
name: "DmsBaseInspectStandard",
data() {
return {
dmsBaseInspectProjectList:[],
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
dmsBaseInspectStandardList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
standardCode: null,
standardName: null,
inspectObjective: null,
inspectProjectId: null,
inspectItemCount: null,
isFlag: null,
},
//
form: {},
//
rules: {
standardName: [
{ required: true, message: "标准名称不能为空", trigger: "blur" }
],
inspectProjectId: [
{ required: true, message: "巡检项目ID关联dms_base_inspect_project的inspect_project_id不能为空", trigger: "blur" }
],
isFlag: [
{ required: true, message: "是否标识1-是0-否不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
this.getProject();
},
methods: {
/** 查询巡检项目信息列表 */
getProject() {
listDmsBaseInspectProject(this.queryParams).then(response => {
this.dmsBaseInspectProjectList = response.rows;
});
},
/** 查询巡检标准信息列表 */
getList() {
// if (this.$route.path=='/dms/inspect/dmsBaseInspectStandard')
// {
// this.queryParams.inspectType =1
// }
// else
// {
// this.queryParams.inspectType = 2
// }
this.loading = true;
listDmsBaseInspectStandard(this.queryParams).then(response => {
this.dmsBaseInspectStandardList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
inspectStandardId: null,
standardCode: null,
standardName: null,
inspectObjective: null,
inspectProjectId: null,
inspectItemCount: null,
isFlag: 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.inspectStandardId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加巡检标准信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const inspectStandardId = row.inspectStandardId || this.ids
getDmsBaseInspectStandard(inspectStandardId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改巡检标准信息";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.inspectStandardId != null) {
updateDmsBaseInspectStandard(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addDmsBaseInspectStandard(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const inspectStandardIds = row.inspectStandardId || this.ids;
this.$modal.confirm('是否确认删除巡检标准信息编号为"' + inspectStandardIds + '"的数据项?').then(function() {
return delDmsBaseInspectStandard(inspectStandardIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('dms/dmsBaseInspectStandard/export', {
...this.queryParams
}, `dmsBaseInspectStandard_${new Date().getTime()}.xlsx`)
}
}
};
</script>

@ -285,8 +285,9 @@ export default {
console.log(inspectRouteid)
this.inspectRouteIdCheck = inspectRouteid;
this.queryParams.inspectRouteId = inspectRouteid;
this.getList(this.queryParams);
this.getRoute(this.queryParams);
this.form.inspectRouteId = inspectRouteid;
this.getList();
this.getRoute();
this.getDevice();
},
methods: {
@ -307,6 +308,14 @@ export default {
},
/** 查询巡检线路明细列表 */
getList() {
// if (this.$route.path=='/dms/inspect/dmsInspectRouteDetail')
// {
// this.queryParams.inspectType =1
// }
// else
// {
// this.queryParams.inspectType = 2
// }
this.loading = true;
listDmsInspectRouteDetail(this.queryParams).then(response => {
this.dmsInspectRouteDetailList = response.rows;
@ -352,6 +361,7 @@ export default {
handleAdd() {
this.reset();
this.open = true;
this.form.inspectRouteId = this.inspectRouteIdCheck;
this.title = "添加巡检线路明细";
},
/** 修改按钮操作 */

@ -0,0 +1,427 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small"
:inline="true" v-show="showSearch" label-width="96px">
<el-form-item label="计划编号" prop="planInspectCode">
<el-input
v-model="queryParams.planInspectCode"
placeholder="请输入计划编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="计划名称" prop="planInspectName">
<el-input
v-model="queryParams.planInspectName"
placeholder="请输入计划名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="巡检线路ID关联dm_base_inspect_route的inspect_route_id" prop="inspectRouteId">-->
<!-- <el-input-->
<!-- v-model="queryParams.inspectRouteId"-->
<!-- placeholder="请输入巡检线路ID关联dm_base_inspect_route的inspect_route_id"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="设备总数" prop="deviceAmount">-->
<!-- <el-input-->
<!-- v-model="queryParams.deviceAmount"-->
<!-- placeholder="请输入设备总数"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<el-form-item label="计划巡检时间" prop="planTime">
<el-date-picker clearable
v-model="queryParams.planTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择计划巡检时间">
</el-date-picker>
</el-form-item>
<!-- <el-form-item label="循环周期" prop="cyclePeriod">-->
<!-- <el-input-->
<!-- v-model="queryParams.cyclePeriod"-->
<!-- placeholder="请输入循环周期"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="执行人员" prop="performer">-->
<!-- <el-input-->
<!-- v-model="queryParams.performer"-->
<!-- placeholder="请输入执行人员"-->
<!-- clearable-->
<!-- @keyup.enter.native="handleQuery"-->
<!-- />-->
<!-- </el-form-item>-->
<!-- <el-form-item label="是否标识1-是0-否" prop="isFlag">-->
<!-- <el-input-->
<!-- v-model="queryParams.isFlag"-->
<!-- placeholder="请输入是否标识1-是0-否"-->
<!-- 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="['dms:dmsPlanInspect: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="['dms:dmsPlanInspect: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="['dms:dmsPlanInspect: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="['dms:dmsPlanInspect:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="dmsPlanInspectList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<!-- <el-table-column label="主键标识" align="center" prop="planInspectId" />-->
<el-table-column label="计划编号" align="center" prop="planInspectCode" />
<el-table-column label="计划名称" align="center" prop="planInspectName" />
<!-- <el-table-column label="检查类型(1巡检,2点检)" align="center" prop="inspectType" />-->
<!-- <el-table-column label="巡检类型" align="center" prop="inspectType">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="巡检线路ID关联dm_base_inspect_route的inspect_route_id" align="center" prop="inspectRouteId" />-->
<el-table-column label="巡检线路" align="center" prop="inspectRouteId" >
<template slot-scope="scope">
<span
v-for="(item, index) in dmsBaseInspectRouteList"
:key="index"
:value="item.dmsBaseInspectRouteList"
v-if="scope.row.inspectRouteId == item.routeCode"
>
{{ item.routeName }}
</span>
</template>
</el-table-column>
<el-table-column label="设备总数" align="center" prop="deviceAmount" />
<el-table-column label="计划巡检时间" align="center" prop="planTime" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.planTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="循环周期" align="center" prop="cyclePeriod" />
<el-table-column label="执行人员" align="center" prop="performer" />
<!-- <el-table-column label="是否标识1-是0-否" align="center" prop="isFlag" />-->
<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="['dms:dmsPlanInspect:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['dms:dmsPlanInspect: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="120px">
<el-form-item label="计划编号" prop="planInspectCode">
<el-input v-model="form.planInspectCode" placeholder="请输入计划编号" />
</el-form-item>
<el-form-item label="计划名称" prop="planInspectName">
<el-input v-model="form.planInspectName" placeholder="请输入计划名称" />
</el-form-item>
<!-- <el-form-item label="巡检线路ID关联dm_base_inspect_route的inspect_route_id" prop="inspectRouteId">-->
<!-- <el-input v-model="form.inspectRouteId" placeholder="请输入巡检线路ID关联dm_base_inspect_route的inspect_route_id" />-->
<!-- </el-form-item>-->
<el-form-item label="巡检线路" prop="inspectRouteId" >
<el-select v-model="form.inspectRouteId" placeholder="请输入设备类型">
<el-option
v-for="item in dmsBaseInspectRouteList"
:key="item.inspectRouteId"
:label="item.routeName"
:value="item.inspectRouteId">
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="巡检类型" prop="checkState">-->
<!-- <el-radio-group v-model="form.inspectType">-->
<!-- <el-radio-->
<!-- v-for="dict in dict.type.dms_inspect_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.value"-->
<!-- >{{dict.label}}</el-radio>-->
<!-- </el-radio-group>-->
<!-- </el-form-item>-->
<el-form-item label="设备总数" prop="deviceAmount">
<el-input v-model="form.deviceAmount" placeholder="请输入设备总数" />
</el-form-item>
<el-form-item label="计划巡检时间" prop="planTime">
<el-date-picker clearable
v-model="form.planTime"
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择计划巡检时间">
</el-date-picker>
</el-form-item>
<el-form-item label="循环周期" prop="cyclePeriod">
<el-input v-model="form.cyclePeriod" placeholder="请输入循环周期" />
</el-form-item>
<el-form-item label="执行人员" prop="performer">
<el-input v-model="form.performer" placeholder="请输入执行人员" />
</el-form-item>
<!-- <el-form-item label="是否标识1-是0-否" prop="isFlag">-->
<!-- <el-input v-model="form.isFlag" placeholder="请输入是否标识1-是0-否" />-->
<!-- </el-form-item>-->
<el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" type="textarea" 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 { listDmsPlanInspect, getDmsPlanInspect, delDmsPlanInspect, addDmsPlanInspect, updateDmsPlanInspect } from "@/api/dms/dmsPlanInspect";
import { listDmsBaseInspectRoute } from '@/api/dms/dmsBaseInspectRoute'
export default {
name: "DmsPlanInspect",
dicts:['dms_inspect_type'],
data() {
return {
inspectType:'',
dmsBaseInspectRouteList:[],
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
dmsPlanInspectList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
planInspectCode: null,
planInspectName: null,
inspectType: null,
inspectRouteId: null,
deviceAmount: null,
planTime: null,
cyclePeriod: null,
performer: null,
isFlag: null,
},
//
form: {},
//
rules: {
isFlag: [
{ required: true, message: "是否标识1-是0-否不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
this.getRoute();
},
methods: {
/** 查询巡检线路信息列表 */
getRoute() {
listDmsBaseInspectRoute(this.queryParams).then(response => {
this.dmsBaseInspectRouteList = response.rows;
});
},
/** 查询巡检计划信息列表 */
getList() {
if (this.$route.path=='/dms/inspect/dmsPlanInspect')
{
this.queryParams.inspectType =1
this.inspectType = 1
}
else
{
this.queryParams.inspectType = 2
this.inspectType = 2
}
this.loading = true;
listDmsPlanInspect(this.queryParams).then(response => {
this.dmsPlanInspectList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
planInspectId: null,
planInspectCode: null,
planInspectName: null,
inspectType: null,
inspectRouteId: null,
deviceAmount: null,
planTime: null,
cyclePeriod: null,
performer: null,
isFlag: 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.planInspectId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加巡检计划信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const planInspectId = row.planInspectId || this.ids
getDmsPlanInspect(planInspectId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改巡检计划信息";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.planInspectId != null) {
this.form.inspectType = this.inspectType;
updateDmsPlanInspect(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
this.form.inspectType = this.inspectType;
addDmsPlanInspect(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const planInspectIds = row.planInspectId || this.ids;
this.$modal.confirm('是否确认删除巡检计划信息编号为"' + planInspectIds + '"的数据项?').then(function() {
return delDmsPlanInspect(planInspectIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('dms/dmsPlanInspect/export', {
...this.queryParams
}, `dmsPlanInspect_${new Date().getTime()}.xlsx`)
}
}
};
</script>

@ -82,27 +82,27 @@
</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="['dms:dmsRecordInspect: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="['dms:dmsRecordInspect:edit']"
>修改</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- plain-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="handleAdd"-->
<!-- v-hasPermi="['dms:dmsRecordInspect: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="['dms:dmsRecordInspect:edit']"-->
<!-- >修改</el-button>-->
<!-- </el-col>-->
<el-col :span="1.5">
<el-button
type="danger"
@ -132,11 +132,11 @@
<!-- <el-table-column label="主键标识" align="center" prop="recordInspectId" />-->
<el-table-column label="巡检单号" align="center" prop="billsInspectCode" />
<!-- <el-table-column label="检查类型(1巡检,2点检)" align="center" prop="inspectType" />-->
<el-table-column label="检查类型" align="center" prop="inspectType">
<template slot-scope="scope">
<dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>
</template>
</el-table-column>
<!-- <el-table-column label="检查类型" align="center" prop="inspectType">-->
<!-- <template slot-scope="scope">-->
<!-- <dict-tag :options="dict.type.dms_inspect_type" :value="scope.row.inspectType"/>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="巡检线路,关联dms_base_inspect_route的inspect_route_id" align="center" prop="inspectRouteId" />-->
<el-table-column label="巡检线路" align="center" prop="inspectRouteId" >
<template slot-scope="scope">
@ -178,13 +178,13 @@
<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="['dms:dmsRecordInspect:edit']"
>修改</el-button>
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-edit"-->
<!-- @click="handleUpdate(scope.row)"-->
<!-- v-hasPermi="['dms:dmsRecordInspect:edit']"-->
<!-- >修改</el-button>-->
<el-button
size="mini"
type="text"
@ -206,7 +206,7 @@
<!-- 添加或修改巡检记录对话框 -->
<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 ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="巡检单号" prop="billsInspectCode">
<el-input v-model="form.billsInspectCode" placeholder="请输入巡检单号" />
</el-form-item>
@ -253,15 +253,15 @@
<el-form-item label="执行人员" prop="performer">
<el-input v-model="form.performer" placeholder="请输入执行人员" />
</el-form-item>
<el-form-item label="线路类型" prop="checkState">
<el-radio-group v-model="form.inspectType">
<el-radio
v-for="dict in dict.type.dms_inspect_type"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<!-- <el-form-item label="线路类型" prop="checkState">-->
<!-- <el-radio-group v-model="form.inspectType">-->
<!-- <el-radio-->
<!-- v-for="dict in dict.type.dms_inspect_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.value"-->
<!-- >{{dict.label}}</el-radio>-->
<!-- </el-radio-group>-->
<!-- </el-form-item>-->
<el-form-item label="巡检状态" prop="checkState">
<el-radio-group v-model="form.inspectStatus">
<el-radio
@ -298,6 +298,7 @@ export default {
dicts:['dms_inspect_type','dms_inspect_status'],
data() {
return {
inspectTypes:'',
dmsBaseInspectRouteList:[],
//
loading: true,
@ -360,6 +361,17 @@ export default {
},
/** 查询巡检记录列表 */
getList() {
if (this.$route.path=='/dms/inspect/dmsRecordInspect')
{
this.queryParams.inspectType =1;
this.inspectTypes = 1;
}
else
{
this.inspectTypes = 2;
this.queryParams.inspectType = 2
}
console.log(this.$route)
this.loading = true;
listDmsRecordInspect(this.queryParams).then(response => {
this.dmsRecordInspectList = response.rows;
@ -432,12 +444,14 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.recordInspectId != null) {
updateDmsRecordInspect(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
this.form.inspectType = this.inspectTypes;
addDmsRecordInspect(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;

@ -427,8 +427,8 @@ import {
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import toggleMenuLeftImg from '@/assets/images/togglemenu-left.png'
import toggleMenuRightImg from '@/assets/images/togglemenu-right.png'
// import toggleMenuLeftImg from '@/assets/images/togglemenu-left.png'
// import toggleMenuRightImg from '@/assets/images/togglemenu-right.png'
export default {
name: "Wmslocation",

Loading…
Cancel
Save