diff --git a/package.json b/package.json index 6e235b5..5e4a9ad 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "js-beautify": "1.10.2", "js-cookie": "2.2.0", "jsencrypt": "^3.2.0", + "jspdf": "^2.5.1", "jsplumb": "^2.15.6", "less": "^4.1.1", "less-loader": "^7.0.0", diff --git a/src/api/sluice/index.js b/src/api/sluice/index.js index 5935e71..8af65aa 100644 --- a/src/api/sluice/index.js +++ b/src/api/sluice/index.js @@ -274,11 +274,11 @@ export function updateSuperviseWayItemData(data){ } // 督检查办法-获取启用中的督检查办法 -export function getEnableSuperviseWayData(data){ +export function getEnableSuperviseWayData(params){ return request({ url: `/run/sz/superviseWay/enable`, method: 'get', - data + params }) } @@ -324,3 +324,46 @@ export function putSuperviseWayTaskDetailsData(data){ data }) } + +// 监督检查-新增工程问题上报 +export function addSuperviseEngineeringReportData(data){ + return request({ + url: `/run/sz/superviseEngineering/add`, + method: 'post', + data + }) +} + +// 监督检查-工程详情 +export function getSuperviseEngineeringReportDetailsData(id){ + return request({ + url: `/run/sz/superviseEngineering/detail/${id}`, + method: 'get' + }) +} + +// 监督检查-工程问题列表 +export function getSuperviseEngineeringProblemListData(data){ + return request({ + url: `/run/sz/superviseEngineering/list`, + method: 'post', + data + }) +} + +// 监督检查-工程问题详情 +export function getSuperviseEngineeringProblemDetailsData(id){ + return request({ + url: `/run/sz/superviseEngineering/problemDetail/${id}`, + method: 'get' + }) +} + +// 监督检查-工程问题问题处理和状态修改 +export function updateSuperviseEngineeringProblemStatusAndData(data){ + return request({ + url: `/run/sz/superviseEngineering/updateStatus`, + method: 'put', + data + }) +} diff --git a/src/assets/styles/flex.scss b/src/assets/styles/flex.scss index 78c7f88..ef2bfe9 100644 --- a/src/assets/styles/flex.scss +++ b/src/assets/styles/flex.scss @@ -1,6 +1,12 @@ .flex { display: flex; } +.flex-3{ + flex: 3; +} +.flex-2{ + flex: 2; +} .flex-1{ flex: 1; } diff --git a/src/views/sluice/runManage/supervisionInspetion/projectManage/index.vue b/src/views/sluice/runManage/supervisionInspetion/projectManage/index.vue index cac0a01..14a748b 100644 --- a/src/views/sluice/runManage/supervisionInspetion/projectManage/index.vue +++ b/src/views/sluice/runManage/supervisionInspetion/projectManage/index.vue @@ -43,6 +43,7 @@ export default { path: "supervisionProjectReport", query: { type: "preview", + wayId: row.wayId, id: row.id, }, }); @@ -53,6 +54,17 @@ export default { path: "supervisionProjectReport", query: { type: "edit", + wayId: row.wayId, + id: row.id, + }, + }); + }, + // 跳转报告页面 + handleCheckReport(row) { + this.$router.push({ + path: "supervisionProjectReportPage", + query: { + wayId: row.wayId, id: row.id, }, }); @@ -90,7 +102,9 @@ export default { }).then((res) => { if (res) { this.tableData = res.records.map((item) => { - item.deadTime = this.calcDeadLine(item.doneTime); + if (item.state != "1") { + item.deadTime = this.calcDeadLine(item.doneTime); + } return item; }); this.pageData.total = res.total; @@ -170,9 +184,20 @@ export default { 查看 - 巡查 + 报告 diff --git a/src/views/sluice/runManage/supervisionInspetion/projectManage/projectReport.vue b/src/views/sluice/runManage/supervisionInspetion/projectManage/projectReport.vue index f0441ff..7904d10 100644 --- a/src/views/sluice/runManage/supervisionInspetion/projectManage/projectReport.vue +++ b/src/views/sluice/runManage/supervisionInspetion/projectManage/projectReport.vue @@ -1,22 +1,39 @@ + diff --git a/src/views/sluice/runManage/supervisionInspetion/questionManage/index.vue b/src/views/sluice/runManage/supervisionInspetion/questionManage/index.vue index 3df60ec..8eef244 100644 --- a/src/views/sluice/runManage/supervisionInspetion/questionManage/index.vue +++ b/src/views/sluice/runManage/supervisionInspetion/questionManage/index.vue @@ -1,20 +1,28 @@ - + @@ -374,70 +268,88 @@ export default {
基础信息管理
-
-
-
- 任务名称: - - 管理单位: - - 工程对象: - -
-
- 检查项目: - - 问题等级: - - 操作状态: - -
- 展开 -
- 搜索 -
- + 任务名称: + + 管理单位: + + 工程对象: + + 搜索 + 重置 + + - - - - - - - + + + + + + + + + + @@ -449,314 +361,71 @@ export default { :page-sizes="pageData.pageSizes" layout="total, prev, pager, next, sizes, jumper" :total="pageData.total" - @size-change="getTableData()" + @size-change="(e) => handlePageSizeChange(e)" + @current-change="(e) => handleCurrentPageChange(e)" >
- + + -
-
- 基础信息 -
- - - - - - - 详情 - 打开地图 - -
- - - - - - - - - -
- + + + :rows="4" + placeholder="请输入问题描述" + v-model="dealForm.handleRecord" + > -
+
- 工作内容 -
- - - - - - - - - - - - - - - - - - - - -
- - - /次 - - - - - - /日期 - - - - - - - -
-
- - - - -
- - - 星期一 - 星期二 - 星期三 - 星期四 - 星期五 - 星期六 - 星期日 - - - -
- 每月号 -
-
- - - + +
-
+ + 上传 + +
+ + 取消 + 提交 +
-
@@ -791,12 +460,6 @@ export default { height: calc(680px - 34px); } } - - .filter-list { - transition: all 0.5s; - height: 40px; - overflow: hidden; - } .search-input { width: 202px; margin-right: 10px; @@ -804,23 +467,10 @@ export default { .search-btn { margin-left: 10px; - background-color: #37b29e; - border: none; - - &:hover { - background-color: #5ac6b9; - } - - &:active { - background-color: #2b8070; - } } -} -/deep/.el-input__count { - height: 15px; - line-height: 15px; - margin-right: 10px; - margin-bottom: -4px; + .warning-time { + color: red; + } } diff --git a/src/views/sluice/runManage/supervisionInspetion/tasksManage/tasksDetails.vue b/src/views/sluice/runManage/supervisionInspetion/tasksManage/tasksDetails.vue index 3c9568b..930a424 100644 --- a/src/views/sluice/runManage/supervisionInspetion/tasksManage/tasksDetails.vue +++ b/src/views/sluice/runManage/supervisionInspetion/tasksManage/tasksDetails.vue @@ -1,13 +1,7 @@