Compare commits

..

No commits in common. "68072270492688c423f095a797fa309174e58b52" and "c8c287de1c08e7fea132ddfa380be122e2ae40e0" have entirely different histories.

3 changed files with 22 additions and 46 deletions

View File

@ -1,5 +1,4 @@
import request from '@/utils/request' import request from '@/utils/request'
import { Date } from 'core-js'
const getDeptWorksList=(deptId,projectId)=> { const getDeptWorksList=(deptId,projectId)=> {
return request({ return request({
@ -8,9 +7,9 @@ const getDeptWorksList=(deptId,projectId)=> {
}) })
} }
const getWorkAttendanceList=(deptId,projectId)=> { const getWorkAttendanceList=(deptId,projectId,date)=> {
return request({ return request({
url: `bgscreen/attendance/getWorkAttendanceList?deptId=${deptId||0}&projectId=${projectId||0}`, url: `bgscreen/attendance/getWorkAttendanceList?deptId=${deptId||0}&projectId=${projectId||0}&date=${date}`,
method: 'get' method: 'get'
}) })
} }

View File

@ -741,7 +741,6 @@ export default {
}); });
this.projectBuildNode = []; this.projectBuildNode = [];
this.getProjectBuildNode(); this.getProjectBuildNode();
this.getDeptWorksList();
}); });
}, },
getProjectBuildNode() { getProjectBuildNode() {
@ -790,8 +789,8 @@ export default {
return it; return it;
}); });
});
this.getDeptWorksList(); })
}); });
}, },
init() { init() {
@ -809,39 +808,6 @@ export default {
// //
this.costInterval = setInterval(this.manufacturingCostRoll, 5000); this.costInterval = setInterval(this.manufacturingCostRoll, 5000);
}, },
//
getDeptWorksList(){
if (this.infoNav == 0) {
//
this.$api.attendance.getDeptWorksList(this.dept?.id||0,this.project?.id||0).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(this.dept?.id||0,this.project?.id||0).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});
}
});
}
},
// //
projectIntroduction() { projectIntroduction() {
this.popupShow = true this.popupShow = true
@ -943,11 +909,22 @@ export default {
onWarningInfoNav(n, text) { onWarningInfoNav(n, text) {
this.infoNav = n this.infoNav = n
this.staffText = text this.staffText = text
this.getDeptWorksList();
if (n == 0) { if (n == 0) {
this.surveyUrl = 'images/survey_icon_4.png' this.surveyUrl = 'images/survey_icon_4.png'
this.laborPersonnelData = [
{ text: "总包人员", value: 28 },
{ text: "监理人员", value: 3 },
{ text: "劳务人员", value: 118 },
]
this.laborPersonnelTotal = 149;
} else { } else {
this.surveyUrl = 'images/survey_icon_5.png' this.surveyUrl = 'images/survey_icon_5.png'
this.laborPersonnelTotal = 133;
this.laborPersonnelData = [
{ text: "总包人员", value: 25 },
{ text: "监理人员", value: 3 },
{ text: "劳务人员", value: 105 },
]
} }
}, },
// //

View File

@ -542,12 +542,12 @@ export default {
//| //|
this.getWorkFileList(); this.getWorkFileList();
//setInterval(this.getWorkFileList, 60000); setInterval(this.getWorkFileList, 60000);
//setInterval(this.getWorkTrainList, 60000); setInterval(this.getWorkTrainList, 60000);
//setInterval(this.getEmergencyDrillList, 60000); setInterval(this.getEmergencyDrillList, 60000);
//setInterval(this.getProjectSpecialView, 60000); setInterval(this.getProjectSpecialView, 60000);
//setInterval(this.getDeptWorksList, 60000); setInterval(this.getDeptWorksList, 60000);
//setInterval(this.getProjectInsuranceList, 60000); setInterval(this.getProjectInsuranceList, 60000);
}, },
}, },