@@ -984,7 +1020,7 @@ import {
selectRectifyRecordListApi,
addQualityRectifyRecordApi
} from '@/assets/js/api/quality.js'
-import { getProjectChilderSystemUserListApi } from '@/assets/js/api/configManage.js'
+import { getProjectChilderSystemUserListApi, getLaborManagementInfoListApi } from '@/assets/js/api/configManage.js'
import { VueCropper } from 'vue-cropper'
import {
getSubdivisionProjectApi //所有分部分项工程, 以父子节点形式呈现
@@ -1004,7 +1040,9 @@ export default {
fileUrl: '',
additionalRemarks: '',
qualityId: '',
+ violatorId: "",
},//未整改回复
+ personList: [],
dialogDetil: false,
detailData: {},
fileListRectification: [],
@@ -1175,6 +1213,14 @@ export default {
},
mounted() { },
methods: {
+ //查询劳务和管理人员列表
+loadPersonList(sn) {
+ getLaborManagementInfoListApi({
+ projectSn: sn,
+ }).then((res) => {
+ this.personList = res.result;
+ });
+ },
//关闭视频
closeBtn() {
this.isShow = false
@@ -1207,8 +1253,10 @@ export default {
rectifyTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
fileUrl: '',
additionalRemarks: '',
+ violatorId: "",
}
this.fileListRectification = []
+ this.loadPersonList(item.projectSn);
},
//提交整改回复
rectifAdd(valId, statusType, type) {
@@ -1255,7 +1303,10 @@ export default {
this.$message.error('请选择整改时间')
return;
}
-
+ if (this.replyData.violatorId == "" && type == 1 && statusType == 2) {
+ this.$message.error("请选择违章人员");
+ return;
+ }
this.replyData.qualityId = valId
this.replyData.createUser = this.userIdInfo
console.log('整改提交的表单数据:::', this.replyData);
diff --git a/src/views/projectFront/safeSame/recordsModule/inspectionRecord.vue b/src/views/projectFront/safeSame/recordsModule/inspectionRecord.vue
index 4f98aac3..1e6b4efa 100644
--- a/src/views/projectFront/safeSame/recordsModule/inspectionRecord.vue
+++ b/src/views/projectFront/safeSame/recordsModule/inspectionRecord.vue
@@ -773,6 +773,10 @@
>
{{
item.status == 2 ? '合格' : '不合格'
}}
+
+
+ 违章人员:{{ personList.find(ele => ele.id == item.violatorId).workerName }}
驳回说明:
+
+
+
+
+ * 违章人员:
+
+
+
+
+
+
+
+
+
+
@@ -984,7 +1020,7 @@ import {
selectSafeRectifyRecordListApi,
addSafeQualityRectifyRecordApi
} from '@/assets/js/api/quality.js'
-import { getProjectChilderSystemUserListApi } from '@/assets/js/api/configManage.js'
+import { getProjectChilderSystemUserListApi, getLaborManagementInfoListApi } from '@/assets/js/api/configManage.js'
import { VueCropper } from 'vue-cropper'
import {
getSubdivisionProjectApi //所有分部分项工程, 以父子节点形式呈现
@@ -1004,7 +1040,9 @@ export default {
fileUrl: '',
additionalRemarks: '',
qualityId: '',
+ violatorId: "",
},//未整改回复
+ personList: [],
dialogDetil: false,
detailData: {},
fileListRectification: [],
@@ -1175,6 +1213,14 @@ export default {
},
mounted() { },
methods: {
+ //查询劳务和管理人员列表
+loadPersonList(sn) {
+ getLaborManagementInfoListApi({
+ projectSn: sn,
+ }).then((res) => {
+ this.personList = res.result;
+ });
+ },
//关闭视频
closeBtn() {
this.isShow = false
@@ -1207,8 +1253,10 @@ export default {
rectifyTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
fileUrl: '',
additionalRemarks: '',
+ violatorId: "",
}
this.fileListRectification = []
+ this.loadPersonList(item.projectSn);
},
//提交整改回复
rectifAdd(valId, statusType, type) {
@@ -1255,7 +1303,10 @@ export default {
this.$message.error('请选择整改时间')
return;
}
-
+if (this.replyData.violatorId == "" && type == 1 && statusType == 2) {
+ this.$message.error("请选择违章人员");
+ return;
+ }
this.replyData.qualityId = valId
this.replyData.createUser = this.userIdInfo
console.log('整改提交的表单数据:::', this.replyData);