diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java
index 3be1c65d..9d141824 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/PublicStateEnum.java
@@ -21,6 +21,10 @@ public enum PublicStateEnum {
VIDEO_OFFLINE("2", "离线"),
VIDEO_UNKNOWN("3", "未知"),
/**********************************视频设备***************************************/
+
+ /**********************************材料进场取样复试***************************************/
+ CHECK_STATE_SJ("1", "送检中"),
+ /**********************************材料进场取样复试***************************************/
COMZGS("1","子公司状态标识");
private final String code;
diff --git a/ruoyi-ui/src/views/project/checkDetection/index.vue b/ruoyi-ui/src/views/project/checkDetection/index.vue
index 6701f6f6..1adb3b78 100644
--- a/ruoyi-ui/src/views/project/checkDetection/index.vue
+++ b/ruoyi-ui/src/views/project/checkDetection/index.vue
@@ -27,6 +27,54 @@
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
搜索
@@ -116,13 +166,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ parseTime(scope.row.checkTime, '{y}-{m}-{d}') }}
-
-
+
+
+
+
+
+
+
+
+
+
@@ -172,6 +244,43 @@
>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
@@ -206,7 +322,7 @@ import { listCheckDetection, getCheckDetection, delCheckDetection, addCheckDetec
export default {
name: "CheckDetection",
- dicts: ['check_detection_check_type'],
+ dicts: ['sys_yes_no', 'project_checking_result', 'check_detection_check_type'],
data() {
return {
// 遮罩层
@@ -236,10 +352,15 @@ export default {
projectId: null,
deptId: null,
checkType: null,
+ materialName: null,
+ usePosition: null,
+ sampleNum: null,
+ sampleUserName: null,
+ witnessUserName: null,
+ laboratoryName: null,
checkTime: null,
checkState: null,
detectionResult: null,
- detectionFile: null,
},
// 表单参数
form: {},
@@ -278,6 +399,16 @@ export default {
projectId: null,
deptId: null,
checkType: null,
+ materialName: null,
+ usePosition: null,
+ sampleNum: null,
+ qualifiedFlag: null,
+ represenNum: null,
+ sampleUser: null,
+ sampleUserName: null,
+ witnessUser: null,
+ witnessUserName: null,
+ laboratoryName: null,
checkTime: null,
checkState: null,
detectionResult: null,
diff --git a/ruoyi-ui/src/views/project/materialSeal/index.vue b/ruoyi-ui/src/views/project/materialSeal/index.vue
index ffafb6e6..8e6a280d 100644
--- a/ruoyi-ui/src/views/project/materialSeal/index.vue
+++ b/ruoyi-ui/src/views/project/materialSeal/index.vue
@@ -449,18 +449,16 @@ export default {
this.form.alterationFiles = fileUrls;
},
onlyFile() {
- if (this.form.contractBrand && this.form.useBrand) {
- if (this.form.contractBrand != this.form.useBrand) {
- this.isOnly = true;
- this.rules.alterationFiles[0].required = true;
- } else {
- this.isOnly = false;
- this.form.alterationFiles = null;
- this.rules.alterationFiles[0].required = false;
- }
+ if (
+ this.form.contractBrand &&
+ this.form.useBrand &&
+ this.form.contractBrand.indexOf(this.form.useBrand) == -1
+ ) {
+ this.isOnly = true;
+ this.rules.alterationFiles[0].required = true;
} else {
this.isOnly = false;
- this.form.alterationFiles = null;
+ this.alterationFiles = null;
this.rules.alterationFiles[0].required = false;
}
},
diff --git a/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue b/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue
index 5b4e2111..0a55a030 100644
--- a/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue
+++ b/ruoyi-ui/src/views/project/materialSeal/projectMaterialSealDrawer.vue
@@ -369,14 +369,12 @@ export default {
if (
this.form.contractBrand &&
this.form.useBrand &&
- this.form.contractBrand != this.form.useBrand
+ this.form.contractBrand.indexOf(this.form.useBrand) == -1
) {
- console.log("qqqq");
- //this.isOnly = true;
+ this.isOnly = true;
this.rules.alterationFiles[0].required = true;
} else {
- console.log("qqqq22222");
- //this.isOnly = false;
+ this.isOnly = false;
this.alterationFiles = null;
this.rules.alterationFiles[0].required = false;
}
diff --git a/ruoyi-wechat/src/main/java/com/ruoyi/web/project/controller/ProjectDetectionController.java b/ruoyi-wechat/src/main/java/com/ruoyi/web/project/controller/ProjectDetectionController.java
new file mode 100644
index 00000000..8e820423
--- /dev/null
+++ b/ruoyi-wechat/src/main/java/com/ruoyi/web/project/controller/ProjectDetectionController.java
@@ -0,0 +1,111 @@
+package com.ruoyi.web.project.controller;
+
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.domain.entity.SysDictData;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.enums.PublicStateEnum;
+import com.ruoyi.system.service.ISysDictDataService;
+import com.yanzhu.jh.project.domain.SurProjectCheckDetection;
+import com.yanzhu.jh.project.service.ISurProjectCheckDetectionService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+/**
+ * @version : V1.0
+ * @ClassName: ProjectCheckDetectionController
+ * @Description: 项目取样复试
+ * @Auther: JiangYuQi
+ * @Date: 2020/7/7 18:03
+ */
+@RestController
+@RequestMapping("/wechat/projectDetection")
+public class ProjectDetectionController extends BaseController {
+
+ @Autowired
+ ISysDictDataService sysDictDataService;
+
+ @Autowired
+ private ISurProjectCheckDetectionService surProjectCheckDetectionService;
+
+ /**
+ * 查询项目取样复试列表
+ * @param surProjectCheckDetection
+ * @return
+ */
+ @GetMapping("/list")
+ public AjaxResult list(SurProjectCheckDetection surProjectCheckDetection){
+ if(surProjectCheckDetection.getDeptId()==0){
+ surProjectCheckDetection.setDeptId(null);
+ }
+ return success(surProjectCheckDetectionService.selectSurProjectCheckDetectionList(surProjectCheckDetection));
+ }
+
+ /**
+ * 查询项目取样复试统计
+ * @param surProjectCheckDetection
+ * @return
+ */
+ @GetMapping("/queryCount")
+ public AjaxResult queryCount(SurProjectCheckDetection surProjectCheckDetection){
+ if(surProjectCheckDetection.getDeptId()==0){
+ surProjectCheckDetection.setDeptId(null);
+ }
+ return success(surProjectCheckDetectionService.queryGroupCount(surProjectCheckDetection));
+ }
+
+ /**
+ * 查询取样复试详情
+ * @param id
+ * @return
+ */
+ @GetMapping("/info")
+ public AjaxResult info(Long id){
+ return success(surProjectCheckDetectionService.selectSurProjectCheckDetectionById(id));
+ }
+
+ /**
+ * 新增取样复试
+ * @param surProjectCheckDetection
+ * @return
+ */
+ @PostMapping("/add")
+ @Log(title = "取样复试", businessType = BusinessType.INSERT)
+ public AjaxResult add(@RequestBody SurProjectCheckDetection surProjectCheckDetection){
+ return success(surProjectCheckDetectionService.insertSurProjectCheckDetection(surProjectCheckDetection));
+ }
+
+ /**
+ * 修改取样复试
+ * @param surProjectCheckDetection
+ * @return
+ */
+ @PostMapping("/edit")
+ @Log(title = "取样复试", businessType = BusinessType.UPDATE)
+ public AjaxResult edit(@RequestBody SurProjectCheckDetection surProjectCheckDetection){
+ return success(surProjectCheckDetectionService.updateSurProjectCheckDetection(surProjectCheckDetection));
+ }
+
+ /**
+ * 删除取样复试
+ */
+ @Log(title = "取样复试", businessType = BusinessType.DELETE)
+ @GetMapping("/remove")
+ public AjaxResult remove(@RequestParam Long id)
+ {
+ return toAjax(surProjectCheckDetectionService.deleteSurProjectCheckDetectionById(id));
+ }
+
+ /**
+ * 查询隐患类型
+ * @return
+ */
+ @GetMapping("/queryType")
+ public AjaxResult queryType(){
+ SysDictData dictData = new SysDictData();
+ dictData.setDictType("check_detection_check_type");
+ dictData.setStatus(PublicStateEnum.OK.getCode());
+ return success(sysDictDataService.selectDictDataList(dictData));
+ }
+}
diff --git a/ruoyi-wechat/src/main/java/com/ruoyi/web/project/controller/ProjectMaterialSealController.java b/ruoyi-wechat/src/main/java/com/ruoyi/web/project/controller/ProjectMaterialSealController.java
index bd5550f9..f5602f6c 100644
--- a/ruoyi-wechat/src/main/java/com/ruoyi/web/project/controller/ProjectMaterialSealController.java
+++ b/ruoyi-wechat/src/main/java/com/ruoyi/web/project/controller/ProjectMaterialSealController.java
@@ -53,7 +53,7 @@ public class ProjectMaterialSealController extends BaseController {
*/
@PostMapping("/add")
@Log(title = "材料封样", businessType = BusinessType.INSERT)
- public AjaxResult addTrain(@RequestBody SurProjectMaterialSeal surProjectMaterialSeal){
+ public AjaxResult add(@RequestBody SurProjectMaterialSeal surProjectMaterialSeal){
return success(surProjectMaterialSealService.insertSurProjectMaterialSeal(surProjectMaterialSeal));
}
diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/controller/SurProjectCheckDetectionController.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/controller/SurProjectCheckDetectionController.java
index dc41b40e..bfb5b181 100644
--- a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/controller/SurProjectCheckDetectionController.java
+++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/controller/SurProjectCheckDetectionController.java
@@ -25,7 +25,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* 材料送检Controller
*
* @author JiangYuQi
- * @date 2023-08-26
+ * @date 2023-08-31
*/
@RestController
@RequestMapping("/project/checkDetection")
diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/domain/SurProjectCheckDetection.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/domain/SurProjectCheckDetection.java
index a3c0f0ca..83452e48 100644
--- a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/domain/SurProjectCheckDetection.java
+++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/domain/SurProjectCheckDetection.java
@@ -11,7 +11,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* 材料送检对象 sur_project_check_detection
*
* @author JiangYuQi
- * @date 2023-08-26
+ * @date 2023-08-31
*/
public class SurProjectCheckDetection extends BaseEntity
{
@@ -32,6 +32,46 @@ public class SurProjectCheckDetection extends BaseEntity
@Excel(name = "送检类型")
private String checkType;
+ /** 材料名称 */
+ @Excel(name = "材料名称")
+ private String materialName;
+
+ /** 使用部位 */
+ @Excel(name = "使用部位")
+ private String usePosition;
+
+ /** 取样数量 */
+ @Excel(name = "取样数量")
+ private String sampleNum;
+
+ /** 提供合格证 */
+ @Excel(name = "提供合格证")
+ private String qualifiedFlag;
+
+ /** 代表数量 */
+ @Excel(name = "代表数量")
+ private String represenNum;
+
+ /** 取样人 */
+ @Excel(name = "取样人")
+ private String sampleUser;
+
+ /** 取样人名称 */
+ @Excel(name = "取样人名称")
+ private String sampleUserName;
+
+ /** 见证人 */
+ @Excel(name = "见证人")
+ private String witnessUser;
+
+ /** 见证人名称 */
+ @Excel(name = "见证人名称")
+ private String witnessUserName;
+
+ /** 实验室名称 */
+ @Excel(name = "实验室名称")
+ private String laboratoryName;
+
/** 送检时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "送检时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -49,6 +89,14 @@ public class SurProjectCheckDetection extends BaseEntity
@Excel(name = "检测报告")
private String detectionFile;
+ /** 数据状态 */
+ @Excel(name = "数据状态")
+ private String isDel;
+
+ private String checkTypeName;
+ private String projectName;
+ private String deptName;
+
public void setId(Long id)
{
this.id = id;
@@ -85,6 +133,96 @@ public class SurProjectCheckDetection extends BaseEntity
{
return checkType;
}
+ public void setMaterialName(String materialName)
+ {
+ this.materialName = materialName;
+ }
+
+ public String getMaterialName()
+ {
+ return materialName;
+ }
+ public void setUsePosition(String usePosition)
+ {
+ this.usePosition = usePosition;
+ }
+
+ public String getUsePosition()
+ {
+ return usePosition;
+ }
+ public void setSampleNum(String sampleNum)
+ {
+ this.sampleNum = sampleNum;
+ }
+
+ public String getSampleNum()
+ {
+ return sampleNum;
+ }
+ public void setQualifiedFlag(String qualifiedFlag)
+ {
+ this.qualifiedFlag = qualifiedFlag;
+ }
+
+ public String getQualifiedFlag()
+ {
+ return qualifiedFlag;
+ }
+ public void setRepresenNum(String represenNum)
+ {
+ this.represenNum = represenNum;
+ }
+
+ public String getRepresenNum()
+ {
+ return represenNum;
+ }
+ public void setSampleUser(String sampleUser)
+ {
+ this.sampleUser = sampleUser;
+ }
+
+ public String getSampleUser()
+ {
+ return sampleUser;
+ }
+ public void setSampleUserName(String sampleUserName)
+ {
+ this.sampleUserName = sampleUserName;
+ }
+
+ public String getSampleUserName()
+ {
+ return sampleUserName;
+ }
+ public void setWitnessUser(String witnessUser)
+ {
+ this.witnessUser = witnessUser;
+ }
+
+ public String getWitnessUser()
+ {
+ return witnessUser;
+ }
+ public void setWitnessUserName(String witnessUserName)
+ {
+ this.witnessUserName = witnessUserName;
+ }
+
+ public String getWitnessUserName()
+ {
+ return witnessUserName;
+ }
+ public void setLaboratoryName(String laboratoryName)
+ {
+ this.laboratoryName = laboratoryName;
+ }
+
+ public String getLaboratoryName()
+ {
+ return laboratoryName;
+ }
public void setCheckTime(Date checkTime)
{
this.checkTime = checkTime;
@@ -122,6 +260,38 @@ public class SurProjectCheckDetection extends BaseEntity
return detectionFile;
}
+ public String getProjectName() {
+ return projectName;
+ }
+
+ public void setProjectName(String projectName) {
+ this.projectName = projectName;
+ }
+
+ public String getDeptName() {
+ return deptName;
+ }
+
+ public void setDeptName(String deptName) {
+ this.deptName = deptName;
+ }
+
+ public String getIsDel() {
+ return isDel;
+ }
+
+ public void setIsDel(String isDel) {
+ this.isDel = isDel;
+ }
+
+ public String getCheckTypeName() {
+ return checkTypeName;
+ }
+
+ public void setCheckTypeName(String checkTypeName) {
+ this.checkTypeName = checkTypeName;
+ }
+
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -129,6 +299,16 @@ public class SurProjectCheckDetection extends BaseEntity
.append("projectId", getProjectId())
.append("deptId", getDeptId())
.append("checkType", getCheckType())
+ .append("materialName", getMaterialName())
+ .append("usePosition", getUsePosition())
+ .append("sampleNum", getSampleNum())
+ .append("qualifiedFlag", getQualifiedFlag())
+ .append("represenNum", getRepresenNum())
+ .append("sampleUser", getSampleUser())
+ .append("sampleUserName", getSampleUserName())
+ .append("witnessUser", getWitnessUser())
+ .append("witnessUserName", getWitnessUserName())
+ .append("laboratoryName", getLaboratoryName())
.append("checkTime", getCheckTime())
.append("checkState", getCheckState())
.append("detectionResult", getDetectionResult())
diff --git a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/mapper/SurProjectCheckDetectionMapper.java b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/mapper/SurProjectCheckDetectionMapper.java
index dbc1acfa..5ed64b52 100644
--- a/yanzhu-jh/src/main/java/com/yanzhu/jh/project/mapper/SurProjectCheckDetectionMapper.java
+++ b/yanzhu-jh/src/main/java/com/yanzhu/jh/project/mapper/SurProjectCheckDetectionMapper.java
@@ -1,13 +1,15 @@
package com.yanzhu.jh.project.mapper;
import java.util.List;
+import java.util.Map;
+
import com.yanzhu.jh.project.domain.SurProjectCheckDetection;
/**
* 材料送检Mapper接口
*
* @author JiangYuQi
- * @date 2023-08-26
+ * @date 2023-08-31
*/
public interface SurProjectCheckDetectionMapper
{
@@ -59,5 +61,20 @@ public interface SurProjectCheckDetectionMapper
*/
public int deleteSurProjectCheckDetectionByIds(Long[] ids);
+ /**
+ * 分组查询检测统计
+ *
+ * @param where 材料送检
+ * @return 结果
+ */
public List groupByCheckType(SurProjectCheckDetection where);
+
+ /**
+ * 查询材料送检统计
+ *
+ * @param surProjectCheckDetection 材料送检
+ * @return 材料送检集合
+ */
+ public List