Commit 7d73c9206639e5f39a69b2333b18939ce3b62fda

Authored by 273548560@qq.com
1 parent c8bdb389

修复bug

trash-ui/src/views/activiti/task/index.vue
@@ -870,7 +870,6 @@ export default { @@ -870,7 +870,6 @@ export default {
870 return; 870 return;
871 } 871 }
872 if (this.definitionKey == "workflow_casefile") { 872 if (this.definitionKey == "workflow_casefile") {
873 - debugger;  
874 873
875 if (this.taskName == "车辆所属企业" || this.taskName == "渣土办科员") { 874 if (this.taskName == "车辆所属企业" || this.taskName == "渣土办科员") {
876 console.log(this.businessKey); 875 console.log(this.businessKey);
@@ -1028,8 +1027,6 @@ export default { @@ -1028,8 +1027,6 @@ export default {
1028 this.form.formData[0].userNames = userNames; 1027 this.form.formData[0].userNames = userNames;
1029 //表里存中文 1028 //表里存中文
1030 handleAffairsForm.userNames = userNames.join(","); 1029 handleAffairsForm.userNames = userNames.join(",");
1031 - console.log(this.form)  
1032 - console.log(handleAffairsForm)  
1033 1030
1034 updateHandleAffairs(handleAffairsForm).then(res => { 1031 updateHandleAffairs(handleAffairsForm).then(res => {
1035 formDataSave(this.id, this.form.formData).then(response => { 1032 formDataSave(this.id, this.form.formData).then(response => {
trash-ui/src/views/casefile/violationCaseFile/index.vue
@@ -81,14 +81,13 @@ @@ -81,14 +81,13 @@
81 <el-table v-loading="loading" :data="violationCaseFileList" @selection-change="handleSelectionChange"> 81 <el-table v-loading="loading" :data="violationCaseFileList" @selection-change="handleSelectionChange">
82 <el-table-column type="selection" width="55" align="center" /> 82 <el-table-column type="selection" width="55" align="center" />
83 <el-table-column label="所属区域" align="center" prop="owningRegion" /> 83 <el-table-column label="所属区域" align="center" prop="owningRegion" />
  84 + <el-table-column label="违规对象" align="center" prop="projectName" />
84 <el-table-column label="违规对象类型" align="center" prop="violationObjectType"> 85 <el-table-column label="违规对象类型" align="center" prop="violationObjectType">
85 <template slot-scope="scope"> 86 <template slot-scope="scope">
86 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"消纳场":"企业"}}</span> 87 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"消纳场":"企业"}}</span>
87 </template> 88 </template>
88 </el-table-column> 89 </el-table-column>
89 <el-table-column label="违规类型" align="center" prop="violationType" /> 90 <el-table-column label="违规类型" align="center" prop="violationType" />
90 - <el-table-column label="项目名称" align="center" prop="projectName" />  
91 - <el-table-column label="企业名称" align="center" prop="companyName" />  
92 <el-table-column label="审批状态" align="center" prop="status"> 91 <el-table-column label="审批状态" align="center" prop="status">
93 <template slot-scope="scope"> 92 <template slot-scope="scope">
94 <span>{{parseStatus(scope.row.status) }}</span> 93 <span>{{parseStatus(scope.row.status) }}</span>
@@ -99,9 +98,9 @@ @@ -99,9 +98,9 @@
99 <el-button 98 <el-button
100 size="mini" 99 size="mini"
101 type="text" 100 type="text"
102 - icon="el-icon-edit" 101 + icon="el-icon-view"
103 @click="handleInfo(scope.row)" 102 @click="handleInfo(scope.row)"
104 - v-hasPermi="['casefile:violationCaseFile:view']" 103 + v-hasPermi="['casefile:violationCaseFile:edit']"
105 >详情</el-button> 104 >详情</el-button>
106 <!-- <el-button--> 105 <!-- <el-button-->
107 <!-- size="mini"--> 106 <!-- size="mini"-->
@@ -175,10 +174,8 @@ @@ -175,10 +174,8 @@
175 </el-col> 174 </el-col>
176 <el-col :span="11"> 175 <el-col :span="11">
177 <el-form-item label="违规对象" prop="projectName"> 176 <el-form-item label="违规对象" prop="projectName">
178 - <el-select v-model="form.projectName" :filterable="true" placeholder="请输入项目名称" style="width: 100%;">  
179 - <el-option v-for="item in data" :key="item.name" :label="item.name" :value="item.name" @click.native="getObjId(item)"  
180 - v-if="form.place == item.areaCode"  
181 - /> 177 + <el-select v-model="form.projectName" :filterable="true" :remote-method="projectNameLoadOptions" :loading="isLoading" placeholder="请输入项目名称" style="width: 100%;">
  178 + <el-option v-for="item in projectNameList" :key="item.name" :label="item.name" :value="item.name"></el-option>
182 </el-select> 179 </el-select>
183 </el-form-item> 180 </el-form-item>
184 </el-col> 181 </el-col>
trash-ui/src/views/casefile/violationWarningInformation/index.vue
@@ -73,14 +73,13 @@ @@ -73,14 +73,13 @@
73 <el-table v-loading="loading" :data="violationWarningInformationList" @selection-change="handleSelectionChange"> 73 <el-table v-loading="loading" :data="violationWarningInformationList" @selection-change="handleSelectionChange">
74 <el-table-column type="selection" width="55" align="center" /> 74 <el-table-column type="selection" width="55" align="center" />
75 <el-table-column label="所属区域" align="center" prop="owningRegion" /> 75 <el-table-column label="所属区域" align="center" prop="owningRegion" />
  76 + <el-table-column label="违规对象" align="center" prop="projectName" />
76 <el-table-column label="违规对象类型" align="center" prop="violationObjectType" > 77 <el-table-column label="违规对象类型" align="center" prop="violationObjectType" >
77 <template slot-scope="scope"> 78 <template slot-scope="scope">
78 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"消纳场":"企业"}}</span> 79 <span>{{scope.row.violationObjectType == 0 ? "工地" :scope.row.violationObjectType == 1 ?"消纳场":"企业"}}</span>
79 </template> 80 </template>
80 </el-table-column> 81 </el-table-column>
81 <el-table-column label="违规类型" align="center" prop="violationType" /> 82 <el-table-column label="违规类型" align="center" prop="violationType" />
82 - <el-table-column label="项目名称" align="center" prop="projectName" />  
83 - <el-table-column label="企业名称" align="center" prop="companyName" />  
84 <el-table-column label="日期" align="center" prop="createTime"/> 83 <el-table-column label="日期" align="center" prop="createTime"/>
85 <el-table-column label="审批状态" align="center" prop="status"> 84 <el-table-column label="审批状态" align="center" prop="status">
86 <template slot-scope="scope"> 85 <template slot-scope="scope">
trash-workFlow/src/main/java/com/trash/casefile/domain/ViolationCaseFile.java
@@ -21,64 +21,71 @@ public class ViolationCaseFile extends BaseEntity @@ -21,64 +21,71 @@ public class ViolationCaseFile extends BaseEntity
21 private Long id; 21 private Long id;
22 22
23 /** 案卷编号 */ 23 /** 案卷编号 */
24 - @Excel(name = "案卷编号")  
25 private String number; 24 private String number;
26 25
27 - /** 违规对象类型 */  
28 - @Excel(name = "违规对象类型")  
29 - private String violationObjectType;  
30 -  
31 /** 所属区域 */ 26 /** 所属区域 */
32 @Excel(name = "所属区域") 27 @Excel(name = "所属区域")
33 private String owningRegion; 28 private String owningRegion;
34 29
  30 + /** 项目名称 */
  31 + @Excel(name = "违规对象")
  32 + private String projectName;
  33 +
  34 + /** 违规对象类型 */
  35 + @Excel(name = "违规对象类型",readConverterExp = "0=工地,1=消纳场,2=企业")
  36 + private String violationObjectType;
  37 +
  38 +
35 /** 违规类型 */ 39 /** 违规类型 */
36 @Excel(name = "违规类型") 40 @Excel(name = "违规类型")
37 private String violationType; 41 private String violationType;
38 42
39 /** 违规等级 */ 43 /** 违规等级 */
40 - @Excel(name = "违规等级")  
41 private String violationGrade; 44 private String violationGrade;
42 45
43 - /** 项目名称 */  
44 - @Excel(name = "项目名称")  
45 - private String projectName; 46 +
46 47
47 /** 企业名称 */ 48 /** 企业名称 */
48 - @Excel(name = "企业名称")  
49 private String companyName; 49 private String companyName;
50 50
51 /** 违规描述 */ 51 /** 违规描述 */
52 - @Excel(name = "违规描述")  
53 private String describe; 52 private String describe;
54 53
55 /** 推送对象 */ 54 /** 推送对象 */
56 - @Excel(name = "推送对象")  
57 private String sendObject; 55 private String sendObject;
58 56
  57 + @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  58 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  59 + private Date createTime;
  60 +
59 /** 审批状态 */ 61 /** 审批状态 */
60 - @Excel(name = "审批状态") 62 + @Excel(name = "审批状态",readConverterExp = "0=审批中,1=审批通过,2=被驳回")
61 private Integer status; 63 private Integer status;
62 64
63 /** 接收人 */ 65 /** 接收人 */
64 - @Excel(name = "接收人")  
65 private String receive; 66 private String receive;
66 67
67 /** 接收状态 */ 68 /** 接收状态 */
68 - @Excel(name = "接收状态")  
69 private Integer receiveStatus; 69 private Integer receiveStatus;
70 70
71 /** 阅览人 */ 71 /** 阅览人 */
72 - @Excel(name = "阅览人")  
73 private String readBy; 72 private String readBy;
74 73
75 /** 阅览时间 */ 74 /** 阅览时间 */
76 - @JsonFormat(pattern = "yyyy-MM-dd")  
77 - @Excel(name = "阅览时间", width = 30, dateFormat = "yyyy-MM-dd")  
78 private Date readTime; 75 private Date readTime;
79 76
80 private String abbreviation; 77 private String abbreviation;
81 78
  79 + @Override
  80 + public Date getCreateTime() {
  81 + return createTime;
  82 + }
  83 +
  84 + @Override
  85 + public void setCreateTime(Date createTime) {
  86 + this.createTime = createTime;
  87 + }
  88 +
82 public String getAbbreviation() { 89 public String getAbbreviation() {
83 return abbreviation; 90 return abbreviation;
84 } 91 }
trash-workFlow/src/main/java/com/trash/casefile/domain/ViolationWarningInformation.java
@@ -33,6 +33,12 @@ public class ViolationWarningInformation extends BaseEntity { @@ -33,6 +33,12 @@ public class ViolationWarningInformation extends BaseEntity {
33 */ 33 */
34 @Excel(name = "所属区域") 34 @Excel(name = "所属区域")
35 private String owningRegion; 35 private String owningRegion;
  36 +
  37 + /**
  38 + * 项目名称
  39 + */
  40 + @Excel(name = "违规对象")
  41 + private String projectName;
36 /** 42 /**
37 * 违规对象类型 43 * 违规对象类型
38 */ 44 */
@@ -50,16 +56,11 @@ public class ViolationWarningInformation extends BaseEntity { @@ -50,16 +56,11 @@ public class ViolationWarningInformation extends BaseEntity {
50 */ 56 */
51 private String violationGrade; 57 private String violationGrade;
52 58
53 - /**  
54 - * 项目名称  
55 - */  
56 - @Excel(name = "项目名称")  
57 - private String projectName; 59 +
58 60
59 /** 61 /**
60 * 企业名称 62 * 企业名称
61 */ 63 */
62 - @Excel(name = "企业名称")  
63 private String companyName; 64 private String companyName;
64 65
65 @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") 66 @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
trash-workFlow/src/main/java/com/trash/casefile/kafka/Consumer.java
@@ -86,6 +86,9 @@ public class Consumer { @@ -86,6 +86,9 @@ public class Consumer {
86 throw new RuntimeException("获取公司列表失败!!!"); 86 throw new RuntimeException("获取公司列表失败!!!");
87 } 87 }
88 88
  89 + if(basevehicleInfo==null){
  90 + throw new RuntimeException("获取公司详情失败!vehicleId:"+jsonObject.getString("vehicleId"));
  91 + }
89 //这两种类型无需累加 92 //这两种类型无需累加
90 if(violationType.equals("工地预警-视频设备离线超时报警") || violationType.equals("消纳场预警-视频设备离线超时报警")){ 93 if(violationType.equals("工地预警-视频设备离线超时报警") || violationType.equals("消纳场预警-视频设备离线超时报警")){
91 violationWarningInformation1 = null; 94 violationWarningInformation1 = null;