Commit 498ab649 by 史敦盼

问题修复

1 parent c27578ff
...@@ -2,19 +2,17 @@ ...@@ -2,19 +2,17 @@
// let mainURL="192.168.8.248:18101" // let mainURL="192.168.8.248:18101"
// var qs = require('qs') // var qs = require('qs')
import { ARCH_EVALUATION} from '@/config/micromodule' import { ARCH_EVALUATION } from '@/config/micromodule'
import { get, post, download } from '@/utils/http' import { get, post, download } from '@/utils/http'
// 获取流程列表 // 获取流程列表
export function evalBatchInfo(params) { export function evalBatchInfo(params) {
return post(`${ARCH_EVALUATION}/postEvalBatchInfo/`, params) return post(`${ARCH_EVALUATION}/postEvalBatchInfo/`, params)
} }
//专家库 //专家库
export function expertInfo(params) { export function expertInfo(params) {
return post(`${ARCH_EVALUATION}/expertInfo/`, params) return post(`${ARCH_EVALUATION}/expertInfo/`, params)
} }
//查询关联专家 //查询关联专家
export function expert(params) { export function expert(params) {
...@@ -55,7 +53,7 @@ export function fbProjectInfo(params) { ...@@ -55,7 +53,7 @@ export function fbProjectInfo(params) {
export function bcProjectInfo(params) { export function bcProjectInfo(params) {
return post(`${ARCH_EVALUATION}/projectInfo/bc`, params) return post(`${ARCH_EVALUATION}/projectInfo/bc`, params)
} }
//删除   //删除
export function delProjectInfo(params) { export function delProjectInfo(params) {
return post(`${ARCH_EVALUATION}/projectInfo/del`, params) return post(`${ARCH_EVALUATION}/projectInfo/del`, params)
} }
...@@ -171,7 +169,6 @@ export function wtssSelProblemAssistedFeedback(params) { ...@@ -171,7 +169,6 @@ export function wtssSelProblemAssistedFeedback(params) {
return post(`${ARCH_EVALUATION}/ProblemAssistedFeedback/wtssSel`, params) return post(`${ARCH_EVALUATION}/ProblemAssistedFeedback/wtssSel`, params)
} }
//项目结果确认更改 //项目结果确认更改
//项目评估结果确认更改查询 //项目评估结果确认更改查询
export function qrbgSelQuesInfo(params) { export function qrbgSelQuesInfo(params) {
...@@ -260,7 +257,6 @@ export function tjrectificationVerification(params) { ...@@ -260,7 +257,6 @@ export function tjrectificationVerification(params) {
return post(`${ARCH_EVALUATION}/rectificationVerification/wtfhtj`, params) return post(`${ARCH_EVALUATION}/rectificationVerification/wtfhtj`, params)
} }
//材料同步归档 //材料同步归档
//列表 //列表
export function tbgdrectificationVerification(params) { export function tbgdrectificationVerification(params) {
...@@ -288,7 +284,6 @@ export function downloadObjectAll(params) { ...@@ -288,7 +284,6 @@ export function downloadObjectAll(params) {
return download(`${ARCH_EVALUATION}/oss/downloadObjectAll`, params) return download(`${ARCH_EVALUATION}/oss/downloadObjectAll`, params)
} }
//后评估集中检查 //后评估集中检查
//项目检查问题查询 //项目检查问题查询
export function projectInspectionIssues(params) { export function projectInspectionIssues(params) {
...@@ -329,7 +324,7 @@ export function selProject(params) { ...@@ -329,7 +324,7 @@ export function selProject(params) {
return post(`${ARCH_EVALUATION}/auditTasks/selProject`, params) return post(`${ARCH_EVALUATION}/auditTasks/selProject`, params)
} }
//删除 //删除
export function delAuditTasks(params){ export function delAuditTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasks/delAuditTasks`, params) return post(`${ARCH_EVALUATION}/auditTasks/delAuditTasks`, params)
} }
//编辑 //编辑
...@@ -337,121 +332,124 @@ export function upauditTasks(params) { ...@@ -337,121 +332,124 @@ export function upauditTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasks/up`, params) return post(`${ARCH_EVALUATION}/auditTasks/up`, params)
} }
//删除规则 //删除规则
export function delRule(params){ export function delRule(params) {
return post(`${ARCH_EVALUATION}/auditTasks/delRule`, params) return post(`${ARCH_EVALUATION}/auditTasks/delRule`, params)
} }
//删除项目 //删除项目
export function delProject(params){ export function delProject(params) {
return post(`${ARCH_EVALUATION}/auditTasks/delProject`, params) return post(`${ARCH_EVALUATION}/auditTasks/delProject`, params)
} }
//合规检查结果 //合规检查结果
//合规检查结果分页 //合规检查结果分页
export function auditTasksResults(params){ export function auditTasksResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/`, params)
} }
//合规检查结果确认分页 //合规检查结果确认分页
export function auditTasksResultsNew(params){ export function auditTasksResultsNew(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/ipage`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/ipage`, params)
} }
//详情 //详情
export function xqauditTasksResults(params){ export function xqauditTasksResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/xq`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/xq`, params)
} }
//删除 //删除
export function scauditTasksResults(params){ export function scauditTasksResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/sc`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/sc`, params)
} }
//确认 //确认
export function jgxqResults(params){ export function jgxqResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/jgxq`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/jgxq`, params)
} }
//下发 //下发
export function wtxfResults(params){ export function wtxfResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/wtxf`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/wtxf`, params)
} }
//合规问题整改 //合规问题整改
//分页 //分页
export function auditTasksRuleProjectLink(params){ export function auditTasksRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/`, params)
} }
//详情 //详情
export function xqRuleProjectLink(params){ export function xqRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/xq`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/xq`, params)
} }
//整改 //整改
export function savaauditRuleProjectLink(params){ export function savaauditRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/sava`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/sava`, params)
} }
//提交 //提交
export function tjTasksRuleProjectLink(params){ export function tjTasksRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/tj`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/tj`, params)
} }
////合规问题整改核验 ////合规问题整改核验
//分页 //分页
export function auditTasksRuleProjectLinkZg(params){ export function auditTasksRuleProjectLinkZg(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/`, params)
} }
//详情 //详情
export function zgxqRuleProjectLink(params){ export function zgxqRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/zgxq`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/zgxq`, params)
} }
//整改 //整改
export function savaRuleProjectLink(params){ export function savaRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/sava`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/sava`, params)
} }
//提交 //提交
export function tjRuleProjectLink(params){ export function tjRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/tj`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/tj`, params)
} }
//项目辅助检查 //项目辅助检查
//问题清单查询 //问题清单查询
export function selWtqdFZ(params){ export function selWtqdFZ(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfo/selWtqd`, params) return post(`${ARCH_EVALUATION}/evalQuesInfo/selWtqd`, params)
} }
export function selWtqdFZ2(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfo/adSelWtqd`, params)
}
//iframe展示文件 //iframe展示文件
export function selFile(params){ export function selFile(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfo/selFile`, params) return post(`${ARCH_EVALUATION}/evalQuesInfo/selFile`, params)
} }
export function selFileList(params){ export function selFileList(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfo/selFileList`, params) return post(`${ARCH_EVALUATION}/evalQuesInfo/selFileList`, params)
} }
//明显查询 //明显查询
export function selWtmx(params){ export function selWtmx(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfo/selWtmx`, params) return post(`${ARCH_EVALUATION}/evalQuesInfo/selWtmx`, params)
} }
//智能分析查询 //智能分析查询
export function selZnfx(params){ export function selZnfx(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfo/selZnfx`, params) return post(`${ARCH_EVALUATION}/evalQuesInfo/selZnfx`, params)
} }
//保存 //保存
export function bcevalQuesInfo(params){ export function bcevalQuesInfo(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfo/bc`, params) return post(`${ARCH_EVALUATION}/evalQuesInfo/bc`, params)
} }
//首页 //首页
export function projectInfoSy(params){ export function projectInfoSy(params) {
return post(`${ARCH_EVALUATION}/projectInfo/sy`, params) return post(`${ARCH_EVALUATION}/projectInfo/sy`, params)
} }
//项目列表页面 //项目列表页面
export function pmProInitiation(params){ export function pmProInitiation(params) {
return post(`${ARCH_EVALUATION}/projectInfo/getProjectInfo`, params) return post(`${ARCH_EVALUATION}/projectInfo/getProjectInfo`, params)
} }
//项目清单 //项目清单
export function MaterialWarehous(params){ export function MaterialWarehous(params) {
return post(`${ARCH_EVALUATION}/pmProInitiation/MaterialWarehouse`, params) return post(`${ARCH_EVALUATION}/pmProInitiation/MaterialWarehouse`, params)
} }
//更新类型 //更新类型
export function chpmProInitiation(params){ export function chpmProInitiation(params) {
return post(`${ARCH_EVALUATION}/pmProInitiation/ch`, params) return post(`${ARCH_EVALUATION}/pmProInitiation/ch`, params)
} }
//历史记录 //历史记录
export function HistoryVersion(params){ export function HistoryVersion(params) {
return post(`${ARCH_EVALUATION}/pmProInitiation/HistoryVersion`, params) return post(`${ARCH_EVALUATION}/pmProInitiation/HistoryVersion`, params)
} }
//是否可以上传 //是否可以上传
export function postExist(params){ export function postExist(params) {
return post(`${ARCH_EVALUATION}/pmProInitiation/postExist`, params) return post(`${ARCH_EVALUATION}/pmProInitiation/postExist`, params)
} }
//新增问题 //新增问题
...@@ -459,12 +457,10 @@ export function xzwtpostEvalQuesInfo(params) { ...@@ -459,12 +457,10 @@ export function xzwtpostEvalQuesInfo(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfo/xzwt`, params) return post(`${ARCH_EVALUATION}/postEvalQuesInfo/xzwt`, params)
} }
//材料退回 //材料退回
export function postEvalQuesInfoTh(params){ export function postEvalQuesInfoTh(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfo/th`, params) return post(`${ARCH_EVALUATION}/postEvalQuesInfo/th`, params)
} }
//重新长传状态 //重新长传状态
export function postEvalQuesInfocxtj(params){ export function postEvalQuesInfocxtj(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfo/cxtj`, params) return post(`${ARCH_EVALUATION}/postEvalQuesInfo/cxtj`, params)
} }
...@@ -2,19 +2,17 @@ ...@@ -2,19 +2,17 @@
// let mainURL="192.168.8.248:18101" // let mainURL="192.168.8.248:18101"
// var qs = require('qs') // var qs = require('qs')
import { ARCH_EVALUATION} from '@/config/micromodule' import { ARCH_EVALUATION } from '@/config/micromodule'
import { get, post, download } from '@/utils/http' import { get, post, download } from '@/utils/http'
// 获取流程列表 // 获取流程列表
export function evalBatchInfo(params) { export function evalBatchInfo(params) {
return post(`${ARCH_EVALUATION}/postEvalBatchInfoZc/`, params) return post(`${ARCH_EVALUATION}/postEvalBatchInfoZc/`, params)
} }
//专家库 //专家库
export function expertInfo(params) { export function expertInfo(params) {
return post(`${ARCH_EVALUATION}/expertInfo/`, params) return post(`${ARCH_EVALUATION}/expertInfo/`, params)
} }
//查询关联专家 //查询关联专家
export function expert(params) { export function expert(params) {
...@@ -55,7 +53,7 @@ export function fbProjectInfo(params) { ...@@ -55,7 +53,7 @@ export function fbProjectInfo(params) {
export function bcProjectInfo(params) { export function bcProjectInfo(params) {
return post(`${ARCH_EVALUATION}/projectInfoZc/bc`, params) return post(`${ARCH_EVALUATION}/projectInfoZc/bc`, params)
} }
//删除   //删除
export function delProjectInfo(params) { export function delProjectInfo(params) {
return post(`${ARCH_EVALUATION}/projectInfoZc/del`, params) return post(`${ARCH_EVALUATION}/projectInfoZc/del`, params)
} }
...@@ -110,6 +108,7 @@ export function postEvalQuesInfo(params) { ...@@ -110,6 +108,7 @@ export function postEvalQuesInfo(params) {
//新增问题 //新增问题
export function xzwtpostEvalQuesInfo(params) { export function xzwtpostEvalQuesInfo(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/xzwt`, params) return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/xzwt`, params)
// return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/adSelWtqd`, params)
} }
//问题清单 //问题清单
...@@ -175,7 +174,6 @@ export function wtssSelProblemAssistedFeedback(params) { ...@@ -175,7 +174,6 @@ export function wtssSelProblemAssistedFeedback(params) {
return post(`${ARCH_EVALUATION}/ProblemAssistedFeedbackZc/wtssSel`, params) return post(`${ARCH_EVALUATION}/ProblemAssistedFeedbackZc/wtssSel`, params)
} }
//项目结果确认更改 //项目结果确认更改
//项目评估结果确认更改查询 //项目评估结果确认更改查询
export function qrbgSelQuesInfo(params) { export function qrbgSelQuesInfo(params) {
...@@ -264,7 +262,6 @@ export function tjrectificationVerification(params) { ...@@ -264,7 +262,6 @@ export function tjrectificationVerification(params) {
return post(`${ARCH_EVALUATION}/rectificationVerificationZc/wtfhtj`, params) return post(`${ARCH_EVALUATION}/rectificationVerificationZc/wtfhtj`, params)
} }
//材料同步归档 //材料同步归档
//列表 //列表
export function tbgdrectificationVerification(params) { export function tbgdrectificationVerification(params) {
...@@ -292,7 +289,6 @@ export function downloadObjectAll(params) { ...@@ -292,7 +289,6 @@ export function downloadObjectAll(params) {
return download(`${ARCH_EVALUATION}/oss/downloadObjectAll`, params) return download(`${ARCH_EVALUATION}/oss/downloadObjectAll`, params)
} }
//后评估集中检查 //后评估集中检查
//项目检查问题查询 //项目检查问题查询
export function projectInspectionIssues(params) { export function projectInspectionIssues(params) {
...@@ -333,7 +329,7 @@ export function selProject(params) { ...@@ -333,7 +329,7 @@ export function selProject(params) {
return post(`${ARCH_EVALUATION}/auditTasks/selProject`, params) return post(`${ARCH_EVALUATION}/auditTasks/selProject`, params)
} }
//删除 //删除
export function delAuditTasks(params){ export function delAuditTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasks/delAuditTasks`, params) return post(`${ARCH_EVALUATION}/auditTasks/delAuditTasks`, params)
} }
//编辑 //编辑
...@@ -341,128 +337,128 @@ export function upauditTasks(params) { ...@@ -341,128 +337,128 @@ export function upauditTasks(params) {
return post(`${ARCH_EVALUATION}/auditTasks/up`, params) return post(`${ARCH_EVALUATION}/auditTasks/up`, params)
} }
//删除规则 //删除规则
export function delRule(params){ export function delRule(params) {
return post(`${ARCH_EVALUATION}/auditTasks/delRule`, params) return post(`${ARCH_EVALUATION}/auditTasks/delRule`, params)
} }
//删除项目 //删除项目
export function delProject(params){ export function delProject(params) {
return post(`${ARCH_EVALUATION}/auditTasks/delProject`, params) return post(`${ARCH_EVALUATION}/auditTasks/delProject`, params)
} }
//合规检查结果 //合规检查结果
//合规检查结果分页 //合规检查结果分页
export function auditTasksResults(params){ export function auditTasksResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/`, params)
} }
//合规检查结果确认分页 //合规检查结果确认分页
export function auditTasksResultsNew(params){ export function auditTasksResultsNew(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/ipage`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/ipage`, params)
} }
//详情 //详情
export function xqauditTasksResults(params){ export function xqauditTasksResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/xq`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/xq`, params)
} }
//删除 //删除
export function scauditTasksResults(params){ export function scauditTasksResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/sc`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/sc`, params)
} }
//确认 //确认
export function jgxqResults(params){ export function jgxqResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/jgxq`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/jgxq`, params)
} }
//下发 //下发
export function wtxfResults(params){ export function wtxfResults(params) {
return post(`${ARCH_EVALUATION}/auditTasksResults/wtxf`, params) return post(`${ARCH_EVALUATION}/auditTasksResults/wtxf`, params)
} }
//合规问题整改 //合规问题整改
//分页 //分页
export function auditTasksRuleProjectLink(params){ export function auditTasksRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/`, params)
} }
//详情 //详情
export function xqRuleProjectLink(params){ export function xqRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/xq`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/xq`, params)
} }
//整改 //整改
export function savaauditRuleProjectLink(params){ export function savaauditRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/sava`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/sava`, params)
} }
//提交 //提交
export function tjTasksRuleProjectLink(params){ export function tjTasksRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/tj`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLink/tj`, params)
} }
////合规问题整改核验 ////合规问题整改核验
//分页 //分页
export function auditTasksRuleProjectLinkZg(params){ export function auditTasksRuleProjectLinkZg(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/`, params)
} }
//详情 //详情
export function zgxqRuleProjectLink(params){ export function zgxqRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/zgxq`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/zgxq`, params)
} }
//整改 //整改
export function savaRuleProjectLink(params){ export function savaRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/sava`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/sava`, params)
} }
//提交 //提交
export function tjRuleProjectLink(params){ export function tjRuleProjectLink(params) {
return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/tj`, params) return post(`${ARCH_EVALUATION}/auditTasksRuleProjectLinkZg/tj`, params)
} }
//项目辅助检查 //项目辅助检查
//问题清单查询 //问题清单查询
export function selWtqdFZ(params){ export function selWtqdFZ(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selWtqd`, params) return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selWtqd`, params)
} }
export function selWtqdFZ2(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/adSelWtqd`, params)
}
//iframe展示文件 //iframe展示文件
export function selFile(params){ export function selFile(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selFile`, params) return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selFile`, params)
} }
export function selFileList(params){ export function selFileList(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selFileList`, params) return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selFileList`, params)
} }
//明显查询 //明显查询
export function selWtmx(params){ export function selWtmx(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selWtmx`, params) return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selWtmx`, params)
} }
//智能分析查询 //智能分析查询
export function selZnfx(params){ export function selZnfx(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selZnfx`, params) return post(`${ARCH_EVALUATION}/evalQuesInfoZc/selZnfx`, params)
} }
//保存 //保存
export function bcevalQuesInfo(params){ export function bcevalQuesInfo(params) {
return post(`${ARCH_EVALUATION}/evalQuesInfoZc/bc`, params) return post(`${ARCH_EVALUATION}/evalQuesInfoZc/bc`, params)
} }
//首页 //首页
export function projectInfoSy(params){ export function projectInfoSy(params) {
return post(`${ARCH_EVALUATION}/projectInfo/sy`, params) return post(`${ARCH_EVALUATION}/projectInfo/sy`, params)
} }
//项目列表页面 //项目列表页面
export function pmProInitiation(params){ export function pmProInitiation(params) {
return post(`${ARCH_EVALUATION}/projectInfoZc/getProjectInfo`, params) return post(`${ARCH_EVALUATION}/projectInfoZc/getProjectInfo`, params)
} }
//项目清单 //项目清单
export function MaterialWarehous(params){ export function MaterialWarehous(params) {
return post(`${ARCH_EVALUATION}/pmProInitiation/MaterialWarehouse`, params) return post(`${ARCH_EVALUATION}/pmProInitiation/MaterialWarehouse`, params)
} }
//更新类型 //更新类型
export function chpmProInitiation(params){ export function chpmProInitiation(params) {
return post(`${ARCH_EVALUATION}/pmProInitiation/ch`, params) return post(`${ARCH_EVALUATION}/pmProInitiation/ch`, params)
} }
//历史记录 //历史记录
export function HistoryVersion(params){ export function HistoryVersion(params) {
return post(`${ARCH_EVALUATION}/pmProInitiation/HistoryVersion`, params) return post(`${ARCH_EVALUATION}/pmProInitiation/HistoryVersion`, params)
} }
//材料退回 //材料退回
export function postEvalQuesInfoTh(params){ export function postEvalQuesInfoTh(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/th`, params) return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/th`, params)
} }
//重新长传状态 //重新长传状态
export function postEvalQuesInfocxtj(params){ export function postEvalQuesInfocxtj(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/cxtj`, params) return post(`${ARCH_EVALUATION}/postEvalQuesInfoZc/cxtj`, params)
} }
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" ref="formName" label-width="100px" class="demo-ruleForm">
:model="ruleForm"
ref="formName"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option <el-option
...@@ -18,32 +12,16 @@ ...@@ -18,32 +12,16 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem"> <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input <el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.batchName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem"> <el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-input <el-input v-model="ruleForm.projectId" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleForm.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem"> <el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-select <el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable>
v-model="ruleForm.projectYear"
placeholder="请选择"
clearable
>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
...@@ -53,16 +31,8 @@ ...@@ -53,16 +31,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="项目审核状态:" prop="postEvalState" class="fromItem">
label="项目审核状态:" <el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
prop="postEvalState"
class="fromItem"
>
<el-select
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<!-- <el-option label="材料未上传" value="0"></el-option> --> <!-- <el-option label="材料未上传" value="0"></el-option> -->
<el-option label="待评估" value="1"></el-option> <el-option label="待评估" value="1"></el-option>
<el-option label="需整改" value="2"></el-option> <el-option label="需整改" value="2"></el-option>
...@@ -71,11 +41,7 @@ ...@@ -71,11 +41,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="实际评估日期:" prop="lastUpdateTime" class="fromItem">
label="实际评估日期:"
prop="lastUpdateTime"
class="fromItem"
>
<el-date-picker <el-date-picker
@change="timeChange" @change="timeChange"
v-model="ruleForm.dates" v-model="ruleForm.dates"
...@@ -115,52 +81,32 @@ ...@@ -115,52 +81,32 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" prop="batchYear" width="120"> <el-table-column label="批次年度" prop="batchYear" width="120">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.batchYear }}</template></el-table-column
{{ scope.row.batchYear }}
</template></el-table-column
> >
<el-table-column prop="batchName" label="后评估批次名称"> <el-table-column prop="batchName" label="后评估批次名称"> </el-table-column>
</el-table-column>
<el-table-column prop="expertName" label="评审专家"> </el-table-column> <el-table-column prop="expertName" label="评审专家"> </el-table-column>
<el-table-column prop="projectCode" label="项目编码" width="140"> </el-table-column> <el-table-column prop="projectCode" label="项目编码" width="140"> </el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" show-overflow-tooltip>
prop="projectName"
label="项目名称"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="120"> <el-table-column prop="issueYear" label="项目年度" width="120">
<template slot-scope="scope" > <template slot-scope="scope">
<span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span> <span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="constructionForm" label="建设形式" width="120"> <el-table-column prop="constructionForm" label="建设形式" width="120"> </el-table-column>
</el-table-column>
<el-table-column prop="postEvalStateText" label="项目审核状态" width="120"> <el-table-column prop="postEvalStateText" label="项目审核状态" width="120">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="contractNumber" label="合同编号" show-overflow-tooltip>
prop="contractNumber"
label="合同编号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期"> <el-table-column prop="contractName" label="合同名称" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="lastUpdateTime" label="实际评估日期">
</el-table-column> </el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期"> </el-table-column>
<el-table-column prop="lastUpdateTime" label="实际评估日期"> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
...@@ -182,9 +128,7 @@ ...@@ -182,9 +128,7 @@
:append-to-body="false" :append-to-body="false"
> >
<div class="dialog"> <div class="dialog">
<h3> <h3>项目名称{{ listData.projectName }}</h3>
项目名称{{ listData.projectName }}
</h3>
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="基本信息" name="first"> <el-tab-pane label="基本信息" name="first">
...@@ -198,14 +142,8 @@ ...@@ -198,14 +142,8 @@
<span>{{ listData.projectName }}</span> <span>{{ listData.projectName }}</span>
</p> </p>
<p><label>建设形式:</label>{{ listData.constructionForm }}</p> <p><label>建设形式:</label>{{ listData.constructionForm }}</p>
<p> <p><label>总投资计划(万元)-成本金:</label>{{ listData.costAmountTotal }}</p>
<label>总投资计划(万元)-成本金:</label <p><label>总投资计划(万元)-资本金:</label>{{ listData.capitalAmountTotal }}</p>
>{{ listData.costAmountTotal }}
</p>
<p>
<label>总投资计划(万元)-资本金:</label
>{{ listData.capitalAmountTotal }}
</p>
<p><label>部门:</label>{{ listData.department }}</p> <p><label>部门:</label>{{ listData.department }}</p>
<!-- <p><label>创建人:</label>{{ listData.inputuser }}</p> <!-- <p><label>创建人:</label>{{ listData.inputuser }}</p>
<p><label>创建时间:</label>{{ listData.inputuser }}</p> <p><label>创建时间:</label>{{ listData.inputuser }}</p>
...@@ -245,13 +183,10 @@ ...@@ -245,13 +183,10 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column>
<el-table-column label="材料类别" prop="batchtype"> <el-table-column label="材料类别" prop="batchtype"> </el-table-column>
</el-table-column> <el-table-column prop="typeText" label="资料类型"> </el-table-column>
<el-table-column prop="typeText" label="资料类型">
</el-table-column>
<el-table-column prop="fileName" label="资料名称"> <el-table-column prop="fileName" label="资料名称">
<template slot-scope="scope" v-if="scope.row.fileName"> <template slot-scope="scope" v-if="scope.row.fileName">
{{ scope.row.fileName }}&nbsp;&nbsp;<el-button {{ scope.row.fileName }}&nbsp;&nbsp;<el-button
...@@ -287,25 +222,14 @@ ...@@ -287,25 +222,14 @@
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
border border
> >
<el-table-column <el-table-column label="项目环节" prop="projectStagetext" width="150">
label="项目环节"
prop="projectStagetext"
width="150"
>
</el-table-column>
<el-table-column label="序号" width="100" type="index">
</el-table-column> </el-table-column>
<el-table-column label="序号" width="100" type="index"> </el-table-column>
<el-table-column label="问题检查项" prop="quesCheckItem"> <el-table-column label="问题检查项" prop="quesCheckItem"> </el-table-column>
</el-table-column> <el-table-column label="检查说明" prop="checkDesc" show-overflow-tooltip>
<el-table-column
label="检查说明"
prop="checkDesc"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="评估问题" prop="evalQues">
</el-table-column> </el-table-column>
<el-table-column label="评估问题" prop="evalQues"> </el-table-column>
<el-table-column label="问题截图" width="auto"> <el-table-column label="问题截图" width="auto">
<template slot-scope="scope"> <template slot-scope="scope">
<el-image <el-image
...@@ -330,13 +254,10 @@ ...@@ -330,13 +254,10 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="流程节点" prop="processNodes" width="150"> <el-table-column label="流程节点" prop="processNodes" width="150"> </el-table-column>
</el-table-column>
<el-table-column label="状态" prop="state"> </el-table-column> <el-table-column label="状态" prop="state"> </el-table-column>
<el-table-column label="处理人" prop="processedBy"> <el-table-column label="处理人" prop="processedBy"> </el-table-column>
</el-table-column> <el-table-column label="处理时间" prop="processingTime"> </el-table-column>
<el-table-column label="处理时间" prop="processingTime">
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -346,8 +267,8 @@ ...@@ -346,8 +267,8 @@
</div> </div>
</template> </template>
<script> <script>
import { MaterialsList } from "@/utils/cache"; import { MaterialsList } from '@/utils/cache'
import { import {
fzcxselect, fzcxselect,
fzcxXqselect, fzcxXqselect,
...@@ -356,9 +277,9 @@ import { ...@@ -356,9 +277,9 @@ import {
selLcb, selLcb,
presignedUrl, presignedUrl,
downloadObject, downloadObject,
downloadObjectAll downloadObjectAll,
} from "@/api/index"; } from '@/api/index'
import { generateYearOptions, constructionFormText } from "@/utils/cache"; import { generateYearOptions, constructionFormText } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
...@@ -369,17 +290,17 @@ export default { ...@@ -369,17 +290,17 @@ export default {
xxtableData: [], xxtableData: [],
showButton: true, showButton: true,
ruleForm: { ruleForm: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
postEvalState: "", postEvalState: '',
projectName: "", projectName: '',
projectId: "", projectId: '',
}, },
ruleFormdialog: { ruleFormdialog: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
fullName: "", fullName: '',
}, },
tableData: [], tableData: [],
...@@ -391,271 +312,257 @@ export default { ...@@ -391,271 +312,257 @@ export default {
pageSizetjcl: 10, pageSizetjcl: 10,
total: 0, total: 0,
dialog: false, dialog: false,
activeName: "first", activeName: 'first',
mergingRows: [], mergingRows: [],
lctableData: [], lctableData: [],
}; }
}, },
mounted() { mounted() {
this.ruleForm.batchName = this.$route.query.batchName; this.ruleForm.batchName = this.$route.query.batchName
this.ruleForm.projectCode = this.$route.query.projCode; this.ruleForm.projectCode = this.$route.query.projCode
this.submitForm(); this.submitForm()
}, },
methods: { methods: {
timeChange(time) { timeChange(time) {
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.createStartTime = time[0]; this.ruleForm.createStartTime = time[0]
this.ruleForm.createEndTime = time[1]; this.ruleForm.createEndTime = time[1]
}else{ } else {
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
} }
}, },
async submitForm() { async submitForm() {
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
module:0, module: 0,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
let res = await fzcxselect(params); let res = await fzcxselect(params)
if (res.code == "200") { if (res.code == '200') {
this.tableData = res.data.records; this.tableData = res.data.records
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.postEvalState == "" || item.postEvalState == null) { if (item.postEvalState == '' || item.postEvalState == null) {
// this.$set(item, "postEvalStateText", "材料未上传"); // this.$set(item, "postEvalStateText", "材料未上传");
} else if (item.postEvalState == "0") { } else if (item.postEvalState == '0') {
// this.$set(item, "postEvalStateText", "材料未上传"); // this.$set(item, "postEvalStateText", "材料未上传");
} else if (item.postEvalState == 1) { } else if (item.postEvalState == 1) {
this.$set(item, "postEvalStateText", "待评估"); this.$set(item, 'postEvalStateText', '待评估')
} else if (item.postEvalState == 2) { } else if (item.postEvalState == 2) {
this.$set(item, "postEvalStateText", "需整改"); this.$set(item, 'postEvalStateText', '需整改')
}else if (item.postEvalState == 3) { } else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "已整改"); this.$set(item, 'postEvalStateText', '已整改')
}else if (item.postEvalState == 4) { } else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "已归档"); this.$set(item, 'postEvalStateText', '已归档')
} }
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.total = res.data.total * 1
constructionFormText(item.constructionForm)
);
});
this.total = res.data.total * 1;
} }
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields()
this.currentPage = 1; this.currentPage = 1
this.pageSize = 10; this.pageSize = 10
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
this.ruleForm.dates=[] this.ruleForm.dates = []
this.submitForm(); this.submitForm()
}, },
//详情 //详情
detailsForm() { detailsForm() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
this.dialog = true; this.dialog = true
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].contractNumber,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
}; }
Promise.all([fzcxXqselect(params), clqdselect(params)]).then((res) => { Promise.all([fzcxXqselect(params), clqdselect(params)]).then((res) => {
this.listData = res[0].data.records[0]; this.listData = res[0].data.records[0]
this.listData.constructionForm = constructionFormText( this.listData.constructionForm = constructionFormText(this.listData.constructionForm)
this.listData.constructionForm this.qdtableData = JSON.parse(JSON.stringify(this.tableDataNew))
);
this.qdtableData = JSON.parse(JSON.stringify(this.tableDataNew));
if (res[1].data.records.length > 0) { if (res[1].data.records.length > 0) {
this.qdtableData = this.qdtableData this.qdtableData = this.qdtableData
.concat(res[1].data.records) .concat(res[1].data.records)
.reduce((accumulator, currentObj) => { .reduce((accumulator, currentObj) => {
const existingObj = accumulator.find( const existingObj = accumulator.find((obj) => obj.typeCode == currentObj.typeCode)
(obj) => obj.typeCode == currentObj.typeCode
);
if (existingObj) { if (existingObj) {
Object.assign(existingObj, currentObj); Object.assign(existingObj, currentObj)
} else { } else {
accumulator.push(currentObj); accumulator.push(currentObj)
} }
return accumulator; return accumulator
}, []); }, [])
} }
}); })
}, },
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) { if (columnIndex === 0) {
//第一列 //第一列
const _row = this.mergingRows[rowIndex]; const _row = this.mergingRows[rowIndex]
const _col = _row > 0 ? 1 : 0; const _col = _row > 0 ? 1 : 0
return { return {
rowspan: _row, rowspan: _row,
colspan: _col, colspan: _col,
}; }
} }
}, },
dataPretreatment() { dataPretreatment() {
this.mergingRows = []; this.mergingRows = []
this.mergingPos = 0; this.mergingPos = 0
for (let i = 0; i < this.xxtableData.length; i++) { for (let i = 0; i < this.xxtableData.length; i++) {
// tabledata 表格数据源 // tabledata 表格数据源
if (i == 0) { if (i == 0) {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = 0; this.mergingPos = 0
} else { } else {
if ( if (this.xxtableData[i].projectStage === this.xxtableData[i - 1].projectStage) {
this.xxtableData[i].projectStage ===
this.xxtableData[i - 1].projectStage
) {
//哪些数据是要合并的 合并的条件是什么 //哪些数据是要合并的 合并的条件是什么
this.mergingRows[this.mergingPos] += 1; this.mergingRows[this.mergingPos] += 1
this.mergingRows.push(0); this.mergingRows.push(0)
} else { } else {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = i; this.mergingPos = i
} }
} }
} }
}, },
async handleClick() { async handleClick() {
if (this.activeName == "second") { if (this.activeName == 'second') {
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
}; }
this.xxtableData = []; this.xxtableData = []
let res = await wtqdqselect(params); let res = await wtqdqselect(params)
if (res.code == "200") { if (res.code == '200') {
this.xxtableData = res.data.records; this.xxtableData = res.data.records
this.total = res.data.total * 1; this.total = res.data.total * 1
} }
this.xxtableData.forEach((item) => { this.xxtableData.forEach((item) => {
switch (item.projectStage) { switch (item.projectStage) {
case 1: case 1:
this.$set(item, "projectStagetext", "1.可研"); this.$set(item, 'projectStagetext', '1.可研')
break; break
case 2: case 2:
this.$set(item, "projectStagetext", "2.计划"); this.$set(item, 'projectStagetext', '2.计划')
break; break
case 3: case 3:
this.$set(item, "projectStagetext", "3.采购"); this.$set(item, 'projectStagetext', '3.采购')
break; break
case 4: case 4:
this.$set(item, "projectStagetext", "4.合同"); this.$set(item, 'projectStagetext', '4.合同')
break; break
case 5: case 5:
this.$set(item, "projectStagetext", "5.执行"); this.$set(item, 'projectStagetext', '5.执行')
break; break
case 6: case 6:
this.$set(item, "projectStagetext", "6.结决算及转资"); this.$set(item, 'projectStagetext', '6.结决算及转资')
break; break
} }
let urlStr = item.url; let urlStr = item.url
let arrUrl = []; let arrUrl = []
let showUrlList = []; let showUrlList = []
// 有url拆分调接口换预览 // 有url拆分调接口换预览
if (urlStr) { if (urlStr) {
if (urlStr.includes(',')) {
if (urlStr.includes(",")) { arrUrl = item.url.split(',')
arrUrl = item.url.split(",");
} else { } else {
arrUrl.push(urlStr); arrUrl.push(urlStr)
} }
arrUrl.forEach(async (showUrl) => { arrUrl.forEach(async (showUrl) => {
let paramsUrl = { let paramsUrl = {
url: showUrl, url: showUrl,
}; }
let resUrl = await presignedUrl(paramsUrl); let resUrl = await presignedUrl(paramsUrl)
showUrlList.push(resUrl.msg); showUrlList.push(resUrl.msg)
}); })
this.$set(item, "images", showUrlList); this.$set(item, 'images', showUrlList)
} }
}); })
this.dataPretreatment(); this.dataPretreatment()
} else if (this.activeName == "third") { } else if (this.activeName == 'third') {
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
}; }
let res = await selLcb(params); let res = await selLcb(params)
if (res.code == "200") { if (res.code == '200') {
this.lctableData = res.data; this.lctableData = res.data
} }
} }
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
console.log(this.checkedList, "2222"); console.log(this.checkedList, '2222')
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false
}, },
handleImageClick() {}, handleImageClick() {},
async handleClickXZ(scope) { async handleClickXZ(scope) {
let response = await downloadObject({ let response = await downloadObject({
fileId: scope.fileId * 1, fileId: scope.fileId * 1,
}); })
let blob = new Blob([response]); let blob = new Blob([response])
if ("download" in document.createElement("a")) { if ('download' in document.createElement('a')) {
let elink = document.createElement("a"); let elink = document.createElement('a')
elink.download = fileName; elink.download = fileName
elink.style.display = "none"; elink.style.display = 'none'
elink.href = URL.createObjectURL(blob); elink.href = URL.createObjectURL(blob)
document.body.appendChild(elink); document.body.appendChild(elink)
elink.click(); elink.click()
URL.revokeObjectURL(elink.href); // 释放URL 对象 URL.revokeObjectURL(elink.href) // 释放URL 对象
document.body.removeChild(elink); document.body.removeChild(elink)
} }
}, },
async downFiles(){ async downFiles() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if(this.checkedList[0].postEvalStateText!='已归档'){ if (this.checkedList[0].postEvalStateText != '已归档') {
this.$message("该项目还未归档,请重新选择"); this.$message('该项目还未归档,请重新选择')
return; return
} }
let response = await downloadObjectAll({ let response = await downloadObjectAll({
prjId:this.checkedList[0].projectCode, prjId: this.checkedList[0].projectCode,
bathId: this.checkedList[0].contractNumber, bathId: this.checkedList[0].contractNumber,
}); })
let blob = new Blob([response], { type: 'application/zip' }) let blob = new Blob([response], { type: 'application/zip' })
let url = window.URL.createObjectURL(blob) let url = window.URL.createObjectURL(blob)
const link = document.createElement('a') // 创建a标签 const link = document.createElement('a') // 创建a标签
...@@ -663,11 +570,11 @@ export default { ...@@ -663,11 +570,11 @@ export default {
link.download = '归档' // 重命名文件 link.download = '归档' // 重命名文件
link.click() link.click()
URL.revokeObjectURL(url) // 释放内存 URL.revokeObjectURL(url) // 释放内存
}
}, },
}; },
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
...@@ -787,7 +694,7 @@ export default { ...@@ -787,7 +694,7 @@ export default {
.title { .title {
text-align: left; text-align: left;
font-size: 18px; font-size: 18px;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
font-size: 16px; font-size: 16px;
......
<!-- 辅助检查 --> <!-- 辅助检查 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" ref="formName" label-width="100px" class="demo-ruleForm">
:model="ruleForm"
ref="formName"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option <el-option
...@@ -18,32 +13,16 @@ ...@@ -18,32 +13,16 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem"> <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input <el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.batchName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem"> <el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-input <el-input v-model="ruleForm.projectId" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleForm.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem"> <el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-select <el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable>
v-model="ruleForm.projectYear"
placeholder="请选择"
clearable
>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
...@@ -53,11 +32,7 @@ ...@@ -53,11 +32,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="项目审核状态:" prop="postEvalState" class="fromItem"> <el-form-item label="项目审核状态:" prop="postEvalState" class="fromItem">
<el-select <el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<!-- <el-option label="材料未上传" value="0"></el-option> --> <!-- <el-option label="材料未上传" value="0"></el-option> -->
<el-option label="待评估" value="1"></el-option> <el-option label="待评估" value="1"></el-option>
<el-option label="需整改" value="2"></el-option> <el-option label="需整改" value="2"></el-option>
...@@ -65,11 +40,7 @@ ...@@ -65,11 +40,7 @@
<el-option label="已归档" value="4"></el-option> <el-option label="已归档" value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="实际评估日期:" prop="lastUpdateTime" class="fromItem">
label="实际评估日期:"
prop="lastUpdateTime"
class="fromItem"
>
<el-date-picker <el-date-picker
@change="timeChange" @change="timeChange"
v-model="ruleForm.dates" v-model="ruleForm.dates"
...@@ -103,8 +74,7 @@ ...@@ -103,8 +74,7 @@
:disabled="confirmdisabled" :disabled="confirmdisabled"
:class="confirmdisabled ? 'noclick' : ''" :class="confirmdisabled ? 'noclick' : ''"
> >
<i class="el-icon-chat-dot-square"></i <i class="el-icon-chat-dot-square"></i>&nbsp;&nbsp;&nbsp;整改复核</el-button
>&nbsp;&nbsp;&nbsp;整改复核</el-button
> >
<el-button <el-button
@click="inspectBack()" @click="inspectBack()"
...@@ -126,68 +96,39 @@ ...@@ -126,68 +96,39 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" prop="batchYear" width="120"> <el-table-column label="批次年度" prop="batchYear" width="120">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.batchYear }}</template></el-table-column
{{ scope.row.batchYear }}
</template></el-table-column
> >
<el-table-column prop="batchName" label="后评估批次名称"> <el-table-column prop="batchName" label="后评估批次名称"> </el-table-column>
</el-table-column>
<el-table-column prop="expertName" label="评审专家" width="90"> </el-table-column> <el-table-column prop="expertName" label="评审专家" width="90"> </el-table-column>
<el-table-column prop="projectCode" label="项目编码" width="130"> <el-table-column prop="projectCode" label="项目编码" width="130"> </el-table-column>
</el-table-column> <el-table-column prop="projectName" label="项目名称" show-overflow-tooltip>
<el-table-column
prop="projectName"
label="项目名称"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="120"> <el-table-column prop="issueYear" label="项目年度" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-show="scope.row.issueYear"> <span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span>
{{ scope.row.issueYear }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="projectType" label="项目类型" width="120"> <el-table-column prop="projectType" label="项目类型" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-show="scope.row.projectType"> <span v-show="scope.row.projectType"> {{ scope.row.projectType | proType }}</span>
{{ scope.row.projectType | proType }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="constructionForm" label="建设形式" width="120"> <el-table-column prop="constructionForm" label="建设形式" width="120"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="postEvalStateText" label="项目审核状态 " width="120">
prop="postEvalStateText"
label="项目审核状态 "
width="120"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="contractNumber" label="合同编号" show-overflow-tooltip>
prop="contractNumber"
label="合同编号"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="contractName" label="合同名称" width="auto" show-overflow-tooltip>
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="reviewStatusText" label="项目审核状态" width="120"> <!-- <el-table-column prop="reviewStatusText" label="项目审核状态" width="120">
</el-table-column> --> </el-table-column> -->
<el-table-column prop="planReviewDate" label="计划评估日期"> <el-table-column prop="planReviewDate" label="计划评估日期"> </el-table-column>
</el-table-column> <el-table-column prop="lastUpdateTime" label="实际评估日期"> </el-table-column>
<el-table-column prop="lastUpdateTime" label="实际评估日期">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
...@@ -224,6 +165,7 @@ ...@@ -224,6 +165,7 @@
<div class="setTable"> <div class="setTable">
<el-table <el-table
:data="tableDataQR" :data="tableDataQR"
height="100%"
tooltip-effect="dark myTooltips" tooltip-effect="dark myTooltips"
style="width: 100%" style="width: 100%"
header-cell-class-name="custom-th-background" header-cell-class-name="custom-th-background"
...@@ -232,32 +174,35 @@ ...@@ -232,32 +174,35 @@
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
border border
> >
<el-table-column <el-table-column label="项目环节" prop="pprojectStage" min-width="100">
label="项目环节" <template v-slot="scope">
prop="projectStagetext" {{ projectStageOptions[scope.row.pprojectStage] }}
width="100" </template>
>
</el-table-column>
<el-table-column label="序号" width="40" type="index">
</el-table-column> </el-table-column>
<el-table-column label="序号" width="40" type="index"> </el-table-column>
<el-table-column <el-table-column
label="问题检查项" label="问题检查项"
prop="quesCheckItem" prop="quesCheckItem"
width="auto" min-width="100"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="检查说明" label="检查说明"
prop="checkDesc" prop="checkDesc"
width="auto" min-width="100"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column label="评估问题" prop="evalQues" width="auto" show-overflow-tooltip> <el-table-column
label="评估问题"
prop="evalQues"
min-width="100"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column label="问题响应" width="100"> <el-table-column label="问题响应" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.confirmStatus" v-model="scope.row.confirmStatus"
...@@ -279,7 +224,12 @@ ...@@ -279,7 +224,12 @@
</el-switch> </el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="解释批注" prop="feedback" width="auto" show-overflow-tooltip> <el-table-column
label="解释批注"
prop="feedback"
min-width="100"
show-overflow-tooltip
>
<!-- <template <!-- <template
slot-scope="scope" slot-scope="scope"
v-if="scope.row.confirmStatus == '1'" v-if="scope.row.confirmStatus == '1'"
...@@ -287,7 +237,7 @@ ...@@ -287,7 +237,7 @@
<el-input v-model="scope.row.feedback" disabled></el-input> <el-input v-model="scope.row.feedback" disabled></el-input>
</template> --> </template> -->
</el-table-column> </el-table-column>
<el-table-column label="整改材料下载" width="120"> <el-table-column label="整改材料下载" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link <router-link
:to="{ :to="{
...@@ -300,7 +250,7 @@ ...@@ -300,7 +250,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="附加解释材料" prop="fileId" width="300"> <el-table-column label="附加解释材料" prop="fileId" min-width="200">
<template <template
slot-scope="scope" slot-scope="scope"
v-if="scope.row.confirmStatus == '1' && scope.row.fileId" v-if="scope.row.confirmStatus == '1' && scope.row.fileId"
...@@ -368,27 +318,14 @@ ...@@ -368,27 +318,14 @@
</div> </div>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column <el-table-column label="复核情况说明" prop="zgqkFileId" min-width="200">
label="复核情况说明"
prop="zgqkFileId"
width="200"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.zgqkFileId" type="textarea" <el-input v-model="scope.row.zgqkFileId" type="textarea" :rows="2"></el-input>
:rows="2"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="整改复核" prop="rectificationStatus" min-width="200">
label="整改复核"
prop="rectificationStatus"
width="200"
>
<template slot-scope="scope" v-if="scope.row.evalQues"> <template slot-scope="scope" v-if="scope.row.evalQues">
<el-select <el-select v-model="scope.row.rectificationStatus" placeholder="请选择">
v-model="scope.row.rectificationStatus"
placeholder="请选择"
>
<!-- <el-option label="请选择" value=""></el-option> --> <!-- <el-option label="请选择" value=""></el-option> -->
<el-option label="问题未整改" :value="0"></el-option> <el-option label="问题未整改" :value="0"></el-option>
<el-option label="整改不合格" :value="1"></el-option> <el-option label="整改不合格" :value="1"></el-option>
...@@ -417,7 +354,11 @@ ...@@ -417,7 +354,11 @@
<p>问题描述</p> --> <p>问题描述</p> -->
<el-form ref="form" :model="form" label-width="80px" class="addfrom"> <el-form ref="form" :model="form" label-width="80px" class="addfrom">
<el-form-item label="项目环节"> <el-form-item label="项目环节">
<el-select v-model="form.projectStage" placeholder="请选择项目环节" @change="selectProjectStage"> <el-select
v-model="form.projectStage"
placeholder="请选择项目环节"
@change="selectProjectStage"
>
<el-option label="可研" value="1"></el-option> <el-option label="可研" value="1"></el-option>
<!-- <el-option label="计划" value="2"></el-option> --> <!-- <el-option label="计划" value="2"></el-option> -->
<el-option label="采购" value="3"></el-option> <el-option label="采购" value="3"></el-option>
...@@ -427,12 +368,17 @@ ...@@ -427,12 +368,17 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="问题检查项"> <el-form-item label="问题检查项">
<el-select v-model="form.quesCheckItem" placeholder="请选择问题检查项" @change="selectCheckItem" > <el-select
v-model="form.quesCheckItem"
placeholder="请选择问题检查项"
@change="selectCheckItem"
>
<el-option <el-option
v-for="item in quesoptions" v-for="item in quesoptions"
:key="item.checkDesc" :key="item.checkDesc"
:label="item.quesCheckItem" :label="item.quesCheckItem"
:value="item.quesCheckItem"> :value="item.quesCheckItem"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -440,7 +386,7 @@ ...@@ -440,7 +386,7 @@
<el-form-item label="检查说明"> <el-form-item label="检查说明">
<el-input v-model="form.checkDesc" type="textarea" row="4" disabled></el-input> <el-input v-model="form.checkDesc" type="textarea" row="4" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="问题描述" > <el-form-item label="问题描述">
<el-input v-model="form.evalQues" type="textarea" row="4"></el-input> <el-input v-model="form.evalQues" type="textarea" row="4"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -452,7 +398,7 @@ ...@@ -452,7 +398,7 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
postEvalQuesInfo, postEvalQuesInfo,
chpostEvalQuesInfo, chpostEvalQuesInfo,
...@@ -462,46 +408,44 @@ import { ...@@ -462,46 +408,44 @@ import {
tjrectificationVerification, tjrectificationVerification,
MaterialWarehous, MaterialWarehous,
downloadObjectStr, downloadObjectStr,
selWtqdFZ, selWtqdFZ2,
xzwtpostEvalQuesInfo, xzwtpostEvalQuesInfo,
postEvalQuesInfoTh postEvalQuesInfoTh,
} from "@/api/index"; } from '@/api/index'
import { generateYearOptions, constructionFormText } from "@/utils/cache"; import { generateYearOptions, constructionFormText } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
quesoptions:[], quesoptions: [],
form: { form: {
projectStage:'', projectStage: '',
evalQues:'' evalQues: '',
}, },
innerVisible: false, innerVisible: false,
dialogFullScreen: false, dialogFullScreen: false,
yearsList: generateYearOptions(), yearsList: generateYearOptions(),
showButton: true, showButton: true,
ruleForm: { ruleForm: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
postEvalState: "", postEvalState: '',
projectName: "", projectName: '',
projectId: "", projectId: '',
dates: [], dates: [],
}, },
ruleFormdialog: { ruleFormdialog: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
fullName: "", fullName: '',
}, },
rules: { rules: {
batchYear: [ batchYear: [{ required: true, message: '请选择批次年度', trigger: 'change' }],
{ required: true, message: "请选择批次年度", trigger: "change" },
],
batchName: [ batchName: [
{ {
required: true, required: true,
message: "请选择后评估批次名称", message: '请选择后评估批次名称',
trigger: "change", trigger: 'change',
}, },
], ],
}, },
...@@ -520,25 +464,26 @@ export default { ...@@ -520,25 +464,26 @@ export default {
tableDataQR: [], tableDataQR: [],
confirmdisabled: false, confirmdisabled: false,
inspectdisabled: false, inspectdisabled: false,
}; projectStageOptions: [null, '可研', '采购', '合同', '执行', '结决算及转资'],
}
}, },
mounted() { mounted() {
console.log(this.$route.query, "this.$route.query"); console.log(this.$route.query, 'this.$route.query')
this.ruleForm.batchName = this.$route.query.batchName; this.ruleForm.batchName = this.$route.query.batchName
this.submitForm(); this.submitForm()
}, },
filters: { filters: {
proType(val) { proType(val) {
if (val == 1) { if (val == 1) {
return "咨询设计类"; return '咨询设计类'
} else if (val == 2) { } else if (val == 2) {
return "开发实施类"; return '开发实施类'
} else if (val == 3) { } else if (val == 3) {
return "业务运营类"; return '业务运营类'
} else if (val == 4) { } else if (val == 4) {
return "数据工程类"; return '数据工程类'
} else if (val == 5) { } else if (val == 5) {
return "产品购置类"; return '产品购置类'
} }
}, },
}, },
...@@ -549,117 +494,93 @@ export default { ...@@ -549,117 +494,93 @@ export default {
fullNameStr: row.values, fullNameStr: row.values,
fullUrlStr: row.fullUrl, fullUrlStr: row.fullUrl,
materialName: row.names, materialName: row.names,
}; }
let response = await downloadObjectStr(params); let response = await downloadObjectStr(params)
let blob = new Blob([response], { type: "application/zip" }); let blob = new Blob([response], { type: 'application/zip' })
let url = window.URL.createObjectURL(blob); let url = window.URL.createObjectURL(blob)
const link = document.createElement("a"); // 创建a标签 const link = document.createElement('a') // 创建a标签
link.href = url; link.href = url
link.download = row.names + "压缩文件"; // 重命名文件 link.download = row.names + '压缩文件' // 重命名文件
link.click(); link.click()
URL.revokeObjectURL(url); // 释放内存 URL.revokeObjectURL(url) // 释放内存
}, },
//整改复核 //整改复核
async rectificationReview() { async rectificationReview() {
this.mergingPos = 0; this.mergingPos = 0
this.mergingRows = []; this.mergingRows = []
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择一条数据进行整改"); this.$message('请选择一条数据进行整改')
return; return
} }
this.dialogQR = true; this.dialogQR = true
let params = { let params = {
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
let res = await wtssSelectificationVerification(params); let res = await wtssSelectificationVerification(params)
if (res.code == "200") { if (res.code == '200') {
let paramsMat = { let paramsMat = {
proType: this.checkedList[0].projectType, proType: this.checkedList[0].projectType,
contractNumber: this.checkedList[0].contractNumber, contractNumber: this.checkedList[0].contractNumber,
prjId: this.checkedList[0].projectCode, prjId: this.checkedList[0].projectCode,
}; }
let resMat = await MaterialWarehous(paramsMat); let resMat = await MaterialWarehous(paramsMat)
this.tableDataQR = res.data.records; this.tableDataQR = res.data.records
let arrs = []; let arrs = []
this.tableDataQR.forEach((item) => { this.tableDataQR.forEach((item) => {
if (!item.confirmStatus) { if (!item.confirmStatus) {
this.$set(item, "confirmStatus", "2"); this.$set(item, 'confirmStatus', '2')
} }
if (item.evalQues) { if (item.evalQues) {
arrs.push(item.projectStage); arrs.push(item.projectStage)
} }
switch (item.projectStage) { switch (item.projectStage) {
case "1": case '1':
this.$set(item, "projectStagetext", "1.可研"); this.$set(item, 'projectStagetext', '1.可研')
this.$set( this.$set(item, 'filed', this.filtersTable(1, resMat.data.records))
item, break
"filed", case '2':
this.filtersTable(1, resMat.data.records) this.$set(item, 'projectStagetext', '2.计划')
); this.$set(item, 'filed', this.filtersTable(2, resMat.data.records))
break; break
case "2": case '3':
this.$set(item, "projectStagetext", "2.计划"); this.$set(item, 'projectStagetext', '3.采购')
this.$set( this.$set(item, 'filed', this.filtersTable(3, resMat.data.records))
item, break
"filed", case '4':
this.filtersTable(2, resMat.data.records) this.$set(item, 'projectStagetext', '4.合同')
); this.$set(item, 'filed', this.filtersTable(4, resMat.data.records))
break; break
case "3": case '5':
this.$set(item, "projectStagetext", "3.采购"); this.$set(item, 'projectStagetext', '5.执行')
this.$set( this.$set(item, 'filed', this.filtersTable(5, resMat.data.records))
item, break
"filed", case '6':
this.filtersTable(3, resMat.data.records) this.$set(item, 'projectStagetext', '6.结决算及转资')
); this.$set(item, 'filed', this.filtersTable(6, resMat.data.records))
break; break
case "4": }
this.$set(item, "projectStagetext", "4.合同"); let arr = []
this.$set( let arrID = []
item,
"filed",
this.filtersTable(4, resMat.data.records)
);
break;
case "5":
this.$set(item, "projectStagetext", "5.执行");
this.$set(
item,
"filed",
this.filtersTable(5, resMat.data.records)
);
break;
case "6":
this.$set(item, "projectStagetext", "6.结决算及转资");
this.$set(
item,
"filed",
this.filtersTable(6, resMat.data.records)
);
break;
}
let arr = [];
let arrID = [];
if (item.zgName) { if (item.zgName) {
arr = item.zgName.split(","); arr = item.zgName.split(',')
arrID = item.zgFileId.split(","); arrID = item.zgFileId.split(',')
this.$set(item, "tags", arr); this.$set(item, 'tags', arr)
this.$set(item, "tagId", arrID); this.$set(item, 'tagId', arrID)
} }
}); })
this.tableDataQR.forEach((val) => { this.tableDataQR.forEach((val) => {
this.$set(val, "prob", Array.from(new Set(arrs))); this.$set(val, 'prob', Array.from(new Set(arrs)))
}); })
this.dataPretreatment(); this.dataPretreatment()
} }
}, },
filtersTable() { filtersTable() {
let newArr = arguments[1].filter((items) => { let newArr = arguments[1].filter((items) => {
return items.projectStage == arguments[0]; return items.projectStage == arguments[0]
}); })
let msg = []; let msg = []
newArr.forEach((item) => { newArr.forEach((item) => {
if (item.fullName) { if (item.fullName) {
msg.push({ msg.push({
...@@ -668,107 +589,98 @@ export default { ...@@ -668,107 +589,98 @@ export default {
mid: item.mid, mid: item.mid,
fullId: item.fullId, fullId: item.fullId,
fullUrl: item.fullUrl, fullUrl: item.fullUrl,
}); })
// msg=msg.concat(item.materialName+':'+item.fullName+"<br>"); // msg=msg.concat(item.materialName+':'+item.fullName+"<br>");
} }
}); })
return msg; return msg
}, },
dataPretreatment() { dataPretreatment() {
for (let i = 0; i < this.tableDataQR.length; i++) { for (let i = 0; i < this.tableDataQR.length; i++) {
// tabledata 表格数据源 // tabledata 表格数据源
if (i === 0) { if (i === 0) {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = 0; this.mergingPos = 0
} else { } else {
if ( if (this.tableDataQR[i].projectStage === this.tableDataQR[i - 1].projectStage) {
this.tableDataQR[i].projectStage ===
this.tableDataQR[i - 1].projectStage
) {
//哪些数据是要合并的 合并的条件是什么 //哪些数据是要合并的 合并的条件是什么
this.mergingRows[this.mergingPos] += 1; this.mergingRows[this.mergingPos] += 1
this.mergingRows.push(0); this.mergingRows.push(0)
} else { } else {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = i; this.mergingPos = i
} }
} }
} }
}, },
closed() { closed() {
console.log("关闭"); console.log('关闭')
this.handleSelectionChange(); this.handleSelectionChange()
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) { if (columnIndex === 0) {
//第一列 //第一列
const _row = this.mergingRows[rowIndex]; const _row = this.mergingRows[rowIndex]
const _col = _row > 0 ? 1 : 0; const _col = _row > 0 ? 1 : 0
return { return {
rowspan: _row, rowspan: _row,
colspan: _col, colspan: _col,
}; }
} }
}, },
timeChange(time) { timeChange(time) {
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.createStartTime = time[0]; this.ruleForm.createStartTime = time[0]
this.ruleForm.createEndTime = time[1]; this.ruleForm.createEndTime = time[1]
} else { } else {
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
} }
}, },
async saveSS() { async saveSS() {
let res = await bcrectificationVerification(this.tableDataQR); let res = await bcrectificationVerification(this.tableDataQR)
if (res.code == "200") { if (res.code == '200') {
// this.dialogQR = false; // this.dialogQR = false;
this.$message("保存成功"); this.$message('保存成功')
this.resetForm(); this.resetForm()
} }
}, },
async savetj() { async savetj() {
this.tableDataQR.forEach((item) => { this.tableDataQR.forEach((item) => {
console.log(item.rectificationStatus, "item.rectificationStatus"); console.log(item.rectificationStatus, 'item.rectificationStatus')
if (!item.rectificationStatus && item.rectificationStatus !== 0) { if (!item.rectificationStatus && item.rectificationStatus !== 0) {
this.$message({ this.$message({
message: "请完成所有整改复核后在进行提交", message: '请完成所有整改复核后在进行提交',
type: "warning", type: 'warning',
}); })
throw new Error(); throw new Error()
} }
}); })
const isallwc = this.tableDataQR.every( const isallwc = this.tableDataQR.every((element) => element.rectificationStatus == 2)
(element) => element.rectificationStatus == 2
);
if (isallwc) { if (isallwc) {
this.$confirm( this.$confirm('若所有整改复核状态均为整改完成即为完成归档, 是否继续?', '提示', {
"若所有整改复核状态均为整改完成即为完成归档, 是否继续?", confirmButtonText: '确定',
"提示", cancelButtonText: '取消',
{ type: 'warning',
confirmButtonText: "确定", }).then(async () => {
cancelButtonText: "取消", let res = await tjrectificationVerification(this.tableDataQR)
type: "warning", if (res.code == '200') {
} this.dialogQR = false
).then(async () => { this.$message('提交成功')
let res = await tjrectificationVerification(this.tableDataQR); this.resetForm()
if (res.code == "200") {
this.dialogQR = false;
this.$message("提交成功");
this.resetForm();
} else { } else {
this.$message("提交失败"); this.$message('提交失败')
} }
}); })
} else { } else {
let res = await tjrectificationVerification(this.tableDataQR); let res = await tjrectificationVerification(this.tableDataQR)
if (res.code == "200") { if (res.code == '200') {
this.dialogQR = false; this.dialogQR = false
this.$message("提交成功"); this.$message('提交成功')
this.resetForm(); this.resetForm()
} else { } else {
this.$message("提交失败"); this.$message('提交失败')
} }
} }
}, },
...@@ -777,26 +689,26 @@ export default { ...@@ -777,26 +689,26 @@ export default {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
module: 0, module: 0,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
console.log(params); console.log(params)
let res = await postEvalQuesInfo(params); let res = await postEvalQuesInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.tableData = res.data.records; this.tableData = res.data.records
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.postEvalState == "" || item.postEvalState == null) { if (item.postEvalState == '' || item.postEvalState == null) {
// this.$set(item, "postEvalStateText", "材料未上传"); // this.$set(item, "postEvalStateText", "材料未上传");
} else if (item.postEvalState == "0") { } else if (item.postEvalState == '0') {
this.$set(item, "postEvalStateText", "已退回"); this.$set(item, 'postEvalStateText', '已退回')
} else if (item.postEvalState == 1) { } else if (item.postEvalState == 1) {
this.$set(item, "postEvalStateText", "待评估"); this.$set(item, 'postEvalStateText', '待评估')
} else if (item.postEvalState == 2) { } else if (item.postEvalState == 2) {
this.$set(item, "postEvalStateText", "需整改"); this.$set(item, 'postEvalStateText', '需整改')
} else if (item.postEvalState == 3) { } else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "已整改"); this.$set(item, 'postEvalStateText', '已整改')
} else if (item.postEvalState == 4) { } else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "已归档"); this.$set(item, 'postEvalStateText', '已归档')
} }
// else if (item.postEvalState == 5) { // else if (item.postEvalState == 5) {
// this.$set(item, "postEvalStateText", "已整改"); // this.$set(item, "postEvalStateText", "已整改");
...@@ -804,259 +716,250 @@ export default { ...@@ -804,259 +716,250 @@ export default {
// this.$set(item, "postEvalStateText", "已归档"); // this.$set(item, "postEvalStateText", "已归档");
// } // }
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.total = res.data.total * 1
constructionFormText(item.constructionForm)
);
});
this.total = res.data.total * 1;
} }
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields()
this.currentPage = 1; this.currentPage = 1
this.pageSize = 10; this.pageSize = 10
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
this.ruleForm.dates = []; this.ruleForm.dates = []
this.submitForm(); this.submitForm()
}, },
//合规性检查评估 //合规性检查评估
inspectNexts() { inspectNexts() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
contractNumber: this.checkedList[0].contractNumber, contractNumber: this.checkedList[0].contractNumber,
proType: this.checkedList[0].projectType, proType: this.checkedList[0].projectType,
}; }
this.$router.push({ this.$router.push({
path: "/mainLayout/Compliance", path: '/mainLayout/Compliance',
query: { query: {
clqparams: JSON.stringify(params), clqparams: JSON.stringify(params),
projectName: this.checkedList[0].projectName, projectName: this.checkedList[0].projectName,
}, },
}); })
}, },
//详情 //详情
async detailsForm() { async detailsForm() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
let params = { let params = {
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
this.$router.push({ this.$router.push({
path: "/mainLayout/Compliancefz", path: '/mainLayout/Compliancefz',
query: { query: {
clqparams: JSON.stringify(params), clqparams: JSON.stringify(params),
ishow: false, ishow: false,
}, },
}); })
}, },
//提交问题清单 //提交问题清单
async submitNexts() { async submitNexts() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
// if(this.checkedList[0].postEvalState=='待评估'){ // if(this.checkedList[0].postEvalState=='待评估'){
// this.$message("该项目还未评估"); // this.$message("该项目还未评估");
// return; // return;
// } // }
if (this.checkedList[0].postEvalState == "已提交") { if (this.checkedList[0].postEvalState == '已提交') {
this.$message("该项目已提交"); this.$message('该项目已提交')
return; return
} }
// this.dialog = true; // this.dialog = true;
let params = { let params = {
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
this.$router.push({ this.$router.push({
path: "/mainLayout/Compliancefz", path: '/mainLayout/Compliancefz',
query: { query: {
clqparams: JSON.stringify(params), clqparams: JSON.stringify(params),
}, },
}); })
}, },
//撤销 //撤销
async withdraw() { async withdraw() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if (this.checkedList[0].postEvalState != "已提交") { if (this.checkedList[0].postEvalState != '已提交') {
this.$message("该项目还未提交"); this.$message('该项目还未提交')
return; return
} }
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
let res = await chpostEvalQuesInfo(params); let res = await chpostEvalQuesInfo(params)
if (res.code == 200) { if (res.code == 200) {
this.resetForm(); this.resetForm()
} }
}, },
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
async handleClickXZ(fileId, fileName) { async handleClickXZ(fileId, fileName) {
let response = await downloadObject({ let response = await downloadObject({
fileId: fileId * 1, fileId: fileId * 1,
}); })
let blob = new Blob([response]); let blob = new Blob([response])
if ("download" in document.createElement("a")) { if ('download' in document.createElement('a')) {
let elink = document.createElement("a"); let elink = document.createElement('a')
elink.download = fileName; elink.download = fileName
elink.style.display = "none"; elink.style.display = 'none'
elink.href = URL.createObjectURL(blob); elink.href = URL.createObjectURL(blob)
document.body.appendChild(elink); document.body.appendChild(elink)
elink.click(); elink.click()
URL.revokeObjectURL(elink.href); // 释放URL 对象 URL.revokeObjectURL(elink.href) // 释放URL 对象
document.body.removeChild(elink); document.body.removeChild(elink)
} }
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.inspectdisabled = false; this.inspectdisabled = false
this.confirmdisabled = false; this.confirmdisabled = false
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
if (this.checkedList[0]) { if (this.checkedList[0]) {
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
if (this.checkedList[0].postEvalStateText != "已整改") { if (this.checkedList[0].postEvalStateText != '已整改') {
this.confirmdisabled = true; this.confirmdisabled = true
} }
if (this.checkedList[0].postEvalStateText != "待评估") { if (this.checkedList[0].postEvalStateText != '待评估') {
this.inspectdisabled = true; this.inspectdisabled = true
} }
} }
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false
// this.dialogXQ = false; // this.dialogXQ = false;
}, },
cancelSS() { cancelSS() {
this.dialogQR = false; this.dialogQR = false
}, },
closeDialog() { closeDialog() {
this.showButton = true; this.showButton = true
}, },
async selectProjectStage(val){ async selectProjectStage(val) {
this.form={ this.form = {
evalQues:'' evalQues: '',
} }
this.form.projectStage=val this.form.projectStage = val
console.log(val,'333344444') console.log(val, '333344444')
let params = { let params = {
projectStage: val, projectStage: val,
hgx:"hgx", hgx: 'hgx',
batchId:this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
contractNumber:this.checkedList[0].contractNumber, contractNumber: this.checkedList[0].contractNumber,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
proType: this.checkedList[0].projectType, proType: this.checkedList[0].projectType,
}; }
let res=await selWtqdFZ(params) let res = await selWtqdFZ2(params)
this.quesoptions=res.data.records this.quesoptions = res.data.records
}, },
selectCheckItem(val){ selectCheckItem(val) {
this.form.evalQues='' this.form.evalQues = ''
this.quesoptions.forEach(ele=>{ this.quesoptions.forEach((ele) => {
if(ele.quesCheckItem==val){ if (ele.quesCheckItem == val) {
this.form.checkDesc=ele.checkDesc this.form.checkDesc = ele.checkDesc
} }
}) })
}, },
async submitpro(){ async submitpro() {
let isxt= this.tableDataQR.some(item=>{ let isxt = this.tableDataQR.some((item) => {
return item.quesCheckItem== this.form.quesCheckItem; return item.quesCheckItem == this.form.quesCheckItem
}) })
if(isxt){ if (isxt) {
this.$message('已存在该问题检查项,请选择其他问题') this.$message('已存在该问题检查项,请选择其他问题')
return return
} }
let params={ if (!this.form.evalQues) {
return this.$message.warning('请填写问题描述')
}
let params = {
...this.form, ...this.form,
isProblem: "1", isProblem: '1',
batchId:this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
} }
let res=await xzwtpostEvalQuesInfo(params) let res = await xzwtpostEvalQuesInfo(params)
if(res.code==200){ if (res.code == 200) {
this.innerVisible=false this.innerVisible = false
this.rectificationReview() this.rectificationReview()
} }
}, },
cancelpro(){ cancelpro() {
this.innerVisible=false this.innerVisible = false
}, },
addpro(){ addpro() {
this.form={ this.form = {
evalQues:'' evalQues: '',
} }
this.innerVisible = true this.innerVisible = true
}, },
async inspectBack(){ async inspectBack() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
this.$confirm( this.$confirm('是否材料不全,将退回重新上传?', '提示', {
"是否材料不全,将退回重新上传?", confirmButtonText: '是',
"提示", cancelButtonText: '否',
{ type: 'warning',
confirmButtonText: "是", }).then(async () => {
cancelButtonText: "否", let params = {
type: "warning", ...this.checkedList[0],
}
).then(async () => {
let params={
...this.checkedList[0]
}
let res= await postEvalQuesInfoTh(params)
if (res.code == "200") {
this.$message("已成功退回");
this.resetForm();
} else {
this.$message("退回失败");
} }
}); let res = await postEvalQuesInfoTh(params)
if (res.code == '200') {
this.$message('已成功退回')
this.resetForm()
} else {
this.$message('退回失败')
} }
})
},
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
...@@ -1230,7 +1133,7 @@ export default { ...@@ -1230,7 +1133,7 @@ export default {
.dialog { .dialog {
.eltable { .eltable {
height: 650px; height: 650px;
overflow-y:hidden; overflow-y: hidden;
} }
} }
/deep/.el-switch__core { /deep/.el-switch__core {
...@@ -1385,20 +1288,19 @@ h3 { ...@@ -1385,20 +1288,19 @@ h3 {
.addfrom { .addfrom {
display: inline-block; display: inline-block;
height: 300px; height: 300px;
/deep/.el-input__inner{ /deep/.el-input__inner {
width: 450px !important; width: 450px !important;
} }
/deep/.el-textarea__inner{ /deep/.el-textarea__inner {
width: 450px !important; width: 450px !important;
} }
/deep/ .el-select-dropdown { /deep/ .el-select-dropdown {
margin-top: -55px !important; /* 调整与触发按钮的距离 */ margin-top: -55px !important; /* 调整与触发按钮的距离 */
margin-left: 20px; /* 也可以调整左边距,根据需要 */ margin-left: 20px; /* 也可以调整左边距,根据需要 */
}
} }
.addBtn {
}
.addBtn{
text-align: center; text-align: center;
margin-bottom: 0; margin-bottom: 0;
} }
</style> </style>
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" ref="formName" label-width="100px" class="demo-ruleForm">
:model="ruleForm"
ref="formName"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option <el-option
...@@ -18,32 +12,16 @@ ...@@ -18,32 +12,16 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem"> <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input <el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.batchName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem"> <el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-input <el-input v-model="ruleForm.projectId" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleForm.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem"> <el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-select <el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable>
v-model="ruleForm.projectYear"
placeholder="请选择"
clearable
>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
...@@ -53,16 +31,8 @@ ...@@ -53,16 +31,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="项目审核状态:" prop="postEvalState" class="fromItem">
label="项目审核状态:" <el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
prop="postEvalState"
class="fromItem"
>
<el-select
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<!-- <el-option label="材料未上传" value="0"></el-option> --> <!-- <el-option label="材料未上传" value="0"></el-option> -->
<el-option label="待评估" value="1"></el-option> <el-option label="待评估" value="1"></el-option>
<el-option label="需整改" value="2"></el-option> <el-option label="需整改" value="2"></el-option>
...@@ -71,11 +41,7 @@ ...@@ -71,11 +41,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="实际评估日期:" prop="lastUpdateTime" class="fromItem">
label="实际评估日期:"
prop="lastUpdateTime"
class="fromItem"
>
<el-date-picker <el-date-picker
@change="timeChange" @change="timeChange"
v-model="ruleForm.dates" v-model="ruleForm.dates"
...@@ -115,52 +81,32 @@ ...@@ -115,52 +81,32 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" prop="batchYear" width="120"> <el-table-column label="批次年度" prop="batchYear" width="120">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.batchYear }}</template></el-table-column
{{ scope.row.batchYear }}
</template></el-table-column
> >
<el-table-column prop="batchName" label="后评估批次名称"> <el-table-column prop="batchName" label="后评估批次名称"> </el-table-column>
</el-table-column>
<el-table-column prop="expertName" label="评审专家"> </el-table-column> <el-table-column prop="expertName" label="评审专家"> </el-table-column>
<el-table-column prop="projectCode" label="项目编码" width="140"> </el-table-column> <el-table-column prop="projectCode" label="项目编码" width="140"> </el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" show-overflow-tooltip>
prop="projectName"
label="项目名称"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="120"> <el-table-column prop="issueYear" label="项目年度" width="120">
<template slot-scope="scope" > <template slot-scope="scope">
<span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span> <span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="constructionForm" label="建设形式" width="120"> <el-table-column prop="constructionForm" label="建设形式" width="120"> </el-table-column>
</el-table-column>
<el-table-column prop="postEvalStateText" label="项目审核状态" width="120"> <el-table-column prop="postEvalStateText" label="项目审核状态" width="120">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="contractNumber" label="合同编号" show-overflow-tooltip>
prop="contractNumber"
label="合同编号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期"> <el-table-column prop="contractName" label="合同名称" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="lastUpdateTime" label="实际评估日期">
</el-table-column> </el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期"> </el-table-column>
<el-table-column prop="lastUpdateTime" label="实际评估日期"> </el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
...@@ -182,9 +128,7 @@ ...@@ -182,9 +128,7 @@
:append-to-body="false" :append-to-body="false"
> >
<div class="dialog"> <div class="dialog">
<h3> <h3>项目名称{{ listData.projectName }}</h3>
项目名称{{ listData.projectName }}
</h3>
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="基本信息" name="first"> <el-tab-pane label="基本信息" name="first">
...@@ -198,14 +142,8 @@ ...@@ -198,14 +142,8 @@
<span>{{ listData.projectName }}</span> <span>{{ listData.projectName }}</span>
</p> </p>
<p><label>建设形式:</label>{{ listData.constructionForm }}</p> <p><label>建设形式:</label>{{ listData.constructionForm }}</p>
<p> <p><label>总投资计划(万元)-成本金:</label>{{ listData.costAmountTotal }}</p>
<label>总投资计划(万元)-成本金:</label <p><label>总投资计划(万元)-资本金:</label>{{ listData.capitalAmountTotal }}</p>
>{{ listData.costAmountTotal }}
</p>
<p>
<label>总投资计划(万元)-资本金:</label
>{{ listData.capitalAmountTotal }}
</p>
<p><label>部门:</label>{{ listData.department }}</p> <p><label>部门:</label>{{ listData.department }}</p>
<!-- <p><label>创建人:</label>{{ listData.inputuser }}</p> <!-- <p><label>创建人:</label>{{ listData.inputuser }}</p>
<p><label>创建时间:</label>{{ listData.inputuser }}</p> <p><label>创建时间:</label>{{ listData.inputuser }}</p>
...@@ -245,13 +183,10 @@ ...@@ -245,13 +183,10 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column>
<el-table-column label="材料类别" prop="batchtype"> <el-table-column label="材料类别" prop="batchtype"> </el-table-column>
</el-table-column> <el-table-column prop="typeText" label="资料类型"> </el-table-column>
<el-table-column prop="typeText" label="资料类型">
</el-table-column>
<el-table-column prop="fileName" label="资料名称"> <el-table-column prop="fileName" label="资料名称">
<template slot-scope="scope" v-if="scope.row.fileName"> <template slot-scope="scope" v-if="scope.row.fileName">
{{ scope.row.fileName }}&nbsp;&nbsp;<el-button {{ scope.row.fileName }}&nbsp;&nbsp;<el-button
...@@ -287,25 +222,14 @@ ...@@ -287,25 +222,14 @@
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
border border
> >
<el-table-column <el-table-column label="项目环节" prop="projectStagetext" width="150">
label="项目环节"
prop="projectStagetext"
width="150"
>
</el-table-column>
<el-table-column label="序号" width="100" type="index">
</el-table-column> </el-table-column>
<el-table-column label="序号" width="100" type="index"> </el-table-column>
<el-table-column label="问题检查项" prop="quesCheckItem"> <el-table-column label="问题检查项" prop="quesCheckItem"> </el-table-column>
</el-table-column> <el-table-column label="检查说明" prop="checkDesc" show-overflow-tooltip>
<el-table-column
label="检查说明"
prop="checkDesc"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="评估问题" prop="evalQues">
</el-table-column> </el-table-column>
<el-table-column label="评估问题" prop="evalQues"> </el-table-column>
<el-table-column label="问题截图" width="auto"> <el-table-column label="问题截图" width="auto">
<template slot-scope="scope"> <template slot-scope="scope">
<el-image <el-image
...@@ -330,13 +254,10 @@ ...@@ -330,13 +254,10 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="流程节点" prop="processNodes" width="150"> <el-table-column label="流程节点" prop="processNodes" width="150"> </el-table-column>
</el-table-column>
<el-table-column label="状态" prop="state"> </el-table-column> <el-table-column label="状态" prop="state"> </el-table-column>
<el-table-column label="处理人" prop="processedBy"> <el-table-column label="处理人" prop="processedBy"> </el-table-column>
</el-table-column> <el-table-column label="处理时间" prop="processingTime"> </el-table-column>
<el-table-column label="处理时间" prop="processingTime">
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -346,8 +267,8 @@ ...@@ -346,8 +267,8 @@
</div> </div>
</template> </template>
<script> <script>
import { MaterialsList } from "@/utils/cache"; import { MaterialsList } from '@/utils/cache'
import { import {
fzcxselect, fzcxselect,
fzcxXqselect, fzcxXqselect,
...@@ -356,9 +277,9 @@ import { ...@@ -356,9 +277,9 @@ import {
selLcb, selLcb,
presignedUrl, presignedUrl,
downloadObject, downloadObject,
downloadObjectAll downloadObjectAll,
} from "@/api/indexzc"; } from '@/api/indexzc'
import { generateYearOptions, constructionFormText } from "@/utils/cache"; import { generateYearOptions, constructionFormText } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
...@@ -369,17 +290,17 @@ export default { ...@@ -369,17 +290,17 @@ export default {
xxtableData: [], xxtableData: [],
showButton: true, showButton: true,
ruleForm: { ruleForm: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
postEvalState: "", postEvalState: '',
projectName: "", projectName: '',
projectId: "", projectId: '',
}, },
ruleFormdialog: { ruleFormdialog: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
fullName: "", fullName: '',
}, },
tableData: [], tableData: [],
...@@ -391,271 +312,257 @@ export default { ...@@ -391,271 +312,257 @@ export default {
pageSizetjcl: 10, pageSizetjcl: 10,
total: 0, total: 0,
dialog: false, dialog: false,
activeName: "first", activeName: 'first',
mergingRows: [], mergingRows: [],
lctableData: [], lctableData: [],
}; }
}, },
mounted() { mounted() {
this.ruleForm.batchName = this.$route.query.batchName; this.ruleForm.batchName = this.$route.query.batchName
this.ruleForm.projectCode = this.$route.query.projCode; this.ruleForm.projectCode = this.$route.query.projCode
this.submitForm(); this.submitForm()
}, },
methods: { methods: {
timeChange(time) { timeChange(time) {
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.createStartTime = time[0]; this.ruleForm.createStartTime = time[0]
this.ruleForm.createEndTime = time[1]; this.ruleForm.createEndTime = time[1]
}else{ } else {
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
} }
}, },
async submitForm() { async submitForm() {
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
module:1, module: 1,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
let res = await fzcxselect(params); let res = await fzcxselect(params)
if (res.code == "200") { if (res.code == '200') {
this.tableData = res.data.records; this.tableData = res.data.records
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.postEvalState == "" || item.postEvalState == null) { if (item.postEvalState == '' || item.postEvalState == null) {
// this.$set(item, "postEvalStateText", "材料未上传"); // this.$set(item, "postEvalStateText", "材料未上传");
} else if (item.postEvalState == "0") { } else if (item.postEvalState == '0') {
// this.$set(item, "postEvalStateText", "材料未上传"); // this.$set(item, "postEvalStateText", "材料未上传");
} else if (item.postEvalState == 1) { } else if (item.postEvalState == 1) {
this.$set(item, "postEvalStateText", "待评估"); this.$set(item, 'postEvalStateText', '待评估')
} else if (item.postEvalState == 2) { } else if (item.postEvalState == 2) {
this.$set(item, "postEvalStateText", "需整改"); this.$set(item, 'postEvalStateText', '需整改')
}else if (item.postEvalState == 3) { } else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "已整改"); this.$set(item, 'postEvalStateText', '已整改')
}else if (item.postEvalState == 4) { } else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "已归档"); this.$set(item, 'postEvalStateText', '已归档')
} }
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.total = res.data.total * 1
constructionFormText(item.constructionForm)
);
});
this.total = res.data.total * 1;
} }
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields()
this.currentPage = 1; this.currentPage = 1
this.pageSize = 10; this.pageSize = 10
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
this.ruleForm.dates=[] this.ruleForm.dates = []
this.submitForm(); this.submitForm()
}, },
//详情 //详情
detailsForm() { detailsForm() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
this.dialog = true; this.dialog = true
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].contractNumber,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
}; }
Promise.all([fzcxXqselect(params), clqdselect(params)]).then((res) => { Promise.all([fzcxXqselect(params), clqdselect(params)]).then((res) => {
this.listData = res[0].data.records[0]; this.listData = res[0].data.records[0]
this.listData.constructionForm = constructionFormText( this.listData.constructionForm = constructionFormText(this.listData.constructionForm)
this.listData.constructionForm this.qdtableData = JSON.parse(JSON.stringify(this.tableDataNew))
);
this.qdtableData = JSON.parse(JSON.stringify(this.tableDataNew));
if (res[1].data.records.length > 0) { if (res[1].data.records.length > 0) {
this.qdtableData = this.qdtableData this.qdtableData = this.qdtableData
.concat(res[1].data.records) .concat(res[1].data.records)
.reduce((accumulator, currentObj) => { .reduce((accumulator, currentObj) => {
const existingObj = accumulator.find( const existingObj = accumulator.find((obj) => obj.typeCode == currentObj.typeCode)
(obj) => obj.typeCode == currentObj.typeCode
);
if (existingObj) { if (existingObj) {
Object.assign(existingObj, currentObj); Object.assign(existingObj, currentObj)
} else { } else {
accumulator.push(currentObj); accumulator.push(currentObj)
} }
return accumulator; return accumulator
}, []); }, [])
} }
}); })
}, },
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) { if (columnIndex === 0) {
//第一列 //第一列
const _row = this.mergingRows[rowIndex]; const _row = this.mergingRows[rowIndex]
const _col = _row > 0 ? 1 : 0; const _col = _row > 0 ? 1 : 0
return { return {
rowspan: _row, rowspan: _row,
colspan: _col, colspan: _col,
}; }
} }
}, },
dataPretreatment() { dataPretreatment() {
this.mergingRows = []; this.mergingRows = []
this.mergingPos = 0; this.mergingPos = 0
for (let i = 0; i < this.xxtableData.length; i++) { for (let i = 0; i < this.xxtableData.length; i++) {
// tabledata 表格数据源 // tabledata 表格数据源
if (i == 0) { if (i == 0) {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = 0; this.mergingPos = 0
} else { } else {
if ( if (this.xxtableData[i].projectStage === this.xxtableData[i - 1].projectStage) {
this.xxtableData[i].projectStage ===
this.xxtableData[i - 1].projectStage
) {
//哪些数据是要合并的 合并的条件是什么 //哪些数据是要合并的 合并的条件是什么
this.mergingRows[this.mergingPos] += 1; this.mergingRows[this.mergingPos] += 1
this.mergingRows.push(0); this.mergingRows.push(0)
} else { } else {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = i; this.mergingPos = i
} }
} }
} }
}, },
async handleClick() { async handleClick() {
if (this.activeName == "second") { if (this.activeName == 'second') {
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
}; }
this.xxtableData = []; this.xxtableData = []
let res = await wtqdqselect(params); let res = await wtqdqselect(params)
if (res.code == "200") { if (res.code == '200') {
this.xxtableData = res.data.records; this.xxtableData = res.data.records
this.total = res.data.total * 1; this.total = res.data.total * 1
} }
this.xxtableData.forEach((item) => { this.xxtableData.forEach((item) => {
switch (item.projectStage) { switch (item.projectStage) {
case 1: case 1:
this.$set(item, "projectStagetext", "1.可研"); this.$set(item, 'projectStagetext', '1.可研')
break; break
case 2: case 2:
this.$set(item, "projectStagetext", "2.计划"); this.$set(item, 'projectStagetext', '2.计划')
break; break
case 3: case 3:
this.$set(item, "projectStagetext", "3.采购"); this.$set(item, 'projectStagetext', '3.采购')
break; break
case 4: case 4:
this.$set(item, "projectStagetext", "4.合同"); this.$set(item, 'projectStagetext', '4.合同')
break; break
case 5: case 5:
this.$set(item, "projectStagetext", "5.执行"); this.$set(item, 'projectStagetext', '5.执行')
break; break
case 6: case 6:
this.$set(item, "projectStagetext", "6.结决算及转资"); this.$set(item, 'projectStagetext', '6.结决算及转资')
break; break
} }
let urlStr = item.url; let urlStr = item.url
let arrUrl = []; let arrUrl = []
let showUrlList = []; let showUrlList = []
// 有url拆分调接口换预览 // 有url拆分调接口换预览
if (urlStr) { if (urlStr) {
if (urlStr.includes(',')) {
if (urlStr.includes(",")) { arrUrl = item.url.split(',')
arrUrl = item.url.split(",");
} else { } else {
arrUrl.push(urlStr); arrUrl.push(urlStr)
} }
arrUrl.forEach(async (showUrl) => { arrUrl.forEach(async (showUrl) => {
let paramsUrl = { let paramsUrl = {
url: showUrl, url: showUrl,
}; }
let resUrl = await presignedUrl(paramsUrl); let resUrl = await presignedUrl(paramsUrl)
showUrlList.push(resUrl.msg); showUrlList.push(resUrl.msg)
}); })
this.$set(item, "images", showUrlList); this.$set(item, 'images', showUrlList)
} }
}); })
this.dataPretreatment(); this.dataPretreatment()
} else if (this.activeName == "third") { } else if (this.activeName == 'third') {
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
}; }
let res = await selLcb(params); let res = await selLcb(params)
if (res.code == "200") { if (res.code == '200') {
this.lctableData = res.data; this.lctableData = res.data
} }
} }
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
console.log(this.checkedList, "2222"); console.log(this.checkedList, '2222')
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false
}, },
handleImageClick() {}, handleImageClick() {},
async handleClickXZ(scope) { async handleClickXZ(scope) {
let response = await downloadObject({ let response = await downloadObject({
fileId: scope.fileId * 1, fileId: scope.fileId * 1,
}); })
let blob = new Blob([response]); let blob = new Blob([response])
if ("download" in document.createElement("a")) { if ('download' in document.createElement('a')) {
let elink = document.createElement("a"); let elink = document.createElement('a')
elink.download = fileName; elink.download = fileName
elink.style.display = "none"; elink.style.display = 'none'
elink.href = URL.createObjectURL(blob); elink.href = URL.createObjectURL(blob)
document.body.appendChild(elink); document.body.appendChild(elink)
elink.click(); elink.click()
URL.revokeObjectURL(elink.href); // 释放URL 对象 URL.revokeObjectURL(elink.href) // 释放URL 对象
document.body.removeChild(elink); document.body.removeChild(elink)
} }
}, },
async downFiles(){ async downFiles() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if(this.checkedList[0].postEvalStateText!='已归档'){ if (this.checkedList[0].postEvalStateText != '已归档') {
this.$message("该项目还未归档,请重新选择"); this.$message('该项目还未归档,请重新选择')
return; return
} }
let response = await downloadObjectAll({ let response = await downloadObjectAll({
prjId:this.checkedList[0].projectCode, prjId: this.checkedList[0].projectCode,
bathId: this.checkedList[0].contractNumber, bathId: this.checkedList[0].contractNumber,
}); })
let blob = new Blob([response], { type: 'application/zip' }) let blob = new Blob([response], { type: 'application/zip' })
let url = window.URL.createObjectURL(blob) let url = window.URL.createObjectURL(blob)
const link = document.createElement('a') // 创建a标签 const link = document.createElement('a') // 创建a标签
...@@ -663,11 +570,11 @@ export default { ...@@ -663,11 +570,11 @@ export default {
link.download = '归档' // 重命名文件 link.download = '归档' // 重命名文件
link.click() link.click()
URL.revokeObjectURL(url) // 释放内存 URL.revokeObjectURL(url) // 释放内存
}
}, },
}; },
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
...@@ -787,7 +694,7 @@ export default { ...@@ -787,7 +694,7 @@ export default {
.title { .title {
text-align: left; text-align: left;
font-size: 18px; font-size: 18px;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
font-size: 16px; font-size: 16px;
......
<!-- 辅助检查 --> <!-- 辅助检查 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" ref="formName" label-width="100px" class="demo-ruleForm">
:model="ruleForm"
ref="formName"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem"> <el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable>
<el-option <el-option
...@@ -18,32 +13,16 @@ ...@@ -18,32 +13,16 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem"> <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input <el-input v-model="ruleForm.batchName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.batchName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem"> <el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-input <el-input v-model="ruleForm.projectId" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleForm.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem"> <el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-select <el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable>
v-model="ruleForm.projectYear"
placeholder="请选择"
clearable
>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
...@@ -53,11 +32,7 @@ ...@@ -53,11 +32,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="项目审核状态:" prop="postEvalState" class="fromItem"> <el-form-item label="项目审核状态:" prop="postEvalState" class="fromItem">
<el-select <el-select v-model="ruleForm.postEvalState" placeholder="请选择" clearable>
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<!-- <el-option label="材料未上传" value="0"></el-option> --> <!-- <el-option label="材料未上传" value="0"></el-option> -->
<el-option label="待评估" value="1"></el-option> <el-option label="待评估" value="1"></el-option>
<el-option label="需整改" value="2"></el-option> <el-option label="需整改" value="2"></el-option>
...@@ -65,11 +40,7 @@ ...@@ -65,11 +40,7 @@
<el-option label="已归档" value="4"></el-option> <el-option label="已归档" value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="实际评估日期:" prop="lastUpdateTime" class="fromItem">
label="实际评估日期:"
prop="lastUpdateTime"
class="fromItem"
>
<el-date-picker <el-date-picker
@change="timeChange" @change="timeChange"
v-model="ruleForm.dates" v-model="ruleForm.dates"
...@@ -103,8 +74,7 @@ ...@@ -103,8 +74,7 @@
:disabled="confirmdisabled" :disabled="confirmdisabled"
:class="confirmdisabled ? 'noclick' : ''" :class="confirmdisabled ? 'noclick' : ''"
> >
<i class="el-icon-chat-dot-square"></i <i class="el-icon-chat-dot-square"></i>&nbsp;&nbsp;&nbsp;整改复核</el-button
>&nbsp;&nbsp;&nbsp;整改复核</el-button
> >
<el-button <el-button
@click="inspectBack()" @click="inspectBack()"
...@@ -126,68 +96,39 @@ ...@@ -126,68 +96,39 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" prop="batchYear" width="120"> <el-table-column label="批次年度" prop="batchYear" width="120">
<template slot-scope="scope"> <template slot-scope="scope"> {{ scope.row.batchYear }}</template></el-table-column
{{ scope.row.batchYear }}
</template></el-table-column
> >
<el-table-column prop="batchName" label="后评估批次名称"> <el-table-column prop="batchName" label="后评估批次名称"> </el-table-column>
</el-table-column>
<el-table-column prop="expertName" label="评审专家" width="90"> </el-table-column> <el-table-column prop="expertName" label="评审专家" width="90"> </el-table-column>
<el-table-column prop="projectCode" label="项目编码" width="130"> <el-table-column prop="projectCode" label="项目编码" width="130"> </el-table-column>
</el-table-column> <el-table-column prop="projectName" label="项目名称" show-overflow-tooltip>
<el-table-column
prop="projectName"
label="项目名称"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="120"> <el-table-column prop="issueYear" label="项目年度" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-show="scope.row.issueYear"> <span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span>
{{ scope.row.issueYear }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="projectType" label="项目类型" width="120"> <el-table-column prop="projectType" label="项目类型" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-show="scope.row.projectType"> <span v-show="scope.row.projectType"> {{ scope.row.projectType | proType }}</span>
{{ scope.row.projectType | proType }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="constructionForm" label="建设形式" width="120"> <el-table-column prop="constructionForm" label="建设形式" width="120"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="postEvalStateText" label="项目审核状态 " width="120">
prop="postEvalStateText"
label="项目审核状态 "
width="120"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="contractNumber" label="合同编号" show-overflow-tooltip>
prop="contractNumber"
label="合同编号"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="contractName" label="合同名称" width="auto" show-overflow-tooltip>
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<!-- <el-table-column prop="reviewStatusText" label="项目审核状态" width="120"> <!-- <el-table-column prop="reviewStatusText" label="项目审核状态" width="120">
</el-table-column> --> </el-table-column> -->
<el-table-column prop="planReviewDate" label="计划评估日期"> <el-table-column prop="planReviewDate" label="计划评估日期"> </el-table-column>
</el-table-column> <el-table-column prop="lastUpdateTime" label="实际评估日期"> </el-table-column>
<el-table-column prop="lastUpdateTime" label="实际评估日期">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
...@@ -224,6 +165,7 @@ ...@@ -224,6 +165,7 @@
<div class="setTable"> <div class="setTable">
<el-table <el-table
:data="tableDataQR" :data="tableDataQR"
height="100%"
tooltip-effect="dark myTooltips" tooltip-effect="dark myTooltips"
style="width: 100%" style="width: 100%"
header-cell-class-name="custom-th-background" header-cell-class-name="custom-th-background"
...@@ -232,32 +174,35 @@ ...@@ -232,32 +174,35 @@
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
border border
> >
<el-table-column <el-table-column label="项目环节" prop="pprojectStage" min-width="100">
label="项目环节" <template v-slot="scope">
prop="projectStagetext" {{ projectStageOptions[scope.row.pprojectStage] }}
width="100" </template>
>
</el-table-column>
<el-table-column label="序号" width="40" type="index">
</el-table-column> </el-table-column>
<el-table-column label="序号" width="40" type="index"> </el-table-column>
<el-table-column <el-table-column
label="问题检查项" label="问题检查项"
prop="quesCheckItem" prop="quesCheckItem"
width="auto" min-width="100"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="检查说明" label="检查说明"
prop="checkDesc" prop="checkDesc"
width="auto" min-width="100"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column label="评估问题" prop="evalQues" width="auto" show-overflow-tooltip> <el-table-column
label="评估问题"
prop="evalQues"
min-width="100"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column label="问题响应" width="100"> <el-table-column label="问题响应" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch
v-model="scope.row.confirmStatus" v-model="scope.row.confirmStatus"
...@@ -279,7 +224,12 @@ ...@@ -279,7 +224,12 @@
</el-switch> </el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="解释批注" prop="feedback" width="auto" show-overflow-tooltip> <el-table-column
label="解释批注"
prop="feedback"
min-width="100"
show-overflow-tooltip
>
<!-- <template <!-- <template
slot-scope="scope" slot-scope="scope"
v-if="scope.row.confirmStatus == '1'" v-if="scope.row.confirmStatus == '1'"
...@@ -287,7 +237,7 @@ ...@@ -287,7 +237,7 @@
<el-input v-model="scope.row.feedback" disabled></el-input> <el-input v-model="scope.row.feedback" disabled></el-input>
</template> --> </template> -->
</el-table-column> </el-table-column>
<el-table-column label="整改材料下载" width="120"> <el-table-column label="整改材料下载" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link <router-link
:to="{ :to="{
...@@ -300,7 +250,7 @@ ...@@ -300,7 +250,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="附加解释材料" prop="fileId" width="300"> <el-table-column label="附加解释材料" prop="fileId" min-width="200">
<template <template
slot-scope="scope" slot-scope="scope"
v-if="scope.row.confirmStatus == '1' && scope.row.fileId" v-if="scope.row.confirmStatus == '1' && scope.row.fileId"
...@@ -368,27 +318,14 @@ ...@@ -368,27 +318,14 @@
</div> </div>
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column <el-table-column label="复核情况说明" prop="zgqkFileId" min-width="200">
label="复核情况说明"
prop="zgqkFileId"
width="200"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.zgqkFileId" type="textarea" <el-input v-model="scope.row.zgqkFileId" type="textarea" :rows="2"></el-input>
:rows="2"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column label="整改复核" prop="rectificationStatus" min-width="200">
label="整改复核"
prop="rectificationStatus"
width="200"
>
<template slot-scope="scope" v-if="scope.row.evalQues"> <template slot-scope="scope" v-if="scope.row.evalQues">
<el-select <el-select v-model="scope.row.rectificationStatus" placeholder="请选择">
v-model="scope.row.rectificationStatus"
placeholder="请选择"
>
<!-- <el-option label="请选择" value=""></el-option> --> <!-- <el-option label="请选择" value=""></el-option> -->
<el-option label="问题未整改" :value="0"></el-option> <el-option label="问题未整改" :value="0"></el-option>
<el-option label="整改不合格" :value="1"></el-option> <el-option label="整改不合格" :value="1"></el-option>
...@@ -417,7 +354,11 @@ ...@@ -417,7 +354,11 @@
<p>问题描述</p> --> <p>问题描述</p> -->
<el-form ref="form" :model="form" label-width="80px" class="addfrom"> <el-form ref="form" :model="form" label-width="80px" class="addfrom">
<el-form-item label="项目环节"> <el-form-item label="项目环节">
<el-select v-model="form.projectStage" placeholder="请选择项目环节" @change="selectProjectStage"> <el-select
v-model="form.projectStage"
placeholder="请选择项目环节"
@change="selectProjectStage"
>
<el-option label="可研" value="1"></el-option> <el-option label="可研" value="1"></el-option>
<!-- <el-option label="计划" value="2"></el-option> --> <!-- <el-option label="计划" value="2"></el-option> -->
<el-option label="采购" value="3"></el-option> <el-option label="采购" value="3"></el-option>
...@@ -427,12 +368,17 @@ ...@@ -427,12 +368,17 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="问题检查项"> <el-form-item label="问题检查项">
<el-select v-model="form.quesCheckItem" placeholder="请选择问题检查项" @change="selectCheckItem" > <el-select
v-model="form.quesCheckItem"
placeholder="请选择问题检查项"
@change="selectCheckItem"
>
<el-option <el-option
v-for="item in quesoptions" v-for="item in quesoptions"
:key="item.checkDesc" :key="item.checkDesc"
:label="item.quesCheckItem" :label="item.quesCheckItem"
:value="item.quesCheckItem"> :value="item.quesCheckItem"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -440,7 +386,7 @@ ...@@ -440,7 +386,7 @@
<el-form-item label="检查说明"> <el-form-item label="检查说明">
<el-input v-model="form.checkDesc" type="textarea" row="4" disabled></el-input> <el-input v-model="form.checkDesc" type="textarea" row="4" disabled></el-input>
</el-form-item> </el-form-item>
<el-form-item label="问题描述" > <el-form-item label="问题描述">
<el-input v-model="form.evalQues" type="textarea" row="4"></el-input> <el-input v-model="form.evalQues" type="textarea" row="4"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -452,7 +398,7 @@ ...@@ -452,7 +398,7 @@
</div> </div>
</template> </template>
<script> <script>
import { import {
postEvalQuesInfo, postEvalQuesInfo,
chpostEvalQuesInfo, chpostEvalQuesInfo,
...@@ -462,46 +408,44 @@ import { ...@@ -462,46 +408,44 @@ import {
tjrectificationVerification, tjrectificationVerification,
MaterialWarehous, MaterialWarehous,
downloadObjectStr, downloadObjectStr,
selWtqdFZ, selWtqdFZ2,
xzwtpostEvalQuesInfo, xzwtpostEvalQuesInfo,
postEvalQuesInfoTh postEvalQuesInfoTh,
} from "@/api/indexzc"; } from '@/api/indexzc'
import { generateYearOptions, constructionFormText } from "@/utils/cache"; import { generateYearOptions, constructionFormText } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
quesoptions:[], quesoptions: [],
form: { form: {
projectStage:'', projectStage: '',
evalQues:'' evalQues: '',
}, },
innerVisible: false, innerVisible: false,
dialogFullScreen: false, dialogFullScreen: false,
yearsList: generateYearOptions(), yearsList: generateYearOptions(),
showButton: true, showButton: true,
ruleForm: { ruleForm: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
postEvalState: "", postEvalState: '',
projectName: "", projectName: '',
projectId: "", projectId: '',
dates: [], dates: [],
}, },
ruleFormdialog: { ruleFormdialog: {
batchYear: "", batchYear: '',
batchName: "", batchName: '',
planReviewDate: "", planReviewDate: '',
fullName: "", fullName: '',
}, },
rules: { rules: {
batchYear: [ batchYear: [{ required: true, message: '请选择批次年度', trigger: 'change' }],
{ required: true, message: "请选择批次年度", trigger: "change" },
],
batchName: [ batchName: [
{ {
required: true, required: true,
message: "请选择后评估批次名称", message: '请选择后评估批次名称',
trigger: "change", trigger: 'change',
}, },
], ],
}, },
...@@ -520,25 +464,26 @@ export default { ...@@ -520,25 +464,26 @@ export default {
tableDataQR: [], tableDataQR: [],
confirmdisabled: false, confirmdisabled: false,
inspectdisabled: false, inspectdisabled: false,
}; projectStageOptions: [null, '可研', '采购', '合同', '执行', '结决算及转资'],
}
}, },
mounted() { mounted() {
console.log(this.$route.query, "this.$route.query"); console.log(this.$route.query, 'this.$route.query')
this.ruleForm.batchName = this.$route.query.batchName; this.ruleForm.batchName = this.$route.query.batchName
this.submitForm(); this.submitForm()
}, },
filters: { filters: {
proType(val) { proType(val) {
if (val == 1) { if (val == 1) {
return "咨询设计类"; return '咨询设计类'
} else if (val == 2) { } else if (val == 2) {
return "开发实施类"; return '开发实施类'
} else if (val == 3) { } else if (val == 3) {
return "业务运营类"; return '业务运营类'
} else if (val == 4) { } else if (val == 4) {
return "数据工程类"; return '数据工程类'
} else if (val == 5) { } else if (val == 5) {
return "产品购置类"; return '产品购置类'
} }
}, },
}, },
...@@ -549,117 +494,93 @@ export default { ...@@ -549,117 +494,93 @@ export default {
fullNameStr: row.values, fullNameStr: row.values,
fullUrlStr: row.fullUrl, fullUrlStr: row.fullUrl,
materialName: row.names, materialName: row.names,
}; }
let response = await downloadObjectStr(params); let response = await downloadObjectStr(params)
let blob = new Blob([response], { type: "application/zip" }); let blob = new Blob([response], { type: 'application/zip' })
let url = window.URL.createObjectURL(blob); let url = window.URL.createObjectURL(blob)
const link = document.createElement("a"); // 创建a标签 const link = document.createElement('a') // 创建a标签
link.href = url; link.href = url
link.download = row.names + "压缩文件"; // 重命名文件 link.download = row.names + '压缩文件' // 重命名文件
link.click(); link.click()
URL.revokeObjectURL(url); // 释放内存 URL.revokeObjectURL(url) // 释放内存
}, },
//整改复核 //整改复核
async rectificationReview() { async rectificationReview() {
this.mergingPos = 0; this.mergingPos = 0
this.mergingRows = []; this.mergingRows = []
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择一条数据进行整改"); this.$message('请选择一条数据进行整改')
return; return
} }
this.dialogQR = true; this.dialogQR = true
let params = { let params = {
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
let res = await wtssSelectificationVerification(params); let res = await wtssSelectificationVerification(params)
if (res.code == "200") { if (res.code == '200') {
let paramsMat = { let paramsMat = {
proType: this.checkedList[0].projectType, proType: this.checkedList[0].projectType,
contractNumber: this.checkedList[0].contractNumber, contractNumber: this.checkedList[0].contractNumber,
prjId: this.checkedList[0].projectCode, prjId: this.checkedList[0].projectCode,
}; }
let resMat = await MaterialWarehous(paramsMat); let resMat = await MaterialWarehous(paramsMat)
this.tableDataQR = res.data.records; this.tableDataQR = res.data.records
let arrs = []; let arrs = []
this.tableDataQR.forEach((item) => { this.tableDataQR.forEach((item) => {
if (!item.confirmStatus) { if (!item.confirmStatus) {
this.$set(item, "confirmStatus", "2"); this.$set(item, 'confirmStatus', '2')
} }
if (item.evalQues) { if (item.evalQues) {
arrs.push(item.projectStage); arrs.push(item.projectStage)
} }
switch (item.projectStage) { switch (item.projectStage) {
case "1": case '1':
this.$set(item, "projectStagetext", "1.可研"); this.$set(item, 'projectStagetext', '1.可研')
this.$set( this.$set(item, 'filed', this.filtersTable(1, resMat.data.records))
item, break
"filed", case '2':
this.filtersTable(1, resMat.data.records) this.$set(item, 'projectStagetext', '2.计划')
); this.$set(item, 'filed', this.filtersTable(2, resMat.data.records))
break; break
case "2": case '3':
this.$set(item, "projectStagetext", "2.计划"); this.$set(item, 'projectStagetext', '3.采购')
this.$set( this.$set(item, 'filed', this.filtersTable(3, resMat.data.records))
item, break
"filed", case '4':
this.filtersTable(2, resMat.data.records) this.$set(item, 'projectStagetext', '4.合同')
); this.$set(item, 'filed', this.filtersTable(4, resMat.data.records))
break; break
case "3": case '5':
this.$set(item, "projectStagetext", "3.采购"); this.$set(item, 'projectStagetext', '5.执行')
this.$set( this.$set(item, 'filed', this.filtersTable(5, resMat.data.records))
item, break
"filed", case '6':
this.filtersTable(3, resMat.data.records) this.$set(item, 'projectStagetext', '6.结决算及转资')
); this.$set(item, 'filed', this.filtersTable(6, resMat.data.records))
break; break
case "4": }
this.$set(item, "projectStagetext", "4.合同"); let arr = []
this.$set( let arrID = []
item,
"filed",
this.filtersTable(4, resMat.data.records)
);
break;
case "5":
this.$set(item, "projectStagetext", "5.执行");
this.$set(
item,
"filed",
this.filtersTable(5, resMat.data.records)
);
break;
case "6":
this.$set(item, "projectStagetext", "6.结决算及转资");
this.$set(
item,
"filed",
this.filtersTable(6, resMat.data.records)
);
break;
}
let arr = [];
let arrID = [];
if (item.zgName) { if (item.zgName) {
arr = item.zgName.split(","); arr = item.zgName.split(',')
arrID = item.zgFileId.split(","); arrID = item.zgFileId.split(',')
this.$set(item, "tags", arr); this.$set(item, 'tags', arr)
this.$set(item, "tagId", arrID); this.$set(item, 'tagId', arrID)
} }
}); })
this.tableDataQR.forEach((val) => { this.tableDataQR.forEach((val) => {
this.$set(val, "prob", Array.from(new Set(arrs))); this.$set(val, 'prob', Array.from(new Set(arrs)))
}); })
this.dataPretreatment(); this.dataPretreatment()
} }
}, },
filtersTable() { filtersTable() {
let newArr = arguments[1].filter((items) => { let newArr = arguments[1].filter((items) => {
return items.projectStage == arguments[0]; return items.projectStage == arguments[0]
}); })
let msg = []; let msg = []
newArr.forEach((item) => { newArr.forEach((item) => {
if (item.fullName) { if (item.fullName) {
msg.push({ msg.push({
...@@ -668,107 +589,98 @@ export default { ...@@ -668,107 +589,98 @@ export default {
mid: item.mid, mid: item.mid,
fullId: item.fullId, fullId: item.fullId,
fullUrl: item.fullUrl, fullUrl: item.fullUrl,
}); })
// msg=msg.concat(item.materialName+':'+item.fullName+"<br>"); // msg=msg.concat(item.materialName+':'+item.fullName+"<br>");
} }
}); })
return msg; return msg
}, },
dataPretreatment() { dataPretreatment() {
for (let i = 0; i < this.tableDataQR.length; i++) { for (let i = 0; i < this.tableDataQR.length; i++) {
// tabledata 表格数据源 // tabledata 表格数据源
if (i === 0) { if (i === 0) {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = 0; this.mergingPos = 0
} else { } else {
if ( if (this.tableDataQR[i].projectStage === this.tableDataQR[i - 1].projectStage) {
this.tableDataQR[i].projectStage ===
this.tableDataQR[i - 1].projectStage
) {
//哪些数据是要合并的 合并的条件是什么 //哪些数据是要合并的 合并的条件是什么
this.mergingRows[this.mergingPos] += 1; this.mergingRows[this.mergingPos] += 1
this.mergingRows.push(0); this.mergingRows.push(0)
} else { } else {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = i; this.mergingPos = i
} }
} }
} }
}, },
closed() { closed() {
console.log("关闭"); console.log('关闭')
this.handleSelectionChange(); this.handleSelectionChange()
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) { if (columnIndex === 0) {
//第一列 //第一列
const _row = this.mergingRows[rowIndex]; const _row = this.mergingRows[rowIndex]
const _col = _row > 0 ? 1 : 0; const _col = _row > 0 ? 1 : 0
return { return {
rowspan: _row, rowspan: _row,
colspan: _col, colspan: _col,
}; }
} }
}, },
timeChange(time) { timeChange(time) {
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.createStartTime = time[0]; this.ruleForm.createStartTime = time[0]
this.ruleForm.createEndTime = time[1]; this.ruleForm.createEndTime = time[1]
} else { } else {
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
} }
}, },
async saveSS() { async saveSS() {
let res = await bcrectificationVerification(this.tableDataQR); let res = await bcrectificationVerification(this.tableDataQR)
if (res.code == "200") { if (res.code == '200') {
// this.dialogQR = false; // this.dialogQR = false;
this.$message("保存成功"); this.$message('保存成功')
this.resetForm(); this.resetForm()
} }
}, },
async savetj() { async savetj() {
this.tableDataQR.forEach((item) => { this.tableDataQR.forEach((item) => {
console.log(item.rectificationStatus, "item.rectificationStatus"); console.log(item.rectificationStatus, 'item.rectificationStatus')
if (!item.rectificationStatus && item.rectificationStatus !== 0) { if (!item.rectificationStatus && item.rectificationStatus !== 0) {
this.$message({ this.$message({
message: "请完成所有整改复核后在进行提交", message: '请完成所有整改复核后在进行提交',
type: "warning", type: 'warning',
}); })
throw new Error(); throw new Error()
} }
}); })
const isallwc = this.tableDataQR.every( const isallwc = this.tableDataQR.every((element) => element.rectificationStatus == 2)
(element) => element.rectificationStatus == 2
);
if (isallwc) { if (isallwc) {
this.$confirm( this.$confirm('若所有整改复核状态均为整改完成即为完成归档, 是否继续?', '提示', {
"若所有整改复核状态均为整改完成即为完成归档, 是否继续?", confirmButtonText: '确定',
"提示", cancelButtonText: '取消',
{ type: 'warning',
confirmButtonText: "确定", }).then(async () => {
cancelButtonText: "取消", let res = await tjrectificationVerification(this.tableDataQR)
type: "warning", if (res.code == '200') {
} this.dialogQR = false
).then(async () => { this.$message('提交成功')
let res = await tjrectificationVerification(this.tableDataQR); this.resetForm()
if (res.code == "200") {
this.dialogQR = false;
this.$message("提交成功");
this.resetForm();
} else { } else {
this.$message("提交失败"); this.$message('提交失败')
} }
}); })
} else { } else {
let res = await tjrectificationVerification(this.tableDataQR); let res = await tjrectificationVerification(this.tableDataQR)
if (res.code == "200") { if (res.code == '200') {
this.dialogQR = false; this.dialogQR = false
this.$message("提交成功"); this.$message('提交成功')
this.resetForm(); this.resetForm()
} else { } else {
this.$message("提交失败"); this.$message('提交失败')
} }
} }
}, },
...@@ -777,26 +689,26 @@ export default { ...@@ -777,26 +689,26 @@ export default {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
module: 1, module: 1,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
console.log(params); console.log(params)
let res = await postEvalQuesInfo(params); let res = await postEvalQuesInfo(params)
if (res.code == "200") { if (res.code == '200') {
this.tableData = res.data.records; this.tableData = res.data.records
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.postEvalState == "" || item.postEvalState == null) { if (item.postEvalState == '' || item.postEvalState == null) {
// this.$set(item, "postEvalStateText", "材料未上传"); // this.$set(item, "postEvalStateText", "材料未上传");
} else if (item.postEvalState == "0") { } else if (item.postEvalState == '0') {
this.$set(item, "postEvalStateText", "已退回"); this.$set(item, 'postEvalStateText', '已退回')
} else if (item.postEvalState == 1) { } else if (item.postEvalState == 1) {
this.$set(item, "postEvalStateText", "待评估"); this.$set(item, 'postEvalStateText', '待评估')
} else if (item.postEvalState == 2) { } else if (item.postEvalState == 2) {
this.$set(item, "postEvalStateText", "需整改"); this.$set(item, 'postEvalStateText', '需整改')
} else if (item.postEvalState == 3) { } else if (item.postEvalState == 3) {
this.$set(item, "postEvalStateText", "已整改"); this.$set(item, 'postEvalStateText', '已整改')
} else if (item.postEvalState == 4) { } else if (item.postEvalState == 4) {
this.$set(item, "postEvalStateText", "已归档"); this.$set(item, 'postEvalStateText', '已归档')
} }
// else if (item.postEvalState == 5) { // else if (item.postEvalState == 5) {
// this.$set(item, "postEvalStateText", "已整改"); // this.$set(item, "postEvalStateText", "已整改");
...@@ -804,259 +716,250 @@ export default { ...@@ -804,259 +716,250 @@ export default {
// this.$set(item, "postEvalStateText", "已归档"); // this.$set(item, "postEvalStateText", "已归档");
// } // }
this.$set( this.$set(item, 'constructionForm', constructionFormText(item.constructionForm))
item, })
"constructionForm", this.total = res.data.total * 1
constructionFormText(item.constructionForm)
);
});
this.total = res.data.total * 1;
} }
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields()
this.currentPage = 1; this.currentPage = 1
this.pageSize = 10; this.pageSize = 10
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
this.ruleForm.dates = []; this.ruleForm.dates = []
this.submitForm(); this.submitForm()
}, },
//合规性检查评估 //合规性检查评估
inspectNexts() { inspectNexts() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
let params = { let params = {
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
contractNumber: this.checkedList[0].contractNumber, contractNumber: this.checkedList[0].contractNumber,
proType: this.checkedList[0].projectType, proType: this.checkedList[0].projectType,
}; }
this.$router.push({ this.$router.push({
path: "/assesszc/Compliance", path: '/assesszc/Compliance',
query: { query: {
clqparams: JSON.stringify(params), clqparams: JSON.stringify(params),
projectName: this.checkedList[0].projectName, projectName: this.checkedList[0].projectName,
}, },
}); })
}, },
//详情 //详情
async detailsForm() { async detailsForm() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
let params = { let params = {
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
this.$router.push({ this.$router.push({
path: "/assesszc/Compliancefz", path: '/assesszc/Compliancefz',
query: { query: {
clqparams: JSON.stringify(params), clqparams: JSON.stringify(params),
ishow: false, ishow: false,
}, },
}); })
}, },
//提交问题清单 //提交问题清单
async submitNexts() { async submitNexts() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
// if(this.checkedList[0].postEvalState=='待评估'){ // if(this.checkedList[0].postEvalState=='待评估'){
// this.$message("该项目还未评估"); // this.$message("该项目还未评估");
// return; // return;
// } // }
if (this.checkedList[0].postEvalState == "已提交") { if (this.checkedList[0].postEvalState == '已提交') {
this.$message("该项目已提交"); this.$message('该项目已提交')
return; return
} }
// this.dialog = true; // this.dialog = true;
let params = { let params = {
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
this.$router.push({ this.$router.push({
path: "/assesszc/Compliancefz", path: '/assesszc/Compliancefz',
query: { query: {
clqparams: JSON.stringify(params), clqparams: JSON.stringify(params),
}, },
}); })
}, },
//撤销 //撤销
async withdraw() { async withdraw() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
if (this.checkedList[0].postEvalState != "已提交") { if (this.checkedList[0].postEvalState != '已提交') {
this.$message("该项目还未提交"); this.$message('该项目还未提交')
return; return
} }
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
}; }
let res = await chpostEvalQuesInfo(params); let res = await chpostEvalQuesInfo(params)
if (res.code == 200) { if (res.code == 200) {
this.resetForm(); this.resetForm()
} }
}, },
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
async handleClickXZ(fileId, fileName) { async handleClickXZ(fileId, fileName) {
let response = await downloadObject({ let response = await downloadObject({
fileId: fileId * 1, fileId: fileId * 1,
}); })
let blob = new Blob([response]); let blob = new Blob([response])
if ("download" in document.createElement("a")) { if ('download' in document.createElement('a')) {
let elink = document.createElement("a"); let elink = document.createElement('a')
elink.download = fileName; elink.download = fileName
elink.style.display = "none"; elink.style.display = 'none'
elink.href = URL.createObjectURL(blob); elink.href = URL.createObjectURL(blob)
document.body.appendChild(elink); document.body.appendChild(elink)
elink.click(); elink.click()
URL.revokeObjectURL(elink.href); // 释放URL 对象 URL.revokeObjectURL(elink.href) // 释放URL 对象
document.body.removeChild(elink); document.body.removeChild(elink)
} }
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.inspectdisabled = false; this.inspectdisabled = false
this.confirmdisabled = false; this.confirmdisabled = false
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
if (this.checkedList[0]) { if (this.checkedList[0]) {
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
if (this.checkedList[0].postEvalStateText != "已整改") { if (this.checkedList[0].postEvalStateText != '已整改') {
this.confirmdisabled = true; this.confirmdisabled = true
} }
if (this.checkedList[0].postEvalStateText != "待评估") { if (this.checkedList[0].postEvalStateText != '待评估') {
this.inspectdisabled = true; this.inspectdisabled = true
} }
} }
this.ruleFormdialog = this.checkedList[0]; this.ruleFormdialog = this.checkedList[0]
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false
// this.dialogXQ = false; // this.dialogXQ = false;
}, },
cancelSS() { cancelSS() {
this.dialogQR = false; this.dialogQR = false
}, },
closeDialog() { closeDialog() {
this.showButton = true; this.showButton = true
}, },
async selectProjectStage(val){ async selectProjectStage(val) {
this.form={ this.form = {
evalQues:'' evalQues: '',
} }
this.form.projectStage=val this.form.projectStage = val
console.log(val,'333344444') console.log(val, '333344444')
let params = { let params = {
projectStage: val, projectStage: val,
hgx:"hgx", hgx: 'hgx',
batchId:this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
contractNumber:this.checkedList[0].contractNumber, contractNumber: this.checkedList[0].contractNumber,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
proType: this.checkedList[0].projectType, proType: this.checkedList[0].projectType,
}; }
let res=await selWtqdFZ(params) let res = await selWtqdFZ2(params)
this.quesoptions=res.data.records this.quesoptions = res.data.records
}, },
selectCheckItem(val){ selectCheckItem(val) {
this.form.evalQues='' this.form.evalQues = ''
this.quesoptions.forEach(ele=>{ this.quesoptions.forEach((ele) => {
if(ele.quesCheckItem==val){ if (ele.quesCheckItem == val) {
this.form.checkDesc=ele.checkDesc this.form.checkDesc = ele.checkDesc
} }
}) })
}, },
async submitpro(){ async submitpro() {
let isxt= this.tableDataQR.some(item=>{ let isxt = this.tableDataQR.some((item) => {
return item.quesCheckItem== this.form.quesCheckItem; return item.quesCheckItem == this.form.quesCheckItem
}) })
if(isxt){ if (isxt) {
this.$message('已存在该问题检查项,请选择其他问题') this.$message('已存在该问题检查项,请选择其他问题')
return return
} }
let params={ if (!this.form.evalQues) {
return this.$message.warning('请填写问题描述')
}
let params = {
...this.form, ...this.form,
isProblem: "1", isProblem: '1',
batchId:this.checkedList[0].batchId, batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode, projectId: this.checkedList[0].projectCode,
} }
let res=await xzwtpostEvalQuesInfo(params) let res = await xzwtpostEvalQuesInfo(params)
if(res.code==200){ if (res.code == 200) {
this.innerVisible=false this.innerVisible = false
this.rectificationReview() this.rectificationReview()
} }
}, },
cancelpro(){ cancelpro() {
this.innerVisible=false this.innerVisible = false
}, },
addpro(){ addpro() {
this.form={ this.form = {
evalQues:'' evalQues: '',
} }
this.innerVisible = true this.innerVisible = true
}, },
async inspectBack(){ async inspectBack() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
this.$confirm( this.$confirm('是否材料不全,将退回重新上传?', '提示', {
"是否材料不全,将退回重新上传?", confirmButtonText: '是',
"提示", cancelButtonText: '否',
{ type: 'warning',
confirmButtonText: "是", }).then(async () => {
cancelButtonText: "否", let params = {
type: "warning", ...this.checkedList[0],
}
).then(async () => {
let params={
...this.checkedList[0]
}
let res= await postEvalQuesInfoTh(params)
if (res.code == "200") {
this.$message("已成功退回");
this.resetForm();
} else {
this.$message("退回失败");
} }
}); let res = await postEvalQuesInfoTh(params)
if (res.code == '200') {
this.$message('已成功退回')
this.resetForm()
} else {
this.$message('退回失败')
} }
})
},
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
...@@ -1316,7 +1219,7 @@ h3 { ...@@ -1316,7 +1219,7 @@ h3 {
} }
} }
.setTable { .setTable {
height: 560px; height: 570px;
overflow-y: auto; overflow-y: auto;
overflow-x: scroll; overflow-x: scroll;
position: relative; position: relative;
...@@ -1385,20 +1288,19 @@ h3 { ...@@ -1385,20 +1288,19 @@ h3 {
.addfrom { .addfrom {
display: inline-block; display: inline-block;
height: 300px; height: 300px;
/deep/.el-input__inner{ /deep/.el-input__inner {
width: 450px !important; width: 450px !important;
} }
/deep/.el-textarea__inner{ /deep/.el-textarea__inner {
width: 450px !important; width: 450px !important;
} }
/deep/ .el-select-dropdown { /deep/ .el-select-dropdown {
margin-top: -55px !important; /* 调整与触发按钮的距离 */ margin-top: -55px !important; /* 调整与触发按钮的距离 */
margin-left: 20px; /* 也可以调整左边距,根据需要 */ margin-left: 20px; /* 也可以调整左边距,根据需要 */
}
} }
.addBtn {
}
.addBtn{
text-align: center; text-align: center;
margin-bottom: 0; margin-bottom: 0;
} }
</style> </style>
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" ref="formName" label-width="100px" class="demo-ruleForm">
:model="ruleForm"
ref="formName"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="项目编码:" prop="projectCode" class="fromItem"> <el-form-item label="项目编码:" prop="projectCode" class="fromItem">
<el-input <el-input
v-model="ruleForm.projectCode" v-model="ruleForm.projectCode"
...@@ -15,11 +10,7 @@ ...@@ -15,11 +10,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleForm.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目年度:" prop="issueYear" class="fromItem"> <el-form-item label="项目年度:" prop="issueYear" class="fromItem">
<el-select v-model="ruleForm.issueYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.issueYear" placeholder="请选择" clearable>
...@@ -32,29 +23,17 @@ ...@@ -32,29 +23,17 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="建设形式:" prop="constructionForm" class="fromItem"> <el-form-item label="建设形式:" prop="constructionForm" class="fromItem">
<el-select <el-select v-model="ruleForm.constructionForm" placeholder="请选择" clearable>
v-model="ruleForm.constructionForm"
placeholder="请选择"
clearable
>
<el-option label="独立建设" value="1"></el-option> <el-option label="独立建设" value="1"></el-option>
<el-option label="统推" value="2"></el-option> <el-option label="统推" value="2"></el-option>
<el-option label="自建" value="3"></el-option> <el-option label="自建" value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="合同编码:" prop="contractNumber" class="fromItem"> <el-form-item label="合同编码:" prop="contractNumber" class="fromItem">
<el-input <el-input v-model="ruleForm.contractNumber" placeholder="请输入" clearable></el-input>
v-model="ruleForm.contractNumber"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="合同名称:" prop="contractName" class="fromItem"> <el-form-item label="合同名称:" prop="contractName" class="fromItem">
<el-input <el-input v-model="ruleForm.contractName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.contractName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="部门:" prop="department" class="fromItem"> <!-- <el-form-item label="部门:" prop="department" class="fromItem">
<el-input <el-input
...@@ -93,17 +72,11 @@ ...@@ -93,17 +72,11 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column prop="projectCode" label="项目编码" width="140"> <el-table-column prop="projectCode" label="项目编码" width="140"> </el-table-column>
</el-table-column>
<el-table-column <el-table-column prop="projectName" label="项目名称" show-overflow-tooltip>
prop="projectName"
label="项目名称"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="issueYear" label="项目年度" width="90"> <el-table-column prop="issueYear" label="项目年度" width="90">
...@@ -111,55 +84,26 @@ ...@@ -111,55 +84,26 @@
</el-table-column> </el-table-column>
<el-table-column prop="projectType" label="项目类型" width="120"> <el-table-column prop="projectType" label="项目类型" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-show="scope.row.type"> <span v-show="scope.row.type"> {{ scope.row.type | proType }}</span>
{{ scope.row.type | proType }}</span
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="constructionFormText" label="建设形式" width="90"> </el-table-column>
prop="constructionFormText" <el-table-column prop="startupStatus" label="启动日期" width="90"> </el-table-column>
label="建设形式" <el-table-column prop="accountingStatus" label="入账状态" width="90"> </el-table-column>
width="90" <el-table-column prop="accountingProportion" label="累计入账占比" width="90">
> <template slot-scope="scope"> {{ scope.row.accountingProportion }}% </template>
</el-table-column> </el-table-column>
<el-table-column prop="startupStatus" label="启动日期" width="90"> <el-table-column prop="entryAmount" label="入账金额(万)" width="120"> </el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120"> </el-table-column>
<el-table-column prop="contractNumber" label="合同编码" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="accountingStatus" label="入账状态" width="90"> <el-table-column prop="contractName" label="合同名称" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="accountingProportion"
label="累计入账占比"
width="90"
>
<template slot-scope="scope">
{{ scope.row.accountingProportion }}%
</template>
</el-table-column>
<el-table-column prop="entryAmount" label="入账金额(万)" width="120">
</el-table-column>
<el-table-column prop="currentProgress" label="当前进度" width="120">
</el-table-column>
<el-table-column
prop="contractNumber"
label="合同编码"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="projectLeader" label="项目负责人" width="120">
</el-table-column> </el-table-column>
<el-table-column prop="projectLeader" label="项目负责人" width="120"> </el-table-column>
<el-table-column label="操作" width="120"> <el-table-column label="操作" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="upload(scope.row)" type="text" size="small" <el-button @click="upload(scope.row)" type="text" size="small">操作</el-button>
>操作</el-button
>
<!-- <el-button @click="changeLX(scope.row)" type="text" size="small" v-if="scope.row.projectType" <!-- <el-button @click="changeLX(scope.row)" type="text" size="small" v-if="scope.row.projectType"
>更换项目类型</el-button >更换项目类型</el-button
> --> > -->
...@@ -188,10 +132,7 @@ ...@@ -188,10 +132,7 @@
<template slot="title"> <template slot="title">
<div class="custom_dialog_header"> <div class="custom_dialog_header">
<span class="el_dialog_title">项目文档</span> <span class="el_dialog_title">项目文档</span>
<div <div class="custom_dialog_menu" @click="dialogFullScreen = !dialogFullScreen">
class="custom_dialog_menu"
@click="dialogFullScreen = !dialogFullScreen"
>
<i class="el-icon-full-screen"></i> <i class="el-icon-full-screen"></i>
</div> </div>
</div> </div>
...@@ -209,22 +150,12 @@ ...@@ -209,22 +150,12 @@
:span-method="arraySpanMethod" :span-method="arraySpanMethod"
border border
> >
<el-table-column <el-table-column label="材料类别" prop="projectStagetext" width="100">
label="材料类别"
prop="projectStagetext"
width="100"
>
</el-table-column>
<el-table-column label="序号" width="55" type="index">
</el-table-column> </el-table-column>
<el-table-column label="序号" width="55" type="index"> </el-table-column>
<el-table-column label="资料类型" prop="materialName" width="300"> <el-table-column label="资料类型" prop="materialName" width="300"> </el-table-column>
</el-table-column> <el-table-column prop="fullName" label="资料名称" show-overflow-tooltip>
<el-table-column
prop="fullName"
label="资料名称"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="caozuo" label="操作" width="350"> <el-table-column prop="caozuo" label="操作" width="350">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -234,7 +165,7 @@ ...@@ -234,7 +165,7 @@
:multiple="true" :multiple="true"
:http-request=" :http-request="
(res) => { (res) => {
return fileupdate(scope.row, res); return fileupdate(scope.row, res)
} }
" "
:on-change="uploadChange" :on-change="uploadChange"
...@@ -312,10 +243,8 @@ ...@@ -312,10 +243,8 @@
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
border border
> >
<el-table-column label="序号" width="55" type="index"> <el-table-column label="序号" width="55" type="index"> </el-table-column>
</el-table-column> <el-table-column prop="fullTime" label="上传日期" width="200"> </el-table-column>
<el-table-column prop="fullTime" label="上传日期" width="200">
</el-table-column>
<!-- <el-table-column <!-- <el-table-column
prop="materialName" prop="materialName"
label="资料类型" label="资料类型"
...@@ -323,12 +252,7 @@ ...@@ -323,12 +252,7 @@
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> --> </el-table-column> -->
<el-table-column <el-table-column prop="fullName" label="文件名称" width="auto" show-overflow-tooltip>
prop="fullName"
label="文件名称"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
...@@ -363,12 +287,7 @@ ...@@ -363,12 +287,7 @@
</el-tabs> </el-tabs>
</el-dialog> </el-dialog>
</el-dialog> </el-dialog>
<el-dialog <el-dialog title="请选择您要操作的项目类型" class="tips" :visible.sync="showType" width="40%">
title="请选择您要操作的项目类型"
class="tips"
:visible.sync="showType"
width="40%"
>
<el-form :model="form" class="projectType"> <el-form :model="form" class="projectType">
<el-form-item label="项目类型" prop="projectType"> <el-form-item label="项目类型" prop="projectType">
<el-select v-model="form.projectType" placeholder="请选择项目类型"> <el-select v-model="form.projectType" placeholder="请选择项目类型">
...@@ -381,10 +300,7 @@ ...@@ -381,10 +300,7 @@
</el-form-item> </el-form-item>
<el-form-item class="rightBtn"> <el-form-item class="rightBtn">
<el-button @click="showType = false">取 消</el-button> <el-button @click="showType = false">取 消</el-button>
<el-button <el-button type="primary" @click="projectType()" :disabled="!form.projectType"
type="primary"
@click="projectType()"
:disabled="!form.projectType"
>确 定</el-button >确 定</el-button
> >
</el-form-item> </el-form-item>
...@@ -394,11 +310,7 @@ ...@@ -394,11 +310,7 @@
</template> </template>
<script> <script>
import { import { generateYearOptions, constructionFormText, MaterialsList } from '@/utils/cache'
generateYearOptions,
constructionFormText,
MaterialsList,
} from "@/utils/cache";
import { import {
pmProInitiation, pmProInitiation,
MaterialWarehous, MaterialWarehous,
...@@ -410,15 +322,15 @@ import { ...@@ -410,15 +322,15 @@ import {
HistoryVersion, HistoryVersion,
presignedUrl, presignedUrl,
postExist, postExist,
} from "@/api/index"; } from '@/api/index'
import { Loading } from "element-ui"; import { Loading } from 'element-ui'
export default { export default {
data() { data() {
return { return {
dialogFullScreen: false, dialogFullScreen: false,
tableHistory: [], tableHistory: [],
processen: "", processen: '',
fileList: [], fileList: [],
tableDataNew: MaterialsList(), tableDataNew: MaterialsList(),
checkedList: [], checkedList: [],
...@@ -435,103 +347,97 @@ export default { ...@@ -435,103 +347,97 @@ export default {
form: {}, form: {},
rowdata: {}, rowdata: {},
rules: { rules: {
projectType: [ projectType: [{ required: true, message: '请选择项目类型', trigger: 'change' }],
{ required: true, message: "请选择项目类型", trigger: "change" },
],
}, },
innerVisible: false, innerVisible: false,
upprojectType: "", upprojectType: '',
dialogVisible: false, dialogVisible: false,
activeName: "0", activeName: '0',
tabListYL: [], tabListYL: [],
iframeUrl: "", iframeUrl: '',
blobType: "", blobType: '',
inspectdisabled: true, inspectdisabled: true,
mergingPos: 0, mergingPos: 0,
mergingRows: [], mergingRows: [],
}; }
}, },
filters: { filters: {
proType(val) { proType(val) {
if (val == 1) { if (val == 1) {
return "咨询设计类"; return '咨询设计类'
} else if (val == 2) { } else if (val == 2) {
return "开发实施类"; return '开发实施类'
} else if (val == 3) { } else if (val == 3) {
return "业务运营类"; return '业务运营类'
} else if (val == 4) { } else if (val == 4) {
return "数据工程类"; return '数据工程类'
} else if (val == 5) { } else if (val == 5) {
return "产品购置类"; return '产品购置类'
} }
}, },
}, },
mounted() { mounted() {
if(this.$route.query.projectId){ if (this.$route.query.projectId) {
this.ruleForm.projectCode = this.$route.query.projectId; this.ruleForm.projectCode = this.$route.query.projectId
} }
this.submitForm(); this.submitForm()
this.processenv = process.env.VUE_APP_BASE_URL; this.processenv = process.env.VUE_APP_BASE_URL
}, },
methods: { methods: {
numberVal(val) { numberVal(val) {
this.$forceUpdate() this.$forceUpdate()
}, },
noFullScreen() { noFullScreen() {
console.log("关闭了"); console.log('关闭了')
this.dialogFullScreen = false; this.dialogFullScreen = false
}, },
upload(row) { upload(row) {
this.ruleFormdialog = row; this.ruleFormdialog = row
if (!row.type) { if (!row.type) {
this.form = {}; this.form = {}
this.showType = true; this.showType = true
} else { } else {
this.upprojectType = row.type; this.upprojectType = row.type
this.MaterialWarehous(row.type); this.MaterialWarehous(row.type)
} }
}, },
changeLX() { changeLX() {
this.$confirm("切换项目类型将删除历史上传文件, 是否继续?", "提示", { this.$confirm('切换项目类型将删除历史上传文件, 是否继续?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning", type: 'warning',
}) })
.then((res) => { .then((res) => {
this.form = {}; this.form = {}
this.showType = true; this.showType = true
}) })
.catch(); .catch()
}, },
dataPretreatment() { dataPretreatment() {
for (let i = 0; i < this.tableDataQR.length; i++) { for (let i = 0; i < this.tableDataQR.length; i++) {
// tabledata 表格数据源 // tabledata 表格数据源
if (i === 0) { if (i === 0) {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = 0; this.mergingPos = 0
} else { } else {
if ( if (this.tableDataQR[i].projectStage === this.tableDataQR[i - 1].projectStage) {
this.tableDataQR[i].projectStage ===
this.tableDataQR[i - 1].projectStage
) {
//哪些数据是要合并的 合并的条件是什么 //哪些数据是要合并的 合并的条件是什么
this.mergingRows[this.mergingPos] += 1; this.mergingRows[this.mergingPos] += 1
this.mergingRows.push(0); this.mergingRows.push(0)
} else { } else {
this.mergingRows.push(1); this.mergingRows.push(1)
this.mergingPos = i; this.mergingPos = i
} }
} }
} }
}, },
projectType() { projectType() {
console.log(this.form.projectType, "2222"); console.log(this.form.projectType, '2222')
this.chpmProInitiation(this.form.projectType); this.chpmProInitiation(this.form.projectType)
this.MaterialWarehous(this.form.projectType); this.MaterialWarehous(this.form.projectType)
this.showType = false; this.showType = false
}, },
async downloadObjectStr(row) { async downloadObjectStr(row) {
let params = { let params = {
...@@ -539,176 +445,175 @@ export default { ...@@ -539,176 +445,175 @@ export default {
fullNameStr: row.fullName, fullNameStr: row.fullName,
fullUrlStr: row.fullUrl, fullUrlStr: row.fullUrl,
materialName: row.materialName, materialName: row.materialName,
}; }
let response = await downloadObjectStr(params); let response = await downloadObjectStr(params)
let blob = new Blob([response], { type: "application/zip" }); let blob = new Blob([response], { type: 'application/zip' })
let url = window.URL.createObjectURL(blob); let url = window.URL.createObjectURL(blob)
const link = document.createElement("a"); // 创建a标签 const link = document.createElement('a') // 创建a标签
link.href = url; link.href = url
link.download = row.materialName + "压缩文件"; // 重命名文件 link.download = row.materialName + '压缩文件' // 重命名文件
link.click(); link.click()
URL.revokeObjectURL(url); // 释放内存 URL.revokeObjectURL(url) // 释放内存
}, },
async delAll(row) { async delAll(row) {
console.log(row, "6666666666666"); console.log(row, '6666666666666')
this.$confirm("此操作将删除该文件, 是否继续?", "提示", { this.$confirm('此操作将删除该文件, 是否继续?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning", type: 'warning',
}) })
.then(async () => { .then(async () => {
let params = { let params = {
fileIdStr: row.fullId, fileIdStr: row.fullId,
}; }
let response = await delAll(params); let response = await delAll(params)
if (response.code == 200) { if (response.code == 200) {
this.$message({ this.$message({
type: "success", type: 'success',
message: "删除成功!", message: '删除成功!',
}); })
this.MaterialWarehous(this.upprojectType); this.MaterialWarehous(this.upprojectType)
} else { } else {
this.$message({ this.$message({
type: "info", type: 'info',
message: "删除失败!", message: '删除失败!',
}); })
} }
}) })
.catch(() => {}); .catch(() => {})
}, },
async chpmProInitiation(projectType) { async chpmProInitiation(projectType) {
let params = { let params = {
...this.ruleFormdialog, ...this.ruleFormdialog,
}; }
params.projectType = projectType; params.projectType = projectType
let res = await chpmProInitiation(params); let res = await chpmProInitiation(params)
this.resetForm() // this.resetForm()
}, },
async MaterialWarehous(projectType) { async MaterialWarehous(projectType) {
this.mergingPos = 0; this.mergingPos = 0
this.mergingRows = []; this.mergingRows = []
this.tableDataQR = []; this.tableDataQR = []
console.log("不调接口了"); console.log('不调接口了')
this.dialog = true; this.dialog = true
let params = { let params = {
proType: projectType, proType: projectType,
contractNumber: this.ruleFormdialog.contractNumber, contractNumber: this.ruleFormdialog.contractNumber,
prjId: this.ruleFormdialog.projectCode, prjId: this.ruleFormdialog.projectCode,
}; }
let res = await MaterialWarehous(params); let res = await MaterialWarehous(params)
this.tableDataQR = res.data.records; this.tableDataQR = res.data.records
console.log(this.tableDataQR, "this.tableDataQR"); console.log(this.tableDataQR, 'this.tableDataQR')
this.tableDataQR.forEach((item) => { this.tableDataQR.forEach((item) => {
switch (item.projectStage) { switch (item.projectStage) {
case "1": case '1':
this.$set(item, "projectStagetext", "可研"); this.$set(item, 'projectStagetext', '可研')
break; break
case "2": case '2':
this.$set(item, "projectStagetext", "计划"); this.$set(item, 'projectStagetext', '计划')
break; break
case "3": case '3':
this.$set(item, "projectStagetext", "采购"); this.$set(item, 'projectStagetext', '采购')
break; break
case "4": case '4':
this.$set(item, "projectStagetext", "合同"); this.$set(item, 'projectStagetext', '合同')
break; break
case "5": case '5':
this.$set(item, "projectStagetext", "执行"); this.$set(item, 'projectStagetext', '执行')
break; break
case "6": case '6':
this.$set(item, "projectStagetext", "结决算及转资"); this.$set(item, 'projectStagetext', '结决算及转资')
break; break
} }
}); })
this.dataPretreatment(); this.dataPretreatment()
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields()
this.currentPage = 1; this.currentPage = 1
this.pageSize = 10; this.pageSize = 10
this.submitForm(); this.submitForm()
}, },
async submitForm() { async submitForm() {
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
let res = await pmProInitiation(params); let res = await pmProInitiation(params)
if (res.code == "200") { if (res.code == '200') {
this.tableData = res.data.records; this.tableData = res.data.records
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.multipleTable && this.$refs.multipleTable.doLayout) { if (this.$refs.multipleTable && this.$refs.multipleTable.doLayout) {
this.$refs.multipleTable.doLayout(); // 解决表格错位 this.$refs.multipleTable.doLayout() // 解决表格错位
} }
}); })
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
this.$set( this.$set(item, 'constructionFormText', constructionFormText(item.constructionForm))
item, })
"constructionFormText", this.total = res.data.total * 1
constructionFormText(item.constructionForm) this.dialogXQ = true
);
});
this.total = res.data.total * 1;
this.dialogXQ = true;
} }
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
if(selection.length>0){ if (selection.length > 0) {
this.inspectdisabled = false; this.inspectdisabled = false
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.ruleFormdialog = this.$refs.multipleTable.selection[0]; this.ruleFormdialog = this.$refs.multipleTable.selection[0]
if (!this.ruleFormdialog.type) { if (!this.ruleFormdialog.type) {
this.inspectdisabled = true; this.inspectdisabled = true
} }
}else{ } else {
this.inspectdisabled = true; this.inspectdisabled = true
} }
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false
}, },
preserve() { preserve() {
this.dialog = false; this.dialog = false
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
async history(msg) { async history(msg) {
let res = await HistoryVersion({ ...msg }); let res = await HistoryVersion({
this.tableHistory = res.data.records; ...msg,
this.innerVisible = true; contractNumber: this.ruleFormdialog.contractNumber,
prjId: this.ruleFormdialog.projectCode,
})
this.tableHistory = res.data.records
this.innerVisible = true
}, },
// handleRemove(file, fileList) { // handleRemove(file, fileList) {
// //文件移出 // //文件移出
...@@ -736,166 +641,164 @@ export default { ...@@ -736,166 +641,164 @@ export default {
// this.fileList = fileList; // this.fileList = fileList;
}, },
fileupdate(items, list) { fileupdate(items, list) {
console.log(items, "list"); console.log(items, 'list')
this.fileList.push(list.file); this.fileList.push(list.file)
this.debounce(this.submitFile, 500, items); this.debounce(this.submitFile, 500, items)
}, },
debounce(fn, waits, items) { debounce(fn, waits, items) {
if (this.timer) { if (this.timer) {
clearTimeout(this.timer); clearTimeout(this.timer)
this.timer = null; this.timer = null
} }
this.timer = setTimeout(() => { this.timer = setTimeout(() => {
fn.apply(this, arguments); // 把参数传进去 fn.apply(this, arguments) // 把参数传进去
}, waits); }, waits)
}, },
submitFile(items) { submitFile(items) {
console.log(arguments[2], "arguments"); console.log(arguments[2], 'arguments')
if (this.fileList.length === 0) { if (this.fileList.length === 0) {
this.$message.success("请上传文件"); this.$message.success('请上传文件')
return; return
} }
this.uploadLoading = true; this.uploadLoading = true
let formData = new FormData(); // 用FormData存放上传文件 let formData = new FormData() // 用FormData存放上传文件
this.fileList.forEach((file) => { this.fileList.forEach((file) => {
formData.append("file", file); // file.raw formData.append('file', file) // file.raw
}); })
formData.append("typeCode", arguments[2].mid); formData.append('typeCode', arguments[2].mid)
formData.append("prjId", this.ruleFormdialog.projectCode); formData.append('prjId', this.ruleFormdialog.projectCode)
formData.append("bathId", this.ruleFormdialog.contractNumber); formData.append('bathId', this.ruleFormdialog.contractNumber)
ossuploadStr(formData) ossuploadStr(formData)
.then((response) => { .then((response) => {
if (response.code == "200") { if (response.code == '200') {
this.fileList = []; this.fileList = []
this.MaterialWarehous(this.upprojectType); this.MaterialWarehous(this.upprojectType)
this.$refs["upload" + arguments[2].mid].clearFiles(); this.$refs['upload' + arguments[2].mid].clearFiles()
this.$message("上传成功"); this.$message('上传成功')
} else { } else {
this.$message("上传失败"); this.$message('上传失败')
} }
}) })
.catch((error) => { .catch((error) => {
// console.error(error); // console.error(error);
// this.$message("上传失败"); // this.$message("上传失败");
}); })
}, },
handleSuccess(response, file, fileList) { handleSuccess(response, file, fileList) {
// 提交保存成功后清空已上传的文件 // 提交保存成功后清空已上传的文件
// this.$refs.upload.clearFiles(); // this.$refs.upload.clearFiles();
}, },
async preview(row) { async preview(row) {
this.tabListYL = []; this.tabListYL = []
console.log(row.fullName, "33333"); console.log(row.fullName, '33333')
let array = row.fullName.split(","); let array = row.fullName.split(',')
array.forEach((item, index) => { array.forEach((item, index) => {
this.tabListYL.push({ this.tabListYL.push({
name: item, name: item,
id: row.fullId.split(",")[index], id: row.fullId.split(',')[index],
url: row.fullUrl.split(",")[index], url: row.fullUrl.split(',')[index],
}); })
}); })
console.log(this.tabListYL, "this.tabListYL"); console.log(this.tabListYL, 'this.tabListYL')
this.downloadObject("0"); this.downloadObject('0')
}, },
handleClick(tab) { handleClick(tab) {
console.log("切换", tab.name, this.tabListYL[tab.name].iframeUrl); console.log('切换', tab.name, this.tabListYL[tab.name].iframeUrl)
if (!this.tabListYL[tab.name].iframeUrl) { if (!this.tabListYL[tab.name].iframeUrl) {
this.downloadObject(tab.name + ""); this.downloadObject(tab.name + '')
} }
}, },
async downloadObject(index) { async downloadObject(index) {
let loadingInstance; let loadingInstance
loadingInstance = Loading.service({ loadingInstance = Loading.service({
lock: true, lock: true,
text: "文件加载中,请耐心等待...", text: '文件加载中,请耐心等待...',
}); })
this.blobType = ""; this.blobType = ''
console.log(this.tabListYL, "this.tabListYL"); console.log(this.tabListYL, 'this.tabListYL')
let resUrl = await downloadObject({ fileId: this.tabListYL[index].id }); let resUrl = await downloadObject({ fileId: this.tabListYL[index].id })
loadingInstance.close(); loadingInstance.close()
if (this.tabListYL[index].url.slice(-3) == "pdf"||this.tabListYL[index].url.slice(-3) == "doc") { if (
this.blobType = "pdf"; this.tabListYL[index].url.slice(-3) == 'pdf' ||
const binaryData = []; this.tabListYL[index].url.slice(-3) == 'doc'
binaryData.push(resUrl); ) {
let URL = window.URL.createObjectURL( this.blobType = 'pdf'
new Blob(binaryData, { type: "application/pdf" }) const binaryData = []
); binaryData.push(resUrl)
let URL = window.URL.createObjectURL(new Blob(binaryData, { type: 'application/pdf' }))
this.$nextTick(() => { this.$nextTick(() => {
this.$set(this.tabListYL[index], "iframeUrl", URL + "#view=FitH,top"); this.$set(this.tabListYL[index], 'iframeUrl', URL + '#view=FitH,top')
}); })
} else if (this.tabListYL[index].url.slice(-4) == "docx") { } else if (this.tabListYL[index].url.slice(-4) == 'docx') {
this.blobType = "docx"; this.blobType = 'docx'
let docx = require("docx-preview"); let docx = require('docx-preview')
this.$nextTick(() => { this.$nextTick(() => {
docx.renderAsync( docx.renderAsync(resUrl, document.getElementById(`word${this.tabListYL[index].url}`)) // 渲染到页面预览
resUrl, })
document.getElementById(`word${this.tabListYL[index].url}`)
); // 渲染到页面预览
});
} else { } else {
let paramsImg = { let paramsImg = {
fileId: this.tabListYL[index].id, fileId: this.tabListYL[index].id,
url: this.tabListYL[index].url, url: this.tabListYL[index].url,
}; }
let resUrl = await presignedUrl(paramsImg); let resUrl = await presignedUrl(paramsImg)
// this.iframeUrl="http://view.officeapps.live.com/op/view.aspx?src=http://arch-file.oss-cn-beijing.aliyuncs.com/66a83f6f4386f71e7b950b87.doc?Expires=1722907981&OSSAccessKeyId=LTAI5tGjidtvVSCvwGxTp8FH&Signature=4p2boWzux%2FscZHWQz2E4gVRF94w%3D" // this.iframeUrl="http://view.officeapps.live.com/op/view.aspx?src=http://arch-file.oss-cn-beijing.aliyuncs.com/66a83f6f4386f71e7b950b87.doc?Expires=1722907981&OSSAccessKeyId=LTAI5tGjidtvVSCvwGxTp8FH&Signature=4p2boWzux%2FscZHWQz2E4gVRF94w%3D"
} }
console.log(this.blobType); console.log(this.blobType)
this.dialogVisible = true; this.dialogVisible = true
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0 || columnIndex === 8) { if (columnIndex === 0 || columnIndex === 8) {
//第一列 //第一列
const _row = this.mergingRows[rowIndex]; const _row = this.mergingRows[rowIndex]
const _col = _row > 0 ? 1 : 0; const _col = _row > 0 ? 1 : 0
return { return {
rowspan: _row, rowspan: _row,
colspan: _col, colspan: _col,
}; }
} }
}, },
postExist(row) { postExist(row) {
let params = { let params = {
contractNumber: this.ruleFormdialog.contractNumber, contractNumber: this.ruleFormdialog.contractNumber,
projectCode: this.ruleFormdialog.projectCode, projectCode: this.ruleFormdialog.projectCode,
}; }
postExist(params).then((res) => { postExist(params).then((res) => {
if (res.data.exist) { if (res.data.exist) {
this.$alert("项目流程审批中,请勿上传新的文件", "提示", { this.$alert('项目流程审批中,请勿上传新的文件', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
callback: (action) => { callback: (action) => {
// this.$message({ // this.$message({
// type: "info", // type: "info",
// message: `action: ${action}`, // message: `action: ${action}`,
// }); // });
}, },
}); })
return; return
} else { } else {
this.uploadFiles(row); this.uploadFiles(row)
} }
}); })
}, },
uploadFiles(row) { uploadFiles(row) {
if (row.fullId) { if (row.fullId) {
this.$confirm("已有文件,本次上传将覆盖历史上传文件,是否继续?", "提示", { this.$confirm('已有文件,本次上传将覆盖历史上传文件,是否继续?', '提示', {
confirmButtonText: "确定", confirmButtonText: '确定',
cancelButtonText: "取消", cancelButtonText: '取消',
type: "warning", type: 'warning',
}) })
.then((res) => { .then((res) => {
this.$refs["upload" + row.mid].$refs["upload-inner"].handleClick(); this.$refs['upload' + row.mid].$refs['upload-inner'].handleClick()
}) })
.catch(); .catch()
} else { } else {
this.$refs["upload" + row.mid].$refs["upload-inner"].handleClick(); this.$refs['upload' + row.mid].$refs['upload-inner'].handleClick()
} }
}, },
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
...@@ -1122,7 +1025,6 @@ export default { ...@@ -1122,7 +1025,6 @@ export default {
min-height: 50vh; min-height: 50vh;
} }
.bigdialog { .bigdialog {
left: 20vw; left: 20vw;
} }
...@@ -1215,7 +1117,7 @@ export default { ...@@ -1215,7 +1117,7 @@ export default {
height: 630px; height: 630px;
overflow-y: auto; overflow-y: auto;
} }
/deep/.el-table--scrollable-x .el-table__body-wrapper{ /deep/.el-table--scrollable-x .el-table__body-wrapper {
overflow-x: hidden; overflow-x: hidden;
} }
</style> </style>
<!-- 项目辅助检查问题查询 --> <!-- 项目辅助检查问题查询 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" label-width="100px" class="demo-ruleForm" ref="formName">
:model="ruleForm"
label-width="100px"
class="demo-ruleForm"
ref="formName"
>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem"> <el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
:label="item+'年'" :label="item + '年'"
:value="item"/> :value="item"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="单位名称:" prop="dwmc" class="fromItem"> <!-- <el-form-item label="单位名称:" prop="dwmc" class="fromItem">
...@@ -24,14 +20,9 @@ ...@@ -24,14 +20,9 @@
></el-input> ></el-input>
</el-form-item> --> </el-form-item> -->
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleForm.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目阶段:" prop="projectStatus" class="fromItem"> <el-form-item label="项目阶段:" prop="projectStatus" class="fromItem">
<el-select v-model="ruleForm.projectStatus" placeholder="请选择" clearable> <el-select v-model="ruleForm.projectStatus" placeholder="请选择" clearable>
<el-option label="项目验收" value="项目验收"></el-option> <el-option label="项目验收" value="项目验收"></el-option>
<el-option label="项目建设" value="项目建设"></el-option> <el-option label="项目建设" value="项目建设"></el-option>
...@@ -51,11 +42,7 @@ ...@@ -51,11 +42,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="问题检查项:" prop="quesCheckItem" class="fromItem"> <el-form-item label="问题检查项:" prop="quesCheckItem" class="fromItem">
<el-input <el-input v-model="ruleForm.quesCheckItem" placeholder="请输入" clearable></el-input>
v-model="ruleForm.quesCheckItem"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="提出时间:" prop="createTime" class="fromItem"> <el-form-item label="提出时间:" prop="createTime" class="fromItem">
<el-date-picker <el-date-picker
...@@ -108,35 +95,28 @@ ...@@ -108,35 +95,28 @@
<el-table-column prop="projectYear" label="项目年度" width="120"> <el-table-column prop="projectYear" label="项目年度" width="120">
<template slot-scope="scope"> {{ scope.row.projectYear }}</template> <template slot-scope="scope"> {{ scope.row.projectYear }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="dwmc" label="单位名称" width="auto"> <el-table-column prop="dwmc" label="单位名称" width="auto"> </el-table-column>
</el-table-column>
<el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip> <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="projectStatus" label="项目阶段" width="auto"> <el-table-column prop="projectStatus" label="项目阶段" width="auto"> </el-table-column>
</el-table-column> <el-table-column prop="projectFlowStatus" label="项目环节" width="auto"> </el-table-column>
<el-table-column prop="projectFlowStatus" label="项目环节" width="auto">
</el-table-column>
<el-table-column prop="quesCheckItem" label="问题检查项" width="auto" show-overflow-tooltip> <el-table-column prop="quesCheckItem" label="问题检查项" width="auto" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="quesSource" label="问题来源" width="auto"> <el-table-column prop="quesSource" label="问题来源" width="auto"> </el-table-column>
</el-table-column> <el-table-column prop="createTime" label="提出时间" width="auto"> </el-table-column>
<el-table-column prop="createTime" label="提出时间" width="auto">
</el-table-column>
<el-table-column prop="checkDesc" label="问题描述" width="auto" show-overflow-tooltip> <el-table-column prop="checkDesc" label="问题描述" width="auto" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="rectificationFeedback" label="整改情况" width="auto"> <el-table-column prop="rectificationFeedback" label="整改情况" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="rectificationTime" label="整改时间" width="auto"> <el-table-column prop="rectificationTime" label="整改时间" width="auto"> </el-table-column>
</el-table-column> <el-table-column prop="RectificationText" label="整改状态" width="auto"> </el-table-column>
<el-table-column prop="RectificationText" label="整改状态" width="auto">
</el-table-column>
</el-table> </el-table>
</div> </div>
<el-pagination <el-pagination
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="currentPage" :current-page="currentPage"
:page-sizes="[10, 15, 20, 50,100]" :page-sizes="[10, 15, 20, 50, 100]"
:page-size="1000" :page-size="1000"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
...@@ -152,25 +132,17 @@ ...@@ -152,25 +132,17 @@
:append-to-body="false" :append-to-body="false"
> >
<div class="dialog"> <div class="dialog">
<h3> <h3>项目名称:一期项目-电力营销-2023年网上国网(网上国网V1.0)-设计开发项目</h3>
项目名称:一期项目-电力营销-2023年网上国网(网上国网V1.0)-设计开发项目
</h3>
<div> <div>
<div class="content"> <div class="content">
<p><label>项目年度:</label>{{ listData.projectId }}</p> <p><label>项目年度:</label>{{ listData.projectYear }}</p>
<p><label>单位名称:</label>{{ listData.dwmc }}</p> <p><label>单位名称:</label>{{ listData.dwmc }}</p>
<p> <p>
<label>项目名称:</label> <span>{{ listData.projectName }}</span> <label>项目名称:</label> <span>{{ listData.projectName }}</span>
</p> </p>
<p><label>项目阶段:</label>{{ listData.projectStatus }}</p> <p><label>项目阶段:</label>{{ listData.projectStatus }}</p>
<p> <p><label>项目环节:</label>{{ listData.projectFlowStatus }}</p>
<label>项目环节:</label <p><label>问题检查项:</label>{{ listData.quesCheckItem }}</p>
>{{ listData.projectFlowStatus }}
</p>
<p>
<label>问题检查项:</label
>{{ listData.quesCheckItem }}
</p>
<p><label>问题来源:</label>{{ listData.quesSource }}</p> <p><label>问题来源:</label>{{ listData.quesSource }}</p>
<p><label>提出时间:</label>{{ listData.createTime }}</p> <p><label>提出时间:</label>{{ listData.createTime }}</p>
<p><label>问题描述:</label>{{ listData.checkDesc }}</p> <p><label>问题描述:</label>{{ listData.checkDesc }}</p>
...@@ -186,156 +158,155 @@ ...@@ -186,156 +158,155 @@
</template> </template>
<script> <script>
import { projectInspectionIssues } from "@/api/index"; import { projectInspectionIssues } from '@/api/index'
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions } from '@/utils/cache'
export default { export default {
data() { data() {
return { return {
yearsList:generateYearOptions(), yearsList: generateYearOptions(),
ruleForm: { ruleForm: {
projectYear:"", //默认展示当前年 projectYear: '', //默认展示当前年
dates: [], dates: [],
}, },
ruleFormdialog: { ruleFormdialog: {
projectYear: "", projectYear: '',
companyName: "", companyName: '',
projectName: "", projectName: '',
projectPhase: "", projectPhase: '',
projectLink: "", projectLink: '',
submitTime: "", submitTime: '',
checkProblem: "", checkProblem: '',
abarbeitungTime: "", abarbeitungTime: '',
abarbeitungStatus: "", abarbeitungStatus: '',
}, },
tableData: [], tableData: [],
pageSize:10, pageSize: 10,
currentPage:1, currentPage: 1,
dialog: false, dialog: false,
listData: {}, listData: {},
total:0, total: 0,
checkedList: [],
}; }
}, },
mounted() { mounted() {
this.submitForm(); this.submitForm()
}, },
methods: { methods: {
timeChange(time) { timeChange(time) {
console.log('tttttt',time) console.log('tttttt', time)
if (time) { if (time) {
//给后端的参数 //给后端的参数
this.ruleForm.createStartTime = time[0]; this.ruleForm.createStartTime = time[0]
this.ruleForm.createEndTime = time[1]; this.ruleForm.createEndTime = time[1]
}else{ } else {
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
} }
}, },
async submitForm() { async submitForm() {
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
console.log(params); console.log(params)
let res = await projectInspectionIssues(params); let res = await projectInspectionIssues(params)
if (res.code == "200") { if (res.code == '200') {
this.tableData = res.data.records; this.tableData = res.data.records
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if(item.isRectificationStatus==1){ if (item.isRectificationStatus == 1) {
this.$set(item, "RectificationText", "已整改"); this.$set(item, 'RectificationText', '已整改')
}else{ } else {
this.$set(item, "RectificationText", "未整改"); this.$set(item, 'RectificationText', '未整改')
}; }
if (item.projectPhase == "" || item.projectPhase == null) { if (item.projectPhase == '' || item.projectPhase == null) {
} else if (item.projectPhase == "1") { } else if (item.projectPhase == '1') {
this.$set(item, "projectPhase", "项目验收"); this.$set(item, 'projectPhase', '项目验收')
} else if (item.projectPhase == "2") { } else if (item.projectPhase == '2') {
this.$set(item, "projectPhase", "项目建设"); this.$set(item, 'projectPhase', '项目建设')
} else { } else {
this.$set(item, "projectPhase", "项目前期"); this.$set(item, 'projectPhase', '项目前期')
} }
}), }),
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.projectLink == "" || item.projectLink == null) { if (item.projectLink == '' || item.projectLink == null) {
} else if (item.projectLink == "1") { } else if (item.projectLink == '1') {
this.$set(item, "projectLink", "可研"); this.$set(item, 'projectLink', '可研')
} else if (item.projectLink == "2") { } else if (item.projectLink == '2') {
this.$set(item, "projectLink", "计划"); this.$set(item, 'projectLink', '计划')
} else if (item.projectLink == "3") { } else if (item.projectLink == '3') {
this.$set(item, "projectLink", "采购"); this.$set(item, 'projectLink', '采购')
} else if (item.projectLink == "4") { } else if (item.projectLink == '4') {
this.$set(item, "projectLink", "合同"); this.$set(item, 'projectLink', '合同')
} else if (item.projectLink == "5") { } else if (item.projectLink == '5') {
this.$set(item, "projectLink", "执行"); this.$set(item, 'projectLink', '执行')
} else if (item.projectLink == "6") { } else if (item.projectLink == '6') {
this.$set(item, "projectLink", "结决算"); this.$set(item, 'projectLink', '结决算')
} else { } else {
this.$set(item, "projectLink", "转资"); this.$set(item, 'projectLink', '转资')
} }
}); })
this.total = res.data.total * 1; this.total = res.data.total * 1
} }
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields()
this.currentPage = 1; this.currentPage = 1
this.pageSize = 10; this.pageSize = 10
this.ruleForm.createStartTime = ""; this.ruleForm.createStartTime = ''
this.ruleForm.createEndTime = ""; this.ruleForm.createEndTime = ''
this.submitForm(); this.submitForm()
}, },
uploadForm() { uploadForm() {
alert("这是上传的功能"); alert('这是上传的功能')
}, },
//详情 //详情
async detailsForm() { async detailsForm() {
if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
this.$message("请选择"); this.$message('请选择')
return; return
} }
this.listData = this.checkedList[0]; this.listData = this.checkedList[0]
// console.log("222", this.checkedList); // console.log("222", this.checkedList);
this.dialog= true; this.dialog = true
}, },
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
console.log(this.checkedList, "2222"); console.log(this.checkedList, '2222')
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false
}, },
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
...@@ -577,9 +548,9 @@ export default { ...@@ -577,9 +548,9 @@ export default {
margin-right: 20px; margin-right: 20px;
vertical-align: middle; vertical-align: middle;
} }
span{ span {
display: inline-block; display: inline-block;
text-align: left text-align: left;
} }
} }
} }
...@@ -601,7 +572,7 @@ h3 { ...@@ -601,7 +572,7 @@ h3 {
text-align: left; text-align: left;
margin: 10px 0; margin: 10px 0;
} }
/deep/ .el-dialog__body{ /deep/ .el-dialog__body {
padding-top: 1px; padding-top: 1px;
} }
.close { .close {
......
<!-- 整改反馈查询 --> <!-- 整改反馈查询 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form :model="ruleForm" label-width="100px" class="demo-ruleForm" ref="formName">
:model="ruleForm" <el-form-item label="项目年度:" prop="projectYear" class="fromItem">
label-width="100px"
class="demo-ruleForm"
ref="formName"
>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem" >
<el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable> <el-select v-model="ruleForm.projectYear" placeholder="请选择" clearable>
<el-option <el-option
v-for="(item, index) in yearsList" v-for="(item, index) in yearsList"
:key="index" :key="index"
:label="item+'年'" :label="item + '年'"
:value="item"/> :value="item"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem"> <el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-input <el-input v-model="ruleForm.projectId" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem"> <el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input <el-input v-model="ruleForm.projectName" placeholder="请输入" clearable></el-input>
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目阶段:" prop="projectStatus" class="fromItem"> <el-form-item label="项目阶段:" prop="projectStatus" class="fromItem">
<el-select v-model="ruleForm.projectStatus" placeholder="请选择" clearable> <el-select v-model="ruleForm.projectStatus" placeholder="请选择" clearable>
...@@ -50,11 +38,7 @@ ...@@ -50,11 +38,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="问题检查项:" prop="quesCheckItem" class="fromItem"> <el-form-item label="问题检查项:" prop="quesCheckItem" class="fromItem">
<el-input <el-input v-model="ruleForm.quesCheckItem" placeholder="请输入" clearable></el-input>
v-model="ruleForm.quesCheckItem"
placeholder="请输入"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="是否申诉:" prop="appealStatus" class="fromItem"> <el-form-item label="是否申诉:" prop="appealStatus" class="fromItem">
<el-select v-model="ruleForm.appealStatus" placeholder="请选择" clearable> <el-select v-model="ruleForm.appealStatus" placeholder="请选择" clearable>
...@@ -62,11 +46,7 @@ ...@@ -62,11 +46,7 @@
<el-option label="否" value="0"></el-option> <el-option label="否" value="0"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="申诉是否通过:" prop="isAppealStatus" class="fromItem">
label="申诉是否通过:"
prop="isAppealStatus"
class="fromItem"
>
<el-select v-model="ruleForm.isAppealStatus" placeholder="请选择" clearable> <el-select v-model="ruleForm.isAppealStatus" placeholder="请选择" clearable>
<el-option label="是" value="1"></el-option> <el-option label="是" value="1"></el-option>
<el-option label="否" value="0"></el-option> <el-option label="否" value="0"></el-option>
...@@ -108,29 +88,33 @@ ...@@ -108,29 +88,33 @@
<el-table-column prop="projectYear" label="项目年度" width="120"> <el-table-column prop="projectYear" label="项目年度" width="120">
<template slot-scope="scope"> {{ scope.row.projectYear }}</template> <template slot-scope="scope"> {{ scope.row.projectYear }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="projectId" label="项目编码" width="auto"> <el-table-column prop="projectId" label="项目编码" width="auto"> </el-table-column>
</el-table-column>
<el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip> <el-table-column prop="projectName" label="项目名称" width="auto" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="projectStatus" label="项目阶段" width="auto"> <el-table-column prop="projectStatus" label="项目阶段" width="auto"> </el-table-column>
</el-table-column> <el-table-column prop="projectFlowStatus" label="项目环节" width="auto"> </el-table-column>
<el-table-column prop="projectFlowStatus" label="项目环节" width="auto"> <el-table-column prop="quesCheckItem" label="问题检查项" width="auto"> </el-table-column>
</el-table-column>
<el-table-column prop="quesCheckItem" label="问题检查项" width="auto">
</el-table-column>
<el-table-column prop="checkDesc" label="问题描述" width="auto" show-overflow-tooltip> <el-table-column prop="checkDesc" label="问题描述" width="auto" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="appealText" label="是否申诉" width="80"> <el-table-column prop="appealText" label="是否申诉" width="80"> </el-table-column>
</el-table-column>
<el-table-column prop="feedback" label="申诉理由" width="auto" show-overflow-tooltip> <el-table-column prop="feedback" label="申诉理由" width="auto" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column prop="isAppealText" label="申诉是否通过" width="120"> <el-table-column prop="isAppealText" label="申诉是否通过" width="120"> </el-table-column>
</el-table-column> <el-table-column
<el-table-column prop="reviewStatus" label="申诉复核情况" width="auto" show-overflow-tooltip> prop="reviewStatus"
label="申诉复核情况"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="rectificationText" label="是否完成整改" width="120"> <el-table-column prop="rectificationText" label="是否完成整改" width="120">
</el-table-column> </el-table-column>
<el-table-column prop="rectificationFeedback" label="整改情况" width="auto" show-overflow-tooltip> <el-table-column
prop="rectificationFeedback"
label="整改情况"
width="auto"
show-overflow-tooltip
>
</el-table-column> </el-table-column>
<el-table-column prop="isRectificationText" label="整改是否通过" width="120"> <el-table-column prop="isRectificationText" label="整改是否通过" width="120">
</el-table-column> </el-table-column>
...@@ -142,7 +126,7 @@ ...@@ -142,7 +126,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="currentPage" :current-page="currentPage"
:page-sizes="[10, 15, 20, 50,100]" :page-sizes="[10, 15, 20, 50, 100]"
:page-size="1000" :page-size="1000"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
...@@ -158,9 +142,7 @@ ...@@ -158,9 +142,7 @@
:append-to-body="false" :append-to-body="false"
> >
<div class="dialog"> <div class="dialog">
<h3> <h3>项目名称:一期项目-电力营销-2023年网上国网(网上国网V1.0)-设计开发项目</h3>
项目名称:一期项目-电力营销-2023年网上国网(网上国网V1.0)-设计开发项目
</h3>
<div> <div>
<p class="title"><span></span>项目基本信息</p> <p class="title"><span></span>项目基本信息</p>
<div class="content"> <div class="content">
...@@ -169,15 +151,9 @@ ...@@ -169,15 +151,9 @@
<p> <p>
<label>项目名称:</label> <span>{{ listData.projectName }}</span> <label>项目名称:</label> <span>{{ listData.projectName }}</span>
</p> </p>
<p><label>项目阶段:</label>{{ listData.projectStatus}}</p> <p><label>项目阶段:</label>{{ listData.projectStatus }}</p>
<p> <p><label>项目环节:</label>{{ listData.projectFlowStatus }}</p>
<label>项目环节:</label <p><label>问题检查项:</label>{{ listData.quesCheckItem }}</p>
>{{ listData.projectFlowStatus}}
</p>
<p>
<label>问题检查项:</label
>{{ listData.quesCheckItem }}
</p>
<p><label>问题描述:</label>{{ listData.checkDesc }}</p> <p><label>问题描述:</label>{{ listData.checkDesc }}</p>
<p><label>是否申诉:</label>{{ listData.appealText }}</p> <p><label>是否申诉:</label>{{ listData.appealText }}</p>
<p><label>申诉理由:</label>{{ listData.feedback }}</p> <p><label>申诉理由:</label>{{ listData.feedback }}</p>
...@@ -196,80 +172,81 @@ ...@@ -196,80 +172,81 @@
</template> </template>
<script> <script>
import { RectificationFeedbackQuery } from "@/api/index"; import { RectificationFeedbackQuery } from '@/api/index'
export default { export default {
data() { data() {
return { return {
yearsList:this.generateYearOptions(), yearsList: this.generateYearOptions(),
showButton: true, showButton: true,
ruleForm: { ruleForm: {
projectYear:"", //默认展示当前年 projectYear: '', //默认展示当前年
projectCode: "", projectCode: '',
projectName: "", projectName: '',
projectPhase: "", projectPhase: '',
projectLink: "", projectLink: '',
appealFlag: "", appealFlag: '',
appealPassFlag: "", appealPassFlag: '',
completeFlag: "", completeFlag: '',
}, },
ruleFormdialog: { ruleFormdialog: {
projectYear: "", projectYear: '',
projectCode: "", projectCode: '',
projectName: "", projectName: '',
projectPhase: "", projectPhase: '',
projectLink: "", projectLink: '',
appealFlag: "", appealFlag: '',
appealPassFlag: "", appealPassFlag: '',
completeFlag: "", completeFlag: '',
}, },
total: 0, total: 0,
tableData: [], tableData: [],
pageSize:10, pageSize: 10,
currentPage: 1, currentPage: 1,
dialog: false, dialog: false,
listData: {}, listData: {},
}; checkedList: [],
}
}, },
mounted() { mounted() {
this.submitForm(); this.submitForm()
}, },
methods: { methods: {
generateYearOptions() { generateYearOptions() {
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear()
return Array.from({ length: 10 }, (_, i) => currentYear - i); return Array.from({ length: 10 }, (_, i) => currentYear - i)
}, },
async submitForm() { async submitForm() {
let params = { let params = {
current: this.currentPage, current: this.currentPage,
pageSize: this.pageSize, pageSize: this.pageSize,
}; }
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm)
console.log(params); console.log(params)
let res = await RectificationFeedbackQuery(params); let res = await RectificationFeedbackQuery(params)
if (res.code == "200") { if (res.code == '200') {
this.tableData = res.data.records; this.tableData = res.data.records
this.tableData.forEach((item) => { this.tableData.forEach((item) => {
if (item.appealStatus == "1") { if (item.appealStatus == '1') {
this.$set(item, "appealText", "是"); this.$set(item, 'appealText', '是')
} else{ } else {
this.$set(item, "appealText", "否"); this.$set(item, 'appealText', '否')
} }
if (item.isAppealStatus == "1") { if (item.isAppealStatus == '1') {
this.$set(item, "isAppealText", "是"); this.$set(item, 'isAppealText', '是')
} else{ } else {
this.$set(item, "isAppealText", "否"); this.$set(item, 'isAppealText', '否')
} }
if (item.rectificationStatus == "1") { if (item.rectificationStatus == '1') {
this.$set(item, "rectificationText", "是"); this.$set(item, 'rectificationText', '是')
} else{ } else {
this.$set(item, "rectificationText", "否"); this.$set(item, 'rectificationText', '否')
} }
if (item.isRectification_status == "1") { if (item.isRectification_status == '1') {
this.$set(item, "isRectificationText", "是"); this.$set(item, 'isRectificationText', '是')
} else{ } else {
this.$set(item, "isRectificationText", "否"); this.$set(item, 'isRectificationText', '否')
} }
// if (item.projectPhase == "" || item.projectPhase == null) { // if (item.projectPhase == "" || item.projectPhase == null) {
// } else if (item.projectPhase == "1") { // } else if (item.projectPhase == "1") {
...@@ -297,58 +274,58 @@ export default { ...@@ -297,58 +274,58 @@ export default {
// } else { // } else {
// this.$set(item, "projectLink", "转资"); // this.$set(item, "projectLink", "转资");
// } // }
}); })
this.total = res.data.total * 1; this.total = res.data.total * 1
} }
}, },
resetForm() { resetForm() {
this.$refs.formName.resetFields(); this.$refs.formName.resetFields()
this.currentPage = 1; this.currentPage = 1
this.pageSize = 10; this.pageSize = 10
this.submitForm(); this.submitForm()
}, },
//详情 //详情
async detailsForm() { async detailsForm() {
// if (this.checkedList.length != 1) { if (this.checkedList.length != 1) {
// this.$message("请选择"); this.$message('请选择')
// return; return
// } }
// console.log("222", this.checkedList); // console.log("222", this.checkedList);
// this.dialog = true; // this.dialog = true;
// this.listData = this.checkedList[0]; this.listData = this.checkedList[0]
this.dialog = true; this.dialog = true
}, },
//表格颜色 //表格颜色
tableRowClassName({ row, rowIndex }) { tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) { if (rowIndex % 2 == 1) {
return "warning-row"; return 'warning-row'
} }
return ""; return ''
}, },
//主列表选中行信息 //主列表选中行信息
handleSelectionChange(selection) { handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) { if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false); this.$refs.multipleTable.toggleRowSelection(selection[0], false)
this.$refs.multipleTable.toggleRowSelection(selection[1], true); this.$refs.multipleTable.toggleRowSelection(selection[1], true)
} }
this.checkedList = this.$refs.multipleTable.selection; this.checkedList = this.$refs.multipleTable.selection
console.log(this.checkedList, "2222"); console.log(this.checkedList, '2222')
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`)
this.pageSize = val; this.pageSize = val
this.submitForm(); this.submitForm()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`)
this.currentPage = val; this.currentPage = val
this.submitForm(); this.submitForm()
}, },
cancel() { cancel() {
this.dialog = false; this.dialog = false
}, },
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main { .main {
...@@ -592,9 +569,9 @@ export default { ...@@ -592,9 +569,9 @@ export default {
margin-right: 20px; margin-right: 20px;
vertical-align: middle; vertical-align: middle;
} }
span{ span {
display: inline-block; display: inline-block;
text-align: left text-align: left;
} }
} }
} }
...@@ -616,7 +593,7 @@ h3 { ...@@ -616,7 +593,7 @@ h3 {
text-align: left; text-align: left;
margin: 10px 0; margin: 10px 0;
} }
/deep/ .el-dialog__body{ /deep/ .el-dialog__body {
padding-top: 1px; padding-top: 1px;
} }
.close { .close {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!