diff --git a/yanzhu-bigscreen/src/views/projectDetail.vue b/yanzhu-bigscreen/src/views/projectDetail.vue index 9b64e308..8a405494 100644 --- a/yanzhu-bigscreen/src/views/projectDetail.vue +++ b/yanzhu-bigscreen/src/views/projectDetail.vue @@ -577,6 +577,7 @@ export default { } this.$api.project.getProjectInfo(this.selProject.id).then((d) => { this.prjInfo = d.data || {} + this.prjInfo.vendorsCode = 'uni' let tmps = this.prjInfo.projectDeptsList || [] const func = (t) => { let objs = tmps.filter((it) => it.deptType == t) @@ -613,12 +614,11 @@ export default { }) this.getWeatherNowInfo() } + this.loadAttendanceData() + this.loadMilestoneData() + this.loadCostOutput() + this.initPhotographyList() }) - - this.loadAttendanceData() - this.loadMilestoneData() - this.loadCostOutput() - this.initPhotographyList() }, initPhotographyList() { this.$api.detail.photographyList(this.selProject.id).then((d) => { diff --git a/yanzhu-bigscreen/src/views/projectLabor.vue b/yanzhu-bigscreen/src/views/projectLabor.vue index 76181cbf..30180ed1 100644 --- a/yanzhu-bigscreen/src/views/projectLabor.vue +++ b/yanzhu-bigscreen/src/views/projectLabor.vue @@ -62,7 +62,7 @@ { let sum = 0 d.data.forEach((item) => { + item.id = item.id || item.comId sum += item.id ? item.id : 0 }) this.workerTotal = sum this.workerGroupList = d.data.map((item) => { return { - name: item.workTypeName, + name: item.workTypeName || item.craftPostName, value: item.id ? item.id : 0, } }) diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml index aa285374..0744dea1 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoSubdeptsUsersMapper.xml @@ -420,7 +420,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ) - select psu.card_code cardCode,nav.address comName from pro_project_info_subdepts_users psu left join sys_native nav on left(psu.card_code,6)=nav.id @@ -431,7 +431,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"