Commit 0fa24916 by liangzhen

提交一版

1 parent 1bacad2a
......@@ -187,6 +187,10 @@ export function wtqdqselect(params) {
export function clqdselect(params) {
return post(`/api/select/clqd`, params)
}
//流程列表
export function selLcb(params) {
return post(`/api/select/selLcb`, params)
}
//申诉辅助确认
// 申诉辅助确认分页查询
export function appealAssistanceConfirmatio(params) {
......
......@@ -395,7 +395,7 @@
</el-table-column>
</el-table-column>
<el-table-column label="总投资计划(万元)" width="300">
<el-table-column prop=" costAmountTotal" label="成本金" width="auto">
<el-table-column prop="costAmountTotal" label="成本金" width="auto">
</el-table-column>
<el-table-column prop="capitalAmountTotal" label="资本金" width="auto">
</el-table-column>
......
......@@ -48,37 +48,40 @@
>
</el-form-item>
</el-form>
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
>
<el-table-column label="序号" width="55" type="index"> </el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" prop="batchYear"> </el-table-column>
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<div class="setscroll">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" prop="batchYear"> </el-table-column>
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<el-table-column prop="projectName" label="评估项目名称">
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式">
</el-table-column>
<el-table-column prop="projectStatus" label="项目建设阶段">
</el-table-column>
<!-- <el-table-column prop="createTime" label="历史审核状态">
<el-table-column prop="projectName" label="评估项目名称">
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式">
</el-table-column>
<el-table-column prop="projectStatus" label="项目建设阶段">
</el-table-column>
<!-- <el-table-column prop="createTime" label="历史审核状态">
</el-table-column> -->
<el-table-column prop="expertName" label="评审专家名单">
</el-table-column>
<!-- <el-table-column prop="字段待确认" label="后评估状态"> </el-table-column> -->
<el-table-column prop="reviewDate" label="评估日期"> </el-table-column>
</el-table>
<el-table-column prop="expertName" label="评审专家名单">
</el-table-column>
<!-- <el-table-column prop="字段待确认" label="后评估状态"> </el-table-column> -->
<el-table-column prop="reviewDate" label="评估日期"> </el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
......@@ -133,7 +136,6 @@
<p>项目后评估资料:</p>
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="qdtableData"
tooltip-effect="dark"
style="width: 100%"
......@@ -168,7 +170,6 @@
<el-tab-pane label="问题清单" name="second">
<p class="title"><span></span>项目基本信息</p>
<el-table
ref="multipleTable"
:data="qdtableData"
tooltip-effect="dark"
style="width: 100%"
......@@ -198,16 +199,44 @@
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="评审流程" name="third">评审流程</el-tab-pane>
<el-tab-pane label="评审流程" name="third">
<el-table
:data="lctableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
>
<el-table-column
label="流程节点"
prop="processNodes"
width="150"
>
</el-table-column>
<el-table-column label="状态" prop="state"> </el-table-column>
<el-table-column label="处理人" prop="processedBy">
</el-table-column>
<el-table-column label="处理时间" prop="processingTime">
</el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
</div>
<p class="close"> <span @click="cancel()">关闭</span></p>
<p class="close"><span @click="cancel()">关闭</span></p>
</el-dialog>
</div>
</template>
<script>
import { fzcxselect, fzcxXqselect, wtqdqselect, clqdselect } from "@/api/index";
import {
fzcxselect,
fzcxXqselect,
wtqdqselect,
clqdselect,
selLcb,
} from "@/api/index";
export default {
data() {
return {
......@@ -238,7 +267,8 @@ export default {
total: 0,
dialog: false,
activeName: "first",
mergingRows:[],
mergingRows: [],
lctableData:[],
};
},
mounted() {
......@@ -325,20 +355,20 @@ export default {
}
}
},
async handleClick() {
console.log(this.activeName,'this.activeName')
if(this.activeName=='second'){
async handleClick() {
console.log(this.activeName, "this.activeName");
if (this.activeName == "second") {
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
};
let res= await wtqdqselect(params)
if (res.code == "200") {
this.qdtableData = res.data.records;
this.total = res.data.total * 1;
}
this.qdtableData.forEach((item) => {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
};
let res = await wtqdqselect(params);
if (res.code == "200") {
this.qdtableData = res.data.records;
this.total = res.data.total * 1;
}
this.qdtableData.forEach((item) => {
switch (item.projectStage) {
case 1:
this.$set(item, "projectStagetext", "1.可研");
......@@ -361,10 +391,16 @@ export default {
}
});
this.dataPretreatment();
} else if (this.activeName == "third") {
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
};
let res = await selLcb(params);
if (res.code == "200") {
this.lctableData = res.data;
}
}
},
//主列表选中行信息
handleSelectionChange(selection) {
......@@ -387,7 +423,6 @@ export default {
cancel() {
this.dialog = false;
},
},
};
</script>
......@@ -408,7 +443,7 @@ export default {
border-right: 1px solid #dee5e7;
border-bottom: 1px solid #dee5e7;
padding: 20px 10px;
margin-bottom: 20px;
margin-bottom: 20px;
.fromItem {
width: 24%;
margin: 0 0.5%;
......@@ -614,17 +649,34 @@ h3 {
height: 500px;
padding-bottom: 20px;
}
.close{
.close {
width: 100%;
height: 40px;
line-height: 20px;
span{
span {
display: inline-block;
width:80px;
width: 80px;
height: 30px;
line-height: 30px;
border: 1px solid grey;
border-radius: 5px;
}
}
.setscroll {
width: 100%;
height: 650px;
position: relative;
overflow: auto;
}
.setscrolldialog {
width: 100%;
height: 300px;
overflow: auto;
box-sizing: border-box;
/deep/ .el-table {
width: 96% !important;
height: 300px;
overflow: auto;
}
}
</style>
\ No newline at end of file
<!-- 材料同步归档 -->
<template>
<div class="main">
<el-form :model="ruleForm" label-width="100px" class="demo-ruleForm" ref="formName">
<el-form-item label="批次年度:" prop="batchYear" class="fromItem" >
<el-select v-model="ruleForm.batchYear" placeholder="请选择">
<el-option label="2024年" value="2024"></el-option>
<el-option label="2023年" value="2023"></el-option>
<el-option label="2022年" value="2022"></el-option>
<el-option label="2021年" value="2021"></el-option>
</el-select>
</el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input v-model="ruleForm.batchName" ></el-input>
</el-form-item>
<el-form-item label="项目下达年度:" prop="projectDeliveryYear" class="fromItem" >
<el-select v-model="ruleForm.projectDeliveryYear" placeholder="请选择">
<el-option label="2024年" value="2024"></el-option>
<el-option label="2023年" value="2023"></el-option>
<el-option label="2022年" value="2022"></el-option>
<el-option label="2021年" value="2021"></el-option>
</el-select>
</el-form-item>
<el-form-item label="项目编码:" prop="projectCode" class="fromItem">
<el-input v-model="ruleForm.projectCode" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input v-model="ruleForm.projectName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="项目内容:" prop="projectContent" class="fromItem">
<el-input v-model="ruleForm.projectContent" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="省公司计划文件号:" prop="proCompanyPlanFileNum" class="fromItem">
<el-input v-model="ruleForm.proCompanyPlanFileNum" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="信通公司计划文件号:" prop="infoCompanyPlanFileNum" class="fromItem">
<el-input v-model="ruleForm.infoCompanyPlanFileNum" placeholder="请输入"></el-input>
</el-form-item>
<div class="main">
<el-form
:model="ruleForm"
label-width="100px"
class="demo-ruleForm"
ref="formName"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-select v-model="ruleForm.batchYear" placeholder="请选择">
<el-option label="2024年" value="2024"></el-option>
<el-option label="2023年" value="2023"></el-option>
<el-option label="2022年" value="2022"></el-option>
<el-option label="2021年" value="2021"></el-option>
</el-select>
</el-form-item>
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input v-model="ruleForm.batchName"></el-input>
</el-form-item>
<el-form-item label="项目下达年度:" prop="projectYear" class="fromItem">
<el-select v-model="ruleForm.pprojectYear" placeholder="请选择">
<el-option label="2024年" value="2024"></el-option>
<el-option label="2023年" value="2023"></el-option>
<el-option label="2022年" value="2022"></el-option>
<el-option label="2021年" value="2021"></el-option>
</el-select>
</el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-input v-model="ruleForm.projectId" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input
v-model="ruleForm.projectName"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item label="项目内容:" prop="projectContent" class="fromItem">
<el-input
v-model="ruleForm.projectContent"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item
label="省公司计划文件号:"
prop="proCompanyPlanFileNum"
class="fromItem"
>
<el-input
v-model="ruleForm.proCompanyPlanFileNum"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item
label="信通公司计划文件号:"
prop="infoCompanyPlanFileNum"
class="fromItem"
>
<el-input
v-model="ruleForm.infoCompanyPlanFileNum"
placeholder="请输入"
></el-input>
</el-form-item>
<el-form-item class="button">
<el-button @click="submitForm()">
<img class="buttonIcon" src="../../assets/cx.png" />查询</el-button
>
<el-button @click="resetForm()">
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
>
<el-button @click="detailsForm()">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
>
<el-button @click="attach('ruleForm')">
<i class="el-icon-receiving"></i>&nbsp;&nbsp;&nbsp;材料归档</el-button
>
</el-form-item>
</el-form>
<div class="setscroll">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
<el-form-item class="button">
<el-button @click="submitForm()">
<img class="buttonIcon" src="../../assets/cx.png" />查询</el-button
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" width="auto" prop="batchYear">
</el-table-column>
<el-table-column prop="batchName" label="后评估批次名称" width="auto">
</el-table-column>
<el-table-column prop="projectCode" label="项目编码" width="auto">
</el-table-column>
<el-table-column prop="projectDeliveryYear" label="项目下达年度" width="auto">
</el-table-column>
<el-table-column prop="projectName" label="项目名称" width="auto">
</el-table-column>
<el-table-column prop="materialState" label="材料状态" width="auto">
</el-table-column>
<el-table-column prop="buildForm" label="建设形式" width="auto">
</el-table-column>
<el-table-column prop="proCompanyApprovalNumber" label="省公司" width="auto">
</el-table-column>
<el-table-column prop="infoCompanyApprovalNumber" label="信通公司" width="auto">
</el-table-column>
<el-table-column prop="totalInvestCostAmount" label="成本金" width="auto">
</el-table-column>
<el-table-column prop="totalInvestCapitalAmount" label="资本金" width="auto">
</el-table-column>
<el-table-column prop="currentYearInvestCostAmount" label="成本金" width="auto">
</el-table-column>
<el-table-column prop="currentYearInvestCapitalAmount" label="资本金" width="auto">
</el-table-column>
<el-table-column prop="deptName" label="部门" width="auto">
</el-table-column>
<el-table-column prop="buildCompany" label="承建单位" width="auto">
</el-table-column>
<el-table-column prop="projectManager" label="项目经理" width="auto">
</el-table-column>
<el-table-column prop="projectContent" label="项目内容" width="auto">
</el-table-column>
<el-table-column prop="creator" label="创建人" width="auto">
</el-table-column>
<el-table-column prop="createTime" label="创建时间" width="auto">
</el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[10, 15, 20, 50]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
class="elpagination"
<el-button @click="resetForm()">
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
>
</el-pagination>
<!-- 详情弹窗 -->
<el-dialog
title="材料同步归档详情"
:visible.sync="dialogXQ"
width="90%"
:modal-append-to-body="false"
:append-to-body="false"
<el-button @click="detailsForm()">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
>
<div class="dialog">
<el-form
:model="ruleFormdialogData"
label-width="100px"
class="demo-ruleForm"
<el-button @click="attach('ruleForm')">
<i class="el-icon-receiving"></i>&nbsp;&nbsp;&nbsp;材料归档</el-button
>
</el-form-item>
</el-form>
<div class="setscroll">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column type="selection"> </el-table-column>
<el-table-column label="批次年度" width="auto" prop="batchYear">
</el-table-column>
<el-table-column prop="batchName" label="后评估批次名称" width="auto">
</el-table-column>
<el-table-column prop="projectId" label="项目编码" width="auto">
</el-table-column>
<el-table-column prop="projectYear" label="项目下达年度" width="auto">
</el-table-column>
<el-table-column prop="projectName" label="项目名称" width="350">
</el-table-column>
<el-table-column prop="materialState" label="材料状态" width="auto">
</el-table-column>
<el-table-column prop="projectCategor" label="建设形式" width="auto">
</el-table-column>
<!-- <el-table-column prop="proCompanyApprovalNumber" label="省公司" width="auto">
</el-table-column>
<el-table-column prop="infoCompanyApprovalNumber" label="信通公司" width="auto"> -->
<!-- </el-table-column> -->
<el-table-column label="总投资计划(万元)" width="300">
<el-table-column prop="costAmountTotal" label="成本金" width="auto">
</el-table-column>
<el-table-column
prop="capitalAmountTotal"
label="资本金"
width="auto"
>
</el-table-column>
</el-table-column>
<el-table-column label="当年投资计划(万元)" width="300">
<el-table-column
prop="costAmountCurrentMfdel"
label="成本金"
width="auto"
>
</el-table-column>
<el-table-column
prop="capitalAmountCurrentMfdel"
label="资本金"
width="200"
>
</el-table-column>
</el-table-column>
<el-table-column prop="department" label="部门" width="200">
</el-table-column>
<el-table-column prop="字段待确认" label="承建单位" width="200">
</el-table-column>
<el-table-column prop="字段待确认" label="项目经理" width="200">
</el-table-column>
<el-table-column prop="projectInfo" label="项目内容" width="200">
</el-table-column>
<el-table-column prop="inputuser" label="创建人" width="200">
</el-table-column>
<el-table-column prop="inputtime" label="创建时间" width="200">
</el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[10, 15, 20, 50]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
class="elpagination"
>
</el-pagination>
<!-- 详情弹窗 -->
<el-dialog
title="详情"
:visible.sync="dialog"
width="90%"
:modal-append-to-body="false"
:append-to-body="false"
>
<div class="dialog">
<h3>
项目名称:一期项目-电力营销-2023年网上国网(网上国网V1.0)-设计开发项目
</h3>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="基本信息" name="first">
<div>
<p class="title"><span></span>项目基本信息</p>
<div class="content">
<p><label>项目编号:</label>{{ listData.projectId }}</p>
<p><label>项目下达年度:</label>{{ listData.projectYear }}</p>
<p><label>项目名称:</label>{{ listData.projectName }}</p>
<p><label>建设形式:</label>{{ listData.projectCategory }}</p>
<p>
<label>总投资计划(万元)-成本金:</label
>{{ listData.costAmountTotal }}
</p>
<p>
<label>总投资计划(万元)-资本金:</label
>{{ listData.capitalAmountTotal }}
</p>
<p><label>部门:</label>{{ listData.department }}</p>
<p><label>创建人:</label>{{ listData.inputuser }}</p>
<p><label>创建时间:</label>{{ listData.inputuser }}</p>
<p><label>修改人:</label>{{ listData.lastUpdatedby }}</p>
<p><label>修改时间:</label>{{ listData.lastUpdateTime }}</p>
</div>
<div class="table">
<p>项目后评估资料:</p>
<el-table
@selection-change="handleSelectionChange"
:data="qdtableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="tablepg"
:row-class-name="tableRowClassName"
border
>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-input v-model="ruleFormdialogData.projectYear" disabled></el-input>
</el-form-item>
<el-form-item label="项目编码:" prop="projectCode" class="fromItem">
<el-input v-model="ruleFormdialogData.projectCode" disabled></el-input>
</el-form-item>
<el-form-item label="项目名称:" prop="projectName" class="fromItem">
<el-input v-model="ruleFormdialogData.projectName" disabled></el-input>
</el-form-item>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-form-item label="项目阶段:" prop="projectPhase" class="fromItem">
<el-input v-model="ruleFormdialogData.projectPhase" disabled></el-input>
</el-form-item>
<el-form-item label="项目环节:" prop="projectLink" class="fromItem">
<el-input v-model="ruleFormdialogData.projectLink" disabled></el-input>
</el-form-item>
<el-form-item label="问题检查项:" class="textarea">
<el-input
type="textarea"
v-model="ruleFormdialogData.checkProblem"
disabled
></el-input>
</el-form-item>
<el-form-item label="是否申诉:" prop="appealFlag" class="fromItem">
<el-input v-model="ruleFormdialogData.appealFlag" disabled></el-input>
</el-form-item>
<el-form-item label="申诉是否通过:" prop="appealPassFlag" class="fromItem">
<el-input v-model="ruleFormdialogData.appealPassFlag" disabled></el-input>
</el-form-item>
<el-form-item label="是否完成整改:" prop="completeFlag" class="fromItem">
<el-input v-model="ruleFormdialogData.completeFlag" disabled></el-input>
</el-form-item>
</el-form>
<el-table-column label="类别" prop="batchtype">
</el-table-column>
<el-table-column prop="typeCode" label="资料类型">
</el-table-column>
<el-table-column prop="fileName" label="资料名称">
</el-table-column>
</el-table>
</div>
<p class="title"><span></span>批次详情</p>
<div class="content">
<p><label>批次年度:</label>{{ listData.batchYear }}</p>
<p><label>后评估批次名称:</label>{{ listData.batchName }}</p>
<p><label>计划评审日期:</label>{{ listData.planReviewDate }}</p>
</div>
<p class="title"><span></span>评审专家</p>
<div class="content">
<p class="bottom"><label>评审专家:</label>{{ listData.expertName }}</p>
</div>
</div>
</el-dialog>
</div>
</el-tab-pane>
<el-tab-pane label="问题清单" name="second">
<p class="title"><span></span>项目基本信息</p>
<el-table
:data="qdtableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
:row-class-name="tableRowClassName"
:span-method="arraySpanMethod"
border
>
<el-table-column
label="项目环节"
prop="projectStagetext"
width="150"
>
</el-table-column>
<el-table-column label="序号" width="100" prop="questionId">
</el-table-column>
<el-table-column label="问题检查项" prop="quesCheckItem">
</el-table-column>
<el-table-column label="检查说明" prop="checkDesc">
</el-table-column>
<el-table-column label="评估问题" prop="evalQues">
<!-- <template slot-scope="scope">
<el-input v-model="scope.row.evalQues"></el-input>
</template> -->
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="评审流程" name="third">
<el-table
:data="lctableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
:row-class-name="tableRowClassName"
border
>
<el-table-column
label="流程节点"
prop="processNodes"
width="150"
>
</el-table-column>
<el-table-column label="状态" prop="state"> </el-table-column>
<el-table-column label="处理人" prop="processedBy">
</el-table-column>
<el-table-column label="处理时间" prop="processingTime">
</el-table-column>
</el-table>
</el-tab-pane>
</el-tabs>
</div>
<p class="close"><span @click="cancel()">关闭</span></p>
</el-dialog>
</div>
</template>
<script>
import {
materialSync,
} from "@/api/index";
export default {
data() {
return {
category: [
{ name: "2024", id: 1 },
{ name: "2023", id: 2 },
{ name: "2022", id: 3 },
{ name: "2021", id: 4 },
], //专业领域
showButton: true,
ruleForm: {
batchYear: "",
batchName: "",
projectDeliveryYear:"",
projectCode: "",
projectName: "",
projectContent: "",
proCompanyPlanFileNum: "",
infoCompanyPlanFileNum: "",
},
ruleFormdialogRow: {
batchYear: "",
batchName: "",
projectCode: "",
projectDeliveryYear: "",
projectName: "",
materialState: "",
buildForm: "",
proCompanyApprovalNumber: "",
infoCompanyApprovalNumber: "",
totalInvestCostAmount: "",
totalInvestCapitalAmount: "",
currentYearInvestCostAmount: "",
currentYearInvestCapitalAmount: "",
deptName: "",
buildCompany: "",
projectManager: "",
projectContent: "",
creator: "",
createTime: "",
},
ruleFormdialogData: {
batchYear: "",
batchName: "",
projectCode: "",
projectDeliveryYear: "",
projectName: "",
materialState: "",
buildForm: "",
proCompanyApprovalNumber: "",
infoCompanyApprovalNumber: "",
totalInvestCostAmount: "",
totalInvestCapitalAmount: "",
currentYearInvestCostAmount: "",
currentYearInvestCapitalAmount: "",
deptName: "",
buildCompany: "",
projectManager: "",
projectContent: "",
creator: "",
createTime: "",
},
xfParams: "", //下发入参
tableData: [],
tableDataQD: [], //清单列表
checkedList: [],
currentPage: 1,
currentPagetjcl: 1,
pageSizetjcl: 10,
total: 0,
dialogXQ: false,
currentPageBJ:1,
pageSizeBJ:10,
dialogAdd: false,
dialogAddzj: false,
pageSize: 10,
current: 1,
addtotal: 0,
currentAdd: 1,
pageSizeAdd: 10,
currentedit: 1,
pageSizeedit: 10,
xfParam: "",
dialogedit: false,
expertIdList: [],
totalBJ:0,
addZJList: [],
expertState: "",
fields: "",
addcurrentPage: 1,
addtableData: [],
message: {},
};
},
mounted() {
this.submitForm();
},
methods: {
async submitForm(formName) {
let params = {
current: this.currentPage,
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
let res = await materialSync(params);
import {
materialSync,
fzcxXqselect,
clqdselect,
wtqdqselect,
selLcb
} from "@/api/index";
export default {
data() {
return {
qdtableData: [],
listData: {},
ruleForm: {
projectId: "",
batchYear: "",
batchName: "",
projectDeliveryYear: "",
projectCode: "",
projectName: "",
projectContent: "",
proCompanyPlanFileNum: "",
infoCompanyPlanFileNum: "",
},
checkedList: [],
tableData: [],
currentPage: 1,
pageSize: 10,
total: 0,
dialog: false,
activeName: "first",
mergingRows: [],
lctableData:[],
};
},
mounted() {
this.submitForm();
},
if (res.code == "200") {
this.tableData = res.data.records;
this.total = res.data.total * 1;
}
},
resetForm() {
this.$refs.formName.resetFields();
this.currentPage = 1;
this.pageSize = 10;
this.submitForm();
},
//详情
async detailsForm() {
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
console.log("222",this.checkedList);
this.dialogXQ = true;
this.ruleFormdialogData=this.checkedList[0]
let params = {
current: this.currentedit,
pageSize: this.pageSizeedit,
batchId:this.checkedList[0].batchId
};
console.log(params,'params')
let res = await expert(params);
methods: {
async submitForm(formName) {
let params = {
current: this.currentPage,
pageSize: this.pageSize,
};
Object.assign(params, this.ruleForm);
console.log(params);
let res = await materialSync(params);
this.addtableData=res.data.records
this.totalBJ=res.data.total * 1;
},
attach(){
alert("归档");
},
//表格颜色
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
}
return "";
},
//主列表选中行信息
handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false);
this.$refs.multipleTable.toggleRowSelection(selection[1], true);
}
this.checkedList = this.$refs.multipleTable.selection;
this.ruleFormdialogRow = this.checkedList[0];
console.log(this.checkedList, "2222");
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage = val;
},
handleSizeChangeZJ(val) {
console.log(`每页 ${val} 条`);
this.pageSizeZJ = val;
},
handleCurrentChangeZJ(val) {
console.log(`当前页: ${val}`);
this.currentZJ = val;
},
handleSizeChangetjcl(val) {
console.log(`每页 ${val} 条`);
this.pageSizetjcl = val;
},
handleCurrentChangetjcl(val) {
console.log(`当前页: ${val}`);
this.currentPagetjcl = val;
},
handleSizeChangeAdd(val) {
this.pageSizeAdd = val;
},
handleCurrentChangeAdd(val) {
this.currentAdd = val;
},
handleSizeChangeBJ(val) {
console.log(`每页 ${val} 条`);
this.pageSizeBJ = val;
},
handleCurrentChangeBJ(val) {
console.log(`当前页: ${val}`);
this.currentPageBJ = val;
},
cancel() {
this.dialog = false;
},
},
};
</script>
<style scoped lang="scss">
.main {
font-size: 14px;
position: relative;
height: 100%;
width: 100%;
box-sizing: border-box;
}
.el-form {
display: flex;
width: 99%;
flex-wrap: wrap;
border-top: 2px solid #23c6c8;
border-left: 1px solid #dee5e7;
border-right: 1px solid #dee5e7;
border-bottom: 1px solid #dee5e7;
padding: 20px 10px;
margin-bottom: 20px;
.fromItem {
width: 24%;
margin: 0 0.5%;
margin-bottom: 20px;
.el-input {
width: 226px;
}
.el-select {
width: 226px;
}
if (res.code == "200") {
this.tableData = res.data.records;
this.total = res.data.total * 1;
}
},
resetForm() {
this.$refs.formName.resetFields();
this.currentPage = 1;
this.pageSize = 10;
this.submitForm();
},
//详情
detailsForm() {
console.log(this.checkedList, "this.checkedList");
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
this.dialog = true;
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
};
Promise.all([fzcxXqselect(params), clqdselect(params)]).then((res) => {
console.log(res[0], res[1], "2222222");
this.listData = res[0].data.records[0];
this.qdtableData = res[1].data.records;
this.qdtableData.forEach((item) => {
this.$set(item, "batchtype", "开发、实施类");
});
});
},
attach() {
alert("归档");
},
async handleClick() {
console.log(this.activeName, "this.activeName");
if (this.activeName == "second") {
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
};
let res = await wtqdqselect(params);
if (res.code == "200") {
this.qdtableData = res.data.records;
this.qdtotal = res.data.total * 1;
}
/deep/ .el-form-item__content {
text-align: left;
}
/deep/ .el-form-item__label {
font-weight: bold;
color: #000;
width: 160px !important;
this.qdtableData.forEach((item) => {
switch (item.projectStage) {
case 1:
this.$set(item, "projectStagetext", "1.可研");
break;
case 2:
this.$set(item, "projectStagetext", "2.计划");
break;
case 3:
this.$set(item, "projectStagetext", "3.采购");
break;
case 4:
this.$set(item, "projectStagetext", "4.合同");
break;
case 5:
this.$set(item, "projectStagetext", "5.执行");
break;
case 6:
this.$set(item, "projectStagetext", "6.结决算及转资");
break;
}
});
this.dataPretreatment();
}else if (this.activeName == "third") {
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
};
let res = await selLcb(params);
if (res.code == "200") {
this.lctableData = res.data;
}
.button {
display: inline-block;
width: 100%;
text-align: left;
/deep/ .el-form-item__content {
margin-left: 20px !important;
text-align: left;
img {
width: 14px;
height: 14px;
margin-right: 15px;
vertical-align: middle;
}
}
.el-button {
background-color: #23c6c8;
border-color: #23c6c8;
color: #fff;
}
}
},
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {
//第一列
const _row = this.mergingRows[rowIndex];
const _col = _row > 0 ? 1 : 0;
return {
rowspan: _row,
colspan: _col,
};
}
},
dataPretreatment() {
for (let i = 0; i < this.qdtableData.length; i++) {
// tabledata 表格数据源
if (i == 0) {
this.mergingRows.push(1);
this.mergingPos = 0;
} else {
if (
this.qdtableData[i].projectStage ===
this.qdtableData[i - 1].projectStage
) {
//哪些数据是要合并的 合并的条件是什么
this.mergingRows[this.mergingPos] += 1;
this.mergingRows.push(0);
} else {
this.mergingRows.push(1);
this.mergingPos = i;
}
}
}
},
//表格颜色
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
}
return "";
},
//主列表选中行信息
handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) {
this.$refs.multipleTable.toggleRowSelection(selection[0], false);
this.$refs.multipleTable.toggleRowSelection(selection[1], true);
}
this.checkedList = this.$refs.multipleTable.selection;
this.ruleFormdialogRow = this.checkedList[0];
console.log(this.checkedList, "2222");
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage = val;
},
cancel() {
this.dialog = false;
},
},
};
</script>
<style scoped lang="scss">
.main {
font-size: 14px;
position: relative;
height: 100%;
width: 100%;
box-sizing: border-box;
}
.el-form {
display: flex;
width: 99%;
flex-wrap: wrap;
border-top: 2px solid #23c6c8;
border-left: 1px solid #dee5e7;
border-right: 1px solid #dee5e7;
border-bottom: 1px solid #dee5e7;
padding: 20px 10px;
margin-bottom: 20px;
.fromItem {
width: 24%;
margin: 0 0.5%;
margin-bottom: 20px;
.el-input {
width: 226px;
}
.eltable {
// widows: 100%;
box-sizing: border-box;
box-sizing: border-box;
text-align: center;
width: 150%;
min-width: 150%;
// margin-right: 210px;
}
/deep/ .el-table .warning-row {
background: #f0ffff;
color: #2785e6;
}
.elpagination {
text-align: right;
margin-right: 100px;
}
/deep/ .el-dialog {
border-radius: 10px;
}
/deep/ .el-dialog__wrapper {
position: absolute;
}
/deep/ .v-modal {
position: absolute;
.el-select {
width: 226px;
}
/deep/ .el-dialog__header {
background-color: #0d867f;
padding-bottom: 20px;
text-align: left;
border-radius: 10px 10px 0 0;
.el-dialog__title {
color: #fff;
}
}
/deep/ .el-form-item__content {
text-align: left;
}
/deep/ .el-form-item__label {
font-weight: bold;
color: #000;
width: 160px !important;
}
.button {
display: inline-block;
width: 100%;
text-align: left;
/deep/ .el-form-item__content {
margin-left: 20px !important;
text-align: left;
img {
width: 14px;
height: 14px;
margin-right: 15px;
vertical-align: middle;
}
}
/deep/ .el-table__header th {
background-color: #eeeeee;
font-weight: bold;
.cell {
color: #333;
}
.el-button {
background-color: #23c6c8;
border-color: #23c6c8;
color: #fff;
}
}
}
.eltable {
// widows: 100%;
box-sizing: border-box;
box-sizing: border-box;
text-align: center;
width: 150%;
min-width: 150%;
// margin-right: 210px;
}
/deep/ .el-table .warning-row {
background: #f0ffff;
color: #2785e6;
}
.elpagination {
text-align: right;
margin-right: 100px;
}
/deep/ .el-dialog {
border-radius: 10px;
}
/deep/ .el-dialog__wrapper {
position: absolute;
}
/deep/ .v-modal {
position: absolute;
}
/deep/ .el-dialog__header {
background-color: #0d867f;
padding-bottom: 20px;
text-align: left;
border-radius: 10px 10px 0 0;
.el-dialog__title {
color: #fff;
}
}
/deep/ .el-table__header th {
background-color: #eeeeee;
font-weight: bold;
.cell {
color: #333;
}
}
/deep/.el-table {
width: 100%;
.el-table__header-wrapper table,
.el-table__body-wrapper table {
width: 100% !important;
}
.el-table__body,
.el-table__footer,
.el-table__header {
table-layout: auto;
}
}
.dialog {
.xqtitle {
text-align: left;
font-size: 18px;
/deep/.el-table {
width: 100%;
.el-table__header-wrapper table,
.el-table__body-wrapper table {
width: 100% !important;
}
.el-table__body,
.el-table__footer,
.el-table__header {
table-layout: auto;
}
}
span {
display: inline-block;
width: 5px;
height: 20px;
background: #0d867f;
margin-right: 14px;
vertical-align: middle;
}
}
}
.textarea {
width: 100%;
.el-textarea {
width: 60%;
}
}
.Btn {
width: 200px;
margin: 0 auto;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
border-radius: 4px;
margin-right: 12px;
}
span:first-of-type {
border: 1px solid #000;
}
span:last-of-type {
background-color: #0d867f;
border: 1px solid #0d867f;
color: #fff;
}
}
/deep/ .el-dialog__headerbtn .el-dialog__close {
color: #fff;
}
.zjBtn {
width: 200px;
text-align: left;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
border-radius: 5px;
}
span:last-of-type {
background-color: #4ca6a7;
color: #fff;
padding: 5px 10px;
margin-left: 10px;
}
}
/deep/ .el-icon-position {
margin-right: 10px;
}
/deep/ .el-icon-folder-delete {
margin-right: 10px;
.textarea {
width: 100%;
.el-textarea {
width: 60%;
}
}
.Btn {
width: 200px;
margin: 0 auto;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
border-radius: 4px;
margin-right: 12px;
}
span:first-of-type {
border: 1px solid #000;
}
span:last-of-type {
background-color: #0d867f;
border: 1px solid #0d867f;
color: #fff;
}
}
/deep/ .el-dialog__headerbtn .el-dialog__close {
color: #fff;
}
.zjBtn {
width: 200px;
text-align: left;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
border-radius: 5px;
}
span:last-of-type {
background-color: #4ca6a7;
color: #fff;
padding: 5px 10px;
margin-left: 10px;
}
}
/deep/ .el-icon-position {
margin-right: 10px;
}
/deep/ .el-icon-folder-delete {
margin-right: 10px;
}
.cxItem {
text-align: right;
width: 20%;
.zjquery {
display: inline-block;
background-color: #4ca6a7;
width: 89px;
height: 40px;
color: #fff;
text-align: center;
line-height: 40px;
border-radius: 5px;
}
}
.midBtn {
margin: 0 auto;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
margin-right: 10px;
border-radius: 5px;
}
span:first-of-type {
border: 1px solid grey;
}
span:last-of-type {
background-color: #4ca6a7;
color: #fff;
}
}
/deep/.el-table th.el-table__cell.is-leaf,
.el-table td.el-table__cell {
text-align: center;
}
/deep/ .el-table__cell {
text-align: center;
}
.setscroll {
width: 100%;
height: 600px;
overflow: auto;
}
.dialog {
.title {
text-align: left;
font-size: 18px;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 16px;
color: #1ec695;
text-align: left;
height: 20px;
margin-top: 5px;
span {
border-radius: 2px;
display: inline-block;
width: 5px;
height: 18px;
background-color: #1ec695;
margin-right: 14px;
vertical-align: middle;
}
.cxItem {
}
.content {
width: 100%;
display: flex;
flex-wrap: wrap;
p {
width: 24%;
text-align: left;
label {
display: inline-block;
width: 150px;
text-align: right;
width: 20%;
.zjquery {
display: inline-block;
background-color: #4ca6a7;
width: 89px;
height: 40px;
color: #fff;
text-align: center;
line-height: 40px;
border-radius: 5px;
}
font-weight: bold;
margin-right: 20px;
vertical-align: middle;
}
}
.midBtn {
margin: 0 auto;
span {
display: inline-block;
width: 80px;
height: 25px;
line-height: 25px;
text-align: center;
margin-right: 10px;
border-radius: 5px;
}
span:first-of-type {
border: 1px solid grey;
}
span:last-of-type {
background-color: #4ca6a7;
color: #fff;
}
.bottom{
width: 100%;
text-align: left;
}
/deep/.el-table th.el-table__cell.is-leaf, .el-table td.el-table__cell{
text-align: center;
}
.table {
width: 100%;
display: flex;
p {
width: 150px;
text-align: right;
font-weight: bold;
}
/deep/ .el-table__cell{
text-align: center;
.tablepg {
margin-top: 20px;
margin-left: 5px;
}
.setscroll{
width: 100%;
height: 600px;
overflow: auto;
}
}
.close{
width: 100%;
height: 40px;
line-height: 20px;
span{
display: inline-block;
width:80px;
height: 30px;
line-height: 30px;
border: 1px solid grey;
border-radius: 5px;
}
}
/deep/ .el-dialog {
border-radius: 10px;
margin-top: 3vh !important;
margin-left: 3vw !important;
}
</style>
\ No newline at end of file
......@@ -57,6 +57,7 @@
</el-button>
</el-form-item>
</el-form>
<div class="setscroll">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
......@@ -89,6 +90,7 @@
</el-table-column>
<el-table-column prop="planReviewDate" label="评估日期"> </el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
......@@ -544,4 +546,10 @@ export default {
/deep/ .el-table__cell {
text-align: center;
}
.setscroll {
width: 100%;
height: 650px;
position: relative;
overflow: auto;
}
</style>
\ No newline at end of file
......@@ -79,7 +79,7 @@
</el-table-column>
<el-table-column prop="expertName" label="后评估专家" width="auto">
</el-table-column>
<el-table-column prop="postEvalState" label="批次下发状态" width="auto">
<el-table-column prop="postEvalStateText" label="批次下发状态" width="auto">
</el-table-column>
<!-- <el-table-column prop="postEvalState" label="后评估状态" width="auto">
</el-table-column> -->
......@@ -152,7 +152,7 @@
<div class="setscrolldialog">
<el-table
@selection-change="handleSelectionChange"
:data="addtableData"
:data="XQtableData"
tooltip-effect="dark"
style="width: 100%"
header-cell-class-name="custom-th-background"
......@@ -188,13 +188,13 @@
</el-table>
</div>
<el-pagination
@size-change="handleSizeChangeBJ"
@current-change="handleCurrentChangeBJ"
:current-page="currentPageBJ"
@size-change="handleSizeChangeXQ"
@current-change="handleCurrentChangeXQ"
:current-page="currentPageXQ"
:page-sizes="[5, 10, 20, 50]"
:page-size="100"
layout="total, sizes, prev, pager, next, jumper"
:total="totalBJ"
:total="totalXQ"
class="elpagination"
>
</el-pagination>
......@@ -262,7 +262,6 @@
></el-input>
</el-form-item>
</el-form>
<p class="zjBtn">
后评估专家 <span @click="xzExperts()">选择专家</span>
</p>
......@@ -564,13 +563,10 @@ import {
export default {
data() {
return {
category: [
{ name: "2024", id: 1 },
{ name: "2023", id: 2 },
{ name: "2022", id: 3 },
{ name: "2021", id: 4 },
], //专业领域
showButton: true,
totalXQ: 0,
XQtableData: [],
currentPageXQ: 1,
pageSizeXQ: 5,
ruleForm: {
batchYear: "",
batchName: "",
......@@ -626,23 +622,23 @@ export default {
checkedList: [],
currentPage: 1,
currentPagetjcl: 1,
pageSizetjcl: 10,
pageSizetjcl: 5,
total: 0,
dialogXQ: false,
currentPageBJ: 1,
pageSizeBJ: 10,
pageSizeBJ: 5,
dialogAdd: false,
dialogAddzj: false,
pageSize: 10,
current: 1,
pageSizeZJ: 10,
pageSizeZJ: 5,
currentZJ: 1,
addtotal: 0,
currentAdd: 1,
pageSizeAdd: 10,
pageSizeAdd: 5,
currentedit: 1,
pageSizeedit: 10,
pageSizeedit: 5,
xfParam: "",
dialogedit: false,
expertIdList: [],
......@@ -676,13 +672,13 @@ export default {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.postEvalState == "" || item.postEvalState == null) {
// this.$set( item,'postEvalState','')
} else if (item.postEvalState == "0") {
this.$set(item, "postEvalState", "未下发");
this.$set(item, "postEvalStateText", "未下发");
} else if (item.postEvalState == "2") {
this.$set(item, "postEvalState", "已撤回");
this.$set(item, "postEvalStateText", "已撤回");
} else {
this.$set(item, "postEvalState", "已下发");
this.$set(item, "postEvalStateText", "已下发");
}
});
this.total = res.data.total * 1;
......@@ -709,15 +705,15 @@ export default {
this.dialogXQ = true;
this.ruleFormdialogBJ = this.checkedList[0];
let params = {
current: this.currentedit,
pageSize: this.pageSizeedit,
current: this.currentPageXQ,
pageSize: this.pageSizeXQ,
batchId: this.checkedList[0].batchId,
};
console.log(params, "params");
let res = await expert(params);
this.addtableData = res.data.records;
this.totalBJ = res.data.total * 1;
this.XQtableData = res.data.records;
this.totalXQ = res.data.total * 1;
},
//表格颜色
tableRowClassName({ row, rowIndex }) {
......@@ -771,10 +767,23 @@ export default {
handleSizeChangeBJ(val) {
console.log(`每页 ${val} 条`);
this.pageSizeBJ = val;
this.edit();
},
handleCurrentChangeBJ(val) {
console.log(`当前页: ${val}`);
this.currentPageBJ = val;
this.edit();
},
//详情分页
handleSizeChangeXQ(val) {
console.log(`每页 ${val} 条`);
this.pageSizeXQ = val;
this.detailsForm();
},
handleCurrentChangeXQ(val) {
console.log(`当前页: ${val}`);
this.currentPageXQ = val;
this.detailsForm();
},
cancel() {
this.dialog = false;
......@@ -792,14 +801,11 @@ export default {
this.$message("请选择专家");
return;
}
// this.addtableData = this.addZJList;
this.addtableData = [...this.addtableData, ...this.addZJList];
this.addtableData= this.addtableData.filter((obj, index, self) =>
index === self.findIndex((t) => (
t.expertId === obj.expertId
))
)
this.addtableData = this.addtableData.filter(
(obj, index, self) =>
index === self.findIndex((t) => t.expertId === obj.expertId)
);
this.addtotal = this.addtableData.length;
this.dialogAddzj = false;
......@@ -907,10 +913,11 @@ export default {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalState == "已下发") {
if (this.checkedList[0].postEvalStateText == "已下发") {
this.$message("不能编辑已下发的项目");
return;
}
this.addtableData = [];
this.ruleFormdialogBJ = this.checkedList[0];
this.dialogedit = true;
let params = {
......@@ -928,14 +935,39 @@ export default {
});
},
//点击删除
async deletes() {
deletes() {
console.log("删除");
if (this.checkedList.length != 1) {
this.$message("请选择");
return;
}
let res = await delEvalBatchInfo(this.checkedList[0]);
this.resetForm();
this.$confirm("此操作将删除该批次, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(async () => {
let res = await delEvalBatchInfo(this.checkedList[0]);
if (res.code == 200) {
this.$message({
type: "success",
message: "删除成功!",
});
this.resetForm();
} else {
this.$message({
type: "info",
message: "删除失败!",
});
this.resetForm();
}
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
//点击下发
async sendMsg() {
......@@ -944,22 +976,22 @@ export default {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalState == "已下发") {
if (this.checkedList[0].postEvalStateText == "已下发") {
this.$message("该项目已下发");
return;
}
// if(this.checkedList[0].postEvalState=='已撤回'){
// this.$message("该项目已撤回");
// return;
// }
if (this.checkedList[0].postEvalState == "已撤回") {
this.$set(this.checkedList[0], "postEvalState", "2");
} else {
this.$set(this.checkedList[0], "postEvalState", "0");
}
let res = await sendEvalBatchInfo(this.checkedList[0]);
if (res.code == "200") {
this.$message({
type: "success",
message: "下发成功!",
});
this.resetForm();
} else {
this.$message({
type: "info",
message: "下发失败!",
});
}
},
//点击撤回
......@@ -969,15 +1001,14 @@ export default {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalState == "未下发") {
if (this.checkedList[0].postEvalStateText == "未下发") {
this.$message("该项目未下发");
return;
}
if (this.checkedList[0].postEvalState == "已撤回") {
if (this.checkedList[0].postEvalStateText == "已撤回") {
this.$message("该项目已撤回");
return;
}
this.$set(this.checkedList[0], "postEvalState", "2");
let res = await chEvalBatchInfo(this.checkedList[0]);
if (res.code == "200") {
this.resetForm();
......@@ -1003,7 +1034,7 @@ export default {
border-right: 1px solid #dee5e7;
border-bottom: 1px solid #dee5e7;
padding: 20px 10px;
margin-bottom: 20px;
margin-bottom: 20px;
.fromItem {
width: 24%;
margin: 0 0.5%;
......@@ -1055,7 +1086,8 @@ export default {
}
/deep/ .el-dialog {
border-radius: 10px;
margin-top: 5vh !important;
margin-top: 3vh !important;
margin-left: 3vw !important;
}
/deep/ .el-dialog__wrapper {
position: absolute;
......@@ -1215,15 +1247,15 @@ export default {
height: 300px;
overflow: auto;
box-sizing: border-box;
/deep/ .el-table{
/deep/ .el-table {
width: 96% !important;
height: 300px;
overflow: auto;
}
}
/deep/ .el-table__body-wrapper::-webkit-scrollbar {
// /deep/ .el-table__body-wrapper::-webkit-scrollbar {
// width: 6px; // 横向滚动条
width: 6px; // 横向滚动条
height: 6px; // 纵向滚动条必写
}
// height: 6px; // 纵向滚动条必写
// }
</style>
\ No newline at end of file
......@@ -38,6 +38,7 @@
</el-button>
</el-form-item>
</el-form>
<div class="setscroll">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
......@@ -70,6 +71,7 @@
<el-table-column prop="prjsOfExpert" label="已选择数量" width="auto">
</el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
......@@ -130,6 +132,7 @@
<p class="zjBtn">
待评估项目
</p>
<div class="setscrolldialog">
<el-table
@selection-change="handleSelectionChange"
:data="addtableData"
......@@ -153,8 +156,8 @@
</el-table-column>
<el-table-column prop="projectStatus" label="项目建设阶段" width="auto">
</el-table-column>
<el-table-column prop="哪个字段" label="历史核查状态" width="auto">
</el-table-column>
<!-- <el-table-column prop="哪个字段" label="历史核查状态" width="auto">
</el-table-column> -->
<el-table-column prop="email" label="部门" width="auto">
</el-table-column>
<!-- <el-table-column fixed="right" label="操作" width="auto">
......@@ -165,6 +168,7 @@
</el-table-column> -->
</el-table>
</div>
<el-pagination
@size-change="handleSizeChangeAdd"
@current-change="handleCurrentChangeAdd"
......@@ -176,10 +180,6 @@
class="elpagination"
>
</el-pagination>
<!-- <p class="midBtn">
<span @click="cancelXZ()">取消</span
><span @click="saveXZ()">确认发布</span>
</p> -->
</div>
</el-dialog>
<!-- 确认评估项目 -->
......@@ -237,6 +237,7 @@
<p class="zjBtn">
待评估项目 <span @click="xzExperts()">手动选择待评估项目</span>
</p>
<div class="setscrolldialog">
<el-table
@selection-change="handleSelectionChange"
:data="addtableData"
......@@ -260,18 +261,19 @@
</el-table-column>
<el-table-column prop="projectStatus" label="项目建设阶段" width="auto">
</el-table-column>
<el-table-column prop="哪个字段" label="历史核查状态" width="auto">
</el-table-column>
<el-table-column prop="email" label="部门" width="auto">
<!-- <el-table-column prop="哪个字段" label="历史核查状态" width="auto">
</el-table-column> -->
<el-table-column prop="department" label="部门" width="auto">
</el-table-column>
<el-table-column fixed="right" label="操作" width="auto">
<el-table-column label="操作" width="130">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row,scope.$index,addtableData)" type="text" size="small">删除</el-button>
<el-button @click="handleClick(scope.row,scope.$index,addtableData)" type="text" size="small">删除</el-button>
</template>
</template>
</el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChangeAdd"
@current-change="handleCurrentChangeAdd"
......@@ -294,7 +296,6 @@
title="选择待评估项目"
:visible.sync="dialogAddzj"
width="90%"
height="80%"
:modal-append-to-body="false"
:append-to-body="false"
>
......@@ -359,7 +360,7 @@
<span class="zjquery" @click="xzExperts()"> 查询 </span>
</el-form-item>
</el-form>
<div class="dialogHeigth">
<div class="setscrolldialogx">
<el-table
@selection-change="handleSelectionChangeZJ"
ref="multipleTableZJ"
......@@ -370,11 +371,11 @@
class="eltable"
:row-class-name="tableRowClassName"
border >
<el-table-column type="selection"> </el-table-column>
<el-table-column type="selection">
</el-table-column>
<el-table-column label="序号" width="55" type="index">
<!-- <template slot-scope="scope">{{ scope.row.id }}</template> -->
</el-table-column>
<!-- <el-table-column type="selection"> </el-table-column> -->
<el-table-column label="项目编码" width="200" prop="projectId">
</el-table-column>
<el-table-column prop="projectYear" label="项目下达年度" width="200">
......@@ -582,6 +583,7 @@ export default {
batchId:this.checkedList[0].batchId
}
Object.assign(params, this.ruleFormdialogAdd);
this.addtableData=[]
let res=await joinProjectInfo(params)
if (res.code == "200") {
this.addtableData = res.data.records;
......@@ -602,6 +604,7 @@ export default {
}
this.ruleFormdialogBJ=this.checkedList[0]
this.dialogAdd=true
this.addtableData=[]
let params={
current:this.addcurrentPage,
pageSize:this.pageSizeAdd,
......@@ -637,10 +640,12 @@ export default {
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
this.submitForm();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage = val;
this.submitForm();
},
handleSizeChangeZJ(val) {
console.log(`每页 ${val} 条`);
......@@ -667,6 +672,7 @@ export default {
this.$message("请选择项目");
return;
}
console.log(this.addtableData,this.addZJList,'55555')
this.addtableData=[...this.addtableData,...this.addZJList]
this.addtableData = this.addtableData.filter((obj, index, self)=>{
......@@ -689,6 +695,7 @@ export default {
};
Object.assign(params, this.ruleFormZJ);
let res = await getProjectInfo(params);
console.log(res.data.records,'res.data.recordsres.data.records')
this.zjtableData = res.data.records;
// this.zjtotal = res.data.total * 1;
console.log(res, "xxx");
......@@ -848,6 +855,8 @@ export default {
}
/deep/ .el-dialog {
border-radius: 10px;
margin-top: 3vh !important;
margin-left: 3vw !important;
}
/deep/.el-table th.el-table__cell.is-leaf, .el-table td.el-table__cell{
text-align: center;
......@@ -1003,4 +1012,42 @@ box-sizing: border-box;
overflow-y: auto;
}
.setscroll {
width: 100%;
height: 650px;
position: relative;
overflow: auto;
}
.setscrolldialog {
width: 100%;
height: 300px;
position: relative;
overflow: auto;
box-sizing: border-box;
/deep/ .el-table {
height: 300px;
overflow: auto;
position: absolute;
min-width:100% ;
}
}
.setscrolldialogx{
width: 100%;
height: 300px;
position: relative;
overflow: auto;
box-sizing: border-box;
/deep/ .el-table {
position: absolute;
width: auto !important;
max-width: none;
}
}
::v-deep.el-table::before {
display: none !important;
}
</style>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<div class="main">
<el-form
:model="ruleForm"
ref="ruleForm"
ref="formName"
label-width="100px"
class="demo-ruleForm"
>
......@@ -51,6 +51,7 @@
>
</el-form-item>
</el-form>
<div class="setscroll">
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
......@@ -79,9 +80,10 @@
</el-table-column>
<el-table-column prop="expertName" label="评审专家名单">
</el-table-column>
<el-table-column prop="postEvalState" label="提交评估材料">
<el-table-column prop="postEvalStateText" label="提交评估材料">
</el-table-column>
</el-table>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
......@@ -142,7 +144,6 @@
<p class="xqtitle"><span></span>本项目材料清单</p>
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableDataQD"
tooltip-effect="dark"
style="width: 100%"
......@@ -231,7 +232,6 @@
<p class="xqtitle"><span></span>本项目材料清单</p>
<el-table
@selection-change="handleSelectionChange"
ref="multipleTable"
:data="tableDataQD"
tooltip-effect="dark"
style="width: 100%"
......@@ -297,7 +297,25 @@ export default {
fullName: "",
},
tableData: [],
tableDataQD: [], //清单列表
tableDataQD: [
{batchtype:'开发、实施类',
typeCode:'技术规范书',
},
{batchtype:'开发、实施类',
typeCode:'可行性研究报告',
},
{batchtype:'开发、实施类',
typeCode:'需求规格说明书',
},
{batchtype:'开发、实施类',
typeCode:'概要设计说明书',
},
{batchtype:'开发、实施类',
typeCode:'安全防护方案',
},
], //清单列表
checkedList: [],
currentPage: 1,
pageSize: 10,
......@@ -311,7 +329,7 @@ export default {
this.submitForm();
},
methods: {
async submitForm(formName) {
async submitForm() {
let params = {
current: this.currentPage,
pageSize: this.pageSize,
......@@ -325,18 +343,18 @@ export default {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if (item.postEvalState == "" || item.postEvalState == null) {
this.$set(item, "postEvalState", "未上传");
this.$set(item, "postEvalStateText", "未上传");
} else if (item.postEvalState == "0") {
this.$set(item, "postEvalState", "未上传");
this.$set(item, "postEvalStateText", "未上传");
} else if (item.postEvalState == "1") {
this.$set(item, "postEvalState", "已上传");
this.$set(item, "postEvalStateText", "已上传");
}
});
this.total = res.data.total * 1;
}
},
resetForm(formName) {
this.$refs[formName].resetFields();
resetForm() {
this.$refs.formName.resetFields();
this.currentPage = 1;
this.pageSize = 10;
this.submitForm();
......@@ -347,6 +365,10 @@ export default {
this.$message("请选择");
return;
}
if (this.checkedList[0].postEvalStateText =="已上传") {
this.$message("已上传评估材料");
return;
}
console.log("222");
this.dialog = true;
let params = {
......@@ -355,10 +377,16 @@ export default {
projectId: this.checkedList[0].projectId,
};
let res = await clqdevaluationMaterials(params);
this.tableDataQD = res.data.records;
this.tableDataQD.forEach((item) => {
if(res.data.records.length>0){
this.tableDataQD = res.data.records;
this.tableDataQD.forEach((item) => {
this.$set(item, "batchtype", "开发、实施类");
});
}
// this.tableDataQD.forEach((item) => {
// this.$set(item, "batchtype", "开发、实施类");
// });
// this.total = res.data.total * 1;
},
//详情
......@@ -400,10 +428,12 @@ export default {
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.pageSize = val;
this.submitForm();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.currentPage = val;
this.submitForm();
},
handleSizeChangetjcl(val) {
console.log(`每页 ${val} 条`);
......@@ -616,4 +646,21 @@ export default {
/deep/ .el-table__cell {
text-align: center;
}
.setscroll {
width: 100%;
height: 650px;
position: relative;
overflow: auto;
}
.setscrolldialog {
width: 100%;
height: 300px;
overflow: auto;
box-sizing: border-box;
/deep/ .el-table {
width: 96% !important;
height: 300px;
overflow: auto;
}
}
</style>
\ No newline at end of file
......@@ -12,19 +12,8 @@
<div style="margin-right: 5px">
<img src="../../assets/user.png" alt="user" />
</div>
<!-- <div style="margin-right: 35px" >您好,管理员</div> -->
<el-dropdown>
<el-button type="primary">
<div style="margin-right: 35px" @click="changeSelect()">您好,管理员</div>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>黄金糕</el-dropdown-item>
<el-dropdown-item>狮子头</el-dropdown-item>
<el-dropdown-item>螺蛳粉</el-dropdown-item>
<el-dropdown-item>双皮奶</el-dropdown-item>
<el-dropdown-item>蚵仔煎</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<div style="margin-right: 35px" >您好,管理员</div>
<div style="margin-right: 5px">
<img src="../../assets/exit.png" alt="exit" />
</div>
......
......@@ -8,6 +8,7 @@
@open="handleOpen"
@close="handleClose"
:default-active="activeIndex"
ref="kzMenu"
>
<!-- :default-openeds="['submenu1']" -->
<el-submenu
......@@ -322,12 +323,193 @@ export default {
],
isOpen: false,
openeds: ["0"], //默认展开导航栏
activeIndex: "/mainLayout/auxiliarySelection",
activeIndex: "",
// menuList: [
// {
// name: "后评估检查",
// url: "",
// children: [
// {
// name: "后评估互查",
// url: "",
// children: [
// {
// name: "评估项目辅助选定",
// url: "/mainLayout/auxiliarySelection",
// children: [],
// },
// {
// name: "项目评估结果确认更改",
// url: "/mainLayout/confirmChanges",
// children: [],
// },
// {
// name: "评估结果辅助查看",
// url: "/mainLayout/assistedViewing",
// children: [],
// },
// {
// name: "问题辅助查询",
// url: "/mainLayout/auxiliaryQuery",
// children: [],
// },
// ],
// },
// ],
// },
// ],
// openeds:["/mainLayout/confirmRelease"]
};
},
props: {
authority: {
type: Number,
default: "",
},
},
watch: {
authority(newVal, oldVal) {
console.log("oldVal:", oldVal); // coderkey
console.log("newVal:", newVal); // pink
if (newVal == 1) {
this.menuList = [
{
name: "后评估检查",
url: "",
children: [
{
name: "后评估互查",
url: "",
children: [
{
name: "评估项目辅助选定",
url: "/mainLayout/auxiliarySelection",
children: [],
},
{
name: "项目评估结果确认更改",
url: "/mainLayout/confirmChanges",
children: [],
},
{
name: "评估结果辅助查看",
url: "/mainLayout/assistedViewing",
children: [],
},
{
name: "问题辅助查询",
url: "/mainLayout/auxiliaryQuery",
children: [],
},
],
},
],
},
];
this.$router.push({
path: "/mainLayout/auxiliarySelection",
});
this.$refs.kzMenu.activeIndex =this.$route.path
} else if (newVal == 2) {
this.menuList = [
{
name: "后评估检查",
url: "",
children: [
{
name: "后评估互查",
url: "",
children: [
{
name: "评估批次确认发布",
url: "/mainLayout/confirmRelease",
children: [],
},
// { name: "评估材料自动解析", url: "/mainLayout/materialAnalysis", children: [] },
{
name: "项目辅助检查",
url: "/mainLayout/auxiliaryInspection",
children: [],
},
{
name: "问题辅助下发",
url: "/mainLayout/assitedDistribution",
children: [],
},
{
name: "申诉辅助确认",
url: "/mainLayout/assistedConfirm",
children: [],
},
{
name: "整改辅助核验",
url: "/mainLayout/correctiveAssistanceVerification",
children: [],
},
],
},
],
},
];
this.$router.push({
path: "/mainLayout/confirmRelease",
});
this.$refs.kzMenu.activeIndex =this.$route.path;
} else if (newVal == 3) {
this.menuList = [
{
name: "后评估检查",
url: "",
children: [
{
name: "后评估互查",
url: "",
children: [
{
name: "评估材料自动获取",
url: "/mainLayout/materialAcquisition",
children: [],
},
{
name: "问题辅助反馈",
url: "/mainLayout/assistedFeedback",
children: [],
},
{
name: "问题辅助整改",
url: "/mainLayout/assistedRect",
children: [],
},
{
name: "材料同步归档",
url: "/mainLayout/attachSynchronousArchiving",
children: [],
},
],
},
],
},
];
this.$router.push({
path: "/mainLayout/materialAcquisition",
});
this.$refs.kzMenu.activeIndex =this.$route.path;
}
},
},
mounted() {
console.log("重新来了么");
this.activeIndex = this.$route.path;
this.handleOpen(0,['0'])
// this.$refs.kzMenu.open(0-0,['0','0-0'])
console.log( this.$refs.kzMenu,' this.$refs.kzMenu.open')
// this.handleOpen(0-0,['0','0-0'])
},
methods: {
......
<template>
<div class="layout">
<LeftBar class="bar"></LeftBar>
<LeftBar class="bar" :authority='authority'></LeftBar>
<ContinerView class="continer" id="myElement">
<router-view></router-view>
</ContinerView>
<div class="changeqx">
<el-dropdown @command="handleCommand">
<el-button type="primary">
<div style="margin-right: 35px" >权限切换</div>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="(item) in submenu"
:value="item.id"
:command="item.id"
:key="item.id">{{item.menu}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
</template>
......@@ -19,6 +32,25 @@ export default {
data() {
return {
title: "确认更改",
submenu:[
{
id:1,
menu:'省公司管理'
},
{
id:2,
menu:'省公司专家'
},
{
id:3,
menu:'项目建设单位专员'
},
],
authority:null,
};
},
mounted() {
......@@ -38,6 +70,11 @@ export default {
element.style.left = maxWidth - elementWidth + "px";
}
},
handleCommand(item) {
console.log(item,"item")//下拉菜单里面的值
this.authority=item
}
},
};
</script>
......@@ -49,6 +86,7 @@ export default {
display: flex;
padding: 15px;
background-color: #fff;
position: relative;
// overflow: hidden;
.bar {
width: 235px;
......@@ -62,5 +100,10 @@ export default {
box-sizing: border-box;
// overflow: auto;
}
.changeqx{
position: absolute;
right: 0;
top: 5px;
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!