Compare commits

..

No commits in common. "3e5ffbacf8133b229b5692ebd744d8d7b58c9a5a" and "ab3b77dbacb3b07f45822576911a8f70db14ddcb" have entirely different histories.

4 changed files with 51 additions and 100 deletions

View File

@ -8,7 +8,6 @@ import workTrain from './workTrain/index'
import special from './special/index' import special from './special/index'
import dict from './dict/index' import dict from './dict/index'
import attendance from './attendance/index' import attendance from './attendance/index'
import insurance from './insurance/index'
export default { export default {
project, project,
dept, dept,
@ -19,6 +18,5 @@ export default {
workTrain, workTrain,
special, special,
dict, dict,
attendance, attendance
insurance
} }

View File

@ -1,12 +0,0 @@
import request from '@/utils/request'
const getProjectInsuranceList=(deptId,projectId)=> {
return request({
url: `bgscreen/insurance/getProjectInsuranceList?deptId=${deptId}&projectId=${projectId}`,
method: 'get'
})
}
export default{
getProjectInsuranceList
}

View File

@ -537,8 +537,7 @@ export default {
// //
this.majorInterval = setInterval(this.timer, 5000); this.majorInterval = setInterval(this.timer, 5000);
// //
this.warningInterval = setInterval(this.automaticRoll, 5000); this.warningInterval = setInterval(this.automaticRoll, 5000);
setInterval(this.getDeptWorksList, 60000);
}, },
doPrjProcess(n, text) { doPrjProcess(n, text) {
this.prjProcessNav = n; this.prjProcessNav = n;
@ -555,45 +554,24 @@ export default {
this.staffText = n==0?'在岗人数':'今日出勤' this.staffText = n==0?'在岗人数':'今日出勤'
if (n == 0) { if (n == 0) {
this.surveyUrl = 'images/survey_icon_4.png' this.surveyUrl = 'images/survey_icon_4.png'
this.laborPersonnelData = [
{ text: "总包人员", value: this.prjInfo?.servicePersonnel||0 },
{ text: "监理人员", value: this.prjInfo?.supervisorPersonnel||0 },
{ text: "劳务人员", value: this.prjInfo?.generalContractor||0 },
]
let sum=0;
this.laborPersonnelData.forEach(it=>{
sum+=it.value;
})
this.laborPersonnelTotal = sum;
} else { } else {
this.surveyUrl = 'images/survey_icon_5.png' this.surveyUrl = 'images/survey_icon_5.png'
} this.laborPersonnelTotal = 133;
this.getDeptWorksList(); this.laborPersonnelData = [
}, { text: "总包人员", value: 25 },
// { text: "监理人员", value: 3 },
getDeptWorksList(){ { text: "劳务人员", value: 105 },
let deptId = ''; ]
// if (this.dept && this.dept.id != 0) {
// deptId = this.dept.id;
// }
if (this.infoNav == 0) {
//
this.$api.attendance.getDeptWorksList(deptId).then(d => {
this.laborPersonnelTotal=0;
this.laborPersonnelData=[];
if(d.rows.length>0 && d.rows[0]!=null){
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.$api.attendance.getWorkAttendanceList(deptId).then(d => {
this.laborPersonnelTotal=0;
this.laborPersonnelData=[];
if(d.rows.length>0 && d.rows[0]!=null){
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});
}
});
} }
}, },
// //

View File

@ -207,13 +207,13 @@
</module-one-1-1> </module-one-1-1>
<module-one-1-1 label="保险采购明细"> <module-one-1-1 label="保险采购明细">
<div class="quality-table special-table"> <div class="quality-table special-table">
<el-table :data="insuranceDataList" style="width: 100%;background: transparent;" height="265" <el-table :data="insuranceData" style="width: 100%;background: transparent;" height="265"
ref="fbsubordinateUnit"> ref="fbsubordinateUnit">
<el-table-column prop="projectName" label="项目名称" align="left" min-width="180"> </el-table-column> <el-table-column prop="name" label="项目名称"> </el-table-column>
<el-table-column prop="azxstate" label="安责险" class-name="td-center" align="center"> <el-table-column prop="cnt" label="安责险" class-name="td-left">
<template slot-scope="scope"> <template slot-scope="scope">
<svg v-if="scope.row.azxstate==''" style="width: 1em;height: 1em;position: relative; <svg v-if="scope.row.dt1" style="width: 1em;height: 1em;position: relative;
top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;" top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
p-id="3100"> p-id="3100">
@ -229,12 +229,12 @@
d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z" d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z"
fill="#F5222D" p-id="3473"></path> fill="#F5222D" p-id="3473"></path>
</svg> </svg>
<span style="color:#fff">{{ scope.row.azxstate }}</span> <span style="color:#fff">{{ scope.row.dt1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="yqxstate" class-name="td-center" label="一切险" align="center"> <el-table-column prop="cnt3" class-name="td-left" label="一切险">
<template slot-scope="scope"> <template slot-scope="scope">
<svg v-if="scope.row.yqxstate==''" style="width: 1em;height: 1em;position: relative; <svg v-if="scope.row.dt2" style="width: 1em;height: 1em;position: relative;
top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;" top: -2px;vertical-align: middle;fill: currentColor;overflow: hidden;"
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
p-id="3100"> p-id="3100">
@ -250,7 +250,7 @@
d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z" d="M512 981.333333C252.8 981.333333 42.666667 771.2 42.666667 512S252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333z m44.245333-469.333333l159.914667-159.914667a31.274667 31.274667 0 1 0-44.245333-44.245333L512 467.754667 352.085333 307.84a31.274667 31.274667 0 1 0-44.245333 44.245333L467.754667 512l-159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333 44.245333L512 556.245333l159.914667 159.914667a31.274667 31.274667 0 1 0 44.245333-44.245333L556.245333 512z"
fill="#F5222D" p-id="3473"></path> fill="#F5222D" p-id="3473"></path>
</svg> </svg>
<span style="color:#fff">{{ scope.row.yqxstate }}</span> <span style="color:#fff">{{ scope.row.dt2 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -323,7 +323,7 @@ export default {
// //
specialDataList:[], specialDataList:[],
// //
insuranceDataList: [ insuranceData: [
{ name: '荟锦坊一期', dt1: '已购买', dt2: '正在办理' }, { name: '荟锦坊一期', dt1: '已购买', dt2: '正在办理' },
{ name: '泾河智谷一期', dt1: '正在办理', dt2: '正在办理' }, { name: '泾河智谷一期', dt1: '正在办理', dt2: '正在办理' },
{ name: '泊域人才中心', dt1: '正在办理', dt2: '正在办理' }, { name: '泊域人才中心', dt1: '正在办理', dt2: '正在办理' },
@ -337,6 +337,11 @@ export default {
}, },
created() { created() {
this.init(); this.init();
this.getWorkFileList();
this.getWorkTrainList();
this.getEmergencyDrillList();
this.getProjectSpecialView();
this.getDeptWorksList();
}, },
mounted() { mounted() {
this.$bus.$on("deptChange", dept => { this.$bus.$on("deptChange", dept => {
@ -345,8 +350,11 @@ export default {
this.getWorkTrainList(); this.getWorkTrainList();
this.getEmergencyDrillList(); this.getEmergencyDrillList();
this.getProjectSpecialView(); this.getProjectSpecialView();
this.getDeptWorksList(); if (this.infoNav == 0) {
this.getProjectInsuranceList(); this.getDeptWorksList();
} else {
this.getWorkAttendanceList();
}
}); });
}, },
methods: { methods: {
@ -415,9 +423,7 @@ export default {
if (this.dept && this.dept.id != 0) { if (this.dept && this.dept.id != 0) {
deptId = this.dept.id; deptId = this.dept.id;
} }
if (this.infoNav == 0) { this.$api.attendance.getDeptWorksList(deptId).then(d => {
//
this.$api.attendance.getDeptWorksList(deptId).then(d => {
this.laborPersonnelTotal=0; this.laborPersonnelTotal=0;
this.laborPersonnelData=[]; this.laborPersonnelData=[];
if(d.rows.length>0 && d.rows[0]!=null){ if(d.rows.length>0 && d.rows[0]!=null){
@ -429,31 +435,23 @@ export default {
this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel}); this.laborPersonnelData.push({text: "总包人员", value: d.rows[0].contractorPersonnel});
} }
}); });
} else {
//
this.$api.attendance.getWorkAttendanceList(deptId).then(d => {
this.laborPersonnelTotal=0;
this.laborPersonnelData=[];
if(d.rows.length>0 && d.rows[0]!=null){
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});
}
});
}
}, },
getProjectInsuranceList(){ //
getWorkAttendanceList(){
let deptId = ''; let deptId = '';
if (this.dept && this.dept.id != 0) { if (this.dept && this.dept.id != 0) {
deptId = this.dept.id; deptId = this.dept.id;
} }
this.$api.insurance.getProjectInsuranceList(deptId).then(d => { this.$api.attendance.getWorkAttendanceList(deptId).then(d => {
this.insuranceDataList=[]; this.laborPersonnelTotal=0;
this.laborPersonnelData=[];
if(d.rows.length>0 && d.rows[0]!=null){ if(d.rows.length>0 && d.rows[0]!=null){
this.insuranceDataList = d.rows; 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});
} }
}); });
}, },
@ -528,10 +526,11 @@ export default {
this.staffText = text this.staffText = text
if (n == 0) { if (n == 0) {
this.surveyUrl = 'images/survey_icon_4.png' this.surveyUrl = 'images/survey_icon_4.png'
this.getDeptWorksList();
} else { } else {
this.surveyUrl = 'images/survey_icon_5.png' this.surveyUrl = 'images/survey_icon_5.png'
this.getWorkAttendanceList();
} }
this.getDeptWorksList();
}, },
doSafeNav(n, t) { doSafeNav(n, t) {
this.safeNav = n; this.safeNav = n;
@ -549,14 +548,6 @@ export default {
this.warningInterval = setInterval(this.automaticRoll, 5000); this.warningInterval = setInterval(this.automaticRoll, 5000);
// //
this.warningTypeInterval = setInterval(this.automaticRollType, 5000); this.warningTypeInterval = setInterval(this.automaticRollType, 5000);
//|
setInterval(this.getWorkFileList, 60000);
setInterval(this.getWorkTrainList, 60000);
setInterval(this.getEmergencyDrillList, 60000);
setInterval(this.getProjectSpecialView, 60000);
setInterval(this.getDeptWorksList, 60000);
setInterval(this.getProjectInsuranceList, 60000);
}, },
}, },
@ -703,10 +694,6 @@ export default {
text-align: left !important; text-align: left !important;
} }
td.td-center {
text-align: center !important;
}
.file-list { .file-list {
max-height: calc(100% - 90px); max-height: calc(100% - 90px);
margin-right: 12px; margin-right: 12px;