diff --git a/src/assets/images/lcbTip.png b/src/assets/images/lcbTip.png new file mode 100644 index 00000000..217c7229 Binary files /dev/null and b/src/assets/images/lcbTip.png differ diff --git a/src/assets/js/api/insect.js b/src/assets/js/api/insect.js index 62644c6c..774b01c3 100644 --- a/src/assets/js/api/insect.js +++ b/src/assets/js/api/insect.js @@ -17,5 +17,7 @@ export const getCheckPointApi = data => post('/xmgl/checkingPointInfo/selectPage export const editCheckPointApi = data => post('/xmgl/checkingPointInfo/edit', data); // 编辑巡检点记录列表 export const deleteCheckPointApi = data => post('/xmgl/checkingPointInfo/delete', data); // 删除巡检点记录列表 +// 区域 +export const pointAreaApi = data => post('/xmgl/qualityRegion/notTreeList', data); // 删除巡检点记录列表 diff --git a/src/assets/js/api/progressManagement.js b/src/assets/js/api/progressManagement.js index 00cccef7..1e5160e4 100644 --- a/src/assets/js/api/progressManagement.js +++ b/src/assets/js/api/progressManagement.js @@ -69,5 +69,11 @@ export const getProgressContentPageApi = data => get('xmgl/xzTaskProgressContent export const editProgressContentApi = data => post('xmgl/xzTaskProgressContent/edit', data); export const deleteProgressContentApi = data => post('xmgl/xzTaskProgressContent/delete', data); +// 里程碑部分 +export const getXzMilestonePageApi = data => get('xmgl/xzMilestone/page', data); +export const addXzMilestoneApi = data => post('xmgl/xzMilestone/add', data); +export const editXzMilestoneApi = data => post('xmgl/xzMilestone/edit', data); +export const deleteXzMilestoneApi = data => post('xmgl/xzMilestone/delete', data); +export const xzMilestoneDataApi = data => post('xmgl/xzTaskProgress/statsByEnterprise', data); diff --git a/src/router/index.js b/src/router/index.js index f7fe0621..dded732c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2527,6 +2527,14 @@ const routes2 = [ "@/views/projectFront/progressManagementAg/divisionSubManage.vue", ], resolve), }, + { + path: "/project/progressManagementAg/lcbManage", + name: "进度管理_里程碑管理", + component: (resolve) => + require([ + "@/views/projectFront/progressManagementAg/lcbManage.vue", + ], resolve), + }, { path: "/project/progressManagementAg/progressWarning", name: "进度管理_进度预警2", diff --git a/src/views/infoCenter/allInfo/componentsModule/dataListData.vue b/src/views/infoCenter/allInfo/componentsModule/dataListData.vue index 719ce34c..1333e6c4 100644 --- a/src/views/infoCenter/allInfo/componentsModule/dataListData.vue +++ b/src/views/infoCenter/allInfo/componentsModule/dataListData.vue @@ -194,7 +194,7 @@ export default { // 质量 path = "/project/quality/inspectionLedger"; const res = await getNoticeStatusApi({ id: payLoadParams.data.id }); - if (res.result && res.result.status == 6) { + if (!res.result && res.result.status == 6) { this.$message({ type: "error", message: "检查单已撤回", @@ -205,7 +205,7 @@ export default { // 安全 path = "/project/safeSame/inspectionLedger"; const res = await getNoticeStatusApi({ id: payLoadParams.data.id }); - if (res.result && res.result.status == 6) { + if (!res.result && res.result.status == 6) { this.$message({ type: "error", message: "检查单已撤回", diff --git a/src/views/infoCenter/hadRead/componentsModule/dataListData.vue b/src/views/infoCenter/hadRead/componentsModule/dataListData.vue index 26b9268a..a7f6733c 100644 --- a/src/views/infoCenter/hadRead/componentsModule/dataListData.vue +++ b/src/views/infoCenter/hadRead/componentsModule/dataListData.vue @@ -182,7 +182,7 @@ export default { // 质量 path = "/project/quality/inspectionLedger"; const res = await getNoticeStatusApi({ id: payLoadParams.data.id }); - if (res.result && res.result.status == 6) { + if (!res.result && res.result.status == 6) { this.$message({ type: "error", message: "检查单已撤回", @@ -193,7 +193,7 @@ export default { // 安全 path = "/project/safeSame/inspectionLedger"; const res = await getNoticeStatusApi({ id: payLoadParams.data.id }); - if (res.result && res.result.status == 6) { + if (!res.result && res.result.status == 6) { this.$message({ type: "error", message: "检查单已撤回", diff --git a/src/views/infoCenter/notRead/componentsModule/dataListData.vue b/src/views/infoCenter/notRead/componentsModule/dataListData.vue index eb0a1bc8..f969d53c 100644 --- a/src/views/infoCenter/notRead/componentsModule/dataListData.vue +++ b/src/views/infoCenter/notRead/componentsModule/dataListData.vue @@ -183,7 +183,7 @@ export default { // 质量 path = "/project/quality/inspectionLedger"; const res = await getNoticeStatusApi({ id: payLoadParams.data.id }); - if (res.result && res.result.status == 6) { + if (!res.result && res.result.status == 6) { this.$message({ type: "error", message: "检查单已撤回", @@ -194,7 +194,7 @@ export default { // 安全 path = "/project/safeSame/inspectionLedger"; const res = await getNoticeStatusApi({ id: payLoadParams.data.id }); - if (res.result && res.result.status == 6) { + if (!res.result && res.result.status == 6) { this.$message({ type: "error", message: "检查单已撤回", diff --git a/src/views/projectFront/inspecPoint/inspection.vue b/src/views/projectFront/inspecPoint/inspection.vue index a65f2bce..151be82c 100644 --- a/src/views/projectFront/inspecPoint/inspection.vue +++ b/src/views/projectFront/inspecPoint/inspection.vue @@ -169,7 +169,62 @@ :placeholder="isAdding ? '请输入' : ''" > - + + + + + + + + + + + + + + + + + + + 0) { + let shouldHavePersonIdList = this.chargerList.map((item) => { + if (this.cardForm.enterpriseId.includes(item.enterpriseId)) { + return item.userId; + } + }); + if(this.cardForm.inspectUserIds){ + const newArr = this.cardForm.inspectUserIds.filter((item) => + shouldHavePersonIdList.includes(item) + ); + this.cardForm.inspectUserIds = newArr; + } + } else { + this.cardForm.inspectUserIds = ""; + } + }, + updateArea(){ + let findItem = this.pointAreaList.find(item => { + return item.id == this.cardForm.qualityRegionId + }) + this.cardForm.enterpriseId = ""; + this.cardForm.inspectUserIds = ""; + if(findItem){ + this.chargerList = findItem.systemUsers; + this.enterpriseList = findItem.enterpriseInfos; + } + }, + // 获取区域列表 + getPointAreaFn(){ + let requestData = { + projectSn: this.projectSn + } + pointAreaApi(requestData).then(res => { + console.log(res) + this.pointAreaList = res.result; + }) + }, //查看详情 deilBtn(obj) { this.isAdding = false @@ -431,6 +539,10 @@ export default { this.cardForm.inspectUserIds = this.cardForm.inspectUserIds.split(',') } + if (this.cardForm.enterpriseId) { + this.cardForm.enterpriseId = + this.cardForm.enterpriseId.split(',') + } if (this.cardForm.noticeUserIds) { this.cardForm.noticeUserIds = this.cardForm.noticeUserIds.split(',') @@ -681,6 +793,10 @@ export default { this.cardForm.inspectUserIds = this.cardForm.inspectUserIds.split(',') } + if (this.cardForm.enterpriseId) { + this.cardForm.enterpriseId = + this.cardForm.enterpriseId.split(',') + } if (this.cardForm.noticeUserIds) { this.cardForm.noticeUserIds = this.cardForm.noticeUserIds.split(',') @@ -786,6 +902,7 @@ export default { data.createUserId = this.$store.state.userInfo.userId; data.createUserName = this.$store.state.userInfo.account; data.inspectUserIds = data.inspectUserIds.toString(','); + data.enterpriseId = data.enterpriseId.toString(','); data.noticeUserIds = data.noticeUserIds.toString(','); data.template = JSON.stringify(formTemplate); if (this.cardDialogTitle == '新建巡检点') { diff --git a/src/views/projectFront/progressManagementAg/ganttChart.vue b/src/views/projectFront/progressManagementAg/ganttChart.vue index df17c79c..75d67b42 100644 --- a/src/views/projectFront/progressManagementAg/ganttChart.vue +++ b/src/views/projectFront/progressManagementAg/ganttChart.vue @@ -98,10 +98,10 @@ 项目剩余天数:{{progressData.projectSurplusDayNum || 0}}天
- 更新项目总进度 - 更新承包商进度
diff --git a/src/views/projectFront/progressManagementAg/lcbManage.vue b/src/views/projectFront/progressManagementAg/lcbManage.vue new file mode 100644 index 00000000..76c4dadc --- /dev/null +++ b/src/views/projectFront/progressManagementAg/lcbManage.vue @@ -0,0 +1,1133 @@ + + + diff --git a/src/views/projectFront/progressManagementAg/projectganttChart.vue b/src/views/projectFront/progressManagementAg/projectganttChart.vue index e938731f..283e16e3 100644 --- a/src/views/projectFront/progressManagementAg/projectganttChart.vue +++ b/src/views/projectFront/progressManagementAg/projectganttChart.vue @@ -2,11 +2,11 @@
-
- 更新项目总进度 - + 更新项目总进度 + +
-
+ +
+
-
分部分项工程名称
+
供应商名称
开始日期
完成日期 @@ -131,7 +137,7 @@ class="row-groups" :class="{ open: openedIndex === p.id }" v-for="(p, i) in projects" - :key="p.taskName" + :key="p.enterpriseName" >
- {{ p.taskName }} + {{ p.enterpriseName }}
@@ -209,16 +215,29 @@ :style="gantt" v-for="(gantt, index) in p.gantts" :key="index" - :title="p.taskName + ' ' + headerList[p.status].label" - @click="openGanttDialog(p)" - >
+ @click=" + openGanttDialog(p, gantt) + " + > + +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:{{isShowLcText(p,index + 1)}} +
+
+
+
- {{ child.taskName }} + {{ child.enterpriseName }}
{{ child.startDate }}
@@ -282,7 +301,18 @@ :key="index" @mouseenter="(e) => handleHover(e, child)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+
@@ -290,7 +320,7 @@ class="children" v-show="openedIndexSecond === child.id" v-for="second in child.children" - :key="'child-' + second.taskName" + :key="'child-' + second.enterpriseName" >
- {{ second.taskName }} + {{ second.enterpriseName }}
@@ -356,7 +386,18 @@ :key="index" @mouseenter="(e) => handleHover(e, second)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+
@@ -364,7 +405,7 @@ class="children" v-show="openedIndexThird === second.id" v-for="third in second.children" - :key="'child-' + third.taskName" + :key="'child-' + third.enterpriseName" >
- {{ third.taskName }} + {{ third.enterpriseName }}
@@ -429,7 +470,18 @@ :key="index" @mouseenter="(e) => handleHover(e, third)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+
@@ -437,7 +489,7 @@ class="children" v-show="openedIndexFourth === third.id" v-for="fouth in third.children" - :key="'child-' + fouth.taskName" + :key="'child-' + fouth.enterpriseName" >
- {{ fouth.taskName }} + {{ fouth.enterpriseName }}
@@ -502,7 +554,18 @@ :key="index" @mouseenter="(e) => handleHover(e, fouth)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+ @@ -510,7 +573,7 @@ class="children" v-show="openedIndexFifth === fouth.id" v-for="fifth in fouth.children" - :key="'child-' + fifth.taskName" + :key="'child-' + fifth.enterpriseName" >
- {{ fifth.taskName }} + {{ fifth.enterpriseName }}
{{ fifth.startDate }}
@@ -574,7 +637,18 @@ :key="index" @mouseenter="(e) => handleHover(e, fifth)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+ @@ -582,7 +656,7 @@ class="children" v-show="openedIndexSixth === fifth.id" v-for="sixth in fifth.children" - :key="'child-' + sixth.taskName" + :key="'child-' + sixth.enterpriseName" >
- {{ sixth.taskName }} + {{ sixth.enterpriseName }}
{{ sixth.startDate }}
@@ -646,7 +720,18 @@ :key="index" @mouseenter="(e) => handleHover(e, sixth)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+ @@ -654,7 +739,7 @@ class="children" v-show="openedIndexSeven === sixth.id" v-for="seventh in sixth.children" - :key="'child-' + seventh.taskName" + :key="'child-' + seventh.enterpriseName" >
- {{ seventh.taskName }} + {{ seventh.enterpriseName }}
@@ -722,7 +807,18 @@ :key="index" @mouseenter="(e) => handleHover(e, seventh)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+
@@ -730,7 +826,7 @@ class="children" v-show="openedIndexEighth === seventh.id" v-for="eighth in seventh.children" - :key="'child-' + eighth.taskName" + :key="'child-' + eighth.enterpriseName" >
- {{ eighth.taskName }} + {{ eighth.enterpriseName }}
- {{ eighth.startDate }} + {{ eighth.startDate }}1
{{ eighth.finishDate }} @@ -797,7 +893,18 @@ :key="index" @mouseenter="(e) => handleHover(e, eighth)" @mouseleave="handleLeave" - >
+ > +
+ +
+
查看里程碑节点
+
+ 日期:{{isShowDate(p,index + 1)}} + 里程碑:主体结构施工 +
+
+
+
@@ -811,7 +918,7 @@
- {{ tooltipContent.taskName }} + {{ tooltipContent.enterpriseName }} {{ tooltipContent.mppStatus == 0 @@ -839,16 +946,26 @@ >
- {{updateDialogTitle.substring(2)}} + {{ updateDialogTitle.substring(2) }} - + % - {{ $t("message.personnelPosition.determine") }}
@@ -857,21 +974,21 @@ - + style="width: 100%; margin-top: 15px" + > + + label="变更前进度" + > + label="变更后进度" + >
@@ -881,13 +998,15 @@