提交代码

prv
姜玉琦 2023-12-13 02:34:40 +08:00
parent 662542d73f
commit 65174e98cd
2 changed files with 88 additions and 60 deletions

View File

@ -59,6 +59,21 @@ const listByState=(projectId,deptId,state,pageNum,pageSize)=>{
})
}
const findSafetyWorkList=(deptId,projectId,flowType)=> {
return request({
url: `bgscreen/flow/findSafetyWorkList?projectId=${projectId}&deptId=${deptId}&flowType=${flowType}`,
method: 'get'
})
}
const findFormDatasByProcInsId=(procInsId)=> {
return request({
url: `bgscreen/flow/findFormDatasByProcInsId/${procInsId}`,
method: 'get'
})
}
export default{
groupByCategory,
groupByUnit,
@ -66,5 +81,7 @@ export default{
groupByUnitTotal,
listByUnit,
listByState,
groupByProject
groupByProject,
findSafetyWorkList,
findFormDatasByProcInsId
}

View File

@ -187,30 +187,41 @@
</div>
</module-one-1-1>
<module-one-1-1 label="劳务用工" style="position: relative;">
<div class="warning-info-title" style="padding-left: 20px;">
<div :class="infoNav == 0 ? 'active' : ''" @click="onWarningInfoNav(0, '在岗人数')">在岗人数</div>
<div :class="infoNav == 1 ? 'active' : ''" @click="onWarningInfoNav(1, '今日出勤')">今日出勤</div>
<module-one-1-1 label="作业审批" style="position: relative;">
<div class="warning-info-title" style="padding-left: 8px;font-size:12px;">
<div :class="infoNav == 'sxkj' ? 'active' : ''" @click="onWarningInfoNav('sxkj', '受限空间')">受限空间</div>
<div :class="infoNav == 'dhzy' ? 'active' : ''" @click="onWarningInfoNav('dhzy', '动火作业')">动火作业</div>
<div :class="infoNav == 'lsyd' ? 'active' : ''" @click="onWarningInfoNav('lsyd', '临时用电')">临时用电</div>
<div :class="infoNav == 'gczy' ? 'active' : ''" @click="onWarningInfoNav('gczy', '高处作业')">高处作业</div>
<div :class="infoNav == 'dzzy' ? 'active' : ''" @click="onWarningInfoNav('dzzy', '吊装作业')">吊装作业</div>
<div :class="infoNav == 'ptzy' ? 'active' : ''" @click="onWarningInfoNav('ptzy', '破土作业')">破土作业</div>
<div :class="infoNav == 'dlzy' ? 'active' : ''" @click="onWarningInfoNav('dlzy', '断路作业')">断路作业</div>
</div>
<div v-if="safetyWorkFlowList && safetyWorkFlowList.length>0" class="quality-table special-table scroll" style="overflow-x: hidden;overflow-y: scroll;height: 238px;margin-right: 12px;">
<el-table :data="safetyWorkFlowList" class="mytable" style="background: transparent;">
<el-table-column prop="businessKeyName" label="项目名称" min-width="150"></el-table-column>
<el-table-column prop="total" label="申请状态">
<template slot-scope="scope">
<span v-show="scope.row.finishTime" style="color:#01A9FF"></span>
<span v-show="!scope.row.finishTime" style="color:rgb(30 215 51)"></span>
</template>
</el-table-column>
<el-table-column prop="createTime" label="申请时间" min-width="90">
<template slot-scope="scope">
{{ scope.row.createTime | formatDate('YYYY-MM-DD') }}
</template>
</el-table-column>
<el-table-column prop="void" label="申请附件">
<template slot-scope="scope">
<span @click="downloadFlowFile(scope.row)" class="file-detail">查看</span>
</template>
</el-table-column>
</el-table>
</div>
<div v-if="!safetyWorkFlowList || safetyWorkFlowList.length==0" style="text-align: center;">
<img src="images/nodata.png" style="width: 240px;">
<div style="text-align: center;">暂无数据</div>
</div>
<img src="images/icon2001.png" style="position: absolute;cursor: pointer;right: 20px;top: 12px;"
@click="doShowAttendanceDetail">
<el-row>
<el-col :span="8">
<div class="survey_content">
<div class="survey_content_img">
<img :src="surveyUrl">
</div>
</div>
<div class="survey_content_number labour-survey_content_number">
<div class="survey_content_value"><span>{{ laborPersonnelTotal }}</span> </div>
<p>{{ staffText }}</p>
</div>
</el-col>
<el-col :span="16">
<staff-survey-chart :height="220" :data="laborPersonnelData"
:width="140"></staff-survey-chart>
</el-col>
</el-row>
</module-one-1-1>
<module-one-1-1 label="保险采购明细">
<div class="quality-table special-table">
@ -323,7 +334,7 @@ export default {
fileTitle: "传达文件0",
//
fileList: [],
infoNav: 0,
infoNav: 'sxkj',
staffText: '在岗人员',
surveyUrl: 'images/survey_icon_4.png',
laborPersonnelTotal: 100,
@ -332,6 +343,7 @@ export default {
{ text: "监理人员", value: 70 },
{ text: "劳务人员", value: 220 },
],
safetyWorkFlowList:[],
//
specialDataList:[],
//
@ -384,7 +396,7 @@ export default {
this.getWorkTrainList();
this.getEmergencyDrillList();
this.getProjectSpecialView();
this.getDeptWorksList();
this.getDeptSafetyWorksList();
this.getProjectInsuranceList();
}));
this.$bus.$on("loadProjects", debounce(prjs => {
@ -396,7 +408,7 @@ export default {
this.getWorkTrainList();
this.getEmergencyDrillList();
this.getProjectSpecialView();
this.getDeptWorksList();
this.getDeptSafetyWorksList();
this.getProjectInsuranceList();
if(this.fileNav==3){
this.getWorkFileList();
@ -428,7 +440,7 @@ export default {
this.getWorkTrainList();
this.getEmergencyDrillList();
this.getProjectSpecialView();
this.getDeptWorksList();
this.getDeptSafetyWorksList();
this.getProjectInsuranceList();
if(this.fileNav==3){
this.getWorkFileList();
@ -484,26 +496,12 @@ export default {
this.specialDataList = d.rows;
});
},
//
getDeptWorksList(){
if (this.infoNav == 0) {
//
this.$api.attendance.getDeptWorksList(this.dept?.id||0,this.projectInfo?.id||0).then(d => {
this.laborPersonnelTotal=0;
this.laborPersonnelData=[{text: "劳务人员", value: 0},{text: "监理人员", value: 0},{text: "总包人员", value: 0}];
if(d.rows.length>0 && d.rows[0]!=null){
this.laborPersonnelData=[];
this.laborPersonnelTotal += d.rows[0].servicePersonnel;
this.laborPersonnelData.push({text: "劳务人员", value: d.rows[0].servicePersonnel});
this.laborPersonnelTotal += d.rows[0].supervisorPersonnel;
this.laborPersonnelData.push({text: "监理人员", value: d.rows[0].supervisorPersonnel});
this.laborPersonnelTotal += d.rows[0].contractorPersonnel;
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
}
});
} else {
this.loadAttendanceData();
}
//
getDeptSafetyWorksList(){
//
this.$api.flow.findSafetyWorkList(this.dept?.id||0,this.projectInfo?.id||0,this.infoNav).then(d => {
this.safetyWorkFlowList = d.data||[];
});
},
getProjectId(cb) {
let func = () => {
@ -635,11 +633,22 @@ export default {
window.open('/jhapi' + it.filePath);
}
},
//
downloadFlowFile(it) {
//
this.$api.flow.findFormDatasByProcInsId(it.procInsId).then(d => {
if(d.data && d.data.files){
//
d.data.files.split(",").forEach(item => {
this.$api.downFile("/jhapi" + item, {}, item.substring(item.lastIndexOf("/")+1));
});
}
})
},
//
onWarningInfoNav(n, text) {
this.infoNav = n
this.staffText = text
if (n == 0) {
if (n == 'sxkj') {
this.surveyUrl = 'images/survey_icon_4.png'
} else {
this.surveyUrl = 'images/survey_icon_5.png'
@ -669,7 +678,7 @@ export default {
//setInterval(this.getWorkTrainList, 60000);
//setInterval(this.getEmergencyDrillList, 60000);
//setInterval(this.getProjectSpecialView, 60000);
//setInterval(this.getDeptWorksList, 60000);
//setInterval(this.getDeptSafetyWorksList, 60000);
//setInterval(this.getProjectInsuranceList, 60000);
},
@ -680,6 +689,14 @@ export default {
<style lang="less">
.project-safety {
.file-detail {
color: #0189D4;
cursor: pointer;
display: inline-block;
width: 60px;
position: relative;
top: 3px;
}
.problemmodify_list{
.el-table__body-wrapper {
&::-webkit-scrollbar {
@ -696,6 +713,9 @@ export default {
}
}
}
.warning-info-title div{
padding: 0 5px 0 8px !important;
}
.center-image .screen-one-2-1 {
overflow: hidden;
}
@ -799,15 +819,6 @@ export default {
width: 91%;
}
.file-item .file-detail {
color: #0189D4;
cursor: pointer;
display: inline-block;
width: 60px;
position: relative;
top: 3px;
}
.special-table th .cell {
color: aquamarine;
font-size: 12px;