flx:安全/质量 新增违章人员
This commit is contained in:
parent
805996f577
commit
2bd0fe61e0
@ -774,6 +774,10 @@
|
|||||||
item.status == 2 ? '合格' : '不合格'
|
item.status == 2 ? '合格' : '不合格'
|
||||||
}}</span>
|
}}</span>
|
||||||
</p>
|
</p>
|
||||||
|
<p class="grid-content" v-if="item.type == 1 && item.violatorId">
|
||||||
|
<span class="label">违章人员:</span
|
||||||
|
><span class="value">{{ personList.find(ele => ele.id == item.violatorId).workerName }}</span>
|
||||||
|
</p>
|
||||||
<p class="grid-content" v-if="item.status == 1">
|
<p class="grid-content" v-if="item.status == 1">
|
||||||
<span class="label">驳回说明:</span
|
<span class="label">驳回说明:</span
|
||||||
><span class="value">{{ item.additionalRemarks }}</span>
|
><span class="value">{{ item.additionalRemarks }}</span>
|
||||||
@ -855,6 +859,38 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row :gutter="20" v-if="detailData.status == 2">
|
||||||
|
<el-col :span="24">
|
||||||
|
<div class="grid-content">
|
||||||
|
<span
|
||||||
|
class="label"
|
||||||
|
style="line-height: 30px; width: 90px"
|
||||||
|
>
|
||||||
|
<span style="color: red">* </span>违章人员:</span
|
||||||
|
>
|
||||||
|
|
||||||
|
<span
|
||||||
|
class="value"
|
||||||
|
style="width: calc(100% - 90px); margin-left: 0px"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="replyData.violatorId"
|
||||||
|
filterable
|
||||||
|
size="mini"
|
||||||
|
placeholder="请选择"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in personList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.workerName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="grid-content">
|
<div class="grid-content">
|
||||||
@ -984,7 +1020,7 @@ import {
|
|||||||
selectRectifyRecordListApi,
|
selectRectifyRecordListApi,
|
||||||
addQualityRectifyRecordApi
|
addQualityRectifyRecordApi
|
||||||
} from '@/assets/js/api/quality.js'
|
} 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 { VueCropper } from 'vue-cropper'
|
||||||
import {
|
import {
|
||||||
getSubdivisionProjectApi //所有分部分项工程, 以父子节点形式呈现
|
getSubdivisionProjectApi //所有分部分项工程, 以父子节点形式呈现
|
||||||
@ -1004,7 +1040,9 @@ export default {
|
|||||||
fileUrl: '',
|
fileUrl: '',
|
||||||
additionalRemarks: '',
|
additionalRemarks: '',
|
||||||
qualityId: '',
|
qualityId: '',
|
||||||
|
violatorId: "",
|
||||||
},//未整改回复
|
},//未整改回复
|
||||||
|
personList: [],
|
||||||
dialogDetil: false,
|
dialogDetil: false,
|
||||||
detailData: {},
|
detailData: {},
|
||||||
fileListRectification: [],
|
fileListRectification: [],
|
||||||
@ -1175,6 +1213,14 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() { },
|
mounted() { },
|
||||||
methods: {
|
methods: {
|
||||||
|
//查询劳务和管理人员列表
|
||||||
|
loadPersonList(sn) {
|
||||||
|
getLaborManagementInfoListApi({
|
||||||
|
projectSn: sn,
|
||||||
|
}).then((res) => {
|
||||||
|
this.personList = res.result;
|
||||||
|
});
|
||||||
|
},
|
||||||
//关闭视频
|
//关闭视频
|
||||||
closeBtn() {
|
closeBtn() {
|
||||||
this.isShow = false
|
this.isShow = false
|
||||||
@ -1207,8 +1253,10 @@ export default {
|
|||||||
rectifyTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
rectifyTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
||||||
fileUrl: '',
|
fileUrl: '',
|
||||||
additionalRemarks: '',
|
additionalRemarks: '',
|
||||||
|
violatorId: "",
|
||||||
}
|
}
|
||||||
this.fileListRectification = []
|
this.fileListRectification = []
|
||||||
|
this.loadPersonList(item.projectSn);
|
||||||
},
|
},
|
||||||
//提交整改回复
|
//提交整改回复
|
||||||
rectifAdd(valId, statusType, type) {
|
rectifAdd(valId, statusType, type) {
|
||||||
@ -1255,7 +1303,10 @@ export default {
|
|||||||
this.$message.error('请选择整改时间')
|
this.$message.error('请选择整改时间')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.replyData.violatorId == "" && type == 1 && statusType == 2) {
|
||||||
|
this.$message.error("请选择违章人员");
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.replyData.qualityId = valId
|
this.replyData.qualityId = valId
|
||||||
this.replyData.createUser = this.userIdInfo
|
this.replyData.createUser = this.userIdInfo
|
||||||
console.log('整改提交的表单数据:::', this.replyData);
|
console.log('整改提交的表单数据:::', this.replyData);
|
||||||
|
|||||||
@ -773,6 +773,10 @@
|
|||||||
><span class="value">{{
|
><span class="value">{{
|
||||||
item.status == 2 ? '合格' : '不合格'
|
item.status == 2 ? '合格' : '不合格'
|
||||||
}}</span>
|
}}</span>
|
||||||
|
</p>
|
||||||
|
<p class="grid-content" v-if="item.type == 1 && item.violatorId">
|
||||||
|
<span class="label">违章人员:</span
|
||||||
|
><span class="value">{{ personList.find(ele => ele.id == item.violatorId).workerName }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="grid-content" v-if="item.status == 1">
|
<p class="grid-content" v-if="item.status == 1">
|
||||||
<span class="label">驳回说明:</span
|
<span class="label">驳回说明:</span
|
||||||
@ -855,6 +859,38 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row :gutter="20" v-if="detailData.status == 2">
|
||||||
|
<el-col :span="24">
|
||||||
|
<div class="grid-content">
|
||||||
|
<span
|
||||||
|
class="label"
|
||||||
|
style="line-height: 30px; width: 90px"
|
||||||
|
>
|
||||||
|
<span style="color: red">* </span>违章人员:</span
|
||||||
|
>
|
||||||
|
|
||||||
|
<span
|
||||||
|
class="value"
|
||||||
|
style="width: calc(100% - 90px); margin-left: 0px"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="replyData.violatorId"
|
||||||
|
filterable
|
||||||
|
size="mini"
|
||||||
|
placeholder="请选择"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in personList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.workerName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<div class="grid-content">
|
<div class="grid-content">
|
||||||
@ -984,7 +1020,7 @@ import {
|
|||||||
selectSafeRectifyRecordListApi,
|
selectSafeRectifyRecordListApi,
|
||||||
addSafeQualityRectifyRecordApi
|
addSafeQualityRectifyRecordApi
|
||||||
} from '@/assets/js/api/quality.js'
|
} 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 { VueCropper } from 'vue-cropper'
|
||||||
import {
|
import {
|
||||||
getSubdivisionProjectApi //所有分部分项工程, 以父子节点形式呈现
|
getSubdivisionProjectApi //所有分部分项工程, 以父子节点形式呈现
|
||||||
@ -1004,7 +1040,9 @@ export default {
|
|||||||
fileUrl: '',
|
fileUrl: '',
|
||||||
additionalRemarks: '',
|
additionalRemarks: '',
|
||||||
qualityId: '',
|
qualityId: '',
|
||||||
|
violatorId: "",
|
||||||
},//未整改回复
|
},//未整改回复
|
||||||
|
personList: [],
|
||||||
dialogDetil: false,
|
dialogDetil: false,
|
||||||
detailData: {},
|
detailData: {},
|
||||||
fileListRectification: [],
|
fileListRectification: [],
|
||||||
@ -1175,6 +1213,14 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() { },
|
mounted() { },
|
||||||
methods: {
|
methods: {
|
||||||
|
//查询劳务和管理人员列表
|
||||||
|
loadPersonList(sn) {
|
||||||
|
getLaborManagementInfoListApi({
|
||||||
|
projectSn: sn,
|
||||||
|
}).then((res) => {
|
||||||
|
this.personList = res.result;
|
||||||
|
});
|
||||||
|
},
|
||||||
//关闭视频
|
//关闭视频
|
||||||
closeBtn() {
|
closeBtn() {
|
||||||
this.isShow = false
|
this.isShow = false
|
||||||
@ -1207,8 +1253,10 @@ export default {
|
|||||||
rectifyTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
rectifyTime: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
||||||
fileUrl: '',
|
fileUrl: '',
|
||||||
additionalRemarks: '',
|
additionalRemarks: '',
|
||||||
|
violatorId: "",
|
||||||
}
|
}
|
||||||
this.fileListRectification = []
|
this.fileListRectification = []
|
||||||
|
this.loadPersonList(item.projectSn);
|
||||||
},
|
},
|
||||||
//提交整改回复
|
//提交整改回复
|
||||||
rectifAdd(valId, statusType, type) {
|
rectifAdd(valId, statusType, type) {
|
||||||
@ -1255,7 +1303,10 @@ export default {
|
|||||||
this.$message.error('请选择整改时间')
|
this.$message.error('请选择整改时间')
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.replyData.violatorId == "" && type == 1 && statusType == 2) {
|
||||||
|
this.$message.error("请选择违章人员");
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.replyData.qualityId = valId
|
this.replyData.qualityId = valId
|
||||||
this.replyData.createUser = this.userIdInfo
|
this.replyData.createUser = this.userIdInfo
|
||||||
console.log('整改提交的表单数据:::', this.replyData);
|
console.log('整改提交的表单数据:::', this.replyData);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user